Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2014 18:41:06 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        "Russell L. Carter" <rcarter@pinyon.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Some NFS server V4 questions
Message-ID:  <1792153082.7496945.1414276866911.JavaMail.root@uoguelph.ca>
In-Reply-To: <544C084A.3070807@pinyon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
> 
I just did a quick test. It appears that the sysctl must be set before
mountd, nfsd are started to take effect. (Or they must be restarted after
it is set.)

rick

> 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.
> 
> 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe@freebsd.org"
> 



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