Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2025 01:47:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 284262] nfsd fails to start with nfsv4_server_only but without rpcbind/mountd
Message-ID:  <bug-284262-3630-ZebJLqpObL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-284262-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-284262-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284262

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

Ok, I looked and mountd is forced in /etc/rc.d/nfsd,
so mountd_enable=3D"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=3D"-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".

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284262-3630-ZebJLqpObL>