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

Michael Biebl biebl at debian.org
Sat Jan 9 09:39:38 GMT 2021


On Thu, 26 Nov 2020 14:15:23 +1100 "Trent W. Buck" <trentbuck at gmail.com> wrote:
> 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
> 
> 

Hm, I assume this triggers the mount of ZFS volumes.
While I understand the motivation for the stop+start nfs-server.service
case, what happens during boot?
Does this have the potential to trigger the mount at a time when not
all dependencies are ready?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-zfsonlinux-devel/attachments/20210109/9368b494/attachment.sig>


More information about the Pkg-zfsonlinux-devel mailing list