LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   AutoFS can't mount (https://www.linuxquestions.org/questions/linux-software-2/autofs-cant-mount-4175655459/)

daviddon 06-10-2019 11:16 AM

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

Timothy Miller 06-10-2019 11:26 AM

Quote:

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
According to that, it successfully mounted the /web mount. Same for /data. I don't actually see anything in this bit of log that points to any failures. Maybe post the log from when you attempt to access as it might give more information as to the exact nature of the failure.

pan64 06-10-2019 11:32 AM

Quote:

Originally Posted by daviddon (Post 6003880)
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.

Would be nice to explain how did you try to mount manually and what does "the shares showed up" means. How do you know it worked for /home?

daviddon 06-10-2019 01:53 PM

You are right. There was no error. The automount only takes place when I accessed the directory

MensaWater 06-10-2019 03:10 PM

Quote:

Originally Posted by daviddon (Post 6003920)
YThe automount only takes place when I accessed the directory

That is the point in automount. To only mounts things when they're needed. It mounts on access automatically and after some period of dis-use unmounts automatically as well.

MadeInGermany 06-10-2019 04:47 PM

You can try the -browse map option (in auto.master).
Then it will show all directories; the not mounted ones will have arbitrary attributes.


All times are GMT -5. The time now is 02:32 PM.