[PLUG] Disallow raid assembly with missing device?
John Jason Jordan
johnxj at comcast.net
Sat Dec 20 21:29:11 UTC 2008
On Sat, 20 Dec 2008 12:30:07 -0800
Aaron Ten Clay <aaron at madebyai.com> dijo:
> I've got a non-critical box running raid5 where two drives are external, one
> USB and one eSATA. Occasionally for some reason one or the other is not
> detected at boot time, and the kernel will autodetect and assemble the array
> in degraded state missing one drive. This requires the whole array to be
> regenerated, which is quite time consuming.
>
> Is there a way to force the kernel to NOT assemble an array that's missing
> disks at boot time? The raid456 module is compiled into the kernel because
> this raid array is the root filesystem. I'm not using an initrd and want to
> avoid doing so because that's a nuisance.
Assuming you're using mdadm (Linux software RAID) I think this can be
configured with the Auto-detect options in the /etc/mdadm/mdadm.conf
file. I don't know exactly how to do it, however. While I generally
bitch about man files, man mdadm is pretty good.
More information about the PLUG
mailing list