hazmatt20 |
12-13-2007 11:47 AM |
Raid5 array works but won't start on boot
So, I want to point out that I just installed Debian on the system, and I have all of my data stored on other disks that are not going into the array, so there is no sense of urgency here.
To keep it short, I installed Debian on /dev/hda and created a raid5 array on /dev/sd[a-e]. No problems. Everything even fine on reboot. However, I actually have 6 drives and only used 5 so I could test growing the array for future needs. When I add the 6th drive, the array does not come up automatically. /proc/mdstat has
Quote:
Personalities : [raid6] [raid5] [raid4]
md0 : inactive sda[0](S)
488386496 blocks
|
If I take the 6th drive back out, the array starts on reboot like it should. With the 6th drive in, I have to do one of two things for it to start.
Quote:
mdadm --stop /dev/md0
mdadm -A /dev/md0
|
or
Quote:
/etc/init.d/mdadm-raid restart
|
I tried bringing it up and running
Quote:
echo "DEVICE partitions" > /etc/mdadm/mdadm.conf
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
|
but it did not help. I also tried replacing "partitions" with "/dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1" as well as manually entering the drives in the array in mdadm.conf. I'm about to go ahead and add the last drive and then see if it works correctly because any drives that get added in the future should only be for the array, but it still concerns me. What if I just wanted to add another separate drive for, say, /var that wouldn't be part of the array? I would probably have to add "mdadm --stop /dev/md0;mdadm -A /dev/md0" to rc.local for the raid array to work. Any suggestions?
|