table of contents
other versions
conflicting packages
OCF_HEARTBEAT_NFSSER(7) | OCF resource agents | OCF_HEARTBEAT_NFSSER(7) |
NAME¶
ocf_heartbeat_nfsserver - Manages an NFS serverSYNOPSIS¶
nfsserver
[start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
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.SUPPORTED PARAMETERS¶
nfs_init_scriptThe 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. (optional, string, default
/etc/init.d/nfsserver)
nfs_notify_cmd
The tool to send out NSM reboot notification.
Failover of nfsserver can be considered as rebooting to different machines.
The nfsserver resource agent use this command to notify all clients about the
happening of failover. (optional, string, default
/sbin/sm-notify/sbin/sm-notify)
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. (required, string, no
default)
nfs_ip
The floating IP address used to access the nfs
service (required, string, no default)
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations): startStarts the resource. Suggested minimum
timeout: 40.
stop
Stops the resource. Suggested minimum timeout:
20s.
monitor
Performs a detailed status check. Suggested
minimum timeout: 20s. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal
use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource
configuration. Suggested minimum timeout: 30.
EXAMPLE¶
The following is an example configuration for a nfsserver resource using the crm(8) shell:primitive example_nfsserver ocf:heartbeat:nfsserver \ params \ nfs_shared_infodir= string \ nfs_ip= string \ op monitor depth="0" timeout="20s" interval="10"
SEE ALSO¶
AUTHOR¶
Linux-HA contributors (see the resource agent source for information about individual authors)02/03/2011 | resource-agents 1.0.3 |