HomeFreeBSD

Ensure all block devices are available

Description

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.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 30 2011, 9:45 PM
Parents
rG218b8eafbdcb: Use truncate_setsize in zfs_setattr
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2a005961a48e: Ensure all block devices are available (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 30 2011, 9:45 PM