Date: Fri, 26 Aug 2022 22:17:45 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Ganbold Tsagaankhuu <ganbold@gmail.com> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: NFS issue - newnfs_request: Wrong session srvslot=1 slot=0, freeing free slot!! Message-ID: <YT4PR01MB97360B04D031BBD408029C59DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <YT4PR01MB97362592C844062ABCA85625DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> References: <CAGtf9xNNCQLsWSN%2BspZmE8cQJ6UDTcdNcURbZxGdEo4-qZxn1A@mail.gmail.com> <YT4PR01MB9736383BF3B6F85D90115BA2DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> <CAGtf9xM6NHZuBEiEnYC%2BFDNqy6gPkUDkt=Ei7O_ymQV5SZEfgA@mail.gmail.com> <YT4PR01MB97362592C844062ABCA85625DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
Ganbold Tsagaankhuu <ganbold@gmail.com> wrote:=0A= > > Rick,=0A= > >=0A= > > On Fri, Aug 26, 2022 at 11:18 AM Rick Macklem > ><rmacklem@uoguelph.ca<= mailto:rmacklem@uoguelph.ca>> wrote:=0A= Ganbold Tsagaankhuu <ganbold@gmail.com<mailto:ganbold@gmail.com>> wrote:=0A= > > > Hi,=0A= > > >=0A= > > > We are having trouble with NFS running on STABLE:=0A= > > >=0A= > > > Aug 26 02:21:42 iron2 kernel: newnfs_request: Wrong session srvslot= =3D1 slot=3D0=0A= [stuff snipped]=0A= > > > Aug 26 02:22:46 iron2 kernel: newnfs_request: Wrong session srvslot= =3D1 slot=3D0=0A= > > > Aug 26 02:22:46 iron2 kernel: freeing free slot!!=0A= > > >=0A= > > > We are running FreeBSD 13.1-STABLE #3 stable/13-n252198-c1434fd2dea: = Fri Aug 26 01:51:53 UTC 2022 and mount options are:=0A= > > >=0A= > > > rw,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5= =0A= > > > ro,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5= =0A= > > >=0A= > > > Is there any fix for this issue?=0A= Oh, and one more thing. If you have multiple clients mounting the=0A= NFSv4 server, make sure they all have unique hostids.=0A= Check /etc/hostid and "sysctl kern.hostuuid". If two clients have the=0A= same kern.hostuuid, there will be lots of trouble.=0A= =0A= rick=0A= =0A= > - Don't use "soft" mounts. See the Bugs section of "man mount_nfs".=0A= > There are patches in stable/13 dated July 10, 2022. (I have no idea=0A= > how to tell if n252198 would have them) that help, but use of "soft"=0A= > mounts will never work correctly for NFSv4.=0A= > - The attached small patch (not committed yet, but should be in=0A= > stable/13 in about 10days) fixes a couple of corner cases. If you=0A= > are using a FreeBSD NFS server, I believe these corner cases only=0A= > occur after the NFS server reboots.=0A= >=0A= > rick=0A= > ps: If you test the attached patch, please let me know how it goes.=0A= >=0A= > Is this patch for NFS server? We are using Netapp NFS server on server si= de.=0A= No, it is for the client. However, as far as I know, a Netapp Filer never= =0A= generates a NFSERR_BADSESSION error (except maybe if you were using=0A= a post-July 10. 2022 client), so the patch probably doesn't affect you.=0A= (Get rid of "soft" and you should be happy.)=0A= =0A= rick=0A= =0A= thanks,=0A= =0A= Ganbold=0A= =0A= =0A= =0A= thanks a lot,=0A= =0A= Ganbold=0A= =0A= =0A=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YT4PR01MB97360B04D031BBD408029C59DD759>