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

Hardy Heroin 40189 at bugs.launchpad.net
Wed Jun 26 00:28:53 UTC 2013


Ubuntu 12.04 LTS support here. I can confirm this bug.  The automount service needs to retrieve the automount NFS maps auto_home and auto_group from LDAP which it is unable to do because the network isn't up yet. To make things a bit more complicated, these are Kerberized (krb5) NFSv4 mounts. 
After automount fails once it fails and doesn't try again when the network is up.
It seems to me this could be a case for upstart to enforce network being up before (network) automounts are attempted or automount being at least so smart to try again some time later or when the networks are up.
This is a serious bug in large scale Linux environments. Of course there are workarounds such at the ones documented in this thread, but they are ugly and why should every user/administrator have to reinvent the wheel when it is clear what the problem is?

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

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

Status in “autofs” package in Ubuntu:
  Confirmed
Status in “autofs5” package in Ubuntu:
  Confirmed
Status in “upstart” package in Ubuntu:
  Confirmed

Bug description:
  I am using autofs to access shares on a Windows XP machine from a
  Kubuntu AMD64 machine.  The problems applies in both Breezy and
  Dapper.

  EDIT:  confirmed with similar configuration on Intrepid with a NetApp
  filer hosting NFS.  Server OS removed from summary.

  When I first try to access the mount point via cd or in Konqueror it
  does not exist.  However,  if I then restart autofs
  (/etc/init.d/autofs restart) everythin then works OK.  My config files
  are:

  auto.master

  #
  # $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $
  #
  # Sample auto.master file
  # This is an automounter map and it has the following format
  # key [ -mount-options-separated-by-comma ] location
  # For details of the format look at autofs(5).
  #/misc	/etc/auto.misc --timeout=60
  #/misc	/etc/auto.misc
  #/net	/etc/auto.net

  /petunia /etc/petunia.misc --timeout=60

  
  petunia.misc

  #
  # $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
  #
  # This is an automounter map and it has the following format
  # key [ -mount-options-separated-by-comma ] location
  # Details may be found in the autofs(5) manpage

  cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

  tony	-fstype=smbfs,defaults,password=xxx,fmask=777,dmask=777	://192.168.1.2/tony
  chris	-fstype=smbfs,defaults,password=xxx,fmask=777,dmask=777	://192.168.1.2/chris
  shared	-fstype=smbfs,defaults,password=xxx,fmask=777,dmask=777	://192.168.1.2/SharedDocs
  linuxbackups	-fstype=smbfs,defaults,password=xxx,fmask=777,dmask=777	://192.168.1.2/linuxbackups

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




More information about the foundations-bugs mailing list