==> Regarding Re: [autofs] automounted filesystems being unmounted and mounted 
every minute; "Brian J. Murrell" <[EMAIL PROTECTED]> adds:

brian> On Tue, 2006-17-10 at 00:32 +0800, Ian Kent wrote:
>> On Mon, 2006-10-16 at 09:30 -0400, Brian J. Murrell wrote: > Autofs
>> 5.0.1 seems to be doing an unmount/mount of my home dir > filesystems
>> every minute or so.  Verbose output from autofs shows:
>> > 
>> > Oct 16 09:27:23 jenny automount[18632]: expiring path /autohome/share
>> > Oct 16 09:27:23 jenny automount[18632]: unmounting dir =
>> /autohome/share > Oct 16 09:27:23 jenny automount[18632]: expired
>> /autohome/share > Oct 16 09:27:23 jenny automount[18632]: expiring path
>> /autohome/brian > Oct 16 09:27:23 jenny automount[18632]: unmounting dir
>> = /autohome/brian > Oct 16 09:27:23 jenny automount[18632]: expired
>> /autohome/brian > Oct 16 09:27:24 jenny automount[18632]: attempting to
>> mount entry /autohome/share > Oct 16 09:27:24 jenny automount[18632]:
>> mount(nfs): mounted linux:/home/share on /autohome/share > Oct 16
>> 09:27:24 jenny automount[18632]: mounted /autohome/share > Oct 16
>> 09:27:24 jenny automount[18632]: mount still busy /autohome
>> > 
>> > Why is it in the same window of operation expiring, unmounting and >
>> remounting filesystems?
>> 
>> Is the directory busy?  That is is it the pwd of some process or have
>> open files?

brian> Don't think so:

brian> $ sudo ls -l /proc/*/cwd | grep share [nothing]

>> If it's not then it will be umounted when it times out, after 1 minute
>> in this case. Then if some smart application scans directory trees when
>> it sees mount or umount activity then it will be mounted again. We've
>> seen this with older versions of hald.

brian> Heh.

>> The best way to find out what is causing this is to enable debug logging

brian> As in "automount -d"?

>> on a test machine and check what pid is causing mount activity.

brian> I tried this (automount -d) but am not seeing any more information
brian> than -v provides.

Take a look at http://people.redhat.com/jmoyer for documentation on how to
gather debug information from the automounter.  Basically, you need to log
daemon.* somewhere.

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to