Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 22:39:42 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: NFSv4 stuck
Message-ID:  <YTXPR01MB0189449C0DC06F53E93A3EF9DD660@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <20170111220818.GD30374@zxy.spb.ru>
References:  <20170111220818.GD30374@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"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.
 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?

rick


________________________________________
From: owner-freebsd-net@freebsd.org <owner-freebsd-net@freebsd.org> on beha=
lf of Slawa Olhovchenkov <slw@zxy.spb.ru>
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=3Dkrb5i,gssname=3Dhost 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.stat=
d
  972     1   972   972     0   1 root     rpcsvc    FreeBSD ELF64 rpc.lock=
d
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 automoun=
t
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"



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