table of contents
OCF_HEARTBEAT_SG_PER(7) | OCF resource agents | OCF_HEARTBEAT_SG_PER(7) |
NAME¶
ocf_heartbeat_sg_persist - Manages SCSI PERSISTENT RESERVATIONS
SYNOPSIS¶
sg_persist [start | stop | monitor | promote | demote | meta-data | validate-all]
DESCRIPTION¶
This resource agent manages SCSI PERSISTENT RESERVATIONS. "sg_persist" from sg3_utils 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-rk ) on each device in the "devs" list. Master reserves all devices from "devs" list with reservation "--prout-type" value from "reservation_type" parameter.
SUPPORTED PARAMETERS¶
binary
(optional, string, default "sg_persist")
devs
(required, string, no default)
required_devs_nof
(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 sg_persist resource using the crm(8) shell:
primitive p_sg_persist ocf:heartbeat:sg_persist \
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_sg_persist p_sg_persist \
meta notify="true" interleave="true"
EXAMPLE PCS¶
The following is an example configuration for a sg_persist resource using pcs(8)
pcs resource create p_sg_persist ocf:heartbeat:sg_persist \
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)
11/10/2024 | resource-agents 4.16.0-1 |