Visit The New, Modern Unix Linux Community


Autofs problem

 
Thread Tools Search this Thread
Operating Systems Linux Fedora Autofs problem
# 1  
Autofs problem

Hi all,

I'm having trouble getting autofs working on a new install of Scientific Linux 7.2.

I have the files /etc/auto.master, /etc/auto/homes and /etc/auto.misc and /auto.direct setup, and they are copies of files on a working SL 6 machine. I can include the contents of the files at the end of this post.

When I log on as root on the just rebooted machine, directory listings don't show the directories I expected to see automounted.

If I do :

Code:
systemctl stop autofs

and then from the command line run

Code:
automount&

then I do see the directories mounted correctly.

If I then kill the automount process and run

Code:
systemctl start autofs

I can no longer see the directories, and the file /var/log/messages contains the lines below:

Code:
Oct 18 09:17:37 danube systemd: Starting Automounts filesystems on demand...
Oct 18 09:17:37 danube automount[10906]: Starting automounter version 5.0.7-54.el7, master map auto.master[quote]
Oct 18 09:17:37 danube automount[10906]: using kernel protocol version 5.02
Oct 18 09:17:37 danube automount[10906]: lookup_nss_read_master: reading master files auto.master
Oct 18 09:17:37 danube automount[10906]: lookup(file): file map /etc/auto.master missing or not readable
Oct 18 09:17:37 danube automount[10906]: lookup_nss_read_master: auto.master not found, replacing '.' with '_'
Oct 18 09:17:37 danube automount[10906]: lookup(file): file map /etc/auto_master missing or not readable
Oct 18 09:17:37 danube automount[10906]: lookup_nss_read_master: reading master ldap auto.master
Oct 18 09:17:37 danube automount[10906]: parse_server_string: lookup(ldap): Attempting to parse LDAP information from string "auto.master".
Oct 18 09:17:37 danube automount[10906]: parse_server_string: lookup(ldap): mapname auto.master
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): ldap authentication configured with the following options:
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, sasl_mech: (null)
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client principal: (null) credential cache: (null)
Oct 18 09:17:37 danube automount[10906]: parse_init: parse(sun): init gathered global options: (null)
Oct 18 09:17:37 danube automount[10906]: spawn_mount: mtab link detected, passing -n to mount
Oct 18 09:17:37 danube automount[10906]: spawn_umount: mtab link detected, passing -n to mount
Oct 18 09:17:37 danube automount[10906]: do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
Oct 18 09:17:37 danube automount[10906]: do_bind: lookup(ldap): ldap simple bind returned 0
Oct 18 09:17:37 danube automount[10906]: get_query_dn: lookup(ldap): query failed for (&(objectclass=nisMap)(nisMapName=auto.master)): No such object
Oct 18 09:17:37 danube automount[10906]: get_query_dn: lookup(ldap): query failed for (&(objectclass=automountMap)(ou=auto.master)): No such object
Oct 18 09:17:37 danube automount[10906]: get_query_dn: lookup(ldap): query failed for (&(objectclass=automountMap)(automountMapName=auto.master)): No such object
Oct 18 09:17:37 danube automount[10906]: lookup(ldap): failed to find valid query dn
Oct 18 09:17:37 danube automount[10906]: lookup_nss_read_master: auto.master not found, replacing '.' with '_'
Oct 18 09:17:37 danube automount[10906]: parse_server_string: lookup(ldap): Attempting to parse LDAP information from string "auto_master".
Oct 18 09:17:37 danube automount[10906]: parse_server_string: lookup(ldap): mapname auto_master
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): ldap authentication configured with the following options:
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, sasl_mech: (null)
Oct 18 09:17:37 danube automount[10906]: parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client principal: (null) credential cache: (null)
Oct 18 09:17:37 danube automount[10906]: parse_init: parse(sun): init gathered global options: (null)

I think the relevant line here is

Oct 18 09:17:37 danube automount[10906]: lookup(file): file map /etc/auto.master missing or not readable

