AutoFS Can't Mount

Dung Do
Dung Do used Ask the Experts™
on
I am trying to mount drives using autofs. There are 3 directories that I want to mount: home, data, and web. The mount for /home works but data and web don't work. When I mounted /data and /web manually, the shares showed up. Below has the log:
Jun 10 11:09:18 testdaviddo13 automount: Starting automounter version 5.0.7-99.el7, master map auto.master
Jun 10 11:09:18 testdaviddo13 automount: using kernel protocol version 5.02
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: spawn_mount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: spawn_umount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /home
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /web
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /data
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /misc
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /-
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry +auto.master
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master sss auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: setautomntent: lookup(sss): setautomntent: No such file or directory
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: no map - continuing to next source
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /home
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-home
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.home
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: spawn_mount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: spawn_umount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /home with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /home
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /web
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-web
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.web
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /web with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /web
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /data
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-data
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_map: read included map +auto.data
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map files auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map sss auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: setautomntent: lookup(sss): setautomntent: No such file or directory
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /data with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /data
Jun 10 11:09:18 testdaviddo13 automount: ghosting enabled
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /misc
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-misc
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.misc
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /misc with timeout 300, freq 75 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /misc
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /-
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo--
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.sw
Jun 10 11:09:18 testdaviddo13 automount: file map /etc/auto.sw not found
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Distinguished Expert 2018
Commented:
Does not mount? or will get mounted when accessed...
(automount will mount the service when the directory gets accessed).

what does the next command show?

cat /etc/mtab | grep autofs

Open in new window


I expect entries for /web, /data & /home.

Author

Commented:
You are right. The automount did not take place because I did not access the directory

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial