From: Ian Kent <raven@themaw.net>
To: Jaskaran Singh <jsingh@winlab.rutgers.edu>
Cc: autofs@linux.kernel.org
Subject: Re: autofs hangs
Date: Sun, 13 Mar 2011 09:31:02 +0800 [thread overview]
Message-ID: <1299979862.2906.4.camel@perseus> (raw)
In-Reply-To: <4D77D0D6.1050508@winlab.rutgers.edu>
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
next prev parent reply other threads:[~2011-03-13 1:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 19:11 autofs hangs Jaskaran Singh
2011-03-13 1:31 ` Ian Kent [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-02-14 19:31 Autofs hangs Steve Thompson
2011-02-15 3:32 ` Ian Kent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1299979862.2906.4.camel@perseus \
--to=raven@themaw.net \
--cc=autofs@linux.kernel.org \
--cc=jsingh@winlab.rutgers.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.