Author Topic: RAID over RAID  (Read 1456 times)

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
RAID over RAID
« on: December 15, 2009, 07:20:55 AM »
So, I thought I'd share my RAID setup with y'all.  I have three hardware RAID 5s of three disks each, and then I software RAID 5 those.  Awesome, neh?

You should all try it.  Now.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline kureshii

  • Former Staff
  • Member
  • Posts: 4485
  • May typeset edited light novels if asked nicely.
Re: RAID over RAID
« Reply #1 on: December 15, 2009, 07:24:49 AM »
Math question time!

Let's start by defining some terminology:

Level 1 RAID: 5 disks in RAID5
Level 2 RAID: 5 Level 1 RAIDs in RAID5
Level 3 RAID: 5 Level 2 RAIDs in RAID5

and so on...

Notice that a full Level 1 RAID will have 1 disk of parity data (divided among the 5 disks, of course). A full Level 2 RAID will have 9 disks of parity data (1 Level 1 RAID worth, and an additional 4 disks worth).

The question: In a full N-level RAID, how many disks of parity data will there be? Give a formulation in terms of N.

Additional question: What level RAID (by the above definition) will have a data redundancy ratio (redundant i.e. parity data / total data) lower than a traditional RAID 1 (which has a data redundancy ratio of 0.5)?

(Solution will be posted later, if I can work it out)

[disclaimer: I am aware that standard RAID levels are ostensibly not how I have defined them; I adopt these definitions only in this question as it makes it easier to visualise. I am also aware that RAID 5 does not use a dedicated disk for parity, unlike RAID 3/4, and that parity data is distributed across all disk members, but let's not complicate things more just yet]
« Last Edit: December 15, 2009, 08:45:26 AM by kureshii »

Offline Jarudin

  • Member
  • Posts: 6875
Re: RAID over RAID
« Reply #2 on: December 15, 2009, 07:31:32 AM »
Regular RAID5:
Disk 1Disk 2parity

Your setup:
Disk 1Disk 3parity
Disk 2Disk 4parity
parityparityparity
This means you're only using 4/9 of your disks, this is LESS than the 1/2 ratio of RAID 1.

I don't know what this means for read/write speeds but with the added software RAID it can't be good.

Is it just me or does this seem like a stupid idea?

As for the formula.
If you have X disks per level, you will use 1 disk for parity for that level.
So the formula would be something like ((X-1)/X)^N where N is the 'depth'. Very inefficient for small X and large N I'd say.
This is not the amount of parity disks but the ratio of non-parity disks. This can be derived easily.

--Jarudin--
« Last Edit: December 15, 2009, 07:39:58 AM by Jarudin »
Baby, I love the way you move

Offline xShadow

  • Member
  • Posts: 1503
  • No
Re: RAID over RAID
« Reply #3 on: December 15, 2009, 08:26:52 AM »
Regular RAID5:
Disk 1Disk 2parity

Your setup:
Disk 1Disk 3parity
Disk 2Disk 4parity
parityparityparity
This means you're only using 4/9 of your disks, this is LESS than the 1/2 ratio of RAID 1.

I don't know what this means for read/write speeds but with the added software RAID it can't be good.

Is it just me or does this seem like a stupid idea?

As for the formula.
If you have X disks per level, you will use 1 disk for parity for that level.
So the formula would be something like ((X-1)/X)^N where N is the 'depth'. Very inefficient for small X and large N I'd say.
This is not the amount of parity disks but the ratio of non-parity disks. This can be derived easily.

--Jarudin--

That formula looks about right.

If you switch it around to say P=(X)^N-(X-1)^N , P should be the number of parity disks.

Works according to what Kureshii said, because 5^2-4^2=9 , and 5-4=1, which is right for the lower level.

The third level is 125-64=61... that's pretty bad. >_>

Now, I don't know what the heck this raid stuff is, because I've never really researched it, but I'm not quite understanding why that formula works. Way I see it, you have X-1 disks that aren't "parity" disks (I don't know what a parity disk is, besides that it's used for error checking and data recovery; all I know is it subtracts one from the number of disks you have 'available') in an array of X disks (according to what you said), so a level 1 raid has X-1 available disks. Soooo... why wouldn't having an X array of those X arrays just add one more parity disk for the entire array of arrays, supposing each array in the new higher-level array is just counted as one disk (in other words, have you end up with X+1 parities for a level 2 RAID)? >___>;
I guess my knowledge is lacking somewhere in that department, so I'm basically just interested; Wikipedia's not giving me any good info.


Actually...

Is it because when you get to the higher-level array, the size of a "disk" has been upgraded to the ("working") size of an entire lower-level array?

Just wondering. For some reason, I'm on track to get out of here with a degree in Comp E, and I realized I don't know that much technical crap about computers. >_>;

Cute, huh?

Offline kureshii

  • Former Staff
  • Member
  • Posts: 4485
  • May typeset edited light novels if asked nicely.
Re: RAID over RAID
« Reply #4 on: December 15, 2009, 08:39:52 AM »
Solution:
(click to show/hide)

Now, calculating failure probability rates would be an interesting extension of this...

[btw, yes, we are aware that xiong is trolling, but we'll take any excuse we can get for an interesting tech discussion that isn't about formatting hard disks *ahem*]
« Last Edit: December 15, 2009, 09:21:29 AM by kureshii »

Offline K7IA

  • Member
  • Posts: 884
  • :)
