Preventing a RAID device from starting until all disks are ready
Quoted 5 lines · Iordan Iordanov
Have you considered enabling a write-intent bitmap on your array? This way, at least your rebuild will take seconds instead of 10 hours. Write intent bitmap support for RAID10 was introduced in 2005, and hopefully CentOS 5.2 supports it.
I've never heard of that - sounds fantastic. Does it have any performance penalties during heavy writes?
Quoted 7 lines
We have iscsi targets for drives in our array, and we make sure that we've logged into all 30 of our drives before we continue to enable mdadm (we literally count the number of iscsi sessions open). You can try counting the number of block devices present (in
/dev/block) that match a certain pattern, or perhaps your fiber channel driver offers an even more convenient facility in /dev.
Are you doing the mdadm startup in rc.local, or in the initrd, or...?
Andrew