OCF_HEARTBEAT_LVM(7)
π
OCF_HEARTBEAT_LVM(7) β the ocf_heartbeat_LVM page, but make it make sense
okay so bestie, welcome to the manual page for ocf_heartbeat_LVM π this is the OCF resource agents corner of the world and this page is literally all about it. grab a lil snack π, we're learning.
πΈ NAME πΈ
ocf_heartbeat_LVM β controls the availability of an LVM Volume Group. yes. that's the whole vibe. it keeps your volume group alive or not alive and it takes that job very seriously π
β¨ SYNOPSIS β¨
LVM [start | stop | status | monitor | meta-data | validate-all]
that's the lineup, no cap. those are the actions you can throw at it π«Ά
π DESCRIPTION π
So this is a resource script for LVM. it manages a Linux Volume Manager volume (LVM) as an HA resource. that's it, that's the tea π¦ it's the main character that makes your volume group behave like a proper high-availability resource.
π SUPPORTED PARAMETERS π
these are the knobs you get to twiddle. every single one, no skipping π
volgrpnameβ the name of the volume group. that's literally it, that's the whole thing.
(unique, required, string, no default) β so yeah, required, you can't skip it, and there's no default hiding behind the curtain π
exclusiveβ if you set this, the volume group gets activated exclusively. and it works one of two ways, bestie, listen:- if the volume group has the cluster attribute set, then it gets activated exclusively using
clvmdacross the cluster π - if the cluster attribute is not set, then it gets activated exclusively using a tag and the
volume_listfilter π·οΈ - and when the tag option is in use, the
volume_listinlvm.conmust be initialized. it can be as simple as setting'volume_list = []'depending on your setup β¨
- if the volume group has the cluster attribute set, then it gets activated exclusively using
(optional, boolean, default false)
tagβ if"exclusive"is set on a non clustered volume group, this overrides the tag to be used π―
(optional, string, default "pacemaker")
partial_activationβ if set, the volume group will be activated partially, even with some physical volumes missing π it helps to set this to true when you're using mirrored logical volumes πͺ
(optional, string, default "false")
π₯ SUPPORTED ACTIONS π₯
this resource agent supports the following actions (operations). the timeouts are suggested minimums, mkay, so don't come at me π«Ά
startβ starts the resource. suggested minimum timeout:30sβ±οΈstopβ stops the resource. suggested minimum timeout:30sstatusβ performs a status check. suggested minimum timeout:30smonitorβ performs a detailed status check. suggested minimum timeout:30s. suggested interval:10sπ (yeah it's got an interval, she's thorough)methodsβ suggested minimum timeout:5smeta-dataβ retrieves resource agent metadata (internal use only π€«). suggested minimum timeout:5svalidate-allβ performs a validation of the resource configuration. suggested minimum timeout:5s
π§ EXAMPLE CRM SHELL π§
here's what a LVM resource looks like configured with the crm(8) shell β copy it, love it, ship it π
primitive p_LVM ocf:heartbeat:LVM \
params \
volgrpname=string \
op monitor depth="0" timeout="30s" interval="10s"
π EXAMPLE PCS π
and here's the same energy but with pcs(8) β note the OCF_CHECK_LEVEL instead of depth, ikyk π
pcs resource create p_LVM ocf:heartbeat:LVM \
volgrpname=string \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="10s"
π¦ SEE ALSO π¦
http://clusterlabs.org/β go say hi to the clusterlabs girlies β
π AUTHOR π
ClusterLabs contributors π«Ά (see the resource agent source for info about the individual authors β they're the real ones, fr fr)
okay that's the whole page bestie, you ate that π go configure some volume groups and remember: volgrpname is required, no default, no exceptions π
signing off with the receipts: this is resource-agents UNKNOWN, dated 10/01/2026, and the page is OCF_HEARTBEAT_LVM(7) πβ¨
π¦ 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