Re: RAID over RAID
« Reply #5 on: December 15, 2009, 09:01:35 AM »
@Xiong: When I read the topic, I instantly thought Raid 5+0 :) [edited]
« Last Edit: December 15, 2009, 09:49:29 AM by enginarc »

Offline Proin Drakenzol

  • Member
  • Posts: 2296
  • Tiny Dragon Powers of Doom!
Re: RAID over RAID
« Reply #6 on: December 15, 2009, 10:58:44 PM »
You know what really sucks about RAID 5?


When you're losing shitty old systems bought almost 20 years ago and two drives fail at the same time, the server's internal hard drive (which is separate from the server RAID) is wiped, the remote station is wiped, it's on a SPARC system running Solaris, your instructions are contradictory, you're supposed to get SPAWAR to do massive reloads, and you're told to "fix it anyway" and work three, 60 hour weeks (salary, mind you) and when you finally get it up, what do you get? A job to get more PC133 RAM for one of the remote stations... which is a much harder task than you'd think (17 sticks of bad RAM later)...

All I want is a NAM (Navy and Marine Corps Achievement Medal). Two measly award points... but nooooo....

* Proin Drakenzol goes and cries in a corner.

The linear nature of your Euclidean geometry both confounds and befuddles me.

Offline Neco

  • Member
  • Posts: 332
  • Seriously screwed up
    • Old Skool Games - Bringing the gaming past to the present
Re: RAID over RAID
« Reply #7 on: December 17, 2009, 12:28:03 AM »
All I have to say is... why in gods name would you run RAID in software?

Although it would be nice to rob a bank, and then build a 50TB RAID-0 array out of  SSD's.

The speed would be...  well damn it better be EPIC or something!  >:(

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: RAID over RAID
« Reply #8 on: December 17, 2009, 01:26:25 AM »
All I have to say is... why in gods name would you run RAID in software?
Because I can't afford hardware RAID.  Besides, for the project that I'm actually going to use RAID for (not this, lol!), the bottleneck will be NFS, which I assume will be slower than pushing RAID off onto the OS.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline K7IA

  • Member
  • Posts: 884
  • :)
Re: RAID over RAID
« Reply #9 on: December 17, 2009, 01:56:19 PM »
^a project for building a custom NAS ???

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: RAID over RAID
« Reply #10 on: December 17, 2009, 09:23:39 PM »
^a project for building a custom NAS ???
Essentially, yes.  It gets expensive to buy 12-disk prebuilt NASs.

But that's not the topic here, anyways.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.