Red Hat Bugzilla – Bug 665387
nfs-utils enhancement: allow setting the grace period for NFSv4.
Last modified: 2011-01-21 17:54:55 EST
Created attachment 470432 [details]
patch to /etc/init.d/nfs
Description of problem:
There is no place where to set the nfs grace period.
In order to change the grace perriod you have to:
# /etc/init.d/nfs stop
# echo $NFSD_GRACE >/proc/fs/nfsd/nfsv4gracetime
# /etc/init.d/nfs start
Just set $NFSD_GRACE in /etc/sysconfig/nfs.
I'll attach a patch implementing the proposed solution.
in order to test it, just add in /etc/sysconfig/nfs:
+# Set the Grace time, valid value are integers from 10 to 3599, default is 90.
changing the value of NFSD_GRACE as you need.
nfs-utils-1.2.3-4.fc14 has been submitted as an update for Fedora 14.
Thanks, it seems to work for me.
nfs-utils-1.2.3-4.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update nfs-utils'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/nfs-utils-1.2.3-4.fc14
nfs-utils-1.2.3-4.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.