On Thu Jun 30, 2011 at 12:51:37 +0200, Karsten Römke wrote: > Hello, > I'm searching some hours / minutes to create a raid5 device with 4 > disks and 1 spare: > I tried first with the opensuse tool but no success as I want, so I > tried mdadm > > Try: > mdadm --create /dev/md0 --level=5 --raid-devices=4 --spare-devices=1 > /dev/sda3 /dev/sdb2 /dev/sdc5 /dev/sdd5 /dev/sde5 > > leads to > Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] > md0 : active (auto-read-only) raid5 sdd5[5](S) sde5[4](S) sdc5[2] sdb2[1] sda3[0] > 13759296 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_] > > 2 spares - I don't understand that. > That's perfectly normal. The RAID5 array is created in degraded mode, then recovered onto the final disk. That way it becomes available for use immediately, rather than requiring all the parity to be calculated before the array is ready. As it's been started in auto-read-only mode (not sure why though) then it hasn't started recovery yet. Running "mdadm -w /dev/md0" or mounting the array will kick it into read-write mode and start the recovery process. HTH, Robin -- ___ ( ' } | Robin Hill <robin@xxxxxxxxxxxxxxx> | / / ) | Little Jim says .... | // !! | "He fallen in de water !!" |
Attachment:
pgpXk1M_L0L7w.pgp
Description: PGP signature