Hi! Am Donnerstag 30 Oktober 2008 schrieb John Andersen:
Matthias Bach wrote:
Hi!
Am Donnerstag, 30. Oktober 2008 13:02 schrieb Per Jessen:
RAID1. You can probably also add a drive to working RAID1 or maybe even RAID5, but I don't know.
You can to RAID 5. I converted my system by creating the RAID 5 in degraded mode on 2 disks and later adding the third one.
Can you now decide to add a fourth (not as a hot spare, but as active member of the raid)? That would require restriping, which presumably would run in the background but it would be cool if you could do that?
AFAIK yes. You would first have to add the drives as hot spares however. mdadm /dev/md0 --add /dev/sdd Then you can grow the array onto that new disk. mdamd --grow md0 -n 4 /dev/sda /dev/sdb /dev/sdc /dev/sdd Expect the reshaping to put your mashine under heavy IO load for a few hours, so. And remember that you will still have to resize your filesystem afterwards, which might add some more time. Sadly I don't have the hardware and time to try this right now, but if you want to play around, VirtualBox is your friend ;). Regards, Matthias -- Matthias Bach www.marix.org „Der einzige Weg, die Grenzen des Möglichen zu finden, ist ein klein wenig über diese hinaus in das Unmögliche vorzustoßen.“ - Arthur C. Clarke