Bug 1398397

Summary: Storage Admin Guide suggests setting LOCKD_TCPPORT and LOCKD_UDPPORT in /etc/sysconfig/nfs instead of /etc/modprobe.d/lockd.conf
Product: Red Hat Enterprise Linux 7 Reporter: Milan Navratil <mnavrati>
Component: doc-Storage_Administration_GuideAssignee: Milan Navratil <mnavrati>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.4CC: aandre, rhel-docs, steved
Target Milestone: rcKeywords: Documentation, EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-22 23:52:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milan Navratil 2016-11-24 16:59:31 UTC
Document URL: 

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/nfs-serverconfig.html

Section Number and Name: 

8.7. NFS Server Configuration

Donald Sarratt wrote:

The section suggests setting LOCKD_TCPPORT and LOCKD_UDPPORT in /etc/sysconfig/nfs to specify the ports used by the nlockmgr service.

This doesn't seem to work for me, as mentioned in /etc/sysconfig/nfs itself I had to set the parameters in /etc/modprobe.d/lockd.conf instead. Should the documentation be updated to reflect this?

Comment 1 Milan Navratil 2016-11-24 17:06:24 UTC
Hi Steve,

Could you please have a look at section 8.7. NFS Server Configuration and let me know what we should change based on the customer's feedback?

Thank you very much.

Comment 3 Steve Dickson 2016-12-05 17:22:48 UTC
(In reply to Milan Navratil from comment #1)
> Hi Steve,
> 
> Could you please have a look at section 8.7. NFS Server Configuration and
> let me know what we should change based on the customer's feedback?
> 
> Thank you very much.

Yeap that has been changed when we moved to the upstream systemd services.

/etc/sysconfig/nfs now states:
#
#
# To set lockd kernel module parameters please see
#  /etc/modprobe.d/lockd.conf
#

and /etc/modprobe.d/lockd.conf

#
# Set the NFS lock manager grace period. n is measured in seconds. 
#options lockd nlm_grace_period=90
#
# Set the TCP port that the NFS lock manager should use. 
# port must be a valid TCP port value (1-65535).
#options lockd nlm_tcpport
#
# Set the UDP port that the NFS lock manager should use.
# port must be a valid UDP port value (1-65535).
#options lockd nlm_udpport
#
# Set the maximum number of outstanding connections 
#options lockd nlm_max_connections=1024
#
# Set the default time value for the NFS lock manager
# in seconds. Default is 10 secs (min 3 max 20)
#options lockd nlm_timeout=10
#
# Choose whether to record the caller_name or IP address
# this peer in the local rpc.statd's database.
#options lockd nsm_use_hostnames=0