table of contents
OCF_HEARTBEAT_MPATHP(7) | OCF resource agents | OCF_HEARTBEAT_MPATHP(7) |
NAME¶
ocf_heartbeat_mpathpersist - Manages SCSI persistent reservations on multipath devices
SYNOPSIS¶
mpathpersist [start | stop | monitor | promote | demote | meta-data | validate-all]
DESCRIPTION¶
This resource agent manages SCSI persistent reservations on multipath devices. "mpathpersist" from multipath-tools is used, please see its documentation. Should be used as multistate (Promotable) resource Unpromoted registers its node id ("crm_node -i") as reservation key ( --param-sark ) on each device in the params "devs" list. Promoted reserves all devices from params "devs" list with reservation "--prout-type" value from "reservation_type" parameter. Please see man sg_persist(8) and mpathpersist(8) for reservation_type details.
SUPPORTED PARAMETERS¶
binary
(optional, string, default "mpathpersist")
devs
(required, string, no default)
required_devs_no
(optional, string, default "1")
reservation_type
(optional, string, default "1")
master_score_base
(optional, string, default "0")
master_score_dev_factor
(optional, string, default "100")
master_score_delay
(optional, string, default "30")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
promote
demote
notify
stop
monitor (Unpromoted role)
monitor (Promoted role)
meta-data
validate-all
EXAMPLE CRM SHELL¶
The following is an example configuration for a mpathpersist resource using the crm(8) shell:
primitive p_mpathpersist ocf:heartbeat:mpathpersist \
params \
devs=string \
op monitor depth="0" timeout="20s" interval="29s" role="Unpromoted" \
op monitor depth="0" timeout="20s" interval="60s" role="Promoted"
ms ms_mpathpersist p_mpathpersist \
meta notify="true" interleave="true"
EXAMPLE PCS¶
The following is an example configuration for a mpathpersist resource using pcs(8)
pcs resource create p_mpathpersist ocf:heartbeat:mpathpersist \
devs=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="29s" role="Unpromoted" \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s" role="Promoted" promotable
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
10/05/2024 | resource-agents 4.15.1-2 |