[Pkg-zfsonlinux-devel] Bug#975873: Acknowledgement (Please hook zfs-share up to nfs-kernel-server stop+start)

Trent W. Buck trentbuck at gmail.com
Thu Nov 26 03:15:23 GMT 2020


This quick-and-dirty fix seems to work for me:

    root at odin:~# systemctl cat nfs-kernel-server
    # /lib/systemd/system/nfs-server.service
    [...]

    # /etc/systemd/system/nfs-server.service.d/zfsutils-linux.conf
    # If you configure NFS exports in "zfs set sharenfs",
    # this will remove all your NFS shares!
    #
    #     systemctl stop nfs-kernel-server
    #     systemctl start nfs-kernel-server
    #
    # This is an attempt at a quick fix.
    [Service]
    ExecStartPost=/sbin/zfs share -a



More information about the Pkg-zfsonlinux-devel mailing list