-
Notifications
You must be signed in to change notification settings - Fork 55
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
Mounts datasets too late in boot process #101
Comments
@jgoerzen Any idea how can this be accomplished with systemd? |
I have this issue on Ubuntu as well. I have to restart most of my services after boot, since they failed to start due to their ZFS partitions not being mounted yet. |
Accomodate openzfs/zfs#2780 by importing pools in an upstart job before mountall starts. The device timeout logic, although not event driven, should mitigate the recurring mpt2sas problem described in section 4.3 of the ZoL mountall FAQ. Add a new `/etc/default/zfs` option: * `ZFS_AUTOIMPORT_TIMEOUT`, which is the number of seconds to wait for pool member devices to appear before attempting import. Closes: #53 Closes: #101 for Ubuntu.
The packages for Utopic now have a |
In my dailies (0.6.3+) I added the
This is also part of my #2087 pull request. |
This is on Debian wheezy.
I have datasets like so:
When the system boots, /etc/init.d/zfs-mount is running too late. Other things are running first, such as syslog, LVM, etc. They are creating directories under /var. When zfs-mount runs, /var is no longer empty, and it refuses to mount it. This results in a non-working system.
The workaround I have documented at http://wiki.complete.org/ConvertingToZFS#zfs_mounting_workaround_.28for_separate_.2BAC8-usr.2C_.2BAC8-var.29 is:
Edit /etc/insserv.conf, and at the end of the $local_fs line, add zfs-mount (without a plus).
And, edit /etc/init.d/zfs-mount and change the three lines near the top to:
Additionally, for people that have a zpool atop dm-crypt, this will not work well. They need to set Required-Start: cryptdisks-early and add zpool import -a one line before zpool mount -a in /etc/init.d/zfs-mount. They also must edit mountall-bootclean.sh to set "Required-Start: mountall zfs-mount".
These are probably not the correct fixes for going in this package, but I am documenting them here as a starting point anyhow.
The text was updated successfully, but these errors were encountered: