LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-12-2018, 04:39 PM   #1
shawarden
LQ Newbie
 
Registered: Jun 2018
Posts: 7

Rep: Reputation: Disabled
Inconsistent Automount (v5.0.7-83.el7) across RHEL 7.5 cluster


I am having an issue with automount on a small university cluster.

Specifically the headnode doesn't mount anything listed in the auto.cifs file, but the compute nodes do without issue.

We're using samba for ads authentication and, sshd.conf allowing, I can log in using the domain accounts on the head and compute nodes without issue using those accounts.

The following files are identical across the head and compute nodes:

/etc/samba/smb.conf:
Code:
[global]
	workgroup = STAFF
	password server = STAFF.SCHOOL.EDU
	realm = STAFF.SCHOOL.EDU
	security = ads
	idmap config * : backend = tdb
	idmap config * : range = 10000-19999
	idmap config STAFF : backend = rid
	idmap config STAFF : range = 1000000-1999999
	idmap config STUDENT : backend = rid
	idmap config STUDENT : range = 2000000-2999999
	template shell = /bin/bash
	kerberos method = secrets and keytab
	winbind use default domain = true
	winbind offline logon = true
	server string = Samba Server Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	client use spnego = yes
	encrypt passwords = yes
	restrict anonymous = 2
	wins support = no
	dns proxy = yes
	load printers = no
	local master = no
	preferred master = no
	os level = 0
	log level = 3
	cups options = raw
	winbind nss info = rfc2307
	winbind enum users  = yes
	winbind enum groups = yes
	winbind refresh tickets = Yes
	winbind separator = +
	host msdfs = no
/etc/nsswitch.conf:
Code:
passwd:     files sss winbind
shadow:     files sss winbind
group:      files sss winbind

hosts:      files dns myhostname

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files sss

netgroup:   files sss

publickey:  nisplus

automount:  files
aliases:    files nisplus
/etc/autofs.conf:
default values

/etc/auto.master:
Code:
+dir:/etc/auto.master.d
+auto.master
/-      auto.cifs        --timeout=345600        --ghost
/etc/auto.cifs:
Code:
/mnt/cifs/pathology/ \
 -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER \
 ://storage.storage.cifs.school.edu/pathology

/mnt/cifs/Clinical/ \
 -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER \
 ://storage.storage.cifs.school.edu/Clinical\$

/mnt/cifs/CSDG/ \
 -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER \
 ://storage.storage.cifs.school.edu/CSDG

/mnt/cifs/dgg/ \
 -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER \
 ://storage.storage.cifs.school.edu/dgg

/mnt/cifs/biochem/ \
 -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER \
 ://storage.storage.cifs.school.edu/biochem
I'm not sure what else could be affecting it.

The nodes work perfectly to mount the drive:
Code:
] automount -dfv
Starting automounter version 5.0.7-83.el7, master map auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
lookup_nss_read_master: reading master dir /etc/auto.master.d
lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /run/autofs.fifo--
lookup_nss_read_map: reading map files auto.hcs
do_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
mounted direct on /mnt/cifs/dgg/ with timeout 345600, freq 86400 seconds
do_mount_autofs_direct: mounted trigger /mnt/cifs/dgg/
mounted direct on /mnt/cifs/pathology/ with timeout 345600, freq 86400 seconds
do_mount_autofs_direct: mounted trigger /mnt/cifs/pathologys/
mounted direct on /mnt/cifs/biochem/ with timeout 345600, freq 86400 seconds
do_mount_autofs_direct: mounted trigger /mnt/cifs/biochem/
remount_active_mount: trying to re-connect to mount /mnt/cifs/CSDG/
mounted direct on /mnt/cifs/CSDG/ with timeout 345600, freq 86400 seconds
lookup_mount: lookup(file): looking up /mnt/cifs/CSDG/
lookup_mount: lookup(file): /mnt/cifs/CSDG/ -> -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=$USER,cruid=$UID,gid=$USER  ://storage.cifs.school.edu/CSDG
parse_mount: parse(sun): expanded entry: -fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=staffXYZ,cruid=1042047,gid=staffXYZ  ://storage.cifs.school.edu/CSDG
parse_mount: parse(sun): gathered options: fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=staffXYZ,cruid=1042047,gid=staffXYZ
parse_mount: parse(sun): dequote("://storage.cifs.school.edu/CSDG") -> ://storage.cifs.school.edu/CSDG
parse_mount: parse(sun): core of entry: options=fstype=cifs,rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=staffXYZ,cruid=1042047,gid=staffXYZ, loc=://storage.cifs.school.edu/CSDG
sun_mount: parse(sun): mounting root /mnt/cifs/CSDG/, mountpoint /mnt/cifs/CSDG/, what //storage.cifs.school.edu/CSDG, fstype cifs, options rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=staffXYZ,cruid=1042047,gid=staffXYZ
do_mount: //storage.cifs.school.edu/CSDG /mnt/cifs/CSDG/ type cifs options rw,noserverino,nounix,file_mode=0770,dir_mode=0770,multiuser,sec=krb5,user=staffXYZ,cruid=1042047,gid=staffXYZ using module generic
re-connected to /mnt/cifs/CSDG/
remount_active_mount: re-connected to mount /mnt/cifs/CSDG/
mounted direct on /mnt/cifs/Clinical/ with timeout 345600, freq 86400 seconds
do_mount_autofs_direct: mounted trigger /mnt/cifs/Clinical/
st_ready: st_ready(): state = 0 path /-
but on the headnode it's just:
Code:
] automount -dfv
Starting automounter version 5.0.7-83.el7, master map auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
lookup_nss_read_master: reading master dir /etc/auto.master.d
lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /run/autofs.fifo--
lookup_nss_read_map: reading map files auto.cifs
do_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
st_ready: st_ready(): state = 0 path /-
It's not even looking at the /etc/auto.cifs file and I've no idea why.

These file are rsync-ed cluster-wide and look to me to be completely identical.

Are there other files that have an impact on automount under this configuration?

Many thanks.

Last edited by shawarden; 06-14-2018 at 02:35 PM.
 
Old 06-17-2018, 07:02 PM   #2
shawarden
LQ Newbie
 
Registered: Jun 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Resolved.

The share list file /etc/auto.cifs can't be executable.

Nice that there's no error or comment about it in the debug output.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to upgrade to 3.10.0-693.21.1.el7 from 3.10.0-514.21.1.el7 Honest Abe Linux - Newbie 8 05-03-2018 09:17 AM
Disable automount on RHEL 6.1 Curiosity42 Red Hat 5 08-25-2016 01:02 PM
Wifi issues on Lenovo G580 running RHEL 7 OS version 3.10.0-123.el7.x86_64 Dave17 Red Hat 27 10-15-2014 11:22 PM
RHEL 6 - Disable Gnome DVD Automount mijohnst Red Hat 1 11-18-2012 06:43 PM
Need assistence in seting up of RHEL cluster on RHEL 5.0 cj_cheema Linux - Server 3 06-16-2009 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration