-
Notifications
You must be signed in to change notification settings - Fork 63
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 is unable to import encrypted ZFS datasets, and nfs-server zfs mounts are inaccessible without a manual reload. #54
Comments
Encrypted filesystems should be mounted properly in #59. Regarding your second issue: I suspect that the Your best bet is probably to fire a one-shot runit service that does whatever checks are appropriate to determine whether |
I misread the second half of your issue, please disregard my comments, which seem inaccurate for NFS anyway after reading through the ZFS share code. If you have key files on filesystems other than ZFS, then it makes sense that trying to There are two reasonable ways to handle keys for automatic unlocking:
Using If you need legacy mounts before ZFS does its mounts, you are looking for custom behavior, and the only reasonable place to do this is in |
@ahesford: Ah, I ended up migrating that server to a different distribution long ago. Completely forgot that this issue was still open. My apologies. |
The current runit script does not seem to take into account encrypted ZFS datasets.
void-runit/core-services/03-filesystems.sh
Lines 33 to 52 in 8ab6d40
I added a simple
zfs load-key -a
to the script between thezpool import
andzfs mount
blocks, but my keyfiles are not loaded. I believe this probably because my keyfile is located outside the/
file system.So I moved the entire block containing zfs code to the end of the script, after all partitions are mounted. However I'm sure this will break systems which rely on ZFS datasets to be mounted before mounting the fstab entries. So maybe the zfs block should be run twice? The first block remains in its original place while the second block serves as a sort of catch-all for the secondary mount points that rely on a mounted partitions.
This also brings me to my second problem: my zfs mounts do not use the auto-sharing properties, so
zfs share
, as I understand it, does not share my mount points during boot. However I do have the shares configured in/etc/exports
and I expect nfs server to share them properly. However the shares are inaccessible unless I restartnfs-server
manually afterssh
'ing into the server. I do have port 2049 opened innftables.conf
, and my client machine uses the mount optionnfs4
.The text was updated successfully, but these errors were encountered: