[Bug 1304246] Re: Reboot hangs when two mounts with autofs
Here, how i proceed exactly to set up my ldap/autofs conf : # rm -Rf /usr/local # ln -s /net/local /usr/local # apt-get install libpam-ldapd libnss-ldapd auth-client-config autofs5-ldap nfs-kernel-server Editer /etc/ldap/ldap.conf BASEdc=dc1,dc=dc2,dc=dc3 URI ldaps:/1.1.1.1/ # TLS certificates (needed for GnuTLS) TLS_CACERT /etc/ssl/certs/ca-certificates.crt # service nscd restart Editer /etc/nslcd.conf uid nslcd gid nslcd uri ldaps://1.1.1.1 base dc=dc1,dc=dc2,dc=dc3 ldap_version 3 ssl on tls_reqcert allow tls_cacertfile /etc/ssl/ldap-cacert.pem nss_initgroups_ignoreusers avahi,avahi-autoipd,backup,bin,colord,daemon,games,gnats,hplip,irc,kernoops,libuuid,lightdm,list,lp,mail,man,messagebus,news,proxy,pulse,root,rtkit,saned,speech-dispatcher,sshd,sync,sys,syslog,usbmux,uucp,whoopsie,www-data Creer /etc/ssl/ldap-cacert.pem -BEGIN CERTIFICATE- x x x x x x x x x x x x x x x -END CERTIFICATE- Editer /etc/nsswitch.conf passwd: compat ldap group: compat ldap shadow: compat ldap hosts: files mdns4_minimal [NOTFOUND=return] dns networks: files protocols: db files services: db files ethers: db files rpc:db files netgroup: files ldap automount: files ldap Autofs # mkdir /etc/auto.master.d # echo +auto.home /etc/auto.master.d/home # echo local -fstype=nfs4,ro,proto=tcp,port=2049 serveur_nfs1:/bin /etc/auto.master.d/net # echo commun -fstype=nfs4,rw,soft,intr server_nfs2:/home/commun /etc/auto.master.d/net # echo /auto_home /etc/auto.master.d/home --timeout=10 /etc/auto.master.d/home.autofs # echo /net/etc/auto.master.d/net --timeout=10 /etc/auto.master.d/net.autofs Editer /etc/default/autofs MASTER_MAP_NAME=/etc/auto.master TIMEOUT=300 BROWSE_MODE=no LOGGING=none LDAP_URI=ldap://10.6.200.209; SEARCH_BASE=dc=info-ufr,dc=univ-montp2,dc=fr MAP_OBJECT_CLASS=nisMap ENTRY_OBJECT_CLASS=nisObject MAP_ATTRIBUTE=nisMapName ENTRY_ATTRIBUTE=cn VALUE_ATTRIBUTE=nisMapEntry Editer /etc/default/nfs-common NEED_STATD= STATDOPTS= NEED_GSSD=no NEED_IDMAPD=yes Editer /etc/idmapd.conf [General] Verbosity = 0 Pipefs-Directory = /run/rpc_pipefs Domain = rien [Mapping] Nobody-User = nobody Nobody-Group = nogroup # echo blacklist rpcsec_gss_krb5 /etc/modprobe.d/blacklist.conf -- 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/1304246
[Bug 1304246] Re: Reboot hangs when two mounts with autofs
Hi I have serious reboot problem since a long time. I discovered that if i service autofs stop before reboot, there's no problem with reboot. Here my autofs confs : # dpkg --get-selections | grep autofs autofs install autofs-ldap install autofs5-ldapinstall # apt-cache policy autofs autofs: Installé : 5.0.7-3ubuntu3 Candidat : 5.0.7-3ubuntu3 Table de version : *** 5.0.7-3ubuntu3 0 500 http://fr.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 100 /var/lib/dpkg/status # cat auto.master | grep -v # +dir:/etc/auto.master.d +auto.master # ls -altr auto.master.d total 32 -rw-r--r-- 1 root root11 sept. 22 14:53 home -rw-r--r-- 1 root root 107 sept. 22 15:50 net -rw-r--r-- 1 root root44 sept. 23 07:44 net.autofs -rw-r--r-- 1 root root53 sept. 23 07:45 home.autofs drwxr-xr-x 2 root root 4096 sept. 23 07:45 . drwxr-xr-x 171 root root 12288 sept. 23 07:47 .. # cat auto.master.d/home +auto.home # cat auto.master.d/net local -fstype=nfs4,ro,proto=tcp,port=2049 nfs1:/bin commun -rw,soft,intr nfs2:/home/commun # cat auto.master.d/home.autofs /auto_home /etc/auto.master.d/home --timeout=10 # cat auto.master.d/net.autofs /net/etc/auto.master.d/net --timeout=10 # cat /etc/default/autofs | grep -v # MASTER_MAP_NAME=/etc/auto.master TIMEOUT=3 BROWSE_MODE=no LOGGING=verbose LDAP_URI=ldap://#.#.#.#; SEARCH_BASE=dc=#,dc=#,dc=# MAP_OBJECT_CLASS=nisMap ENTRY_OBJECT_CLASS=nisObject MAP_ATTRIBUTE=nisMapName ENTRY_ATTRIBUTE=cn VALUE_ATTRIBUTE=nisMapEntry When i desactive one of these inputs (or /net or /auto_home), reboot works fine. Here's my logs since the last reboot :: #cat /var/log/syslog | egrep 'automount|autofs|ldap|nscd|nslcd' Sep 23 07:44:14 localhost nslcd[1328]: [a5ee64] group=admin ldap_search_ext() failed: Can't contact LDAP server: Broken pipe Sep 23 07:44:14 localhost nslcd[1328]: [a5ee64] group=admin no available LDAP server found, sleeping 1 seconds Sep 23 07:44:18 localhost nslcd[1328]: [330624] passwd=* request denied by validnames option Sep 23 07:44:25 localhost nslcd[1328]: [a5ee64] group=admin failed to bind to LDAP server ldaps://10.6.200.209: Can't contact LDAP server: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [a5ee64] group=admin no available LDAP server found: Can't contact LDAP server: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [ffca11] group/member=premier no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [ffca11] group/member=premier no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [27709e] group/member=premier no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [27709e] group/member=premier no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [ea1109] group=admin no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [0f59dc] group/member=oracle no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [0f59dc] group/member=oracle no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [b7e0aa] group/member=oracle no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [b7e0aa] group/member=oracle no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [eb5bd4] group=admin no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [6dd9ac] group/member=inscription no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [6dd9ac] group/member=inscription no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [4211f2] group/member=inscription no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [4211f2] group/member=inscription no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [885e1b] passwd=jkirszling no available LDAP server found: Server is unavailable: Resource temporarily unavailable Sep 23 07:44:25 localhost nslcd[1328]: [272110] passwd=fguitton no available LDAP server found: Server is unavailable: Connection timed out Sep 23 07:44:25 localhost nslcd[1328]: [04a8af] passwd=fguitton02 no available LDAP server