table of contents
OCF_HEARTBEAT_EXPORT(7) | OCF resource agents | OCF_HEARTBEAT_EXPORT(7) |
NAME¶
ocf_heartbeat_exportfs - Manages NFS exports
SYNOPSIS¶
exportfs [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
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.
SUPPORTED PARAMETERS¶
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")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
EXAMPLE CRM SHELL¶
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"
EXAMPLE PCS¶
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"
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
10/05/2024 | resource-agents 4.15.1-2 |