[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Advanced Startup/Shutdown with Multilayered Block Devices and Related Issues

[Goswin von Brederlow]
> There is one big problem with an event based startup. Specifically
> for raid1/4/5/6 devices. Those you can use just fine with missing
> devices but the boot should really wait for all device to be
> present.

This problem is not specific for event based startup.  It also exist
with the current sequence based boot system.  There are heaps of
setups that fail to boot because the required are missing when the
init.d script using them are running during boot.  The only known
solution today is to add a long delay during boot to try to increase
the chance of having all devices available when they are needed. :(

> The big question is how long do you wait? How do you detect that a
> device is actually broken/missing and its event will never come? You
> can't even check if there are any pending events (udev-settle)
> because the device might be slow to start (e.g. a disk on a SATA
> port multiplier or SCSI with delayed spin up or external enclosures)
> and no event has yet been initialized for it.

Yeah.  With the current Linux kernel, I am not aware of any way to
answer these questions. :(

Happy hacking,
Petter Reinholdtsen

Reply to: