linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Bram Vandoren <brambi@gmail.com>
Cc: Rick Macklem <rmacklem@uoguelph.ca>,
	Chuck Lever <chuck.lever@oracle.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: NFS client hangs after server reboot
Date: Fri, 12 Apr 2013 11:10:26 -0400	[thread overview]
Message-ID: <20130412151026.GL7081@fieldses.org> (raw)
In-Reply-To: <CACQjR_Arj61HJ-QrKfccg=r38555U-43uwhqtwzrN3nd1uUO-Q@mail.gmail.com>

On Fri, Apr 12, 2013 at 11:19:39AM +0200, Bram Vandoren wrote:
> > Just to clarify/correct what I posted yesterday...
> > The boot instance is the first 4 bytes of the clientid and the first
> > 4 bytes of the stateid.other. (Basically, for the FreeBSD server, a
> > stateid.other is just the clientid + 4 additional bytes that identify
> > which stateid related to the clientid that it is.)
> >
> > Those first 4 bytes should be the same for all clientids/stateid.others
> > issued during a server boot cycle. Any clientid/stateid.other with a
> > different first 4 bytes will get the NFS4ERR_STALE_CLIENTID/STATEID
> > reply.
> 
> Thanks for the clarification. I tried to reproduce the problem using a
> test setup but so far I didn't succeed. It's clearly not a problem
> that happens all the time. Also not all the clients lock up in the
> production system. Only a fraction of them (~ 1 in 10).
> 
> I checked the packets again. The Stateid in a read operation is:
> 9a:b6:5d:51:bc:07:00:00:24:23:00:00
> The client id:
> af:c1:63:51:8b:01:00:00

Yeah, so 9a:b6:5d:51 and af:c1:63:51 if you take them as little-endian
integers look like pretty reasonable recent dates in unix time, so that
agrees with Rick's description of the FreeBSD server's stateid and
clientid.

So that does sound like the client failing to toss an old stateid after
renew?

--b.

> 
> It seems we ended up with a stale stateid but with a valid client id.
> 
> I am going to do some more tests with mutiple clients to try to
> reproduce the problem. If that doesn't succeed I try to get the data
> from the production server when we have to reboot it next time (but
> this can take a while).
> 
> Thanks,
> Bram
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2013-04-12 15:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 15:51 NFS client hangs after server reboot Bram Vandoren
2013-04-09 19:08 ` J. Bruce Fields
2013-04-10 19:33   ` Chuck Lever
2013-04-10 23:23     ` Rick Macklem
2013-04-11 23:15     ` Rick Macklem
2013-04-12  9:19       ` Bram Vandoren
2013-04-12 15:10         ` J. Bruce Fields [this message]
     [not found]         ` <CACQjR_CcKwHU8sMrmQ5YfgV5dbuiMLRRqBkDRQEVq2yjGEuzmg@mail.gmail.com>
2013-04-12 15:14           ` Chuck Lever
2013-05-28 12:31             ` Bram Vandoren
2013-05-28 19:23               ` Chuck Lever
2013-05-28 22:06                 ` Rick Macklem
2013-05-28 23:30               ` Rick Macklem
2013-05-29  1:04                 ` Chuck Lever
2013-05-29  1:13                   ` Chuck Lever
2013-05-29 12:49                     ` Rick Macklem
2013-05-30 11:09                       ` Bram Vandoren
2013-05-30  0:24                     ` Rick Macklem
2013-05-30  0:31                     ` Rick Macklem
2013-05-30 11:20                       ` Bram Vandoren
2013-05-30 11:04                   ` Bram Vandoren
2013-05-30 11:55                     ` Rick Macklem
2013-05-31 16:35                       ` Bram Vandoren
2013-05-31 23:24                         ` Rick Macklem
2013-08-28 13:39                           ` William Dauchy

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=20130412151026.GL7081@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=brambi@gmail.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=rmacklem@uoguelph.ca \
    /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;
as well as URLs for NNTP newsgroup(s).