When automount is run from the command line, the /var/log/messages file does not contain this line :
Code:
Oct 18 09:58:53 danube automount[12826]: Starting automounter version 5.0.7-54.el7, master map auto.master
Oct 18 09:58:53 danube automount[12826]: using kernel protocol version 5.02
Oct 18 09:58:53 danube automount[12826]: lookup_nss_read_master: reading master files auto.master
Oct 18 09:58:53 danube automount[12826]: parse_init: parse(sun): init gathered global options: (null)
Oct 18 09:58:53 danube automount[12826]: spawn_mount: mtab link detected, passing -n to mount
Oct 18 09:58:53 danube automount[12826]: spawn_umount: mtab link detected, passing -n to mount
Oct 18 09:58:53 danube automount[12826]: lookup_read_master: lookup(file): read entry /Users
Oct 18 09:58:53 danube automount[12826]: lookup_read_master: lookup(file): read entry /-
Oct 18 09:58:53 danube automount[12826]: lookup_read_master: lookup(file): read entry +auto.master
Oct 18 09:58:53 danube automount[12826]: lookup_nss_read_master: reading master files auto.master
Oct 18 09:58:53 danube automount[12826]: parse_init: parse(sun): init gathered global options: (null)
Oct 18 09:58:53 danube automount[12826]: lookup_nss_read_master: reading master ldap auto.master
Oct 18 09:58:53 danube automount[12826]: parse_server_string: lookup(ldap): Attempting to parse LDAP information from string "auto.master".
Oct 18 09:58:53 danube automount[12826]: parse_server_string: lookup(ldap): mapname auto.master
Oct 18 09:58:53 danube automount[12826]: parse_ldap_config: lookup(ldap): ldap authentication configured with the following options:
Oct 18 09:58:53 danube automount[12826]: parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, sasl_mech: (null)
Oct 18 09:58:53 danube automount[12826]: parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client principal: (null) credential cache: (null)
Oct 18 09:58:53 danube automount[12826]: parse_init: parse(sun): init gathered global options: (null)
Oct 18 09:58:53 danube automount[12826]: do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
Oct 18 09:58:53 danube automount[12826]: do_bind: lookup(ldap): ldap simple bind returned 0
Oct 18 09:58:53 danube automount[12826]: get_query_dn: lookup(ldap): query failed for (&(objectclass=nisMap)(nisMapName=auto.master)): No such object
Oct 18 09:58:53 danube automount[12826]: get_query_dn: lookup(ldap): query failed for (&(objectclass=automountMap)(ou=auto.master)): No such object
Oct 18 09:58:53 danube automount[12826]: get_query_dn: lookup(ldap): query failed for (&(objectclass=automountMap)(automountMapName=auto.master)): No such object
Oct 18 09:58:53 danube automount[12826]: lookup(ldap): failed to find valid query dn
Oct 18 09:58:53 danube automount[12826]: lookup(file): failed to read included master map auto.master
Oct 18 09:58:53 danube automount[12826]: master_do_mount: mounting /Users
Oct 18 09:58:53 danube automount[12826]: automount_path_to_fifo: fifo name /run/autofs.fifo-Users
Oct 18 09:58:53 danube automount[12826]: lookup_nss_read_map: reading map file /etc/auto.homes

Any idea why when run as a service, automount would not be able to read the auto.master file, but it can when run from command line ? I realize the second log excerpt also contains some error messages, but they don't seem to be affecting the functionality - the remote directories do get mounted correctly.

Not sure if it's relevant, but the permissions on the /etc/auto.master file are currently set to 600 and it is owned by root.

Thanks very much !

Bill


Contents of /etc/auto.master :
Code:
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc  /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#Maps for home folders
/Users  /etc/auto.homes
# Direct maps
/-      /etc/auto.direct

              
#/net   -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

Contents of /etc/auto.homes:

Code:
*    -fstype=nfs     gambo:/Data/Users/&


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #237
Difficulty: Easy
Paul Baran was the first to build a theoretical model for communication using packet switching.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Autofs not mount

Hi all, Please help! After my solaris 10 is rebooted, I found my autofs seems not mounting the file systems. I restart autofs service : #svcadm -v restart svc:/system/filesystem/autofs:default Action restart set for svc:/system/filesystem/autofs:default. But still... (1 Reply)
Discussion started by: Zaiwen Gong
1 Replies

2. Red Hat

NFS, AD, AutoFS

Here's my challenge. I have a RedHat7 machine running a statistical software package. It needs to NFS-mount directories from a Windows 2008R2 machine. The RH7 machine uses MSAD (Microsoft Active Directory) to handle authentication of people connecting via SSH. AD is on a separate 2008R2 machine.... (5 Replies)
Discussion started by: cjhilinski
5 Replies

3. Red Hat

Autofs issue

Hi I'm trying to use autofs to mount a directory structure. I have a directory with sub directories in it and all of them mounted on their respective filesystems /dbname /dev/mapper/vg_dbname-Home /dbname/oracle00 /dev/mapper/vg_dbname-Data00... (3 Replies)
Discussion started by: maverick_here
3 Replies

4. Red Hat

Automount through Autofs

I am trying to automount one of my NFS share to my client machine but it is not mounting here is the scenario : My server machine ip : 192.168.1.100 My client machine ip is : 192.168.1.102 on client machine i have configured the /etc/auto.master file : /share(My mount point) ... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

5. Solaris

Autofs

what are all the advantages of direct map and indirect map in 'AUTOFS' and which one is better for our usage (2 Replies)
Discussion started by: dinu
2 Replies

6. Red Hat

autofs error

Hi Friends, I am trying to configure autofs on rhel5.3 64bit to automount the nfs shares. It was working fine when i configured it first. After some days i can see its not working. i can see the below sepcified error on the log file. automount: rmdir_path: lstat of /NFS/test failed... (2 Replies)
Discussion started by: arumon
2 Replies

7. Solaris

autofs

hi tell me difference between direct automount and indirect automount. thanks you (1 Reply)
Discussion started by: sijocg
1 Replies

8. Solaris

autofs vs nfs

I've a sun server, 3 sun workstations and plan to do backup on certain directory in each workstations monthly. As it's only require to mount as NFS on those workstations once a month. So I plan to configure such requirement using autofs. What are the considerations need to take care in such... (4 Replies)
Discussion started by: KhawHL
4 Replies

9. AIX

Autofs

Hi Guys, Autofs works fine on AIX 5.2, but the same thing is not getting mounted automatically on AIX 5.3.. Is there ant difference for autofs confiiguration between 5.2 and 5.3 Thanks & Regards Manu (0 Replies)
Discussion started by: b_manu78
0 Replies

10. UNIX for Dummies Questions & Answers

RedHat autofs

hello all, I have a problem that just seem to show up. I was using autofs to mount home directory. It was working for about two week and now is just tsop working. I rebooted the erver and still not working. I can manually mount the directory but unable to mount via autofs. From the client I... (0 Replies)
Discussion started by: larryase
0 Replies

Featured Tech Videos