Re: nfsd v3 & nfsd v4 server on same host

From: Rick Macklem <rick.macklem_at_gmail.com>
Date: Wed, 19 Nov 2025 12:40:07 UTC
On Wed, Nov 19, 2025 at 4:27 AM void <void@f-m.fm> wrote:
>
> Hi,
>
> As subject - is this possible temporarily?
Sure. You will need to configure the NFSv4 bits..
- Add a "V4:" line to /etc/exports (that is needed as
  well as the sharenfs property.
- Either choose to do uids in "strings", which is probably
  the easiest unless you are doing kerberos mounts or
  run nfsuserd (but choose one, not both of these).
  Setting vfs.nfs.enable_uidtostring and vfs.nfsd.enable_stringtouid
  to one and not running the nfsuserd chooses the first case.
- set nfsv4_server_enable="YES" in /etc/rc.conf, but don't set
  nfsv4_server_only

If you've done the above, do:
# sysctl -a | fgrep vfs.nfsd | fgrep vers
- and you should see minvers set to 2 or 3 and maxvers set to 4

rick

> The end point is to have the server wholly nfsv4
> with the minimum of disruption.
>
> At the moment nfsv3 is via the zfs sharenfs property
> --
>