autofs hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: autofs
Hi,
After not using automounted directories for a while, autofs seem to loose track of its mountpoints.
This is what happens:
magnus@htpc:~$ ls /var/lib/
ls: cannot access /var/lib/
magnus@htpc:~$ ls /var/lib/
ls: cannot access /var/lib/
magnus@htpc:~$ sudo /etc/init.d/autofs restart
Stopping automounter: done.
Starting automounter: done.
magnus@htpc:~$ ls /var/lib/
ls: cannot access /var/lib/
magnus@htpc:~$ ls /var/lib/
ls: cannot access /var/lib/
It seems to be no way to get it to work again - other than rebooting the entire box.
After rebooting all automounts are accessible again. Also when using these automounts frequently it will
keep working.
magnus@htpc:~$ ls -l /var/lib/
drwxr-xr-x 3 root root 0 2010-02-28 17:35 remote
I try to restart and unmount, but somehow autofs is dead.
Also, manually mounting the same cifs share with mount works fine.
More info
magnus@htpc:~$ tail /var/log/daemon.log
Feb 28 16:28:56 localhost automount[16000]: mount_autofs: already mounted
Feb 28 16:28:56 localhost automount[16000]: /var/lib/
Feb 28 16:29:02 localhost automount[16126]: mount_autofs: already mounted
Feb 28 16:29:02 localhost automount[16126]: /var/lib/
Feb 28 16:29:02 localhost automount[16180]: mount_autofs: already mounted
Feb 28 16:29:02 localhost automount[16180]: /var/lib/
Feb 28 16:29:58 localhost automount[16298]: mount_autofs: already mounted
Feb 28 16:29:58 localhost automount[16298]: /var/lib/
magnus@htpc:~$ cat /etc/auto.
/var/lib/
/var/lib/
magnus@htpc:~$ ps aux|grep auto
magnus 16375 0.0 0.0 7336 888 pts/1 S+ 16:33 0:00 grep --color=auto auto
magnus@htpc:~$ cat /etc/auto.music
hmp3 -fstype=
magnus@htpc:~$ cat /etc/auto.video
hmovies -fstype=
magnus@htpc:~$ cat /etc/mtab|grep auto
<nothing>
magnus@htpc:~$ cat /proc/mounts |grep auto
automount(pid1565) /var/lib/
automount(pid1549) /var/lib/
magnus@htpc:~$ ps -ef|grep 1565
magnus 16501 32237 0 16:36 pts/1 00:00:00 grep --color=auto 1565
magnus@htpc:~$ ps -ef|grep 1549
magnus 16503 32237 0 16:36 pts/1 00:00:00 grep --color=auto 1549
magnus@htpc:~$ sudo umount -a -t autofs
umount: /var/lib/
magnus@htpc:~$ sudo fusermount -u /var/lib/
fusermount: /var/lib/
magnus@htpc:~$ sudo rmmod -f autofs4
ERROR: Removing 'autofs4': Resource temporarily unavailable
magnus@htpc:~$ lsmod|grep auto
autofs4 31720 2
magnus@htpc:~$ apt-cache policy autofs
autofs:
Installed: 4.1.4+debian-
Candidate: 4.1.4+debian-
Version table:
*** 4.1.4+debian-
500 http://
100 /var/lib/
magnus@htpc:~$ apt-cache policy samba-tools
samba-tools:
Installed: (none)
Candidate: 2:3.4.0-3ubuntu5.4
Version table:
2:
500 http://
500 http://
2:
500 http://
magnus@htpc:~$ uname -a
Linux htpc 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux
magnus@htpc:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Regards
Magnus
If possible can you try with autofs5?
Thanks
chuck