Autofs does not clean up /proc/mounts when stopped

Bug #988397 reported by agenkin on 2012-04-25
This bug affects 4 people
Affects Status Importance Assigned to Milestone
autofs5 (Ubuntu)

Bug Description

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


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
 PATH=(custom, no user)
SourcePackage: autofs5
UpgradeStatus: No upgrade log present (probably fresh install)

agenkin (agenkin-p) wrote :
James Page (james-page) on 2012-04-27
Changed in autofs5 (Ubuntu):
importance: Undecided → Medium
agenkin (agenkin-p) wrote :

I've done some more experimenting, and it appears that stopping autofs (using "stop autofs") while in multiuser removes autofs-related lines from /proc/mounts. However, when /etc/rc6.d/S40umountfs in run level 6 is running I've verified that /proc/mounts still contains autofs-related entries.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autofs5 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers