[Bug 40189] Re: autofs needs to be restarted to pick up some shares

Gergely Katona gkatona at gmail.com
Wed Oct 5 12:34:33 UTC 2011


I maintain a 10.04 LTS based cluster of workstations where each node is subject to some stress and need to be restarted once in a while. Autofs maps of nfs shares are communicated via LDAP.  Autofs fails to initialize (or even start in some rare cases)  in its default configuration in about 50% of all boots, making the nodes unusable until autofs is restarted. In addition to this bug  sometimes bind mounts fail to initialize at boot and need a remount. 
After trying out several suggested workarounds unsuccessfully I am using the following not too elegant rc.local script, which  hammers autofs into submission (works 99% of the time). I also advise my users not to restart their computers unless absolutely necessary.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sleep 10
service autofs start &
sleep 60
service autofs restart &
sleep 60
service autofs restart &
sleep 60
mount -a


exit 0

-- 
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/40189

Title:
  autofs needs to be restarted to pick up some shares

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



More information about the Ubuntu-server-bugs mailing list