automounted filesystems being unmounted and mounted every minute
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?
My configuration for the above:
/autohome /etc/autofs/auto.home --timeout=60
brian -rw,soft,intr,rsize=8192,wsize=8192 pc:/home/brian share -rw,soft,intr,rsize=8192,wsize=8192 linux:/home/share
Any ideas?
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Ian Kent
maintainerQuoted 14 lines · Brian J. Murrell
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
Quoted 2 lines
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?
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.
The best way to find out what is causing this is to enable debug logging on a test machine and check what pid is causing mount activity.
Ian
Quoted 15 lines · Ian Kent
Quoted 14 lines · Brian J. Murrell
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
Quoted 5 lines
Quoted 2 lines
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?
Don't think so:
$ sudo ls -l /proc/*/cwd | grep share [nothing]
Quoted 4 lines
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.
Heh.
Quoted 1 line
The best way to find out what is causing this is to enable debug logging
As in "automount -d"?
Quoted 1 line
on a test machine and check what pid is causing mount activity.
I tried this (automount -d) but am not seeing any more information than -v provides.
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> Regarding Re: [autofs] automounted filesystems being unmounted and mounted every minute; "Brian J. Murrell" <[email protected]> adds:
Quoted 16 lines · Ian Kent
Quoted 16 lines
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:
Quoted 3 lines
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 /autohomeQuoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
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]
Quoted 4 lines
Quoted 4 lines
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.
Quoted 1 line
Quoted 1 line
The best way to find out what is causing this is to enable debug logging
brian> As in "automount -d"?
Quoted 1 line
Quoted 1 line
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
Quoted 4 lines · Jeff Moyer
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.
gnome-panel?
Oct 16 14:54:51 jenny automount[24104]: handle_packet: type = 3
Oct 16 14:54:51 jenny automount[24104]: handle_packet_missing_indirect: token 19801, name share, request pid 14360
Oct 16 14:54:51 jenny automount[24104]: attempting to mount entry /autohome/share
Oct 16 14:54:51 jenny automount[24104]: lookup_mount: lookup(file): looking up share
Oct 16 14:54:51 jenny automount[24104]: lookup_mount: lookup(file): share -> -rw,soft,intr,rsize=8192,wsize=8192^Ilinux:/home/share
Oct 16 14:54:51 jenny automount[24104]: parse_mount: parse(sun): expanded entry: -rw,soft,intr,rsize=8192,wsize=8192^Ilinux:/home/share
Oct 16 14:54:51 jenny automount[24104]: parse_mount: parse(sun): gathered options: rw,soft,intr,rsize=8192,wsize=8192
Oct 16 14:54:51 jenny automount[24104]: parse_mount: parse(sun): dequote("linux:/home/share") -> linux:/home/share
Oct 16 14:54:51 jenny automount[24104]: parse_mount: parse(sun): core of entry: options=rw,soft,intr,rsize=8192,wsize=8192, loc=linux:/home/share
Oct 16 14:54:51 jenny automount[24104]: sun_mount: parse(sun): mounting root /autohome, mountpoint share, what linux:/home/share, fstype nfs, options rw,soft,intr,rsize=8192,wsize=8192
Oct 16 14:54:51 jenny automount[24104]: mount_mount: mount(nfs): root=/autohome name=share what=linux:/home/share, fstype=nfs, options=rw,soft,intr,rsize=8192,wsize=8192
Oct 16 14:54:51 jenny automount[24104]: mount_mount: mount(nfs): nfs options="rw,soft,intr,rsize=8192,wsize=8192", nosymlink=0, ro=0
Oct 16 14:54:51 jenny automount[24104]: mount_mount: mount(nfs): calling mkdir_path /autohome/share
Oct 16 14:54:51 jenny automount[24104]: mount_mount: mount(nfs): calling mount -t nfs -s -o rw,soft,intr,rsize=8192,wsize=8192 linux:/home/share /autohome/share
Oct 16 14:54:51 jenny automount[24104]: mount(nfs): mounted linux:/home/share on /autohome/share
Oct 16 14:54:51 jenny automount[24104]: send_ready: token = 19801
Oct 16 14:54:51 jenny automount[24104]: mounted /autohome/share
Oct 16 14:54:51 jenny automount[24104]: expire_proc_indirect: 2 remaining in /autohome
Oct 16 14:54:51 jenny automount[24104]: mount still busy /autohome
Oct 16 14:54:51 jenny automount[24104]: expire_cleanup: got thid 3074386848 path /autohome stat 3
Oct 16 14:54:51 jenny automount[24104]: expire_cleanup: sigchld: exp 3074386848 finished, switching from 2 to 1
Oct 16 14:54:51 jenny automount[24104]: st_ready: st_ready(): state = 2 path /autohome$ ps -p14360 f PID TTY STAT TIME COMMAND 14360 ? Ss 8:53 gnome-panel --sm-config-prefix /gnome-panel-dbYkZn/ -
I wonder why gnome-panel would be touching /autohome/share.
I guess what I wonder also about all of this is that isn't there some period of "idleness" required before anything is unmounted? Is that the 60s that I am seeing? If I increase that to a period longer than the periodic access by gnome-panel should that not stop the trashing of the mount?
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> Regarding Re: [autofs] automounted filesystems being unmounted and mounted every minute; "Brian J. Murrell" <[email protected]> adds:
Quoted 3 lines · Jeff Moyer
Quoted 3 lines
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.
brian> gnome-panel?
brian> $ ps -p14360 f PID TTY STAT TIME COMMAND 14360 ? Ss 8:53 brian> gnome-panel --sm-config-prefix /gnome-panel-dbYkZn/ -
brian> I wonder why gnome-panel would be touching /autohome/share.
Please ask them!
brian> I guess what I wonder also about all of this is that isn't there brian> some period of "idleness" required before anything is unmounted? Is brian> that the 60s that I am seeing? If I increase that to a period brian> longer than the periodic access by gnome-panel should that not stop brian> the trashing of the mount?
You can specify the timeout in seconds for unmounts via the --timeout=XX option. But please pursue this with the gnome folks, as they shouldn't be causing this problem in the first place.
Thanks!
Jeff