From: "J. Bruce Fields" <bfields@fieldses.org>
To: Harry Edmon <harry@uw.edu>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Odd problem with Stale NFS file handle - NFS v3 server under 2.6.35.x
Date: Tue, 24 Aug 2010 18:58:57 -0400 [thread overview]
Message-ID: <20100824225857.GA7283@fieldses.org> (raw)
In-Reply-To: <4C7407D2.1040304@uw.edu>
On Tue, Aug 24, 2010 at 10:56:34AM -0700, Harry Edmon wrote:
> I am having a problem getting odd ESTALE (Stale NFS file handle)
> errors. The server and client are both amd64 architecture. I am
> runnning a simple csh script on the client with the following:
>
> if (! -e /home/disk/data/gempak/upperair/latest ) then
> mkdir /home/disk/data/gempak/upperair/latest
> endif
>
> The script randomly comes back with:
>
> mkdir: cannot create directory
> `/home/disk/data/gempak/model/latest': File exists
Why is it "model" here and "upperair" in the above?
>
> When I do an strace I am seeing the following when it fails:
>
> 20745 stat("/home/disk/data/gempak/model/latest", 0x7fff56ed9580) = -1 ESTALE (Stale NFS file handle)
>
> ...
>
> 20751 mkdir("/home/disk/data/gempak/model/latest", 0777) = -1 EEXIST (File exists)
Could you give a more complete description of the code that's running?
(For example: how is "latest" being removed, and how do you know that
"latest" isn't created after checking whether it exists but before the
mkdir?)
--b.
>
> The kernel version of the client does not matter (I have tried
> 2.6.34.5 and 2.6.35.3). But the server kernel does matter. It
> occurs with 2.6.35 and 2.6.35.3. It does not with 2.6.34.5.
>
> The ESTALE only occurs with "stat" and "lstat" in the scripts I have tried. Attached is my configuration file from the server. The mount on the client is:
>
> imist2:/home/data on /home/disk/data type nfs (rw,noatime,intr,proto=tcp,addr=192.168.1.12)
>
>
> Any ideas?
next prev parent reply other threads:[~2010-08-24 22:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 17:56 Odd problem with Stale NFS file handle - NFS v3 server under 2.6.35.x Harry Edmon
2010-08-24 22:58 ` J. Bruce Fields [this message]
2010-08-24 23:10 ` Harry Edmon
2010-08-24 23:38 ` J. Bruce Fields
2010-08-25 2:16 ` Harry Edmon
2010-08-25 10:53 ` Christoph Hellwig
2010-08-25 16:49 ` Harry Edmon
2010-08-25 22:09 ` Harry Edmon
2010-08-26 10:45 ` Christoph Hellwig
2010-08-26 18:55 ` Harry Edmon
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=20100824225857.GA7283@fieldses.org \
--to=bfields@fieldses.org \
--cc=harry@uw.edu \
--cc=linux-nfs@vger.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.