[SOLVED] sharenfs stopped working with latest non subscription repo

Ivan Dimitrov

Well-Known Member
Jul 14, 2016
64
7
48
40
I have a few zfs datasets shared with VM and between proxmox instances exported by proxmox with sharenfs. After the latest upgrade the shares are not exported anymore. In the journal I don't see any particular error besides the host trying to mount missing export.
Also one strange thing during the upgrade was that I was asked if I want to keep some of the zfs configuration files as they seems to have changed. I didn't pay much attention to what were those files and what changed but I guess the issue is there.

After I run zfs share -a the exports are shown for a while and disappear again.

Any clues how to debug further?

Code:
proxmox-ve: 8.0.2 (running kernel: 6.2.16-19-pve)
pve-manager: 8.0.9 (running version: 8.0.9/fd1a0ae1b385cdcd)
pve-kernel-6.2: 8.0.5
proxmox-kernel-helper: 8.0.5
pve-kernel-5.15: 7.4-4
proxmox-kernel-6.2.16-19-pve: 6.2.16-19
proxmox-kernel-6.2: 6.2.16-19
proxmox-kernel-6.2.16-15-pve: 6.2.16-15
pve-kernel-5.15.108-1-pve: 5.15.108-1
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: not correctly installed
ifupdown2: 3.2.0-1+pmx6
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.1
libpve-access-control: 8.0.6
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.0.10
libpve-guest-common-perl: 5.0.5
libpve-http-server-perl: 5.0.5
libpve-rs-perl: 0.8.7
libpve-storage-perl: 8.0.4
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-2
openvswitch-switch: 3.1.0-2
proxmox-backup-client: 3.0.4-1
proxmox-backup-file-restore: 3.0.4-1
proxmox-kernel-helper: 8.0.5
proxmox-mail-forward: 0.2.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.2
proxmox-widget-toolkit: 4.1.1
pve-cluster: 8.0.5
pve-container: 5.0.5
pve-docs: 8.0.5
pve-edk2-firmware: 3.20230228-4
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.0.7
pve-qemu-kvm: 8.1.2-2
pve-xtermjs: 5.3.0-2
qemu-server: 8.0.8
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.0-pve3
 
After some debugging the file /etc/exports.d/zfs.exports is empty and being modified constantly every minute or so.

Also found some changes in zfs 2.2 related to the nfs export:

EDIT:

I downgraded the following packages and the exports started working again. There is definitely a bug in zfs 2.2

Code:
zfs-zed:=2.1.13-pve1 zfs-initramfs:=2.1.13-pve1 spl:=2.1.13-pve1 libnvpair3linux:=2.1.13-pve1 libuutil3linux:=2.1.13-pve1 libzpool5linux:=2.1.13-pve1 libzfs4linux:=2.1.13-pve1 zfsutils-linux:=2.1.13-pve1
 
Last edited:
Thanks for the workaround! Did some more testing myself. When I re set the dataset property for sharenfs without downgrading the packages, the nfs shares also come back.
Did this oneliner for my data share:
Code:
zfs get sharenfs -o name,value -H -r -s local data | while read name value; do zfs set sharenfs="$value" "$name"; done

Unfortunatly, this doesn't seem to keep after a reboot. Requires some more investigation.

Regards,

Mark
 
Thanks for the workaround! Did some more testing myself. When I re set the dataset property for sharenfs without downgrading the packages, the nfs shares also come back.
Did this oneliner for my data share:
Code:
zfs get sharenfs -o name,value -H -r -s local data | while read name value; do zfs set sharenfs="$value" "$name"; done

Unfortunatly, this doesn't seem to keep after a reboot. Requires some more investigation.

Regards,

Mark
Unfortunately your workaround didn't work for me. After executing the oneliner nothing changes.
I opened bug report I hope this get the attention this issue deserves.
I know zfs 2.2 has other more significant issues but this one seems like a significant regression too.
 
Unfortunately your workaround didn't work for me. After executing the oneliner nothing changes.
I opened bug report I hope this get the attention this issue deserves.
I know zfs 2.2 has other more significant issues but this one seems like a significant regression too.
That is weird? Did you change the name of the pool in the oneliner (data)?
Did run this om my server and before when doing an showmount -e was empty and afterwards it shows the exported filesystems..

Regards,

Mark
 

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!