HomeFreeBSD

Add zvol_inhibit_dev module option.

Description

Add zvol_inhibit_dev module option.

ZoL can create more zvols at runtime than can be configured during
system start, which hangs the init stack at reboot.

When a slow system has more than a few hundred zvols, udev will
fork bomb during system start and spend too much time in device
detection routines, so upstart kills it.

The zfs_inhibit_dev option allows an affected system to be rescued
by skipping /dev/zd* creation and thereby avoiding the udev
overload. All zvols are made inaccessible if this option is set, but
the zfs destroy and zfs send commands still work, and ZFS
filesystems can be mounted.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Darik Horn <dajhorn@vanadac.com>Authored on Jun 2 2012, 1:49 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 14 2012, 12:05 AM
Parents
rGbc98d6c80944: Make zvol_remove_link() print a more useful error message
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG74497b7ab6af: Add zvol_inhibit_dev module option. (authored by Darik Horn <dajhorn@vanadac.com>).Jun 14 2012, 12:05 AM