Bug 142856 - 'ghosted' autofs shares disappear
'ghosted' autofs shares disappear
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeffrey Moyer
Brock Organ
:
: 196028 (view as bug list)
Depends On:
Blocks: 156320
  Show dependency treegraph
 
Reported: 2004-12-14 13:18 EST by Issue Tracker
Modified: 2007-11-30 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version: RHSA-2005-663
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-28 10:39:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix the "no such file or directory" errors when using the --ghost option (1.14 KB, patch)
2005-06-09 14:29 EDT, Jeffrey Moyer
no flags Details | Diff

  None (edit)
Description Issue Tracker 2004-12-14 13:18:47 EST
Escalated to Bugzilla from IssueTracker
Comment 3 Jeffrey Moyer 2004-12-15 13:46:05 EST
autofs version?
kernel version?
output from lsmod?
Comment 7 Jeffrey Moyer 2005-01-31 08:16:32 EST
The sysreport does not contain the autofs version.  At least, I don't know where
to look for it if it does.  As such, I'm leaving this bug in NEEDINFO.
Comment 9 Jeffrey Moyer 2005-02-11 14:11:12 EST
Please include the auto.master and related maps for this.  This sounds
related to the map update work I'm doing.
Comment 15 Jeffrey Moyer 2005-04-05 16:17:11 EDT
The customer says they enabled debug, and the logs didn't say anything
interesting.  Make sure they are capturing all of the debug messages.

Add an entry to /etc/syslog.conf that looks like so:

*.*    /var/log/debug

Then restart syslogd.

Presumably the customer knows how to enable debugging for autofs.  You simply
append a --debug to the line in auto.master that you want to debug.

Restart autofs.  When the problem occurs, have them send the logs, whether or
not they think the logs show anything interesting.
Comment 20 Jeffrey Moyer 2005-06-09 14:27:30 EDT
I have reproduced this in my environment.  The reproducer follows:

auto.master:
/segfault       /etc/auto.segfault --ghost --timeout=4

auto.segfault:
multi   /       segfault:/export/multi \
        /foo    segfault:/export/multi/thefoodir

Start the automounter, and then run this script:

while true;
do
        cat /segfault/multi/foo/bar > /dev/null
        if [ $? -ne 0 ]; then
                tail -n 200 /var/log/messages > /tmp/failurelog.`date`
                echo "Failed!"
                exit 1
        fi
        sleep 4
done

The file, bar, is actually a copy of a kernel.  I did this just to give the file
a reasonable size:

-rw-r--r--    1 root     root         1.4M Jun  9  2005 /segfault/multi/foo/bar

The script will exit and print an error when we receive no such file or
directory.  At that point, an ls of /segfault/multi/foo will fail.  An ls of
/segfault/multi will then remount the whole tree, and subsequent accesses will
succeed.

I have a kernel patch for this which fixes the problem in my environment.  I
will attach it shortly.
Comment 21 Jeffrey Moyer 2005-06-09 14:29:27 EDT
Created attachment 115270 [details]
Fix the "no such file or directory" errors when using the --ghost option

Can we get the customer to test this patch, please?  Leaving in NEEDINFO,
pending test results.
Comment 22 Ernie Petrides 2005-06-17 18:54:10 EDT
A fix for this problem has just been committed to the RHEL3 U6
patch pool this evening (in kernel version 2.4.21-32.9.EL).
Comment 31 Red Hat Bugzilla 2005-09-28 10:39:30 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-663.html
Comment 32 Jeffrey Moyer 2006-07-05 17:06:23 EDT
*** Bug 196028 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.