Date: Fri, 26 Aug 2022 11:48:20 +0800 From: Ganbold Tsagaankhuu <ganbold@gmail.com> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: NFS issue - newnfs_request: Wrong session srvslot=1 slot=0, freeing free slot!! Message-ID: <CAGtf9xM6NHZuBEiEnYC%2BFDNqy6gPkUDkt=Ei7O_ymQV5SZEfgA@mail.gmail.com> In-Reply-To: <YT4PR01MB9736383BF3B6F85D90115BA2DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> References: <CAGtf9xNNCQLsWSN%2BspZmE8cQJ6UDTcdNcURbZxGdEo4-qZxn1A@mail.gmail.com> <YT4PR01MB9736383BF3B6F85D90115BA2DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009dcf2405e71cc953 Content-Type: text/plain; charset="UTF-8" Rick, On Fri, Aug 26, 2022 at 11:18 AM Rick Macklem <rmacklem@uoguelph.ca> wrote: > Ganbold Tsagaankhuu <ganbold@gmail.com> wrote: > > Hi, > > > > We are having trouble with NFS running on STABLE: > > > > Aug 26 02:21:42 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=0 > > Aug 26 02:21:42 iron2 kernel: freeing free slot!! > > Aug 26 02:21:43 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=0 > > Aug 26 02:21:43 iron2 kernel: freeing free slot!! > > Aug 26 02:21:54 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=0 > > Aug 26 02:21:54 iron2 kernel: freeing free slot!! > > Aug 26 02:21:58 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=2 > > Aug 26 02:21:58 iron2 kernel: retseq diff 0x1 > > Aug 26 02:21:58 iron2 kernel: freeing free slot!! > > Aug 26 02:21:59 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=2 > > Aug 26 02:21:59 iron2 kernel: retseq diff 0x1 > > Aug 26 02:21:59 iron2 kernel: freeing free slot!! > > Aug 26 02:22:12 iron2 kernel: newnfs_request: Wrong session srvslot=0 > slot=2 > > Aug 26 02:22:12 iron2 kernel: retseq diff 0x1 > > Aug 26 02:22:12 iron2 kernel: freeing free slot!! > > Aug 26 02:22:14 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=0 > > Aug 26 02:22:14 iron2 kernel: freeing free slot!! > > Aug 26 02:22:15 iron2 kernel: newnfs_request: Bad session slot=1 > > Aug 26 02:22:15 iron2 kernel: freeing free slot!! > > Aug 26 02:22:30 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=2 > > Aug 26 02:22:30 iron2 kernel: retseq diff 0x1 > > Aug 26 02:22:30 iron2 kernel: freeing free slot!! > > Aug 26 02:22:31 iron2 kernel: newnfs_request: Bad session slot=1 > > Aug 26 02:22:31 iron2 kernel: freeing free slot!! > > Aug 26 02:22:46 iron2 kernel: newnfs_request: Wrong session srvslot=1 > slot=0 > > Aug 26 02:22:46 iron2 kernel: freeing free slot!! > > > > We are running FreeBSD 13.1-STABLE #3 stable/13-n252198-c1434fd2dea: Fri > Aug 26 01:51:53 UTC 2022 and mount options are: > > > > rw,nfsv4,minorversion=1,bg,soft,timeo=20,retrans=5,retrycnt=5 > > ro,nfsv4,minorversion=1,bg,soft,timeo=20,retrans=5,retrycnt=5 > > > > Is there any fix for this issue? > - Don't use "soft" mounts. See the Bugs section of "man mount_nfs". > There are patches in stable/13 dated July 10, 2022. (I have no idea > how to tell if n252198 would have them) that help, but use of "soft" > mounts will never work correctly for NFSv4. > - The attached small patch (not committed yet, but should be in > stable/13 in about 10days) fixes a couple of corner cases. If you > are using a FreeBSD NFS server, I believe these corner cases only > occur after the NFS server reboots. > > rick > ps: If you test the attached patch, please let me know how it goes. > Is this patch for NFS server? We are using Netapp NFS server on server side. thanks, Ganbold > > thanks a lot, > > Ganbold > > --0000000000009dcf2405e71cc953 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Rick,</div><br><div class=3D"gmail_quote"><div dir=3D= "ltr" class=3D"gmail_attr">On Fri, Aug 26, 2022 at 11:18 AM Rick Macklem &l= t;<a href=3D"mailto:rmacklem@uoguelph.ca">rmacklem@uoguelph.ca</a>> wrot= e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ganbold Tsaga= ankhuu <<a href=3D"mailto:ganbold@gmail.com" target=3D"_blank">ganbold@g= mail.com</a>> wrote:<br> > Hi,<br> > <br> > We are having trouble with NFS running on STABLE:<br> > <br> > Aug 26 02:21:42 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D0<br> > Aug 26 02:21:42 iron2 kernel: freeing free slot!!<br> > Aug 26 02:21:43 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D0<br> > Aug 26 02:21:43 iron2 kernel: freeing free slot!!<br> > Aug 26 02:21:54 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D0<br> > Aug 26 02:21:54 iron2 kernel: freeing free slot!!<br> > Aug 26 02:21:58 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D2<br> > Aug 26 02:21:58 iron2 kernel: retseq diff 0x1<br> > Aug 26 02:21:58 iron2 kernel: freeing free slot!!<br> > Aug 26 02:21:59 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D2<br> > Aug 26 02:21:59 iron2 kernel: retseq diff 0x1<br> > Aug 26 02:21:59 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:12 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 0 slot=3D2<br> > Aug 26 02:22:12 iron2 kernel: retseq diff 0x1<br> > Aug 26 02:22:12 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:14 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D0<br> > Aug 26 02:22:14 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:15 iron2 kernel: newnfs_request: Bad session slot=3D1<br> > Aug 26 02:22:15 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:30 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D2<br> > Aug 26 02:22:30 iron2 kernel: retseq diff 0x1<br> > Aug 26 02:22:30 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:31 iron2 kernel: newnfs_request: Bad session slot=3D1<br> > Aug 26 02:22:31 iron2 kernel: freeing free slot!!<br> > Aug 26 02:22:46 iron2 kernel: newnfs_request: Wrong session srvslot=3D= 1 slot=3D0<br> > Aug 26 02:22:46 iron2 kernel: freeing free slot!!<br> > <br> > We are running FreeBSD 13.1-STABLE #3 stable/13-n252198-c1434fd2dea: F= ri Aug 26 01:51:53 UTC 2022 and mount options are:<br> > <br> > rw,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5<= br> > ro,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5<= br> > <br> > Is there any fix for this issue?<br> - Don't use "soft" mounts. See the Bugs section of "man = mount_nfs".<br> =C2=A0 There are patches in stable/13 dated July 10, 2022. (I have no idea<= br> =C2=A0 how to tell if n252198 would have them) that help, but use of "= soft"<br> =C2=A0 mounts will never work correctly for NFSv4.<br> - The attached small patch (not committed yet, but should be in<br> =C2=A0 stable/13 in about 10days) fixes a couple of corner cases. If you<br= > =C2=A0 are using a FreeBSD NFS server, I believe these corner cases only<br= > =C2=A0 occur after the NFS server reboots.<br> <br> rick<br> ps: If you test the attached patch, please let me know how it goes.<br></bl= ockquote><div><br></div><div>Is this patch for NFS server? We are using Net= app NFS server on server side.</div><div><br></div><div>thanks,</div><div><= br></div><div>Ganbold</div><div><br></div><div>=C2=A0</div><blockquote clas= s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r= gb(204,204,204);padding-left:1ex"> <br> thanks a lot,<br> <br> Ganbold<br> <br> </blockquote></div></div> --0000000000009dcf2405e71cc953--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xM6NHZuBEiEnYC%2BFDNqy6gPkUDkt=Ei7O_ymQV5SZEfgA>