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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Jan 2025 01:47:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284262

--- Comment #2 from Rick Macklem <rmacklem@FreeBSD.org> ---
(In reply to Thorsten Mühlfelder from comment #0)
nfs_server_enable="YES"
nfsv4_server_enable="YES"
nfsv4_server_only="YES"

Ok, I looked and mountd is forced in /etc/rc.d/nfsd,
so mountd_enable="YES" is not required.

I think what is causing you problems is that the
default nfs_server_flags includes "-u" (UDP is not
supported for NFSv4).

I think if you add
nfs_server_flags="-t"
to your /etc/rc.conf it will work. (I have done this
for decades, since I have no use for NFSv3 over UDP.)

Maybe the "-u" should be removed from /etc/default/rc.conf's
nfs_server_flags entry, but some might consider this change a
POLA violation.

I'll look at the nfsd man page and see if something about
"do not use -u for nfsv4_server_only configurations".

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