public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Fredrik Tolf <fredrik@dolda2000.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Fredrik Tolf <fredrik@dolda2000.com>, linux-kernel@vger.kernel.org
Subject: Re: 2.6 nfsd troubles - stale filehandles
Date: Thu, 27 Nov 2003 14:49:49 +0100	[thread overview]
Message-ID: <16326.253.163939.9953@pc7.dolda2000.com> (raw)
In-Reply-To: <16325.14967.248703.483363@notabene.cse.unsw.edu.au>

Neil Brown writes:
 > On Wednesday November 26, fredrik@dolda2000.com wrote:
 > > Hi!
 > > 
 > > I'm running my NFSv3 server at home on a 2.6 kernel, and it seems to
 > > have some issues, to say the least. The clients sporadically get stale
 > > handle errors, and I don't really know how to debug it.
 > 
 > I'll see if I can help.
 > 
 > I suspect that if you add the "no_subtree_check" export option the
 > problem will go away.  If you could confirm that, and then set it back
 > to "subtree_check" so we can keep hunting, that would be good.

That actually does seem to have done the job. I thought subtree_check
only affected exports that aren't entire filesystems, but I guess it
does something to the filehandles anyway. Thank you, at least now I
have something to fall back upon if no other solution presents itself.

 > Next, some better tracing.
 > The Linux NFS client will never re-try a filehandle that it thinks is
 > stale, so the tracing you did doesn't actually show any access of the stale
 > filehandle. 

I see... I thought it would try to get a new filehandle to the same
file somehow.

 > So you need to have tracing on when the filehandle goes stale.
 > 
 > If you could:
 > 
 >   echo 2 >  /proc/sys/sunrpc/nfsd_debug 
 > 
 > and then try to create a stale file/directory, then the trace produced
 > by that could well be helpful.
 > 
 > Finally, when you have create a stale filehandle and got a good trace,
 > could you send it to me and include an
 >    ls -l
 > for the bad file/directory and every parent up to the export point.

I'll do my best, but I don't know how long it will take me. It is
extremely hard to predict when it will happen, so tracing the actual
fault won't be easy.

I'll post again when (and if) I manage to get a good trace.

Fredrik Tolf


  reply	other threads:[~2003-11-27 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-26 22:43 2.6 nfsd troubles - stale filehandles Fredrik Tolf
2003-11-26 23:42 ` Neil Brown
2003-11-27 13:49   ` Fredrik Tolf [this message]
2003-12-03  0:26     ` Fredrik Tolf
2003-12-04  3:14       ` Neil Brown
2003-12-04  3:31         ` Fredrik Tolf

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=16326.253.163939.9953@pc7.dolda2000.com \
    --to=fredrik@dolda2000.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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