[Bug 284262] nfsd fails to start with nfsv4_server_only but without rpcbind/mountd

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 May 2025 11:07:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284262

--- Comment #4 from Thorsten Mühlfelder <t@ida2.de> ---
(In reply to Rick Macklem from comment #1)

> You note the the documentation suggests mountd does not need to be running.

I guess I 've read this elsewhere. Maybe forum or mailing list. So just ignore
it.

Now I'm just using:
nfs_server_enable="YES"
nfsv4_server_enable="YES"
nfsv4_server_only="YES"
mountd_enable="YES"

This works for me.

Still I'm not sure why these are in the mountd script:
                echo 'NFSv4 only server'
                sysctl vfs.nfsd.server_min_nfsvers=4 > /dev/null
                sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null

while this is in the nfsd script:
                sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null

Does mountd also rely on "vfs.nfsd.server_min_nfsvers"?

-- 
You are receiving this mail because:
You are the assignee for the bug.