Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable sleep timer to init scripts #71

Closed
tigloo opened this issue Jan 3, 2013 · 1 comment
Closed

Add configurable sleep timer to init scripts #71

tigloo opened this issue Jan 3, 2013 · 1 comment
Assignees

Comments

@tigloo
Copy link

tigloo commented Jan 3, 2013

This is a feature request for mpt2sas users that see drives coming online only several seconds after the driver loaded:

Since I'm using ZFS as root file system, I had to change /usr/share/initramfs/scripts/zfs to include a sleep statement before wait_for_udev. However, since that file is not marked as a configuration file, changes are overwritten when upgrading the package.

Looking at the issues, it seems that there are several places where sleep statements can be used / should be used.

Would it be possible to factor the delay out into a configuration file that resides in /etc? Then all scripts could include a "sleep $ZFS_DRIVE_DELAY" line and the delays would survive upgrading the packages.

@ghost ghost assigned dajhorn Jan 11, 2013
dajhorn referenced this issue Jan 15, 2013
Add a new `/etc/default/zfs` option:

* `ZFS_INITRD_PRE_MOUNTROOT_SLEEP`, which wastes an arbitrary amount
of time in the initrd environment before wait_for_udev is called.

This option is primarily a kludge for bad mpt2sas hardware that can go dumb
during system initialization. Thirty seconds should be enough for most
affected computers, but five minutes might be required in the worst case.

Closes: dajhorn/pkg-zfs#71
@dajhorn
Copy link
Member

dajhorn commented Jan 15, 2013

This enhancement is now in the daily PPA. See the new ZFS_INITRD_PRE_MOUNTROOT_SLEEP option at the bottom of the /etc/default/zfs file.

@dajhorn dajhorn closed this as completed Jan 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants