[Pkg-zfsonlinux-devel] Bug#975873: Please hook zfs-share up to nfs-kernel-server stop+start
Trent W. Buck
trentbuck at gmail.com
Thu Nov 26 03:06:15 GMT 2020
Package: zfsutils-linux
Version: 0.8.4-1~bpo10+1
Severity: minor
I'm not sure who is 'at fault' here, or where the fix belongs.
The problem I ran into was this:
1. I zfs set sharenfs (not /etc/exports), because
it makes config management a little easier (exports(5) lacks a "drop-in" dir).
2. During an apt update, needrestart asks to restart NFS.
3. I tell needrestart "sure, go ahead".
4. All my NFS exports are gone!
I can reproduce the symptoms with stop+start, but not restart:
root at odin:~# exportfs -s
/srv/old-disks goll.lan(ro,async,wdelay,root_squash,no_subtree_check,mountpoint,sec=sys,ro,secure,root_squash,no_all_squash)
root at odin:~# systemctl restart nfs-kernel-server
root at odin:~# exportfs -s
/srv/old-disks goll.lan(ro,async,wdelay,root_squash,no_subtree_check,mountpoint,sec=sys,ro,secure,root_squash,no_all_squash)
root at odin:~# systemctl stop nfs-kernel-server
root at odin:~# systemctl start nfs-kernel-server
root at odin:~# exportfs -s
[UH OH, PROBLEM!]
root at odin:~# zfs share -a
root at odin:~# exportfs -s
/srv/old-disks goll.lan(ro,async,wdelay,root_squash,no_subtree_check,mountpoint,sec=sys,ro,secure,root_squash,no_all_squash)
Can ZFS hook NFS, or vice-versa, so this problem flow stops happening?
This has already bitten me twice! :-(
More information about the Pkg-zfsonlinux-devel
mailing list