Man page - ocf_heartbeat_sg_persist(7)
Packages contains this manual
- ocf_heartbeat_nagios(7)
- ocf_heartbeat_symlink(7)
- ocf_heartbeat_aws-vpc-route53(7)
- ocf_heartbeat_rabbitmq-cluster(7)
- ocf_heartbeat_rabbitmq-server-ha(7)
- ocf_heartbeat_mariadb(7)
- ocf_heartbeat_aliyun-vpc-move-ip(7)
- ocf_heartbeat_ids(7)
- ocf_heartbeat_jboss(7)
- ocf_heartbeat_conntrackd(7)
- ocf_heartbeat_ovsmonitor(7)
- ocf_heartbeat_sfex(7)
- ocf_heartbeat_osceip(7)
- ocf_heartbeat_powervs-subnet(7)
- ocf_heartbeat_lxc(7)
- ocf_heartbeat_nfsnotify(7)
- ocf_heartbeat_postfix(7)
- ocf_heartbeat_openstack-info(7)
- ocf_heartbeat_iface-bridge(7)
- ocf_heartbeat_scsi2reservation(7)
- ocf_heartbeat_nginx(7)
- ocf_heartbeat_dovecot(7)
- ocf_heartbeat_vdo-vol(7)
- ocf_heartbeat_portblock(7)
- ocf_heartbeat_vsftpd(7)
- ocf_heartbeat_ocivip(7)
- ocf_heartbeat_lxd-info(7)
- ocf_heartbeat_nfsserver(7)
- ocf_heartbeat_sg_persist(7)
- ocf_heartbeat_slapd(7)
- ocf-tester(8)
- ocf_heartbeat_dhcpd(7)
- ocf_heartbeat_iface-vlan(7)
- ocf_heartbeat_oraasm(7)
- ocf_heartbeat_rsyncd(7)
- ocf_heartbeat_exportfs(7)
- ocf_heartbeat_gcp-vpc-move-vip(7)
- ocf_heartbeat_docker-compose(7)
- ocf_heartbeat_storage-mon(7)
- ocf_heartbeat_gcp-vpc-move-route(7)
- ocf_heartbeat_apache(7)
- ocf_heartbeat_podman(7)
- ocf_heartbeat_gcp-ilb(7)
- ocf_heartbeat_db2(7)
- ocf_heartbeat_gcp-pd-move(7)
- ocf_heartbeat_dummypy(7)
- ocf_heartbeat_nvmet-port(7)
- ocf_heartbeat_named(7)
- ocf_heartbeat_kamailio(7)
- ocf_heartbeat_azure-lb(7)
- ocf_heartbeat_mysql-proxy(7)
- ocf_heartbeat_oracle(7)
- ocf_heartbeat_ethmonitor(7)
- ocf_heartbeat_pound(7)
- ocf_heartbeat_ipsec(7)
- ocf_heartbeat_aws-vpc-move-ip(7)
- ocf_heartbeat_vmware(7)
- ocf_heartbeat_azure-events-az(7)
- ocf_heartbeat_rsyslog(7)
- ocf_heartbeat_gcp-vpc-move-ip(7)
- ocf_heartbeat_clvm(7)
- ocf_heartbeat_mdraid(7)
- ocf_heartbeat_rkt(7)
- ocf_heartbeat_openstack-cinder-volume(7)
- ocf_heartbeat_corosync-qnetd(7)
- ocf_heartbeat_fio(7)
- ocf_heartbeat_nvmet-namespace(7)
- ocf_heartbeat_jira(7)
- ocf_heartbeat_docker(7)
- ocf_heartbeat_openstack-floating-ip(7)
- ocf_heartbeat_pgsql(7)
- ocf_heartbeat_pingd(7)
- ocf_heartbeat_zabbixserver(7)
- ocf_heartbeat_garbd(7)
- ocf_heartbeat_varnish(7)
- ocf_heartbeat_openstack-virtual-ip(7)
- ocf_heartbeat_syslog-ng(7)
- ocf_heartbeat_azure-events(7)
- ocf_heartbeat_mpathpersist(7)
- ocf_heartbeat_pgagent(7)
- ocf_heartbeat_proftpd(7)
- ocf_heartbeat_iscsi(7)
- ocf_heartbeat_anything(7)
- ocf_heartbeat_smb-share(7)
- ocf_heartbeat_awsvip(7)
- ocf_heartbeat_awseip(7)
- sfex_init(8)
- ocf_heartbeat_mysql(7)
- ocf_heartbeat_oralsnr(7)
- ocf_heartbeat_galera(7)
- ocf_heartbeat_iface-macvlan(7)
- ocf_heartbeat_redis(7)
- ocf_heartbeat_nvmet-subsystem(7)
- ocf_heartbeat_crypt(7)
- ocf_heartbeat_tomcat(7)
- ocf_heartbeat_asterisk(7)
- ocf_heartbeat_dnsupdate(7)
- ocf_heartbeat_machine-info(7)
- ocf_heartbeat_lvmlockd(7)
- ocf_heartbeat_minio(7)
apt-get install resource-agents
Manual
OCF_HEARTBEAT_SG_PER
NAMESYNOPSIS
DESCRIPTION
SUPPORTED PARAMETERS
SUPPORTED ACTIONS
EXAMPLE CRM SHELL
EXAMPLE PCS
SEE ALSO
AUTHOR
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
The name of the binary that manages the resource.
(optional, string, default "sg_persist")
devs
Device list. Multiple devices can be listed with blank space as separator. Shell wildcards are allowed.
(required, string, no default)
required_devs_nof
Minimum number of "working" devices from device list 1) existing 2) "sg_persist --read-keys $device" works (Return code 0) resource actions "start","monitor","promote" and "validate-all" return "$OCF_ERR_INSTALLED" if the actual number of "working" devices is less then "required_devs_nof". resource actions "stop" and "demote" tries to remove reservations and registration keys from all working devices, but always return "$OCF_SUCCESS"
(optional, string, default "1")
reservation_type
reservation type
(optional, string, default "1")
master_score_base
master_score_base value "master_score_base" value is used in "master_score" calculation: master_score = $master_score_base + $master_score_dev_factor * $working_devs if set to bigger value in sg_persist resource configuration on some node, this node will be "preferred" for master role.
(optional, string, default "0")
master_score_dev_factor
Working device factor in master_score calculation each "working" device provides additional value to "master_score", so the node that sees more devices will be preferred for the "Master"-role Setting it to 0 will disable this behavior.
(optional, string, default "100")
master_score_delay
master/slave decreases/increases its master_score after delay of $master_score_delay seconds so if some device gets inaccessible, the slave decreases its master_score first and the resource will no be watched and after this device reappears again the master increases its master_score first this can work only if the master_score_delay is bigger then monitor interval on both master and slave Setting it to 0 will disable this behavior.
(optional, string, default "30")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 30s.
promote
Promotes the resource to the Master role. Suggested minimum timeout: 30s.
demote
Demotes the resource to the Slave role. Suggested minimum timeout: 30s.
notify
Suggested minimum timeout: 30s.
stop
Stops the resource. Suggested minimum timeout: 30s.
monitor (Unpromoted role)
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 29s.
monitor (Promoted role)
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 30s.
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
http://clusterlabs.org/
AUTHOR
ClusterLabs contributors (see the resource agent source for information about individual authors)