SUSE Linux Enterprise Server 12
NFSV4LEASETIME is being set in /etc/sysconfig/nfs. However, when NFS Server is started, it does not honor the setting.
Update nfs-utils (nfs-client and nfs-kernel-server packages) via the SLES 12 maintenance channel, to version 1.3.0-9.1 or higher. Optionally update nfs-doc as well (to the same version).
-------------------------------------------
Alternate solution if update cannot be performed:
Edit /etc/sysconfig/nfs and set BOTH of the following parameters to the same value (replace xx with the desired value). The latter parameter may need to be manually added:
NFSV4LEASETIME="xx"
NFSD_V4_GRACE="xx"
-------------------------------------------
A logic error existed in the script /etc/init.d/nfsserver. This has been corrected in the new nfs-* packages.
The desired logic is (in layman's terms):
If NFSV4LEASETIME is set, use that setting. If not, set NFSV4LEASETIME to the value of NFSD_V4_GRACE.
(NFSD_V4_GRACE is another parameter which can be set in /etc/sysconfig/nfs, for the same purpose. Both should be watched for, since different documentation sources mention each.)
Previously, an error in the script had the essential effect that the script would not properly handle one of these being set without the other.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.