[Bug 1316125] Re: Autofs leak file descriptors when reloaded (-HUP) and daemon may stop working on high # of shares/reloads

Rafael David Tinoco rafael.tinoco at canonical.com
Mon Sep 29 18:37:08 UTC 2014


# verification-saucy

inaddy at saucy.1315535:~$ sudo mkdir /nfs.server/
mkdir: cannot create directory ‘/nfs.server/’: File exists
inaddy at saucy.1315535:~$ sudo mkdir /nfs.client
inaddy at saucy.1315535:~$ sudo vi /etc/exports 
inaddy at saucy.1315535:~$ sudo vi /etc/exports 
inaddy at saucy.1315535:~$ sudo service nfs-kernel-server restart
 * Stopping NFS kernel daemon                                                              [ OK ] 
 * Unexporting directories for NFS kernel daemon...                                        [ OK ] 
 * Exporting directories for NFS kernel daemon...                                          [ OK ] 
 * Starting NFS kernel daemon                                                              [ OK ] 
inaddy at saucy.1315535:~$ sudo vi /etc/auto.master 
inaddy at saucy.1315535:~$ cat /etc/auto.master 
/- /etc/auto.direct
inaddy at saucy.1315535:~$ sudo vi /etc/auto.direct
inaddy at saucy.1315535:~$ cat /etc/auto.direct 
# cat /etc/auto.direct
/nfs.client localhost:/nfs.server
#/nfs.client/dir01 localhost:/nfs.server
#/nfs.client/dir02 localhost:/nfs.server
inaddy at saucy.1315535:~$ sudo service autofs restart
autofs stop/waiting
autofs start/running, process 2351
inaddy at saucy.1315535:~$ mkdir /nfs.server/dir01
mkdir: cannot create directory ‘/nfs.server/dir01’: Permission denied
inaddy at saucy.1315535:~$ sudo mkdir /nfs.server/dir01
inaddy at saucy.1315535:~$ sudo mkdir /nfs.server/dir02
inaddy at saucy.1315535:~$ ls /nfs.client/
dir01  dir02
inaddy at saucy.1315535:~$ sudo vi /etc/auto.direct 
inaddy at saucy.1315535:~$ cat /etc/auto.direct 
# cat /etc/auto.direct
#/nfs.client localhost:/nfs.server
/nfs.client/dir01 localhost:/nfs.server
/nfs.client/dir02 localhost:/nfs.server
inaddy at saucy.1315535:~$ ls /nfs.client/dir01/
inaddy at saucy.1315535:~$ ls /nfs.client/dir02
inaddy at saucy.1315535:~$ ls /nfs.client/
dir01  dir02
inaddy at saucy.1315535:~$ sudo kill -HUP $(pidof automount)
inaddy at saucy.1315535:~$ ls /nfs.client/
dir01  dir02
inaddy at saucy.1315535:~$ ls /nfs.client/dir01
dir01  dir02
inaddy at saucy.1315535:~$ ls /nfs.client/dir02
dir01  dir02
inaddy at saucy.1315535:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:36 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:36 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:36 9 -> /nfs.client/dir01
inaddy at saucy.1315535:~$ sudo kill -HUP $(pidof automount)
inaddy at saucy.1315535:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:36 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:36 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:36 9 -> /nfs.client/dir01
inaddy at saucy.1315535:~$ sudo kill -HUP $(pidof automount)
inaddy at saucy.1315535:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:36 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:36 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:36 9 -> /nfs.client/dir01

# verification-done-saucy

** Tags removed: precise verification-needed
** Tags added: verification-done verification-done-saucy verification-done-trusty

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

Title:
  Autofs leak file descriptors when reloaded (-HUP) and daemon may stop
  working on high # of shares/reloads

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



More information about the Ubuntu-server-bugs mailing list