* Autofs hangs
@ 2011-02-14 19:31 Steve Thompson
2011-02-15 3:32 ` Ian Kent
0 siblings, 1 reply; 4+ messages in thread
From: Steve Thompson @ 2011-02-14 19:31 UTC (permalink / raw)
To: autofs
CentOS 5.5, 32- and 64-bit. Maps from LDAP. I upgraded recently (as part
of a system-wide yum update) from autofs-5.0.1-0.rc2.143.el5_5.4 to
autofs-5.0.1-0.rc2.143.el5_5.6, and ever since I have had a MASSIVE number
of automount hangs (several per day across 170 systems). Nothing is
logged, and the automount deamon is hung solid; only a SIGKILL and a
restart can recover the daemon (and, if I wasn't already logged in, a
power cycle is required - all accounts use automounted NFS home
directories). Reading the Changelog, I see these changes:
- add mutex to serialize access to mount module handle in parse module
- dont check null cache on expire
- fix null cache race
- fix cache_init() on source re-read
- fix negative cache included map lookup
I don't know which of these to point the finger at, but I have also
noticed many messages similar to:
automount<pid>]: update_negative_cache: key "<pid>" not found in map.
all of which are incorrect. Really need a fix for this asap - we're
almost dead in the water.
-smt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Autofs hangs
2011-02-14 19:31 Autofs hangs Steve Thompson
@ 2011-02-15 3:32 ` Ian Kent
0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2011-02-15 3:32 UTC (permalink / raw)
To: Steve Thompson; +Cc: autofs
On Mon, 2011-02-14 at 14:31 -0500, Steve Thompson wrote:
> CentOS 5.5, 32- and 64-bit. Maps from LDAP. I upgraded recently (as part
> of a system-wide yum update) from autofs-5.0.1-0.rc2.143.el5_5.4 to
> autofs-5.0.1-0.rc2.143.el5_5.6, and ever since I have had a MASSIVE number
> of automount hangs (several per day across 170 systems). Nothing is
> logged, and the automount deamon is hung solid; only a SIGKILL and a
> restart can recover the daemon (and, if I wasn't already logged in, a
> power cycle is required - all accounts use automounted NFS home
> directories). Reading the Changelog, I see these changes:
>
> - add mutex to serialize access to mount module handle in parse module
> - dont check null cache on expire
> - fix null cache race
> - fix cache_init() on source re-read
> - fix negative cache included map lookup
>
> I don't know which of these to point the finger at, but I have also
> noticed many messages similar to:
>
> automount<pid>]: update_negative_cache: key "<pid>" not found in map.
>
> all of which are incorrect. Really need a fix for this asap - we're
> almost dead in the water.
I can't see any obvious problems
Can you get a gdb backtrace of a couple of the hangs and post them?
In particular I need the output of "thr a a bt".
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
* autofs hangs
@ 2011-03-09 19:11 Jaskaran Singh
2011-03-13 1:31 ` Ian Kent
0 siblings, 1 reply; 4+ messages in thread
From: Jaskaran Singh @ 2011-03-09 19:11 UTC (permalink / raw)
To: autofs
[-- Attachment #1.1: Type: text/plain, Size: 5276 bytes --]
I am running into an issue here, I using autofs with ldap to mount /home
directories. This is my os version Description: Ubuntu 10.10 Release: 10.10
my /etc/auto.master is commented out.
in /etc/nsswitch.conf last line is
automount: ldap
I can automount my home directory from the NFS server using LDAP with
out an issue. But after a few minutes of inactivity, when i try to
login to the machine and run my application it hangs. My application
tries to read /etc/config.txt but rather than reading /etc/config.txt it
tries to mount /home/etc/config.txt , i can see that in the syslog which
is attached below.
If i were to login and move to another location besides /home/*, the
command will run fine for example if I cd from/home to any other part of
the file system like /tmp or /var/log.
Mar 9 14:02:02 console automount[23227]: do_bind: lookup(ldap): ldap
simple bind returned 0
Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap):
searching for
"(&(objectclass=automount)(|(cn=repository)(cn=/)(cn=\2A)))" under
"ou=auto.home,dc=domain,dc=org"
Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap):
getting first entry for cn="repository"
Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap): got
answer, but no entry for
(&(objectclass=automount)(|(cn=repository)(cn=/)(cn=\2A)))
Mar 9 14:02:02 console automount[23227]: key "repository" not found in
map source(s).
Mar 9 14:02:02 console automount[23227]: ioctl_send_fail: token = 548
Mar 9 14:02:02 console automount[23227]: failed to mount /home/repository
Mar 9 14:02:02 console automount[23227]: handle_packet: type = 3
Mar 9 14:02:02 console automount[23227]:
handle_packet_missing_indirect: token 549, name repository, request pid
23381
Mar 9 14:02:02 console automount[23227]: attempting to mount entry
/home/repository
Mar 9 14:02:02 console automount[23227]: lookup_mount: lookup(ldap):
looking up repository
Mar 9 14:02:02 console automount[23227]: ioctl_send_fail: token = 549
Mar 9 14:02:02 console automount[23227]: failed to mount /home/repository
Mar 9 14:02:19 console automount[23227]: st_expire: state 1 path /home
Mar 9 14:02:19 console automount[23227]: expire_proc: exp_proc =
3057638256 path /home
Mar 9 14:02:19 console automount[23227]: expire_proc_indirect: expire
/home/jsingh
Mar 9 14:02:19 console automount[23227]: 1 remaining in /home
Mar 9 14:02:19 console automount[23227]: expire_cleanup: got thid
3057638256 path /home stat 3
Mar 9 14:02:19 console automount[23227]: expire_cleanup: sigchld: exp
3057638256 finished, switching from 2 to 1
Mar 9 14:02:19 console automount[23227]: st_ready: st_ready(): state =
2 path /home
Mar 9 14:03:34 console automount[23227]: st_expire: state 1 path /home
Mar 9 14:03:34 console automount[23227]: expire_proc: exp_proc =
3057638256 path /home
Mar 9 14:03:34 console automount[23227]: expire_proc_indirect: expire
/home/jsingh
Mar 9 14:03:34 console automount[23227]: 1 remaining in /home
Mar 7 17:04:39 console automount[1105]: lookup_one: lookup(ldap): got
answer, but no entry for (&(objectclass=automount)(|(cn=etc)(cn=/)(cn=\2A)))
Mar 7 17:04:39 console automount[1105]: key "etc" not found in map
source(s).
Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 2
Mar 7 17:04:39 console automount[1105]: failed to mount /home/etc
Mar 7 17:04:39 console automount[1105]: handle_packet: type = 3
Mar 7 17:04:39 console automount[1105]: handle_packet_missing_indirect:
token 3, name repository, request pid 2011
Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 3
Mar 7 17:04:39 console automount[1105]: failed to mount /home/repository
Mar 7 17:04:39 console automount[1105]: handle_packet: type = 3
Mar 7 17:04:39 console automount[1105]: handle_packet_missing_indirect:
token 4, name repository, request pid 2011
Mar 7 17:04:39 console automount[1105]: attempting to mount entry
/home/repository
Mar 7 17:04:39 console automount[1105]: lookup_mount: lookup(ldap):
looking up repository
Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 4
Mar 7 17:04:39 console automount[1105]: failed to mount /home/repository
Mar 7 17:05:34 console automount[1105]: handle_packet: type = 3
Mar 7 17:05:34 console automount[1105]: handle_packet_missing_indirect:
token 5, name etc, request pid 2126
Mar 7 17:05:34 console automount[1105]: attempting to mount entry /home/etc
Mar 7 17:05:34 console automount[1105]: lookup_mount: lookup(ldap):
looking up etc
Mar 7 17:05:34 console automount[1105]: ioctl_send_fail: token = 5
Mar 7 17:05:34 console automount[1105]: failed to mount /home/etc
autofs:
Installed: 5.0.5-0ubuntu2
Candidate: 5.0.5-0ubuntu2
Version table:
*** 5.0.5-0ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/
<http://us.archive.ubuntu.com/ubuntu/> maverick/main i386 Packages
100 /var/lib/dpkg/status
The defaut autofs contains the
TIMEOUT=3000
LOGGING="debug"
MOUNT_NFS_DEFAULT_PROTOCOL=4
LDAP_URI="ldap://ldapserver.domain.org/"
SEARCH_BASE="ou=auto.master,dc=domain,dc=org"
--
Jaskaran Singh
Systems Administrator
Winlab, Rutgers University
Technology Centre of NJ
671 Route 1 South
North Brunswick, NJ 08902-3390
Desk: 732-932-6857 x 654
Fax: 732-932-6882
[-- Attachment #1.2: Type: text/html, Size: 7281 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: autofs hangs
2011-03-09 19:11 autofs hangs Jaskaran Singh
@ 2011-03-13 1:31 ` Ian Kent
0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2011-03-13 1:31 UTC (permalink / raw)
To: Jaskaran Singh; +Cc: autofs
On Wed, 2011-03-09 at 14:11 -0500, Jaskaran Singh wrote:
> I am running into an issue here, I using autofs with ldap to
> mount /home directories. This is my os version Description: Ubuntu
> 10.10 Release: 10.10
> my /etc/auto.master is commented out.
> in /etc/nsswitch.conf last line is
> automount: ldap
> I can automount my home directory from the NFS server using LDAP with
> out an issue. But after a few minutes of inactivity, when i try to
> login to the machine and run my application it hangs. My application
> tries to read /etc/config.txt but rather than reading /etc/config.txt
> it tries to mount /home/etc/config.txt , i can see that in the syslog
> which is attached below.
> If i were to login and move to another location besides /home/*, the
> command will run fine for example if I cd from/home to any other part
> of the file system like /tmp or /var/log.
Somehow you need to get an strace when the access to /etc/config.txt is
happening, that might help.
>
> Mar 9 14:02:02 console automount[23227]: do_bind: lookup(ldap): ldap
> simple bind returned 0
> Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap):
> searching for "(&(objectclass=automount)(|(cn=repository)(cn=/)(cn=
> \2A)))" under "ou=auto.home,dc=domain,dc=org"
> Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap):
> getting first entry for cn="repository"
> Mar 9 14:02:02 console automount[23227]: lookup_one: lookup(ldap):
> got answer, but no entry for
> (&(objectclass=automount)(|(cn=repository)(cn=/)(cn=\2A)))
> Mar 9 14:02:02 console automount[23227]: key "repository" not found
> in map source(s).
> Mar 9 14:02:02 console automount[23227]: ioctl_send_fail: token = 548
> Mar 9 14:02:02 console automount[23227]: failed to
> mount /home/repository
> Mar 9 14:02:02 console automount[23227]: handle_packet: type = 3
> Mar 9 14:02:02 console automount[23227]:
> handle_packet_missing_indirect: token 549, name repository, request
> pid 23381
> Mar 9 14:02:02 console automount[23227]: attempting to mount
> entry /home/repository
> Mar 9 14:02:02 console automount[23227]: lookup_mount: lookup(ldap):
> looking up repository
> Mar 9 14:02:02 console automount[23227]: ioctl_send_fail: token = 549
> Mar 9 14:02:02 console automount[23227]: failed to
> mount /home/repository
> Mar 9 14:02:19 console automount[23227]: st_expire: state 1
> path /home
> Mar 9 14:02:19 console automount[23227]: expire_proc: exp_proc =
> 3057638256 path /home
> Mar 9 14:02:19 console automount[23227]: expire_proc_indirect:
> expire /home/jsingh
> Mar 9 14:02:19 console automount[23227]: 1 remaining in /home
> Mar 9 14:02:19 console automount[23227]: expire_cleanup: got thid
> 3057638256 path /home stat 3
> Mar 9 14:02:19 console automount[23227]: expire_cleanup: sigchld: exp
> 3057638256 finished, switching from 2 to 1
> Mar 9 14:02:19 console automount[23227]: st_ready: st_ready(): state
> = 2 path /home
> Mar 9 14:03:34 console automount[23227]: st_expire: state 1
> path /home
> Mar 9 14:03:34 console automount[23227]: expire_proc: exp_proc =
> 3057638256 path /home
> Mar 9 14:03:34 console automount[23227]: expire_proc_indirect:
> expire /home/jsingh
> Mar 9 14:03:34 console automount[23227]: 1 remaining in /home
>
>
>
> Mar 7 17:04:39 console automount[1105]: lookup_one: lookup(ldap): got
> answer, but no entry for (&(objectclass=automount)(|(cn=etc)(cn=/)(cn=
> \2A)))
> Mar 7 17:04:39 console automount[1105]: key "etc" not found in map
> source(s).
> Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 2
> Mar 7 17:04:39 console automount[1105]: failed to mount /home/etc
> Mar 7 17:04:39 console automount[1105]: handle_packet: type = 3
> Mar 7 17:04:39 console automount[1105]:
> handle_packet_missing_indirect: token 3, name repository, request pid
> 2011
>
> Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 3
> Mar 7 17:04:39 console automount[1105]: failed to
> mount /home/repository
> Mar 7 17:04:39 console automount[1105]: handle_packet: type = 3
> Mar 7 17:04:39 console automount[1105]:
> handle_packet_missing_indirect: token 4, name repository, request pid
> 2011
> Mar 7 17:04:39 console automount[1105]: attempting to mount
> entry /home/repository
> Mar 7 17:04:39 console automount[1105]: lookup_mount: lookup(ldap):
> looking up repository
> Mar 7 17:04:39 console automount[1105]: ioctl_send_fail: token = 4
> Mar 7 17:04:39 console automount[1105]: failed to
> mount /home/repository
>
> Mar 7 17:05:34 console automount[1105]: handle_packet: type = 3
> Mar 7 17:05:34 console automount[1105]:
> handle_packet_missing_indirect: token 5, name etc, request pid 2126
> Mar 7 17:05:34 console automount[1105]: attempting to mount
> entry /home/etc
> Mar 7 17:05:34 console automount[1105]: lookup_mount: lookup(ldap):
> looking up etc
> Mar 7 17:05:34 console automount[1105]: ioctl_send_fail: token = 5
> Mar 7 17:05:34 console automount[1105]: failed to mount /home/etc
>
> autofs:
> Installed: 5.0.5-0ubuntu2
> Candidate: 5.0.5-0ubuntu2
> Version table:
> *** 5.0.5-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386
> Packages
> 100 /var/lib/dpkg/status
>
> The defaut autofs contains the
> TIMEOUT=3000
> LOGGING="debug"
> MOUNT_NFS_DEFAULT_PROTOCOL=4
> LDAP_URI="ldap://ldapserver.domain.org/"
> SEARCH_BASE="ou=auto.master,dc=domain,dc=org"
>
>
> --
> Jaskaran Singh
> Systems Administrator
> Winlab, Rutgers University
> Technology Centre of NJ
> 671 Route 1 South
> North Brunswick, NJ 08902-3390
>
> Desk: 732-932-6857 x 654
> Fax: 732-932-6882
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-13 1:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-14 19:31 Autofs hangs Steve Thompson
2011-02-15 3:32 ` Ian Kent
-- strict thread matches above, loose matches on Subject: below --
2011-03-09 19:11 autofs hangs Jaskaran Singh
2011-03-13 1:31 ` Ian Kent
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.