Ensure all block devices are available
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 30 Jun 2011 21:45:33 +0000 (14:45 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 30 Jun 2011 21:45:33 +0000 (14:45 -0700)
commit2a005961a48e748632e96272915192dab6ce9401
tree52aaace193c3787086a1877648570c96a3f22095
parent218b8eafbdcb9bc19fc5a252fdd411fde11bca48
Ensure all block devices are available

These days most disk drivers will probe for devices asynchronously.
This means it's possible that when you zfs init script runs all the
required block devices may not yet have been discovered.  The result
is the pool may fail to cleanly import at boot time.  This is
particularly common when you have a large number of devices.

The fix is for the init script to block until udev settles and we
are no longer detecting new devices.  Once the system has settled
the zfs modules can be loaded and the pool with be automatically
imported.
etc/init.d/zfs.fedora
etc/init.d/zfs.gentoo
etc/init.d/zfs.lsb
etc/init.d/zfs.lunar
etc/init.d/zfs.redhat