nfsserver heartbeat resource no longer takes options from /etc/sysconfig/nfs with resource-agents-3.9.5-54.el7_2.9.x86_64

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux Server 6 or 7 (with the High Availability Add on)
  • Pacemaker
  • nfsserver resource

Issue

  • When using pacemaker, with a nfsserver resource, after updating to resource-agents-3.9.5-12.el6, the /etc/sysconfig/nfs file is backed up and a new one is created. This prevents a certain number of options to be used.
  • When using the resource-agents-3.9.5-54.el7_2.9.x86_64 package the optins from /etc/sysconfig/nfs are overwritten by cluster which prevents use of custom options from /etc/sysconfig/nfs

Resolution

RHEL6

Bugzilla tracking the issue can be found here: Bug 1179412 - nfs options went missing in nfsserver after updating to 3.9.5-12.el6. The patch aims at merging the options provided to nfsserver resource into the existing /etc/sysconfig/nfs instead of replacing the whole file.
The resolution for Bugzilla was introduced in package resource-agents-3.9.5-24.el6.

RHEL7

Workaround:

  • nfsd_args can used to specify the parameters in the nfsserver resource options as below. Refer to options of nfsserver resource using command pcs resource describe nfsserver .
# pcs resource create nfsshare Filesystem device=/dev/my_vg/my_lv directory=/nfsshare fstype=ext4 nfsd_args="-G 10 -L 10" --group nfsgroup
# pcs resource update <nfsserver resource id> nfsd_args="-G 10 -L 10"

Root Cause

This is due to upstream patch nfsserver: Add options for explicitly setting nfs daemon ports, which brings new options to nfsserver, but removed the ability to use the /etc/sysconfig/nfs file in order to tune the nfsserver resource

Diagnostic Steps

  • Check if the /etc/sysconfig/nfs file has been overwritten and contain such a header :
AUTOGENERATED by nfsserver high availability resource-agent

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments