From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: "Sven Köhler" <skoehler@upb.de>
Cc: linux-kernel@vger.kernel.org, nfs@lists.sourceforge.net
Subject: Re: why do i get "Stale NFS file handle" for hours?
Date: Sat, 04 Sep 2004 22:02:24 -0400 [thread overview]
Message-ID: <1094349744.13791.128.camel@lade.trondhjem.org> (raw)
In-Reply-To: <413A7119.2090709@upb.de>
På lau , 04/09/2004 klokka 21:51, skreiv Sven Köhler:
> I agree, but you simply admit that the NFS client doesn't seem to know,
> when the server was restart. The simpliest thing i can imagine, is that
> the NFS server generates a random integer-value at start, and transmits
> it along with ESTALE. If the integer-value is different from the
> integer-value the server send while mounting the FS, than the kernel has
> to remount it transparently. This is a simple thing so that a client can
> safely determine, if the server has been restarted, or not, and it only
> adds 4 byte to some nfs-packets.
No.... The simplest thing is for the server to actually abide by the
RFCs and not generate filehandles that change on reboot.
NFSv4 is the ONLY version of the protocol that actually supports the
concept of filehandles that have a finite lifetime.
> In my case, if the nfs directory is mounted to /mnt/nfs, i can't even do
> a simple "cd /mnt/nfs" without getting the "stale nfs handle" - even if
> i use a different shell. I always thought, that the "cd /mnt/nfs" should
> work, since the shell will aquire a new handle, but it doesn't work :-(
It won't if the root filehandle is broken too. That is the standard way
of telling the NFS client that the administrator has revoked our access
to the filesystem.
The solution is simple here: fix the broken server...
Cheers,
Trond
next prev parent reply other threads:[~2004-09-05 2:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-05 1:06 Sven Köhler
2004-09-05 1:39 ` Trond Myklebust
2004-09-05 1:51 ` Sven Köhler
2004-09-05 2:02 ` Trond Myklebust [this message]
2004-09-05 2:23 ` Sven Köhler
2004-09-05 3:01 ` Trond Myklebust
2004-09-05 8:17 ` Tim Connors
2004-09-05 8:59 ` Florian Weimer
2004-09-05 9:02 ` Tim Connors
2004-09-05 16:20 ` Mike Jagdis
2004-09-06 1:32 ` Tim Connors
2004-09-05 13:18 ` Sven Köhler
2004-09-05 20:10 ` Trond Myklebust
2004-09-06 7:47 ` Kalin KOZHUHAROV
2004-09-06 9:57 ` David Woodhouse
2004-09-06 15:59 ` Trond Myklebust
2004-09-07 0:55 ` [NFS] " Greg Banks
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=1094349744.13791.128.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=linux-kernel@vger.kernel.org \
--cc=nfs@lists.sourceforge.net \
--cc=skoehler@upb.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®