From nobody Sat Aug 27 07:28:18 2022 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MF7bT37BYz4Zlbd for ; Sat, 27 Aug 2022 07:28:21 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MF7bS1WJ3z3gH8 for ; Sat, 27 Aug 2022 07:28:20 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References: Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=J6GYskl35Tk+4lzX3rqPbpg1a6l/IhC5alEPnBirg9I=; b=hvt/Bsd8u4bORxFVObguAAsMlM r7vLU9hOCg5n8c9Ww29yfKMvqFi3wCfyzTBHT/ZsmT8PaIbrVnERYkhQOkiknrfCwjun4ECuWLPjb x9vo5M3OLWVWMBRON6FN/jgHg1UVX9AdFDD7DVS9RbPJS2kNzCoesz8T9u0UCZL6sNx0=; Message-ID: <54e4240c-2ced-d079-5bfe-f3d397ff7f8f@klop.ws> Date: Sat, 27 Aug 2022 09:28:18 +0200 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: double used hostuuids - Re: NFS issue - newnfs_request: Wrong session srvslot=1 slot=0, freeing free slot!! Content-Language: en-US To: Rick Macklem , Ganbold Tsagaankhuu Cc: freebsd-stable References: From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: 258bd43c1b7c380ff6f1b27dffaa1ebc X-Rspamd-Queue-Id: 4MF7bS1WJ3z3gH8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b="hvt/Bsd8"; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-0.10)[-0.103]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_EXCLAIM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FREEMAIL_TO(0.00)[uoguelph.ca,gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 8/27/22 00:17, Rick Macklem wrote: > Ganbold Tsagaankhuu wrote: >>> Rick, >>> >>> On Fri, Aug 26, 2022 at 11:18 AM Rick Macklem > >> wrote: > Ganbold Tsagaankhuu > 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 > [stuff snipped] >>>> 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? > Oh, and one more thing. If you have multiple clients mounting the > NFSv4 server, make sure they all have unique hostids. > Check /etc/hostid and "sysctl kern.hostuuid". If two clients have the > same kern.hostuuid, there will be lots of trouble. > > rick Just a thought. Is it possible/easy to warn about double used hostuuids from different client IP addresses? Although that will not help this person using Netapp as a server. Regards, Ronald.