From owner-freebsd-net@freebsd.org Wed Jan 11 22:59:26 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3299ACABAE1 for ; Wed, 11 Jan 2017 22:59:26 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 E9C981D91 for ; Wed, 11 Jan 2017 22:59:25 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1cRRrW-000LE0-V1; Thu, 12 Jan 2017 01:59:22 +0300 Date: Thu, 12 Jan 2017 01:59:22 +0300 From: Slawa Olhovchenkov To: Rick Macklem Cc: "freebsd-net@freebsd.org" Subject: Re: NFSv4 stuck Message-ID: <20170111225922.GE30374@zxy.spb.ru> References: <20170111220818.GD30374@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 22:59:26 -0000 On Wed, Jan 11, 2017 at 10:39:42PM +0000, Rick Macklem wrote: > "umount -f" is your only chance. However, if there is already a non-forced > dismount stuck, it won't work because the non-forced dismount will have > the mounted-on vnode locked. I am use 'intr,soft' flags -- why ignored? > Btw, the processes waiting on "rpccon" are trying to make a new TCP > connection to the server. Are you sure the client can talk to the server > over your net? root@edge16:/home/admin # ping stat PING stat.int.integros.com (185.38.13.26): 56 data bytes 64 bytes from 185.38.13.26: icmp_seq=0 ttl=63 time=0.103 ms # netstat -an | grep 185.38.13 tcp4 0 0 185.38.12.42.709 185.38.13.26.2049 CLOSE_WAIT tcp4 0 0 185.38.12.42.1006 185.38.13.26.2049 CLOSED root@edge16:/home/admin # telnet -NK 185.38.13.26 2049 Trying 185.38.13.26... Connected to 185.38.13.26. Escape character is '^]'. ^C^] telnet> q I am don't know how to check more -- currently no sockets try > ________________________________________ > From: owner-freebsd-net@freebsd.org on behalf of Slawa Olhovchenkov > Sent: Wednesday, January 11, 2017 5:08:18 PM > To: freebsd-net@freebsd.org > Subject: NFSv4 stuck > > I am have NFSv4 mount dir and some time got stucked after access. > > Mounted by automount: > > # cat /etc/nfs.map > /NFS -nfsv4,intr,soft,sec=krb5i,gssname=host stat:/ > > # mount -v > map -hosts on /net (autofs, fsid 01ff00cfcf000000) > map nfs.map on /NFS (autofs, fsid 02ff00cfcf000000) > map nfs.map on /NFS (autofs, fsid 03ff00cfcf000000) > map nfs.map on /NFS (autofs, fsid 04ff00cfcf000000) > map nfs.map on /NFS (autofs, fsid 05ff00cfcf000000) > stat:/ on /NFS (nfs, nfsv4acls, automounted, fsid 0aff003a3a000000) > > # procstat -a | grep -e rpc -e gss -e nfs > 840 1 840 840 0 1 root select FreeBSD ELF64 rpcbind > 956 1 956 956 0 1 root pause FreeBSD ELF64 nfsuserd > 957 956 956 956 0 1 root sbwait FreeBSD ELF64 nfsuserd > 958 956 956 956 0 1 root select FreeBSD ELF64 nfsuserd > 960 956 956 956 0 1 root select FreeBSD ELF64 nfsuserd > 961 956 956 956 0 1 root sbwait FreeBSD ELF64 nfsuserd > 969 1 969 969 0 1 root select FreeBSD ELF64 rpc.statd > 972 1 972 972 0 1 root rpcsvc FreeBSD ELF64 rpc.lockd > 10629 1098 10629 10629 0 1 root gssstate FreeBSD ELF64 sshd > 10687 10652 10687 10647 10647 1 admin gssstate FreeBSD ELF64 csh > 14521 1098 14521 14521 0 1 root gssstate FreeBSD ELF64 sshd > 14924 14896 14924 14892 14892 1 admin nfs FreeBSD ELF64 automount > 45455 45454 45455 45455 45455 1 slw gssstate FreeBSD ELF64 tcsh > 63495 63481 42791 42791 0 1 root rpccon FreeBSD ELF64 find > 79451 0 0 0 0 1 - rpccon - nfscl > 79452 79450 79452 79452 79452 1 slw rpccon FreeBSD ELF64 tcsh > > How to unlock system w/o reboot? > > automount -u don't work > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"