From: Kris Vassallo <kris@linuxcertified.com>
To: Frank Steiner <fsteiner-mail@bio.ifi.lmu.de>
Cc: Neil Brown <neilb@cse.unsw.edu.au>, nfs@lists.sourceforge.net
Subject: Re: Stale File handles keep coming back
Date: Wed, 04 May 2005 15:48:01 -0700 [thread overview]
Message-ID: <1115246881.2523.14.camel@localhost.localdomain> (raw)
In-Reply-To: <42786148.1000201@bio.ifi.lmu.de>
[-- Attachment #1: Type: text/plain, Size: 3241 bytes --]
On Tue, 2005-05-03 at 22:44, Frank Steiner wrote:
> Kris Vassallo wrote
>
> > So in reference to this bug
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=150759
> > it seems as if ridding the system of the journal by instead using ext2
> > is fixing the problem? I can't tell if that bug has anything to do with
> > providing ESTALE errors but it seems to have the same effect where you
> > can't see files even though they are there.
>
> Yes, sounds very similar...
>
>
> >
> > Has anyone tried using the journal_data_ordered option? I am not sure
> > there is a way to do that in reiser but I know it can be done with ext3.
>
> According to the man page, "data=ordered" is the default. Have you
> explicitely changed it?
Bah! I changed it, no good. I did do it on a file system that was
already mounted but after I made the changes with tune2fs I did a mount
-o remount and then a exportfs -r, I think that should have made it take
effect.
>
> I couldn't find any option to change this in reiserfs...
I don't remember who, but someone was using a suse kernel which was a
bit older than the fedora kernel I am using (2.6.11-1.14_FC3smp). I
found something interesting in the changelog on kernel.org that would
make me think that this issue was resolved in 2.6.11 but since I am
using 2.6.11 it either isn't fixed or the fedora team patched something
and broke the nfs fix.
Take a look at the following. It would be interesting to see if the
2.6.11 release on Suse fixes this problem (although I don't know if this
has been released yet).
http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.11
And I quote "<trond.myklebust@fys.uio.no>
NFSv2/v3/v4: ESTALE should not be a permanent condition on directories.
Although it usually means that someone has deleted a file on the server,
the ESTALE error may also indicate that the sysadmin has used exportfs to
deny our client access to the server. Most NFS implementations therefore
consider it a non-permanent condition, and allow inodes to "recover" when
the sysadmin re-enables access.
If, however, you want to work with broken servers, like unfsd, that reuse
filehandles for new files after the original file gets deleted, then
"recovery" is impossible, since it may be that the filehandle now points
to a different file. Note that this is broken server behaviour that may
happen even without us ever seeing the ESTALE error.
In order to minimize (but we can never eliminate entirely) this race
condition on unfsd servers, Linux has traditionally made ESTALE a
permanent condition on all filehandles except the root filehandle.
The problem is that if we apply this strict staleness criterion to
directories (particularly so for he current directory), then all
processes will need to re-walk the path starting from the mount point,
in order to recover from the sysadmin intervention case. As this is not
usual on other *NIX implementations, and may in any case be undermined by
caching rules etc, this is being seen as a usability problem.
This patch makes ESTALE a non-permanent condition on directories, but
preserves the current behaviour for non-directories.
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
"
-Kris
[-- Attachment #2: Type: text/html, Size: 3881 bytes --]
next prev parent reply other threads:[~2005-05-04 22:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 21:07 Stale File handles keep coming back Kris Vassallo
2005-04-26 12:27 ` Neil Brown
2005-04-26 22:22 ` Kris Vassallo
2005-04-27 2:42 ` Neil Brown
2005-04-29 7:01 ` Frank Steiner
2005-04-29 8:00 ` Frank Steiner
2005-04-29 14:08 ` Trond Myklebust
2005-04-30 13:15 ` Frank Steiner
2005-04-30 16:29 ` Trond Myklebust
2005-05-02 6:24 ` Frank Steiner
2005-05-03 10:45 ` Frank Steiner
2005-05-03 11:11 ` Frank Steiner
2005-05-05 0:15 ` Kris Vassallo
2005-05-06 6:38 ` Frank Steiner
2005-05-09 6:04 ` Frank Steiner
2005-04-29 14:03 ` Frank Steiner
2005-05-03 21:21 ` Kris Vassallo
2005-05-04 5:44 ` Frank Steiner
2005-05-04 22:48 ` Kris Vassallo [this message]
2005-05-04 23:06 ` Trond Myklebust
2005-05-12 1:01 ` Kris Vassallo
2005-05-12 1:14 ` Neil Brown
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=1115246881.2523.14.camel@localhost.localdomain \
--to=kris@linuxcertified.com \
--cc=fsteiner-mail@bio.ifi.lmu.de \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs@lists.sourceforge.net \
/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.