Changing the grace period
J. Bruce Fields
bfields at fieldses.org
Mon Jun 4 13:01:24 EDT 2007
On Mon, Jun 04, 2007 at 12:27:08PM -0400, J. Bruce Fields wrote:
> On Mon, Jun 04, 2007 at 11:55:29AM -0400, Avishay Traeger wrote:
> > I have a few questions about changing the grace period (I want to make
> > it shorter for testing purposes since 90 seconds is annoying).
> >
> > 1. Is there any way to do this without modifying the code? From what I
> > can see, there isn't.
>
> If I remember correctly, the way it's supposed to work is you write to
> /proc/fs/nfsd/nfsv4leasetime, then restart nfsd, and the new lease time
> will take effect on the restart.
(And what you probably actually want to do is put an
echo 10 >/proc/fs/nfsd/nfsv4leasetime
right before the rpc.nfsd call in your nfs server init script.)
--b.
More information about the NFSv4
mailing list