Skip to contentSkip to conversation

autofs not unmounting mount points?

DISCUSSION jansen 4 participants 6 messages Mar 12, 2004 – Mar 18, 2004 Kernel automounter

lore
Share & tools
lore

jansen

author
#0 lore raw

Hi,

I've been struggling to figure out why autofs does not appear to unmount many mount points. I have more than 150 entries in a map file and most of these entries get mounted when I log into a Gnome session and never seem to ever get unmounted. This happened under RedHat 8.0 (autofs-3.1.7-33) and still happens on SuSE 9.0 (autofs-3.1.7-717). I'm guessing that Nautilus is doing this. Is anyone else seeing this? Any suggestions on how to prevent or debug this? I can provide more details if anyone is interested.

Signature · 1 line
------- Stephan
#1 lore raw
Quoted 2 lines · jansen

I've been struggling to figure out why autofs does not appear to unmount many mount points...

I also had this problem with autofs4-4.0.0pre10-504 from SuSE 8.2/9.0. I upgraded to the latest version (4.1.0 when I upgraded; now I think it's 4.1.2), and not only are filesystems unmounted as expected, but other alarming symptoms in the logs are gone.

As for /net/home (this is the map you were complaining about, right?), possibly Nautilus has a compulsion to check for something at the top level of every mounted filesystem. If /net/home were "browsable", i.e. if you do "ls /net/home" and get all 150 loginIDs, likely it would proceed to stat those names (e.g. /net/home/jimc), requiring that they be actually mounted. It doesn't have to stat them just to see the names, but if it wants to know if they are directories, or if they are owned by you, then it needs to do the stat, and therefore the mount.

See if you can forbid browsability on the "home" map. To turn it on, I believe the correct syntax is to put "--ghost" (or -g? Or just "ghost"?) among the mount options in /etc/auto.master, so that command line arg will be passed to the submount. (Someone please correct this if wrong.) So you would be looking for that option and removing it.

James F. Carter Voice 310 825 2897 FAX 310 206 6673
UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [email protected] http://www.math.ucla.edu/~jimc (q.v. for PGP key)

#2 lore raw
In reply to jansen
Quoted 10 lines · jansen

Hi,

I've been struggling to figure out why autofs does not appear to unmount many mount points. I have more than 150 entries in a map file and most of these entries get mounted when I log into a Gnome session and never seem to ever get unmounted. This happened under RedHat 8.0 (autofs-3.1.7-33) and still happens on SuSE 9.0 (autofs-3.1.7-717). I'm guessing that Nautilus is doing this. Is anyone else seeing this? Any suggestions on how to prevent or debug this? I can provide more details if anyone is interested.

I have the same problem, and I think that it is nautilus, too. It stores the files in .gnome/gnome-vfs/.trash_entry_cache. You can clean out that file, but they will come back if you mount them. I haven't had a chance yet to fix the problem instead of the symptoms...

Forrest

maintainer
#3 lore raw
In reply to jansen
Quoted 11 lines · jansen

Hi,

I've been struggling to figure out why autofs does not appear to unmount many mount points. I have more than 150 entries in a map file and most of these entries get mounted when I log into a Gnome session and never seem to ever get unmounted. This happened under RedHat 8.0 (autofs-3.1.7-33) and still happens on SuSE 9.0 (autofs-3.1.7-717). I'm guessing that Nautilus is doing this. Is anyone else seeing this? Any suggestions on how to prevent or debug this? I can provide more details if anyone is interested.

Bit unfortunate they never umount.

The problem is that Nautilus scans the directory if/when it notices umount activity. This causes a remount. I couldn't find a way to trun it off. The list of directories to scan is help in a file (I can't remember where now) and I was able to stop it, to some extent, by cleaning it out and changing the modes on the file (for non-root login anyway).

I started working on this some time ago but did not get anywhere before other things took priority. To fix this means digging into Nautilius. A significant task in itself. The people on the Nautilus list would probably help but they would need a significant time investment from an autofs development person. Any volunteers?

Ian

#4 lore raw
Quoted 15 lines · Ian Kent
Quoted 10 lines · jansen

Hi,

I've been struggling to figure out why autofs does not appear to unmount many mount points. I have more than 150 entries in a map file and most of these entries get mounted when I log into a Gnome session and never seem to ever get unmounted. This happened under RedHat 8.0 (autofs-3.1.7-33) and still happens on SuSE 9.0 (autofs-3.1.7-717). I'm guessing that Nautilus is doing this. Is anyone else seeing this? Any suggestions on how to prevent or debug this? I can provide more details if anyone is interested.

Quoted 5 lines

Bit unfortunate they never umount.

The problem is that Nautilus scans the directory if/when it notices umount activity. This causes a remount. I couldn't find a way to trun it off. The list of directories to scan is help in a file (I can't remember where now) and I was able to stop it, to some extent, by cleaning it out and changing the modes on the file (for non-root login anyway).

I started working on this some time ago but did not get anywhere before other things took priority. To fix this means digging into Nautilius. A significant task in itself. The people on the Nautilus list would probably help but they would need a significant time investment from an autofs development person. Any volunteers?

Although I am not really an autofs development person, I would really like this remedied, so I will volunteer. Where can I get started?

Forrest

maintainer
#5 lore raw
Quoted 24 lines · ForrestX
Quoted 23 lines · Ian Kent
Quoted 10 lines · jansen

Hi,

I've been struggling to figure out why autofs does not appear to unmount many mount points. I have more than 150 entries in a map file and most of these entries get mounted when I log into a Gnome session and never seem to ever get unmounted. This happened under RedHat 8.0 (autofs-3.1.7-33) and still happens on SuSE 9.0 (autofs-3.1.7-717). I'm guessing that Nautilus is doing this. Is anyone else seeing this? Any suggestions on how to prevent or debug this? I can provide more details if anyone is interested.

Bit unfortunate they never umount.

The problem is that Nautilus scans the directory if/when it notices umount activity. This causes a remount. I couldn't find a way to trun it off. The list of directories to scan is help in a file (I can't remember where now) and I was able to stop it, to some extent, by cleaning it out and changing the modes on the file (for non-root login anyway).

Quoted 9 lines
Quoted 5 lines

I started working on this some time ago but did not get anywhere before other things took priority. To fix this means digging into Nautilius. A significant task in itself. The people on the Nautilus list would probably help but they would need a significant time investment from an autofs development person. Any volunteers?

Although I am not really an autofs development person, I would really like this remedied, so I will volunteer. Where can I get started?

Could be an interesting time.

I started by subscribing to the Nautilus list.

I'll forward you the mails I have and put together as much as I know about this.

Short is that Nautilus probably needs to be changed. We are most likey to succeed if we can put together at least a proof of concept path, after all we aren't Nautilus developers.

Ian