AutoFS Can't Mount

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
Dung DoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dung DoAuthor Commented:
You are right. The automount did not take place because I did not access the directory
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.