Two-disk RAID5?
I'm about to create a RAID1 file system and a strange thought occurs to
me: if I create a two-disk RAID5 array then I can grow it later by the simple expedient of adding a third disk and hence doubling its size.
Is there any real down-side to this, such as performance? Alternatively is it likely that mdadm will soon be able to convert a RAID1 pair to RAID5 any time soon? (Just how different are they anyway? Isn't the RAID4/5 checksum just an OR?)
Thanks
John
Quoted 3 lines · John Rowe
I'm about to create a RAID1 file system and a strange thought occurs to
me: if I create a two-disk RAID5 array then I can grow it later by the simple expedient of adding a third disk and hence doubling its size.
No. When one of the 2 drives in your RAID5 dies, and all you have for some blocks is parity info, how will the missing data be reconstructed?
You could [I suspect] create a 2 disk RAID5 in degraded mode (3rd member missing), but it'll obviously lack redundancy until you add a 3rd disk, which won't add anything to your RAID5 storage capacity.
----------------------------------------------------------------------
Jon Lewis | I route Senior Network Engineer | therefore you are Atlantic Net |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
Quoted 6 lines
No. When one of the 2 drives in your RAID5 dies, and all you have for some blocks is parity info, how will the missing data be reconstructed?
You could [I suspect] create a 2 disk RAID5 in degraded mode (3rd member missing), but it'll obviously lack redundancy until you add a 3rd disk, which won't add anything to your RAID5 storage capacity.
IMO if you have a 2-disk raid5, the parity for each block is the same as the data. There is performance drop as I suspect md isn't smart enough to read data from both disks, but that's all.
When one disk fails, the (lone) parity block is quite enough to reconstruct. With XOR parity, you can always assume any amount of additional disks full of zero, it doesn't really change the algorithm.
(maybe mdadm could/can change a raid-1 into raid5 by just changing the superblocks, for the purpose of expanding into more disks..)
- tuomas
Quoted 9 lines · John Rowe
I'm about to create a RAID1 file system and a strange thought occurs to
me: if I create a two-disk RAID5 array then I can grow it later by the simple expedient of adding a third disk and hence doubling its size.Is there any real down-side to this, such as performance? Alternatively is it likely that mdadm will soon be able to convert a RAID1 pair to RAID5 any time soon? (Just how different are they anyway? Isn't the RAID4/5 checksum just an OR?)
I think it works, I just set up a little test case with two 20MB files and loopback mount. The mdadm seems to work, the mke2fs seems to work, the f/s is there. Please verify, this system is a bit (okay a bunch) hacked.
Signature · 3 lines
bill davidsen <[email protected]> CTO TMR Associates, Inc Doing interesting things with small computers since 1979