From owner-freebsd-current@FreeBSD.ORG Sat Oct 25 22:41:08 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5FC471E0 for ; Sat, 25 Oct 2014 22:41:08 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 2684C3F1 for ; Sat, 25 Oct 2014 22:41:07 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQEAJAmTFSDaFve/2dsb2JhbABcg2JYBIMCykYKhnlUAoEbAX2EAgEBAQMBAQEBICsgCwUWGAICDRkCKQEJJgYIBwQBHASIFwkNs2OUMgEBAQEBBQEBAQEBARyBLI8LAQEbNAeCd4FUBZZPhA6EcZRBggAegXYhLweBCDmBAwEBAQ X-IronPort-AV: E=Sophos;i="5.04,788,1406606400"; d="scan'208";a="162256803" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 25 Oct 2014 18:41:07 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id E0C4DB40EA; Sat, 25 Oct 2014 18:41:06 -0400 (EDT) Date: Sat, 25 Oct 2014 18:41:06 -0400 (EDT) From: Rick Macklem To: "Russell L. Carter" Message-ID: <1792153082.7496945.1414276866911.JavaMail.root@uoguelph.ca> In-Reply-To: <544C084A.3070807@pinyon.org> Subject: Re: Some NFS server V4 questions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2014 22:41:08 -0000 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" >