OCF_HEARTBEAT_MPATHP(7) | OCF resource agents | OCF_HEARTBEAT_MPATHP(7) |
ocf_heartbeat_mpathpersist - Manages SCSI persistent reservations on multipath devices
mpathpersist [start | stop | monitor | promote | demote | meta-data | validate-all]
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 (Master/Slave) resource Slave registers its node id ("crm_node -i") as reservation key ( --param-sark ) on each device in the params "devs" list. Master 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.
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")
This resource agent supports the following actions (operations):
start
promote
demote
notify
stop
monitor (Slave role)
monitor (Master role)
meta-data
validate-all
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="Slave" \
op monitor depth="0" timeout="20s" interval="60s" role="Master"
ms ms_mpathpersist p_mpathpersist \
meta notify="true" interleave="true"
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="Slave" \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s" role="Master" promotable
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
12/14/2020 | resource-agents UNKNOWN |