-
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
ZFS + LUKS not correctly mounted on boot #2043
Comments
probably related to #599 |
@grigio For now your probably going to need to manually add a delay to postpone the mount until the LUKS container is open and the devices are available. |
i imagined, any hint where to add the delay in ubuntu/upstart ? |
For ubuntu you can try increasing the ZFS_INITRD_PRE_MOUNTROOT_SLEEP value in |
@behlendorf I removed my hacks in zfs-mountall is installed, to see the volume after the boot I've to run:
It's weird, i get "cannot mount.." but then it is mounted correctly |
Are you sure it mounted? It looks like it imported but didn't mount because something was already at the mount point. You might refer to the following for some troubleshooting tips. Sorry, I'm not familiar with getting things working with LUKS. https://github.com/zfsonlinux/pkg-zfs/wiki/Ubuntu-ZFS-mountall-FAQ-and-troubleshooting |
Yes it mounted and the volumes and data are correcly shown inside the directory, I read the LUKS part but it isn't my situation. My root / is LUKS(ext4) and /cpool is LUKS(zfs). The LUKS(zfs) container is correctly unlocked at boot but then somethng goes wrong, sometimes My hacky solution is a
I've to export (because sometime it is uncorrectly imported) and use the |
@grigio That safe, but it shouldn't be needed either. Is it possible the vdev device name is different after each boot? That would cause some trouble. |
No, it's alwais dm-1 |
@grigio I ask because the output from the command above says |
i think it just label generated by luks |
@grigio As long as it's consistent that's OK. If it's possible that it changes between reboots that could cause your issue. |
Hi,
I've a partition LUKS(ZFS) with is correctly decrypted the problem is that it seems the "zfs mount command" is executed before that the LUKS container is decrypted.
Steps
zpool status
DEGRADED or sometimes it is ONLINE but I get an empty directoryzpool export cpool
andzpool import cpool
, then it worksIs possible to avoid these additional commands at every reboot? The OS is Ubuntu 12.04.3
Thanks
The text was updated successfully, but these errors were encountered: