OCF_HEARTBEAT_RAID1(7)
okay so bestie, you're on the OCF_HEARTBEAT_RAID1(7) page π
β this is all about ocf_heartbeat_Raid1, and we're gonna make Linux software RAID (MD) devices on shared storage make sense. no cap. β¨
π NAME π
ocf_heartbeat_Raid1 β manages Linux software RAID (MD) devices on shared storage π¦
β¨ SYNOPSIS β¨
Raid1 [start | stop | status | monitor | meta-data | validate-all]
πΈ DESCRIPTION πΈ
okay so this resource agent manages Linux software RAID (MD) devices on a shared storage medium. it uses mdadm(8) to start, stop, and monitor the MD devices. Raidtools are supported, but deprecated. see https://raid.wiki.kernel.org/index.php/Linux_Raid for more information. π
π SUPPORTED PARAMETERS π
raidconfβ the RAID configuration file, e.g./etc/mdadm.conf. required, string, no default. πraiddevβ one or more block devices to use, space separated. alternatively, set it to"auto"to manage all devices specified inraidconf. required, string, no default. β¨homehostβ the value for thehomehostdirective; this is anmdadmfeature to protect RAIDs against being activated by accident. it is recommended to create RAIDs managed by the cluster with"homehost"set to a special value, so they are not accidentally auto-assembled by nodes not supposed to own them. optional, string, no default. π¦force_stopβ if processes or kernel threads are using the array, it cannot be stopped. the agent will try to stop processes, first by sendingTERMand then, if that doesn't help in3seconds, usingKILL. thelsof(8)program is required to get the list of array users. of course, the kernel threads cannot be stopped this way. if the processes are critical for data integrity, then set this parameter tofalse. note that in that case the stop operation will fail and the node will be fenced. optional, boolean, defaulttrue. π¨udevβ wait untiludevdcreates a device in the start operation. on a normally loaded host this should happen quickly, but you may be unlucky. if you are not usingudev, set this to"no". optional, boolean, defaulttrue. β¨force_clonesβ activating the same md RAID array on multiple nodes at the same time will result in data corruption and thus is forbidden by default. a safe example could be an array that is only named identically across all nodes, but is in fact distinct. only set this to"true"if you know what you are doing! optional, boolean, defaultfalse. π
π₯ SUPPORTED ACTIONS π₯
this resource agent supports the following actions (operations):
startβ starts the resource. suggested minimum timeout:20s. πstopβ stops the resource. suggested minimum timeout:20s. πstatusβ performs a status check. suggested minimum timeout:20s. suggested interval:10s. βmonitorβ performs a detailed status check. suggested minimum timeout:20s. suggested interval:10s. βvalidate-allβ performs a validation of the resource configuration. suggested minimum timeout:5s. π§meta-dataβ retrieves resource agent metadata (internal use only). suggested minimum timeout:5s. π§
π«Ά EXAMPLE CRM SHELL π«Ά
the following is an example configuration for a Raid1 resource using the crm(8) shell:
primitive p_Raid1 ocf:heartbeat:Raid1 \
params \
raidconf=string \
raiddev=string \
op monitor depth="0" timeout="20s" interval="10s"
π EXAMPLE PCS π
the following is an example configuration for a Raid1 resource using pcs(8)
pcs resource create p_Raid1 ocf:heartbeat:Raid1 \
raidconf=string \
raiddev=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
π¦ SEE ALSO π¦
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors)
later, bestie! π«Ά this page comes from resource-agents, version UNKNOWN, dated 10/01/2026. slay. π
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms