LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-08-2012, 09:27 PM   #1
kaszask
LQ Newbie
 
Registered: Aug 2012
Distribution: Linux Mint, CentOS
Posts: 3

Rep: Reputation: Disabled
autofs hangs, CentOS6.2


Hello,

To access some scientific software, I have been running a script on a remote share accessed through autofs and automount. Everything was running fine for months when this script started to hang and it looks like automount is the problem.

When trying to run the script I try to "execute" a symbolic link pointing to the real script at the remote location that automount should mount but this is what happens:

Starting autofs :
Code:
service autofs start
dmesg output :
Code:
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
/var/log/messages:
Code:
automount[16308]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
Then I try to execute the script, command seems to hang, prompt returns only when I hit <CTRL+C>.

dmesg output at this point :
Code:
automount[15825]: segfault at 28 ip 00007f285e149862 sp 00007f28619e1960 error 4 in lookup_hosts.so[7f285e140000+1c000]
/var/log/messages:
Code:
automount[16806]: rpc_get_exports_proto
kernel: automount[16818]: segfault at 28 ip 00007fab18299862 sp 00007fab1b12f960 error 4 in lookup_hosts.so[7fab18290000+1c000]
abrtd: Directory 'ccpp-2012-08-08-22:13:17-16806' creation detected
abrt[16819]: Saved core dump of pid 16806 (/usr/sbin/automount) to /var/spool/abrt/ccpp-2012-08-08-22:13:17-16806 (24166400 bytes)
9-10 seconds later some more appears:

Code:
abrtd: Sending an email...
abrtd: Email was sent to: root@localhost
abrtd: Duplicate: UUID
abrtd: DUP_OF_DIR: /var/spool/abrt/ccpp-2012-07-21-16:35:37-2125
abrtd: Problem directory is a duplicate of /var/spool/abrt/ccpp-2012-07-21-16:35:37-2125
Deleting problem directory ccpp-2012-08-08-22:13:17-16806 (dup of ccpp-2012-07-21-16:35:37-2125)
Any help will be greatly appreciated!
 
Old 08-09-2012, 02:43 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,566

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Sounds like a host lookup issue related to one of the mounts you have setup. Can you do a "host servername" on all the servers you have listed in your autofs config files without error?
 
Old 08-09-2012, 02:45 PM   #3
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,566

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Also what does your /etc/nsswitch.conf file look like?
 
Old 08-09-2012, 09:56 PM   #4
kaszask
LQ Newbie
 
Registered: Aug 2012
Distribution: Linux Mint, CentOS
Posts: 3

Original Poster
Rep: Reputation: Disabled
autofs config files are mostly unmodified we only added the following to the auto.master:
Code:
/net  /etc/auto.net
auto.net modification is adding "nonstrict" to the opts= list

network shares (should) get mounted when issuing a <command>, executable created as below:
Code:
ln -s /hosts/server.somefed.gov/subdirs/command /usr/bin/command
host server.somefed.gov returns an IP address

also, I can mount manually the "server.somefed.gov/subdirs" directory using a simple mount command:
Code:
mount /hosts/server.somefed.gov/subdirs /mnt

/etc/nsswitch.conf:
Code:
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#       nisplus                 Use NIS+ (NIS version 3)
#       nis                     Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       hesiod                  Use Hesiod for user lookups
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns
Any ideas ? Thanks!

ps : sorry for the altered domain name(s), working for a federal research institute I don't want to have my rear kicked because some IT security guy thought I posted sensitive info.
 
Old 08-10-2012, 04:48 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,566

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
I'm stumped, I thought it might have been due to you using nis as opposed to DNS for lookups but you already have that set. I'll do some more thinking and bounce it off a few people but hopefully someone can post something behind me to help get you there. Your files look correct.
 
1 members found this post helpful.
Old 08-17-2012, 08:00 AM   #6
kaszask
LQ Newbie
 
Registered: Aug 2012
Distribution: Linux Mint, CentOS
Posts: 3

Original Poster
Rep: Reputation: Disabled
Downgrading autofs-5.0.5-54.el6.x86_64 to autofs-5.0.1-0.rc2.163.el5.x86_64 solved the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum error for in centos6.0 zcmsgk Linux - Server 2 04-04-2012 10:45 PM
Centos6 .2 and glusterfs-3.2 prayag_pjs Linux - Newbie 4 04-02-2012 01:40 PM
Win7 - VirtualBox - CentOS6 jtt89 Linux - Networking 1 11-20-2011 04:23 PM
Win7 - VirtualBox - CentOS6 jtt89 Linux - Virtualization and Cloud 1 11-20-2011 04:22 PM
How to use Samba in centos6 arnold1070 Linux - Newbie 9 10-06-2011 11:04 PM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration