[Bug 1304246] Re: Reboot hangs when two mounts with autofs

eolien mrnfake at gmail.com
Wed Sep 24 06:40:09 UTC 2014


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
    ____________________________________________________________________________________________
    BASE    dc=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-----
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    -----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
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1304246

Title:
  Reboot hangs when two mounts with autofs

Status in “autofs” package in Ubuntu:
  New

Bug description:
  On xubuntu 12.04.3 64 bits, with Dell computer (7010 and some other
  optiplex),  reboot  hangs and display terminal :

  acpid exiting
  running unnatend : ...

  I had same problem on 32 bits 12.04, but solved by adding "acpi=force reboot=pci" in /etc/default/grub
  Here, on 64 bits, tried that and didn't work.

  I also tried every other reboot parameter, without success.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: linux-image-3.2.0-54-generic 3.2.0-54.82
  ProcVersionSignature: Ubuntu 3.2.0-54.82-generic 3.2.50
  Uname: Linux 3.2.0-54-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  AplayDevices:
   **** List of PLAYBACK Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
     Subdevices: 0/1
     Subdevice #0: subdevice #0
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: amd64
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  speech-dispatcher   1289 F.... pulseaudio
                        root       2212 F.... xfce4-volumed
   /dev/snd/pcmC0D0p:   speech-dispatcher   1289 F...m pulseaudio
   /dev/snd/timer:      speech-dispatcher   1289 f.... pulseaudio
  CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xfebf0000 irq 43'
     Mixer name	: 'Generic 1af4 ID 21'
     Components	: 'HDA:1af40021,1af40021,00100101'
     Controls      : 2
     Simple ctrls  : 2
  Date: Tue Apr  8 10:00:21 2014
  HibernationDevice: RESUME=UUID=2b0136a6-76ae-42a5-a166-a2e6af4c0e17
  InstallationMedia: Xubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820)
  IwConfig:
   lo        no wireless extensions.
   
   eth0      no wireless extensions.
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
  MachineType: Bochs Bochs
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 EFI VGA
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-54-generic root=UUID=1be3fd89-b18b-4f55-ab8f-1f9e26e57c01 ro quiet splash acpi=force reboot=b vt.handoff=7
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-3.2.0-54-generic N/A
   linux-backports-modules-3.2.0-54-generic  N/A
   linux-firmware                            1.79.9
  RfKill:
   
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 01/01/2011
  dmi.bios.vendor: Bochs
  dmi.bios.version: Bochs
  dmi.chassis.type: 1
  dmi.chassis.vendor: Bochs
  dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2011:svnBochs:pnBochs:pvr:cvnBochs:ct1:cvr:
  dmi.product.name: Bochs
  dmi.sys.vendor: Bochs

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



More information about the foundations-bugs mailing list