From: "J. Bruce Fields" <bfields@fieldses.org>
To: Mi Jinlong <mijinlong@cn.fujitsu.com>
Cc: "Trond.Myklebust" <trond.myklebust@fys.uio.no>,
Chuck Lever <chuck.lever@oracle.com>,
NFSv3 list <linux-nfs@vger.kernel.org>
Subject: Re: [RFC] Should lockd get into grace_period when statd start but not stop?
Date: Tue, 16 Mar 2010 12:56:21 -0400 [thread overview]
Message-ID: <20100316165621.GE4411@fieldses.org> (raw)
In-Reply-To: <4B9F57ED.4090100@cn.fujitsu.com>
On Tue, Mar 16, 2010 at 06:05:33PM +0800, Mi Jinlong wrote:
>
>
> J. Bruce Fields :
> > On Fri, Mar 12, 2010 at 05:42:18PM +0800, Mi Jinlong wrote:
> >>
> >> J. Bruce Fields:
> >>> Our current NFS implementation just isn't designed to be able to shut
> >>> down some components while leaving others running.
> >> Really? But the lockd started with nfs service start, but not nfslock service.
> >> And, lockd can't stop with statd at the same time.
> >> Sometimes, the lockd will not synchronous with statd. Maybe this problem is a good example.
> >
> > I'm sorry, I still don't understand.
> >
> > Please take a look at section 3.1, 3.2, and 3.3 of the nfs-utils README
> > file. That describes the order in which servers should be started and
> > stopped.
>
> Maybe that's my problem.
> The status of lockd and statd, when testing.
>
> lockd statd
> | | <== service nfslock stop
> get KILL signal stopd ^
> and get into grace_period | |
I believe you also need to shut down nfsd here.
--b.
> | | | more than grace_period time
> | | v
> | | <== service nfslock start
> normal state |
> | start Client receive SM_NOTIFY and reclaime lock,
> | | but out of grace_period time.
> v v
>
> As above, after nfslock service start, client cannot reclaime lock success.
prev parent reply other threads:[~2010-03-16 16:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 10:22 [RFC] Should lockd get into grace_period when statd start but not stop? Mi Jinlong
2010-03-10 18:24 ` J. Bruce Fields
2010-03-11 1:02 ` Mi Jinlong
2010-03-11 15:58 ` J. Bruce Fields
2010-03-12 9:42 ` Mi Jinlong
2010-03-12 23:08 ` J. Bruce Fields
2010-03-16 10:05 ` Mi Jinlong
2010-03-16 16:56 ` J. Bruce Fields [this message]
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=20100316165621.GE4411@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=mijinlong@cn.fujitsu.com \
--cc=trond.myklebust@fys.uio.no \
/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