Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp363223pxf; Wed, 10 Mar 2021 07:53:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzICPUGeo3EIfCY6NDZkt+MoUFjDsfAAfqWnpTVqvkvOggyr79W4HYvxxP3Seamb5hM+PyG X-Received: by 2002:a50:a086:: with SMTP id 6mr4039924edo.70.1615391620055; Wed, 10 Mar 2021 07:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615391620; cv=none; d=google.com; s=arc-20160816; b=V0qTD0RRimukRkMFs6FHuRrotJlI9ssbfWDCYiy+bgJAq8DUTcrrArZbdV+7LmSn2F Hch+PhIG2NjV/c1FqCJIJ+cKFHdBZ+WcOL8otJZYUJSxUCd7YWCCTHsMFItm21VJaAUN zw8hU3CxyMuwGKhMn2ntCoYspG9W4kiSE0pFUX2hdM+dZSfb9oDQ/icYUbIhvBmQSnuq oMfracq4M22UfgGd8Lp/k6Genjf+6Ii0/f7ououReu77oC3L5eDg0w0qzIAoS+SbvRe/ FOOx83HbroT+8bZDNMBZ8MIUgnIeWqb55w2juiWSwQQfg8woVlUJehPvoUl1TxvlehMB OnDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:references :message-id:cc:date:in-reply-to:from:subject:mime-version; bh=BkC32B0W974Qk8BKMEfUWq5eaz3jnZoXBrJPpvjX7fk=; b=Jx1QKu/rYWZ+PoXsjT0vNgmcC49worToS5lZIb0s6ooT8++rYuuse88sorEYARywBm hFk4na//VdqHQOpIV6WQaVVOC7hOcCgOKqywbv4p7yctj3xc/eEgzX5o7XfscN1jW82h cQoFnmEtsyFiIqmsQ9xKpVtTIQDoJoEvBeuUJc5po5MT2vPyDODft4oPFeIxWNbhlUK+ 7uXFFRNtVIXxYId6H2txhltOxoMJe+ekyctMEkUKAJ0xhAgBe4lUE8PeNSFxujXSPsnR qTs/PonxD5DmYNKg9GAlXQ610zjXPL3hfvCFPCiOzq5+di4Ps7DDicJ+yQKWge7OPBLN t+EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si13167739edj.22.2021.03.10.07.53.09; Wed, 10 Mar 2021 07:53:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbhCJPwe convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Mar 2021 10:52:34 -0500 Received: from us-smtp-delivery-145.mimecast.com ([216.205.24.145]:49420 "EHLO us-smtp-delivery-145.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233280AbhCJPwF (ORCPT ); Wed, 10 Mar 2021 10:52:05 -0500 Received: from zmcc-3-mta-2.zmailcloud.com (zmcc-3-mta-2.zmailcloud.com [35.238.170.66]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-82-1-oXfUiuO0WtxYbYUDDUeQ-1; Wed, 10 Mar 2021 10:50:55 -0500 X-MC-Unique: 1-oXfUiuO0WtxYbYUDDUeQ-1 Received: from zmcc-3-mta-2.zmailcloud.com (localhost [127.0.0.1]) by zmcc-3-mta-2.zmailcloud.com (Postfix) with ESMTPS id 678D6E3754; Wed, 10 Mar 2021 09:50:55 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by zmcc-3-mta-2.zmailcloud.com (Postfix) with ESMTP id 5893DE3753; Wed, 10 Mar 2021 09:50:55 -0600 (CST) X-Virus-Scanned: amavisd-new at zmcc-3-mta-2.zmailcloud.com Received: from zmcc-3-mta-2.zmailcloud.com ([127.0.0.1]) by localhost (zmcc-3-mta-2.zmailcloud.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xExRraNXGZzt; Wed, 10 Mar 2021 09:50:55 -0600 (CST) Received: from jbreitman-mac.zxcvm.com (unknown [72.22.182.150]) by zmcc-3-mta-2.zmailcloud.com (Postfix) with ESMTPSA id 2435AE3732; Wed, 10 Mar 2021 09:50:55 -0600 (CST) Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: NFS Mount Hangs From: Jason Breitman In-Reply-To: <94F7249D-20B1-437F-B383-D142B638DFAE@tildenparkcapital.com> Date: Wed, 10 Mar 2021 10:50:54 -0500 Cc: "linux-nfs@vger.kernel.org" Message-Id: References: <5E3B228F-5CFC-4EDF-B52E-1CDB947ADC00@tildenparkcapital.com> <2b13577bb30faf3b475d2d602be57aa135023a53.camel@hammerspace.com> <15CD7763-6DE5-4DBA-8FAE-859964AA90AC@tildenparkcapital.com> <4ec6d34eb753bd2ba11886cdffbad1f25f4b6e78.camel@hammerspace.com> <94F7249D-20B1-437F-B383-D142B638DFAE@tildenparkcapital.com> To: Trond Myklebust X-Mailer: Apple Mail (2.3608.120.23.2.4) Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA45A274 smtp.mailfrom=jbreitman@tildenparkcapital.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: tildenparkcapital.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Do you know of a FreeBSD 12.X kernel that has the fix you suggested or is there a kernel setting that I can apply to eliminate the issue? Jason Breitman On Mar 8, 2021, at 10:32 PM, Jason Breitman wrote: The server is running FreeBSD 12.1-RELEASE-p5. Jason Breitman On Mar 8, 2021, at 8:52 PM, Trond Myklebust wrote: On Mon, 2021-03-08 at 17:22 -0500, Jason Breitman wrote: > Thank you. > Do you know which kernel version is fixed? > If not, is there something I can look for in the source code that > will indicate that the kernel is fixed. > As I said, the problem here is that the server doesn't seem to be closing the socket when the client does. You didn't actually tell us which server you are using, so I don't know how to answer that question. > Jason Breitman > > > On Mar 8, 2021, at 5:15 PM, Trond Myklebust > wrote: > > On Mon, 2021-03-08 at 13:16 -0500, Jason Breitman wrote: >> Issue >> NFSv4 mounts periodically hang on the NFS Client. >> >> During this time, it is possible to manually mount from another NFS >> Server on the NFS Client having issues. >> Also, other NFS Clients are successfully mounting from the NFS >> Server >> in question. >> Rebooting the NFS Client appears to be the only solution. >> >> I believe this issue has been discussed in the past so I included >> an >> article that matched my symptoms. >> I do not see a case statement for FIN_WAIT2 at >> https://elixir.bootlin.com/linux/v4.19.171/source/net/sunrpc/xprtsock.c >> . >> >> NFS Client >> OS: Debian Buster 10.8 >> Kernel: 4.19.171-2 >> Protocol: NFSv4 with Kerberos Security >> Mount Options: nfs- >> server.domain.com:/data /mnt/data nfs4 >> lookupcache=pos,n >> oresvport,sec=krb5,hard,rsize=1048576,wsize=1048576 00 >> >> Output from the NFS Client when the issue occurs >> # netstat -an | grep NFS.Server.IP.X >> tcp 0 0 NFS.Client.IP.X:46896 >> NFS.Server.IP.X:2049 FIN_WAIT2 >> > > Your client has closed the connection, and is waiting for the server > to > close the connection on its side. > > I'd suggest using a newer kernel, or else getting someone in the > Debian > project to fix theirs. > -- Trond Myklebust CTO, Hammerspace Inc 4984 El Camino Real, Suite 208 Los Altos, CA 94022 ​ www.hammer.space