All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <mailman.446.1194400455.3098.autofs@linux.kernel.org>]
* Re: ENOENT on first reference to an automounted file
@ 2007-10-18 10:36 Greg Earle
  2007-10-19  8:02 ` Ian Kent
  0 siblings, 1 reply; 22+ messages in thread
From: Greg Earle @ 2007-10-18 10:36 UTC (permalink / raw)
  To: autofs

Dan, Ian, Jeff:

I work at a large U.S. Government Lab and after updating some of our
Ops systems from RHEL 4 Update 4 to Update 5, all Hell broke loose
as we have been plagued by this bug ever since - we are a Sun and
Red Hat shop, and our software architecture is heavily dependent upon
lots of automounts.  (I can very easily replicate it in our own
environment with a simple test script that usually provokes the
race condition in about 10-15 minutes, tops.)

I am getting the impression from the bug reports (and posts in
this thread) that this bug is *not* fixed in 2.6.9-55.0.9; and might
not be until some point in the future when 2.6.9-61 is available via
"up2date".  Am I correct in that assumption?

If so, we may have little choice but to rollback to Update 4 by
doing complete reinstalls from scratch (groan).  Is there any
info on when this bug first crept in, and is Update 4 - with
autofs-4.1.3-187 - safe to roll back to?  The natives are restless,
and they've already shown up outside my office door with torches
and pitchforks.  I've got a lot of unhappy Flight Projects reps
on my hands.  We need to make a command decision here Real Soon Now.

Any illumination much appreciated.

	- Greg Earle

^ permalink raw reply	[flat|nested] 22+ messages in thread
* ENOENT on first reference to an automounted file
@ 2007-10-05 21:14 Dan Halbert
  2007-10-06  4:48 ` Ian Kent
  0 siblings, 1 reply; 22+ messages in thread
From: Dan Halbert @ 2007-10-05 21:14 UTC (permalink / raw)
  To: autofs

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.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2007-11-18  2:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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
  -- strict thread matches above, loose matches on Subject: below --
2007-10-05 21:14 Dan Halbert
2007-10-06  4:48 ` 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 18:00           ` Dan Halbert
2007-10-09  3:11             ` 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.