Bug 1096377
| Summary: | Pacemaker nfsserver resource agent doesn't set the rpc.statd TCPPORT or UDPPORT via config options | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | David Vossel <dvossel> |
| Component: | resource-agents | Assignee: | David Vossel <dvossel> |
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.1 | CC: | abeekhof, agk, cluster-maint, fdinitto, mnovacek |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | resource-agents-3.9.5-30.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1096376 | Environment: | |
| Last Closed: | 2015-03-05 08:00:11 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: | |
| Embargoed: | |||
| Bug Depends On: | 1096376 | ||
| Bug Blocks: | |||
|
Description
David Vossel
2014-05-09 18:54:49 UTC
There is an upstream pull request related to this issue. https://github.com/ClusterLabs/resource-agents/pull/430 I added the ability for the nfsserver resource agent to configure the ports used for all the nfs daemons.
I have verified that it is possible to pass the following parameters
lockd_udp_port, lockd_tcp_port, statd_outgoing_port, statd_port, mountd_port,
rquotad_port to the nfsserver resource agent with resource-agents-3.9.5-38.el7.x86_64
-----
[root@host-026 ~]# rpm -q resource-agents
resource-agents-3.9.5-38.el7.x86_64
[root@host-026 ~]# pcs resource describe nfsserver
ocf:heartbeat:nfsserver - Manages an NFS server
Nfsserver helps to manage the Linux nfs server as a failover-able resource in Linux-HA. It depends on Linux specific NFS implementation details,
so is considered not portable to other platforms yet.
Resource options:
nfs_init_script: The default init script shipped with the Linux distro. The nfsserver resource agent offloads the start/stop/monitor work to the
init script because the procedure to start/stop/monitor nfsserver varies on different Linux distro. In the event that this
option is not set, this agent will attempt to use an init script at this location, /etc/init.d/nfs, or detect a systemd unit-
file to use in the event that no init script is detected.
nfs_no_notify: Do not send reboot notifications to NFSv3 clients during server startup.
nfs_notify_foreground: Keeps the sm-notify attached to its controlling terminal and running in the foreground.
nfs_smnotify_retry_time: Specifies the length of sm-notify retry time, in minutes, to continue retrying notifications to unresponsive hosts. If
this option is not specified, sm-notify attempts to send notifications for 15 minutes. Specifying a value of 0 causes
sm-notify to continue sending notifications to unresponsive peers until it is manually killed.
nfs_ip: Comma separated list of floating IP addresses used to access the nfs service
nfsd_args: Specifies what arguments to pass to the nfs daemon on startup. View the rpc.nfsd man page for information on what arguments are
available. Note that setting this value will override all settings placed in the local /etc/sysconfig/nfs file.
lockd_udp_port: The udp port lockd should listen on. Note that setting this value will override all settings placed in the local
/etc/sysconfig/nfs file.
lockd_tcp_port: The tcp port lockd should listen on. Note that setting this value will override all settings placed in the local
/etc/sysconfig/nfs file.
statd_outgoing_port: The source port number sm-notify uses when sending reboot notifications. Note that setting this value will override all
settings placed in the local /etc/sysconfig/nfs file.
statd_port: The port number used for RPC listener sockets. Note that setting this value will override all settings placed in the local
/etc/sysconfig/nfs file.
mountd_port: The port number used for rpc.mountd listener sockets. Note that setting this value will override all settings placed in the local
/etc/sysconfig/nfs file.
rquotad_port: The port number used for rpc.rquotad. Note that setting this value will override all settings placed in the local
/etc/sysconfig/nfs file.
nfs_shared_infodir: The nfsserver resource agent will save nfs related information in this specific directory. And this directory must be able to
fail-over before nfsserver itself.
rpcpipefs_dir: The mount point for the sunrpc file system. Default is /var/lib/nfs/rpc_pipefs. This script will mount (bind) nfs_shared_infodir
on /var/lib/nfs/ (cannot be changed), and this script will mount the sunrpc file system on /var/lib/nfs/rpc_pipefs (default, can
be changed by this parameter). If you want to move only rpc_pipefs/ (e.g. to keep rpc_pipefs/ local) from default, please set this
value.
[root@host-026 ~]# pcs resource create le-nfs nfsserver \
lockd_udp_port=50001 \
lockd_tcp_port=50002 \
statd_outgoing_port=50003 \
statd_port=50004 \
mountd_port=50005 \
rquotad_port=50006
[root@host-026 ~]# pcs resource show le-nfs
Resource: le-nfs (class=ocf provider=heartbeat type=nfsserver)
Attributes: lockd_udp_port=50001 lockd_tcp_port=50002 \
statd_outgoing_port=50003 statd_port=50004 mountd_port=50005 rquotad_port=50006
Operations: start interval=0s timeout=40 (le-nfs-start-timeout-40)
stop interval=0s timeout=20s (le-nfs-stop-timeout-20s)
monitor interval=10 timeout=20s (le-nfs-monitor-interval-10)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0351.html |