table of contents
- buster-backports 1:4.7.0-1~bpo10+1
- testing 1:4.7.0-1
- unstable 1:4.7.0-1
OCF_HEARTBEAT_MDRAID(7) | OCF resource agents | OCF_HEARTBEAT_MDRAID(7) |
NAME¶
ocf_heartbeat_mdraid - Manages Linux software RAID (MD) devices on shared storageSYNOPSIS¶
mdraid [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
This resource agent manages Linux software RAID (MD) devices on a shared storage medium ensuring that non-clustered MD arrays are prohibited from starting cloned (which would cause data corruption (e.g., on raid6 arrays) unless forced (see force_clones parameter). Clustered MD RAID layouts (see below) will be discovered and allowed cloning by default; no need to set force_clones.It uses mdadm(8) to start, stop, and monitor the MD devices.
Supported clustered (i.e., clonable active-active) arrays are linear, raid0, and clustered raid1/raid10 (i.e. mdadm(8) created with
--bitmap=clustered).
SUPPORTED PARAMETERS¶
mdadm_conf(required, string, no default)
md_dev
Be sure to disable auto-assembly for the resource-managed arrays!
(required, string, no default)
force_stop
(optional, boolean, default false)
wait_for_udev
(optional, boolean, default true)
force_clones
A safe example could be an (exotic) array that is only named identically across all nodes, but is in fact based on distinct (non-shared) storage.
Only set this to "true" if you know what you are doing!
(optional, boolean, default false)
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):start
stop
monitor
validate-all
meta-data
EXAMPLE CRM SHELL¶
The following is an example configuration for a mdraid resource using the crm(8) shell:primitive p_mdraid ocf:heartbeat:mdraid \ params \ mdadm_conf=string \ md_dev=string \ op monitor depth="0" timeout="20s" interval="10s"
EXAMPLE PCS¶
The following is an example configuration for a mdraid resource using pcs(8)pcs resource create p_mdraid ocf:heartbeat:mdraid \ mdadm_conf=string \ md_dev=string \ op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
SEE ALSO¶
http://clusterlabs.org/AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)12/17/2020 | resource-agents UNKNOWN |