Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 12:33:03 +0100
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Gerrit K?hn <gerrit.kuehn@aei.mpg.de>
Cc:        Alan Somers <asomers@freebsd.org>, FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: Fw: 100.chksetuid handging on nfs mounts
Message-ID:  <20180831113303.GD83321@in-addr.com>
In-Reply-To: <20180831082933.085ee4f3c7a006549d0974db@aei.mpg.de>
References:  <20171215143456.278a3dc31bb09c9217e83927@aei.mpg.de> <CAOtMX2jsQDQ3Csa5qszNMZQbx1cR=EcaPOY15T_QimnkM4%2BCWQ@mail.gmail.com> <30015_1513349242_5A33E07A_30015_587_1_20171215154659.c8a7f21317a06ab64e480955@aei.mpg.de> <20180830090941.0b92d2012406299b19a68be2@aei.mpg.de> <CAOtMX2hdC=YZ1_F1n-yceTjgwcWFcnCvrF8LtY1ZWo7dMVRW=w@mail.gmail.com> <20180830154404.5da83b6ff0481b17cd6d044e@aei.mpg.de> <CAOtMX2i%2ByyWZAH7GzFjNV5OUE_60tJ9T%2Bf5rWBQpMHDQU9BsFA@mail.gmail.com> <20180831082933.085ee4f3c7a006549d0974db@aei.mpg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 31, 2018 at 08:29:33AM +0200, Gerrit K?hn wrote:
> On Thu, 30 Aug 2018 08:07:52 -0600 Alan Somers <asomers@freebsd.org> wrote
> about Re: Fw: 100.chksetuid handging on nfs mounts:
> 
> > Well that's not very illuminating.  I was wondering if it had weird mount
> > options or something.  Are you sure that's why find is hanging?  What
> > happens if you unmount and repeat the command?
> 
> I just tried these things:
> 
> find command with nfs mounted and connection working: runs fine
> find command with nfs unmounted: runs fine
> find command with nfs mounted and nfs-nic down: hangs
> 
> As soon as I "up" the interface again, find continues to run:
> 
> ---
> root@crest:/ # find -sx / /dev/null \( ! -fstype local
> \) -prune -o -type f \( \( ! -perm +010 -and -perm +001 \) -or \( ! -perm
> +020 -and -perm +002 \) -or \( ! -perm +040 -and -perm +004 \) \) -exec ls
> -liTd \{\} \+
> nfs server hellpool:/samqfs/FC5/Gerrit: not responding
> nfs server hellpool:/samqfs/FC5/Gerrit: is alive again
> root@crest:/ # 


You might want to retry the experiment but look at the state of the 
find process using "ps alxww" or similar, or use ktrace to figure out
what it is doing.  With the '-x' flag to not cross mount points I suspect
it is using stat(2) on the mount point to check to see if the st_dev
field changes, and then skip that directory if it is different.  With
the NFS server unreachable the stat(2) cannot complete.

Regards,

Gary



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