Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2020 23:21:34 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: Documentation regarding NFSv4
Message-ID:  <YTBPR01MB3966AFCC1828D45D85041BF5DD3F0@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <20200918185319.7o27ciyviwdyhr7v@mutt-hbsd>
References:  <20200918185319.7o27ciyviwdyhr7v@mutt-hbsd>

next in thread | previous in thread | raw e-mail | index | archive | help
Shawn Webb wrote:=0A=
>Hey all,=0A=
>=0A=
>It appears the Handbook and the nfsv4 manpages don't really agree,=0A=
>leading to some confusion as to how to properly set up an NFSv4 server=0A=
>on FreeBSD.=0A=
>=0A=
>Any guidance would be appreciated.=0A=
1 - I never look at the Handbook, but do try and maintain the man pages.=0A=
     Since you didn't explain the specifics related to your confusion, all =
I can=0A=
     say is that the man pages are probably more correct.=0A=
=0A=
Assuming you already have a running NFSv3 NFS server, all you need to do=0A=
is:=0A=
- Add a V4: line to your /etc/exports files. This does not "export any file=
 systems"=0A=
  (that is done by other lines in /etc/exports exactly the same as NFSv3).=
=0A=
  However, it does tell the NFSv4 server where the "root" is for NFSv4 clie=
nts.=0A=
  (ie. Where in the server's file system tree a "nfs-server:/" done by an N=
FSv4 client=0A=
   ends up.)=0A=
- Add nfsv4_server_enable=3D"YES" to your /etc/rc.conf.=0A=
=0A=
Note that, since NFSv4 does allow a mount to cross server mount points (unl=
ike=0A=
NFSv3), a client will normally only do a single mount at or near the "root"=
=0A=
specified by the "V4:" line (see "man exports").=0A=
=0A=
If you explain what inconsistencies are in the docs, maybe someone could=0A=
fix them.=0A=
=0A=
rick=0A=
=0A=
Thanks,=0A=
=0A=
--=0A=
Shawn Webb=0A=
Cofounder / Security Engineer=0A=
HardenedBSD=0A=
=0A=
GPG Key ID:          0xFF2E67A277F8E1FA=0A=
GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2=0A=
https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha=
wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc=0A=



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