Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2014 08:19:28 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Some NFS server V4 questions
Message-ID:  <704800695.7624925.1414325968854.JavaMail.root@uoguelph.ca>
In-Reply-To: <20141026104814.6f72435c@rsbsd.rsb>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 
> >> 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
Just fyi, "hard" is the default and "intr" is an alternative to "hard",
so I'm not sure what you get when specifying both? You should choose
one or the other. (You will get "hard" for the first 2 entries.)

rick

> 
> 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"
> 



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