SUSE Support

Here When You Need Us

SLES 12 /etc/sysconfig/nfs is not honoring NFSV4LEASETIME

This document (7016918) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12

Situation

NFSV4LEASETIME is being set in /etc/sysconfig/nfs.  However, when NFS Server is started, it does not honor the setting.

Resolution

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"
-------------------------------------------

Cause

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.

Disclaimer

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.

  • Document ID:7016918
  • Creation Date: 19-Oct-2015
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.