Re: Some NFS server V4 questions

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Sat, 25 Oct 2014 18:10:35 -0400 (EDT)
Russell L. Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 
> On 10/25/14 09:58, Beeblebrox wrote:
> > Hi Russ,
> > 
> >>> PXE client's /etc/fstab is: 92.168.2.1:/data/amd64 /       nfs
> >>> ro 0       0 192.168.2.1:/usr/local /usr/local nfs   ro      0
> >> 
> >> Possibly need to arrange for mount_nfs to see -o nfsv4 (I use
> >> mount_nfs -o nfsv4,minorversion=1)
> > Yeah, that would work very likely and thanks.
> > 
> > From a purist standpoint, what would be settings on server side to
> > force NFSV4 offering only? This means, how can I configure NFS so
> > that V2/V3 requests get denied AND logged for debug?
> > 
> 
> I have vfs.nfsd.server_min_nfsvers=4 set on the server, and
> when I mount_nfs -o nfsv3 on the client, the error the client
> sees is
> 
> [tcp] terp:/packages: NFSPROC_NULL: RPC: Program/version mismatch;
> low
> version = 4, high version = 4
> 
> Have to ^C to exit.
> 
> Nothing shows up in the server's log, but because of sloth I haven't
> tried to make anything show up.  Maybe there's an option.
> 
There isn't an option to log the attempts, but it does seem to have
disallowed NFSv3 RPCs.

rick

> Best,
> Russell
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQIcBAEBAgAGBQJUTAhKAAoJEFnLrGVSDFaEctoP/3VAFxrLfkYDPTsKrCMD0pJf
> RrNY0ePTVueDltsVXeEpT/pxSzN7RKLhWL0AB0IsoTWBvZZCHTbwv7GvF0yufxNW
> +oU29DEceIc8dxhXqjjOCKM3Na85C90idukemDG5ZaZoDU9d//POKaV1ET5HwQNq
> mZ1q4pqNjnf/O0q+7KjOxVvOnA1g7T2x/HxvL7D0RbmO6EGoRNXbMzxidQmcRDSG
> V4pmS5GoTUuOqTeXqYbrHJsF8tBaxKqcsOcz90LIWoilYCxiVccPY9SI+EYhX0hq
> ExVzTvt5OvfNSmz252m8I+87Sw0KA9r06fTpbARuK9Afyt/KNcOU/vANjzDegzLG
> 8u9TcnBfsqNR7K3pqyvt4jyVW6fliI79i1wpVw2ZNn02vGSn1l2iHWzddX9y0Hmj
> l1VMM2nWgag8V7wHebRmxILZMHK+VU4gWxp4hTXm0GkXHV27vPWY7eMQtbz/e7yu
> OpqPSUO7AEp6PTMCZoQY8uIEqmfJIKnyv2/ua3RgNtqM1srvjg1nugxXjfD8z9m6
> PH0EY691Rv5hUScXwRtcElO8pziKWFbiXE1HrpPDMnpTtq6Wg5r/ubwepWTrmNJC
> FfdNOzTCVSF6nBMAo7pwV2P2ATHQkDQjMJJ7B8jZPOapCX59q2Cgth/jX0muiX3g
> wKbO2ZvSZa7lDAmBcecj
> =DKjs
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Sat Oct 25 2014 - 20:10:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC