ocf_heartbeat_exportfs
Manages NFS exports
- Provided by: resource-agents-extra (Version: 1:4.17.0-1ubuntu2)
- Source: resource-agents
- Report a bug
Manages NFS exports
exportfs [start | stop | monitor | meta-data | validate-all]
Exportfs uses the exportfs command to add/remove nfs exports. It does NOT manage the nfs server daemon. It depends on Linux specific NFS implementation details, so is considered not portable to other platforms yet.
clientspec
Note: it follows the format defined in "man exportfs". For example, in the use case to export the directory(-ies) for multiple subnets, please do config a dedicated primitive for each subnet CIDR ip address, and do not attempt to use multiple CIDR ip addresses in a space separated list, like in /etc/exports.
(required, string, no default)
options
(optional, string, no default)
directory
(required, string, no default)
fsid
(optional, string, no default)
unlock_on_stop
Note: Unlocking is only possible on Linux systems where /proc/fs/nfsd/unlock_filesystem exists and is writable. If your system does not fulfill this requirement (on account of having an nonrecent kernel, for example), you may set this parameter to 0 to silence the associated warning.
(optional, boolean, default 1)
wait_for_leasetime_on_stop
(optional, boolean, default 0)
rmtab_backup
To disable rmtab backups, set this parameter to the special string "none".
(optional, string, default ".rmtab")
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
The following is an example configuration for a exportfs resource using the crm(8) shell:
primitive p_exportfs ocf:heartbeat:exportfs \
params \
clientspec=string \
directory=string \
op monitor depth="0" timeout="20s" interval="10s"
The following is an example configuration for a exportfs resource using pcs(8)
pcs resource create p_exportfs ocf:heartbeat:exportfs \ clientspec=string \ directory=string \ op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)