create a partial raid5
Hello!
Is it possible to create a Radi5 with only 2 disks? (I know that Raid5 needs 3 to be really redundant)
With a Raid1 I can do things like:
mdadm -C /dev/md0 --force --raid-devices=1 /dev/hdb2 mkreiserfs /dev/md0
copy files from an older drive to the raid, get the old drive out and put the new disk for the raid in.
then
mdadm -G /dev/md0 --raid-disks=2
mdadm -a /dev/md0 /dev/hdc2
and the raid1 is now a real raid1 (after sync)
It would be great to have something similar for raid5:
mdadm -C /dev/md0 --force --raid-devices=2 /dev/hdb2 /dev/hdc2 mdadm -G /dev/md0 --raid-disks=3
mdadm -a /dev/md0 /dev/hda2
or
mdadm -C /dev/md0 --force --fail=/dev/hda2 --raid-devices=3 /dev/hdb2 / dev/hdc2
mdadm -a /dev/md0 /dev/hda2
i know that this is possible with raidtools and /etc/raidtab.
is this possible with the recent version of mdadm or is it a planned feature (or not planned)?
thanks in advance
stephan
Signature · 2 lines
Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
Oh yeah, it's possible - I've done it in connection with disaster recovery (or rather, attempt thereof).
The key is to write 'missing' instead of the device name, so you just go
mdadm -C /dev/md0 --raid-level=5 --raid-devices=3 /dev/hdxx /dev/hdyy missing
-note that the missing drive can be anywhere you like.
Regards, Troels
Quoted 45 lines · stephan sperber
Hello!
Is it possible to create a Radi5 with only 2 disks? (I know that Raid5 needs 3 to be really redundant)
With a Raid1 I can do things like:
mdadm -C/dev/md0--force --raid-devices=1/dev/hdb2mkreiserfs/dev/md0copy files from an older drive to the raid, get the old drive out and put the new disk for the raid in.
then
mdadm -G/dev/md0--raid-disks=2
mdadm -a/dev/md0/dev/hdc2and the raid1 is now a real raid1 (after sync)
It would be great to have something similar for raid5:
mdadm -C/dev/md0--force --raid-devices=2/dev/hdb2/dev/hdc2mdadm -G/dev/md0--raid-disks=3
mdadm -a/dev/md0/dev/hda2or
mdadm -C/dev/md0--force --fail=/dev/hda2 --raid-devices=3/dev/hdb2/ dev/hdc2
mdadm -a/dev/md0/dev/hda2i know that this is possible with raidtools and
/etc/raidtab.is this possible with the recent version of mdadm or is it a planned feature (or not planned)?
thanks in advance
stephanSignature · 6 lines
Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html