Re: nfsd v3 & nfsd v4 server on same host
Rick Macklem <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.file-systems |
|---|---|
| Message-ID | <CAM5tNy6fhvwJJJ3i0z-MhZ65d-GhOPkEwdA+m5xHqCKGQGrtPg@mail.gmail.com> |
On Wed, Nov 19, 2025 at 5:00 AM Konstantin Belousov <[email protected]> wrote: > > On Wed, Nov 19, 2025 at 04:40:07AM -0800, Rick Macklem wrote: > > On Wed, Nov 19, 2025 at 4:27 AM void <[email protected]> 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 > > Care to add this to the man page, please? nfs_server_enable, nfsv4_server_enable and nfsv4_server_only are documented in "man rc.conf". Are you referring to "man sysctl"? (To be honest, none of the NFS sysctls are in it.) rick >