-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
/var dataset requires legacy mount on systemd based distros. #3768
Comments
systemd will need something like 3f1cc17 to address this. |
is this still an issue, right? I've just tried to migrate /var to zfs on centos7 but it does not get mounted in initrd process. if this is no longer an issue, what is the correct approach to migrate just /var from ext4 to zfs? |
I do not have this issue, but then my initrd mounts the /var partition before systemd even gets a chance to start. |
do you mind sharing your setup? i tried installing zfs-dracut and rebuilding initrd but systemd kicks in the initrd before zfs-import-cache |
@rlaager thank you. @behlendorf is this planned for being included in a 0.7.x update or will be later in 0.8.0? |
@mailinglists35 it's planned for 0.8.0. |
does it work now? debian buster, zfs 0.8.2 |
@zh99998 Yes, but you have to be using the zfs-mount-generator, which is not enabled by default. See step 5.8 here, starting with |
When separating out /var and NOT using legacy mounts, journald writes to /var before zfs has initiated/mounted it. Hence, zfs will subsequently be unable to mount /var, as it now contains existing data. Note that I've not tested this very thoroughly, and it has been some years since I used zfs (so maybe I'm out in left field here....) but that sure looks to be what is happening.
The text was updated successfully, but these errors were encountered: