I am experimenting with using NFSv4 and realized that I have set the zfs property sharenfs manually to ON (at least for existing shares, did not try to set up a new one).
Has anyone any experience with this? Is there a possibility that I break something when I do this?
I tested it with a single share and found it in /etc/zfs/exports afterwards. I could create and edit a file. Everything seemed to work normally.
sharenfs and sharesmb are unsupported on truenas and may result in unexpected behavior due to undesigned interaction with the middleware backend configuration for exports. We explicitly disable in linux versions of TrueNAS for this reason.
That said, it’s your server, you can do what you want (with the caveat that if you break it, you get to pick up the pieces). Just make sure to document for the next guy.
Got it. And already re-set sharenfs to off on that particular dataset. I just thought NFSv4 on ZFS was somehow connected to the sharenfs property. So I still get NFSv4 and don’t need to start rpc_lockd and rpc_statd on my client?
I know. And I set it accordingly. My question was whether I now don’t need to start rpc_lockd and rpc_statd on the clients that are mounting the shares with the nfsv4 option.