Date: Fri, 11 Dec 2020 16:44:43 -0700 From: Alan Somers <asomers@freebsd.org> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: J David <j.david.lists@gmail.com>, "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org> Subject: Re: Major issues with nfsv4 Message-ID: <CAOtMX2grAf_USVCsU-X-5GEwhNymr1z4tyXyOTUBDsdDxgJOsQ@mail.gmail.com> In-Reply-To: <YTOPR0101MB09705212940D2AEDFA6D9B0ADDCA0@YTOPR0101MB0970.CANPRD01.PROD.OUTLOOK.COM> References: <CABXB=RRB2nUk0pPDisBQPdicUA3ooHpg8QvBwjG_nFU4cHvCYw@mail.gmail.com> <YQXPR0101MB096849ADF24051F7479E565CDDCA0@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <CABXB=RSyN%2Bo2yXcpmYw8sCSUUDhN-w28Vu9v_cCWa-2=pLZmHg@mail.gmail.com> <CAOtMX2h82vU6Tt5eOCCEz=iOGhxHdL1XBnjvCTqqFEsaSMTjaA@mail.gmail.com> <YTOPR0101MB09705212940D2AEDFA6D9B0ADDCA0@YTOPR0101MB0970.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 11, 2020 at 4:39 PM Rick Macklem <rmacklem@uoguelph.ca> wrote: > Alan Somers wrote: > [stuff snipped] > >That's some good information. However, it must not be the whole story. > I've >been nullfs mounting my NFS mounts for years. For example, right now > on a >FreeBSD 12.2-RC2 machine: > If I recall, you were one of the two people that needed to switch to > "minorversion=1" to get rid of NFSERR_BADSEQID (10026) errors. > Is that correct? > In fact, yes. Though that case had nothing to do with nullfs or jails. > > >> sudo nfsstat -m > >Password: > >192.168.0.2:/home on /usr/home > > >nfsv4,minorversion=1,tcp,resvport,soft,cto,sec=sys,acdirmin=3,acdirmax=60,acreg>min=5,acregmax=60,nametimeo=60,negnametimeo=60,rsize=65536,wsize=6553>6,readdirsize=65536,readahead=1,wcommitsize=16777216,timeout=120,retrans=>2147483647 > Btw, using "soft" with NFSv4 mounts is a bad idea. (See the BUGS section of > "man mount_nfs".) > Grahh. I forgot that was in there. I can't remember why I put that there. These days I agree with you, and advise other people to use hard mounts, too. Thanks for point it out. > > If you have a hung NFSv4 mount, you can use > # umount -N /usr/home > to dismount it. (It may take a couple of minutes.) > > rick > > > mount | grep home > 192.168.0.2:/home on /usr/home (nfs, nfsv4acls) > /usr/home on /iocage/jails/rustup2/root/usr/home (nullfs) > > Are you using any mount options with nullfs? It might be worth trying to > make the read-only mount into read-write, to see if that helps. And what > does "jls -n" show? > -Alan >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2grAf_USVCsU-X-5GEwhNymr1z4tyXyOTUBDsdDxgJOsQ>