All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tim" <supertimothy@web.de>
To: <linux-nfs@vger.kernel.org>
Subject: nfsv4 and gracetime / leasetime grace_period
Date: Tue, 13 Sep 2011 11:43:37 +0200	[thread overview]
Message-ID: <000801cc71f9$9cc45650$d64d02f0$@web.de> (raw)

Hi all!

First, just a question to make clear, with nfsv4 rpc.statd and nfslock are
not needed ? The Clients are not notified with sm-notify in case of a reboot
- is this correct?
But how does the notification of clients work with nfsv4?


The problem I can see is the same as described here:
http://www.digipedia.pl/usenet/thread/18978/22974/

So we have different values:

/proc/fs/nfsd/nfsv4gracetime
/proc/fs/nfsd/nfsv4leasetime
/proc/sys/fs/nfs/nlm_grace_period

If I set graceteime and grace_period to a low value, I get a faster
failover. But what do they stand for and do I need nfsv4leasetime to ?
If I set them all to 10 seconds, could that be "dangerous" (assume the
server can handle the additional load)?

I guess there isn't an easy way to delete all the locks on serverside and
explicitely tell the clients: Hey, the server has rebooted, please get a new
lock for all your files. :-)
I just would like to make failover a bit faster. 

Thanks a lot!
Tim


             reply	other threads:[~2011-09-13  9:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13  9:43 Tim [this message]
2011-09-13 12:44 ` nfsv4 and gracetime / leasetime grace_period J. Bruce Fields
2011-09-13 23:18   ` supertimothy
2011-09-14  2:37     ` J. Bruce Fields
2011-09-14  6:27       ` AW: " Tim
2011-09-14 21:34         ` 'J. Bruce Fields'

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='000801cc71f9$9cc45650$d64d02f0$@web.de' \
    --to=supertimothy@web.de \
    --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.