NFS Share on ZFS Pool: Cannot stat after reboot


New Member
Apr 17, 2019

I want to use Proxmox 5.4 with cifs and nfs shares. nfs-kernel-server is already installed
A large raidz2 pool is mounted at /pool.

I created some nfs shares in /etc/export to share some subdirectories of /pool.

when nfs-kernel-server is started manually, everything works fine, but after reboot i get the following Error for every share:

Cannot stat /pool/shares/... : No such file or directory

It seems the zfs pool is not mounted at the time the nfs server is started. I already tried specifying
in /etc/systemd/ but even though i can confirm the nfs-server is started after zfs-mount, i still get the error messages. It also happens if i add 60s to ExecStartPre of nfs-server.service.

Am i missing something?
I dont have issues with my samba share

You could use the 'sharenfs' property of the datasets you want to export via NFS - this works quite reliably
(see `man zfs`)

Hope this helps!
hmm - any chance to create datasets and move the data there ? (with rsync)
(you can rename the datasets after the move)
i'll try the zfs dataset sharing. If it works fine I may be able to copy the files over.

thank you so far!
It seems to work with zfs's share option. I'll copy over the data to datasets tonight. Thank you.
For those who don't wish to use the nfs from zfs, I found this. I haven't yet tested it but I tried the same avenue as OP and it failed.

The basic premise is to just create a new systemd service and make nfs-server wait on it. That simple service can just be something as simple as `zfs get mounted /myMountedZFSpool | grep yes` which simply responds with "yes" or "no". Not being able to grep "yes" automatically gives an exit code of 1, etc. so simple enough.

I will report back if this does work as it should be simple enough.
Last edited:


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!