zfs share nfs not working

lxiosjao

Member
Mar 21, 2021
62
1
13
Hi,
I'm trying to use the sharenfs with zfs from my host but I can't mount the shared dataset from my computer.

Host proxmox :
- firewall disabled
- IP : 172.20.30.100
- apt install nfs-kernel-server (service status active : with systemctl status nfs-server.service)
- zfs set sharenfs="no_root_squash,rw=@172.20.30.50" /data/sharenfs (allow the ip of my desktop)
- last version of proxmox

My computer :
- linux mint
- IP : 172.20.30.50
- Command to try to mount the share nfs : mount -t nfs 172.20.30.100:data/sharenfs /media/sharenfs
- result : mount.nfs: access denied by server while mounting (null)


Do I need to configure the /etc/exports file on the host ?
I think using only zfs set sharenfs is enough, no ?

Thanks for your help
 
Last edited:

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!