From: Dan Halbert <halbert@everyzing.com>
To: autofs@linux.kernel.org
Subject: ENOENT on first reference to an automounted file
Date: Fri, 05 Oct 2007 17:14:14 -0400 [thread overview]
Message-ID: <4706A926.8090503@everyzing.com> (raw)
I have what looks like an automount race condition, and am very puzzled.
Any suggestions would be appreciated.
The first time I reference an automounted file, it is not there
(ENOENT). On the second and later try, the file is there. For instance:
$ cat /net/fileserver/fs/somefile
cat: /net/fileserver/fs/somefile: No such file or directory
$ cat /net/fileserver/fs/somefile
Contents of somefile.
I watched the log on fileserver, and the automount request is logged
seemingly immediately after the first "cat" prints its error.
This causes havoc with our applications, which expect files to be there
the first time they look for them.
I can repeat the problem after umounting the fileystem.
I see this problem on a CentOS 4.x system running their standard
autofs-4.1.3-199.3. I do NOT see it on CentOS 5.x, using
autofs-5.0.1-0.rc2.43.0.2. Instead I see a slight pause before "cat"
prints the contents of the file, presumably as the automount completes.
Both the CentOS4 and CentOS5 systems are completely up-to-date.
I also only see this problem with our Linux NFS servers (FC5 and FC6),
but not with a non-Fedora NAS server we have.
So I am not sure this is an automount problem, per se. Perhaps it's some
kind of NFS version problem?
The automount options include --ghost. At first I thought it might be
due to --ghost, because the very first time I reference the file, say
after a reboot or restarting autofs, I don't get an ENOENT. The first
time, the mountpoint dir does not yet exist. But removing --ghost from
the automount options does not seem to fix it.
Gory details about the automount maps are below.
Thanks for any help,
Dan Halbert
---------------
More details:
Our automount maps are stored in ldap. The entry in auto.master for
fileserver (for cn=/net/fileserver) is:
ldap:ou=auto.fileserver,ou=autofs,dc=example,dc=com --timeout=86400
--ghost -o
rw,hard,async,noatime,intr,retrans=4,timeo=100,rsize=8192,wsize=8192
The auto.fileserver is (for cn=*):
fileserver.example.com:/export/&
We are not using the fancy executable /net maps that come with these
systems.
next reply other threads:[~2007-10-05 21:14 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 21:14 Dan Halbert [this message]
2007-10-06 4:48 ` ENOENT on first reference to an automounted file Ian Kent
2007-10-08 15:15 ` Jeff Moyer
[not found] ` <47081453.7000709@everyzing.com>
2007-10-08 16:29 ` Jeff Moyer
2007-10-08 16:35 ` Dan Halbert
2007-10-08 16:43 ` Jeff Moyer
2007-10-08 17:20 ` Jeff Moyer
2007-10-08 17:58 ` Fedora kernel question (was Re: ENOENT on first reference to an automounted file) Jimmy Dorff
2007-10-08 18:14 ` Jeff Moyer
2007-10-09 3:16 ` Ian Kent
2007-10-08 18:00 ` ENOENT on first reference to an automounted file Dan Halbert
2007-10-09 3:11 ` Ian Kent
-- strict thread matches above, loose matches on Subject: below --
2007-10-18 10:36 Greg Earle
2007-10-19 8:02 ` Ian Kent
2007-10-19 13:20 ` Dan Halbert
2007-10-19 14:37 ` Ian Kent
2007-10-19 15:22 ` Jeff Moyer
2007-10-19 17:05 ` Dan Halbert
2007-10-19 17:21 ` Ian Kent
2007-11-03 15:27 ` Dan Halbert
2007-11-04 5:12 ` Ian Kent
[not found] <mailman.1.1192795201.25176.autofs@linux.kernel.org>
2007-10-20 1:28 ` ENOENT on first reference to an automounted file To: autofs@linux.kernel.org Greg Earle
2007-11-07 1:53 ` ENOENT on first reference to an automounted file Dan Halbert
[not found] <mailman.446.1194400455.3098.autofs@linux.kernel.org>
2007-11-17 21:25 ` Greg Earle
2007-11-18 2:46 ` 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=4706A926.8090503@everyzing.com \
--to=halbert@everyzing.com \
--cc=autofs@linux.kernel.org \
/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.