From owner-freebsd-current@FreeBSD.ORG Sun Oct 26 12:14:06 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 3D40EB67 for ; Sun, 26 Oct 2014 12:14:06 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 03C06B3 for ; Sun, 26 Oct 2014 12:14:05 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq0EAN3kTFSDaFve/2dsb2JhbABcg2JYBIMCyWUMhndUAoEaAX2EAgEBAQMBAQEBICsgBgUbGAICDRkCKQEJJgYIBwQBHASICwMJCQ2zUI0+F4YuAQEBAQEBBAEBAQEBAQEbgSyPCwEBGzQHgneBVAWWT4QOhDU8kEGEAIQUIS8BAQEEgQg5gQMBAQE X-IronPort-AV: E=Sophos;i="5.04,790,1406606400"; d="scan'208";a="163558058" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 26 Oct 2014 08:14:05 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 10B65B3F14; Sun, 26 Oct 2014 08:14:05 -0400 (EDT) Date: Sun, 26 Oct 2014 08:14:05 -0400 (EDT) From: Rick Macklem To: Beeblebrox Message-ID: <1990486074.7623473.1414325645061.JavaMail.root@uoguelph.ca> In-Reply-To: <20141026104814.6f72435c@rsbsd.rsb> 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.209] 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: Sun, 26 Oct 2014 12:14:06 -0000 Beeblebrox wrote: > Sorry guys, we have a considerable time-zone difference. > > >> 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.) > I had apparently re-started nfsd but not mountd. This time > re-starting both and launching the PXE client fails at mount_root > stage as expected: > exec /sbin/init: error 43 > exec /rescue/init: error 43 > panic: no init > > One cannot set "sysctl vfs.nfsd.server_min_nfsvers=4" until one of > mountd/nfsd is started however, otherwise it gives an error. I have > not tried, but I suppose this error does not happen when placeed in > /etc/sysctl.conf? > sysctl: unknown oid 'vfs.nfsd.server_min_nfsvers': No such file or > directory > It works if it is /etc/sysctl.conf if "options NFSD" are specified for the kernel, which is what GENERIC for i386 has. If "options NFSD" isn't in your kernel config, I think you'd have to get nfsd.ko loaded before setting the sysctl and do both before starting mountd. I don't know of a clean way to do this? Putting kldload and sysctl command lines in mountd_precmd() in /etc/rc.d/mountd would do it I suspect. Maybe rc variables for this should be added? (I haven't tried this since the only kernels I have handy have "options NFSD" in them.) rick > >> Maybe it was the talk about getting rid of the oldnfs stuff that > >> made you think V2, 3 were going away? > Yes, that was it and I obviously misunderstood that thread. > > What's the max NFS version that supports mount_root from PXE clients > then? As I recall, this would be V3. However, root is consistently > being mounted as V2. > The fstab for diskless clients: > 192.168.2.1:/data/amd64 / nfs ro,nfsv3 0 0 > 192.168.2.1:/usr/local /usr/local nfs ro,nfsv4 0 0 > 192.168.2.1:/home /home nfs rw,nfsv4,hard,intr 0 0 > > nfsstat shows "/" as NFSV2, while the other two are NFSV4. Changing > fstab entry to nfsv4 for root gives same result. > I tried set "sysctl vfs.nfsd.server_min_nfsvers=3" and I get the same > mount_root error as when this was set to 4. Im I missing something? > It does not seem that "vfs.nfsd.server_min_nfsvers" will be of much > use to me, unless I can get > V2 to mount as root. > > Regards. > > > > > ----- > FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS > -- > View this message in context: > http://freebsd.1045724.n5.nabble.com/Some-NFS-server-V4-questions-tp5959433p5959595.html > Sent from the freebsd-current mailing list archive at Nabble.com. > _______________________________________________ > 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" >