Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2022 15:18:03 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Ronald Klop <ronald-lists@klop.ws>, Ganbold Tsagaankhuu <ganbold@gmail.com>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: double used hostuuids - Re: NFS issue - newnfs_request: Wrong session srvslot=1 slot=0, freeing free slot!!
Message-ID:  <YT2PR01MB9729EE869613DDED306D9CB0DD749@YT2PR01MB9729.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <54e4240c-2ced-d079-5bfe-f3d397ff7f8f@klop.ws>
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> <YT4PR01MB97360B04D031BBD408029C59DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> <54e4240c-2ced-d079-5bfe-f3d397ff7f8f@klop.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
Ronald Klop <ronald-lists@klop.ws> wrote:=0A=
>On 8/27/22 00:17, Rick Macklem wrote:=0A=
>> 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=
>=0A=
>Just a thought. Is it possible/easy to warn about double used hostuuids >f=
rom different client IP addresses?=0A=
>Although that will not help this person using Netapp as a server.=0A=
I don't think so. Same hostuuid implies same system, so how does a=0A=
server know they are two different systems?=0A=
- A client could have multiple IP host addresses, so different client=0A=
  host IP addresses for a TCP connection does not imply different systems.=
=0A=
=0A=
I can, however, modify the console message the server generates when=0A=
it sees a session has been replaced to include "check clients have=0A=
unique hostuuids", which might help.=0A=
=0A=
I also plan on adding a sentence to "man mount_nfs" about this,=0A=
since I just had an email discussion with someone else where the=0A=
problem turned out to be "same hostuuids for multiple clients"=0A=
and the loss of sessions on the FreeBSD server was the hint that=0A=
clued me in.=0A=
=0A=
At least I now know this configuration issue exists.=0A=
=0A=
rick=0A=
=0A=
Regards,=0A=
Ronald.=0A=



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