ZFS NFS share on encrypted volume is not reboot save

Drag_and_Drop

Renowned Member
Jul 17, 2015
27
5
68
Hi,
Im sharing some local USB Drives with my VMs, but every time I reboot, I got a nfs Server denied on the VMs when I try to mount the Share, although the share looks already shared.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 13 16:57:20 2024 from 192.168.178.102
root@vmh1:~# zfs load-key Data1
Enter passphrase for 'Data1':
root@vmh1:~# zfs mount -a
root@vmh1:~# zfs get sharenfs Data1
NAME PROPERTY VALUE SOURCE
Data1 sharenfs rw=@192.168.178.0/24,no_root_squash local

I have to execute the nfs sharing command again in order to get it working
root@vmh1:/Data1# zfs set sharenfs="rw=@192.168.178.0/24,no_root_squash" Data1
Do I miss something or has the sharenfs function may problems with encrypted volumes, when they are not unlocked yet?
 
zfs uses the linux nfs server but just not /etc/exports.
If you export a directory /Data1 (or eg. /dpool/Data1) and there is nothing mounted so you exported this mostly empty dir and if you send mount a dataset onto it's not the same which was exported before so you have to "re-export" the new content which you done with zfs set sharenfs.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!