2 Replies Latest reply on Mar 21, 2020 10:14 AM by Dude!

    autofs glitching out on OL7 with etc in lvm

    4213054

      Hey there!

       

      I'm using autofs to mount a cifs share. I have a cifs.master configured to look at /etc/auto.cifs on this system. I have another system that's the exact same setup except this one has / as lvm and the other has / as a partition. I've found that when I use systemd to start autofs, I get an error (see below). this error does not occur if I run automount manually. I've also learned that I can read auto.cifs from /tmp and /boot (which is a partition mount). I went on another system and put the auto.cifs in an lvm partition on another system that wasn't / and it read it fine. My hacky work around was to put the config file in / boot, permission 400 to keep people from messing with it, and symlinking it  into /etc. this works. I'm not into hacky bug fixes and i'm wondering if oracle knows about this bug or if anyone else has seen this.

       

      Mar 20 12:22:07 ---- systemd[1]: Cannot add dependency job for unit rpc-statd.service, ignoring: Unit not found.

      Mar 20 12:22:07 ---- systemd[1]: Starting Automounts filesystems on demand...

      Mar 20 12:22:07 ---- automount[14294]: Starting automounter version 5.0.7-106.0.1.el7, master map auto.master

      Mar 20 12:22:07 ---- automount[14294]: using kernel protocol version 5.02

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_master: reading master files auto.master

      Mar 20 12:22:07 ---- automount[14294]: do_init: parse(sun): init gathered global options: (null)

      Mar 20 12:22:07 ---- automount[14294]: spawn_mount: mtab link detected, passing -n to mount

      Mar 20 12:22:07 ---- automount[14294]: spawn_umount: mtab link detected, passing -n to mount

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(file): read entry /misc

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(file): read entry /net

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_master: reading master dir /etc/auto.master.d

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(dir): scandir: /etc/auto.master.d

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(file): read entry +auto.master

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_master: reading master files auto.master

      Mar 20 12:22:07 ---- automount[14294]: do_init: parse(sun): init gathered global options: (null)

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_master: lookup(file): read entry /-

      Mar 20 12:22:07 ---- automount[14294]: master_do_mount: mounting /misc

      Mar 20 12:22:07 ---- automount[14294]: automount_path_to_fifo: fifo name /run/autofs.fifo-misc

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_map: reading map file /etc/auto.misc

      Mar 20 12:22:07 ---- automount[14294]: do_init: parse(sun): init gathered global options: (null)

      Mar 20 12:22:07 ---- automount[14294]: spawn_mount: mtab link detected, passing -n to mount

      Mar 20 12:22:07 ---- automount[14294]: spawn_umount: mtab link detected, passing -n to mount

      Mar 20 12:22:07 ---- automount[14294]: mounted indirect on /misc with timeout 300, freq 75 seconds

      Mar 20 12:22:07 ---- automount[14294]: st_ready: st_ready(): state = 0 path /misc

      Mar 20 12:22:07 ---- automount[14294]: master_do_mount: mounting /net

      Mar 20 12:22:07 ---- automount[14294]: automount_path_to_fifo: fifo name /run/autofs.fifo-net

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_map: reading map hosts (null)

      Mar 20 12:22:07 ---- automount[14294]: do_init: parse(sun): init gathered global options: (null)

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_map: lookup(hosts): read hosts map

      Mar 20 12:22:07 ---- automount[14294]: lookup_read_map: lookup(hosts): map not browsable, update existing host entries only

      Mar 20 12:22:07 ---- automount[14294]: mounted indirect on /net with timeout 300, freq 75 seconds

      Mar 20 12:22:07 ---- automount[14294]: st_ready: st_ready(): state = 0 path /net

      Mar 20 12:22:07 ---- automount[14294]: master_do_mount: mounting /-

      Mar 20 12:22:07 ---- systemd[1]: Started Automounts filesystems on demand.

      Mar 20 12:22:07 ---- automount[14294]: automount_path_to_fifo: fifo name /run/autofs.fifo--

      Mar 20 12:22:07 ---- automount[14294]: lookup_nss_read_map: reading map file /etc/auto.cigs

      Mar 20 12:22:07 ---- automount[14294]: lookup(file): file map /etc/auto.cigs missing or not readable

      Mar 20 12:22:07 ---- automount[14294]: do_read_map: lookup module file open failed

      Mar 20 12:22:07 ---- automount[14294]: mount_autofs_direct: failed to read direct map

      Mar 20 12:22:07 ---- automount[14294]: handle_mounts: mount of /- failed!

      Mar 20 12:22:07 ---- automount[14294]: master_do_mount: failed to startup mount

      Mar 20 12:22:07 ---- polkitd[1611]: Unregistered Authentication Agent for unix-process:14288:691108 (system bus name :1.116, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)