Public bug reported:

After the autofs service is stopped, the autofs-related stuff still
persists in /proc/mounts.  I think that the expected behaviour would be
for the /proc/mounts entries to be removed after the autofs daemon
stops.

As a workaround I found that unloading the autofs kernel module with
"modprobe -r autofs4" results in /proc/mounts to be cleaned up of the
autofs stuff.

The consequence of this problem is that the system would not reboot
because the phantom /proc/mounts entries that autofs leaves behind
confuse the /etc/rc6.d/S40umountfs script and the fstab-decode command.
For the reference, I have reported the problems with those scripts as
bug #988394 .

In our case, after autofs is stopped and all directories that it mounted
are unmounted, /proc/mounts still contains the following entries:

/etc/auto.nfs_h /h autofs 
rw,relatime,fd=6,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0
/etc/auto.nfs_s /s autofs 
rw,relatime,fd=12,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0
/etc/auto.nfs_cdf /cdf autofs 
rw,relatime,fd=18,pgrp=1004,timeout=300,minproto=5,maxproto=5,direct 0 0

Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: autofs5 5.0.6-0ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Uname: Linux 3.2.0-23-generic-pae i686
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Wed Apr 25 11:31:38 2012
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 SHELL=/local/bin/bash
SourcePackage: autofs5
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: autofs5 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 precise

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs5 in Ubuntu.
https://bugs.launchpad.net/bugs/988397

Title:
  Autofs does not clean up /proc/mounts when stopped

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs5/+bug/988397/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to