OCF_HEARTBEAT_GCP-P(7)
πΎ ocf_heartbeat_gcp-pd-move β like, the whole manual, bestie πΎ
okay so real talk: this is page OCF_HEARTBEAT_GCP-P(7) from the OCF resource agents manual, and it's about ocf_heartbeat_gcp-pd-move β the resource agent that attaches/detaches a persistent disk on your current GCP instance. let's get into it π
β¨ NAME β¨
ocf_heartbeat_gcp-pd-move β Attach/Detach a persistent disk on current GCP instance π
β¨ SYNOPSIS β¨
gcp-pd-move [start | stop | monitor | meta-data]
β¨ DESCRIPTION β¨
so basically this Resource Agent can attach or detach a regional/zonal disk on your current GCP instance. no cap, that's the whole vibe. π₯
Requirements β there is literally one (1) requirement and it's this:
- The Disk has to be properly created as regional/zonal in order to be used correctly. that's it. that's the requirement. it's giving "please read this before you file a bug" energy π
β¨ SUPPORTED PARAMETERS β¨
disk_nameβ The name of the GCP disk. this one's the main character π (unique, required, string, no default)disk_scopeβ Disk scope π¦ (optional, string, default"detect")disk_csek_fileβ Path to a Customer-Supplied Encryption Key (CSEK) key file. fancy encryption stuff, iykyk π (optional, string, no default)modeβ Attachment mode (READ_WRITE,READ_ONLY) β pick your fighter β (optional, string, default"READ_WRITE")device_nameβ An optional name that indicates the disk name the guest operating system will see. like a lil nickname for your disk π«Ά (optional, boolean, defaultfalse)stackdriver_loggingβ Usestackdriver_loggingoutput to global resource (yes,true,enabled). yes, those are the three values, no i didn't make that up π (optional, string, default"no")
β¨ SUPPORTED ACTIONS β¨
This resource agent supports the following actions (operations), and honestly it's a whole menu:
startβ Starts the resource. Suggested minimum timeout: 300s. (yes,300s, that's not a typo, it's a big one π€)stopβ Stops the resource. Suggested minimum timeout: 15s.monitorβ Performs a detailed status check. Suggested minimum timeout: 15s. Suggested interval: 10s. the lil vibes check that keeps everything alive π©Ίmeta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s. π don't touch, it's internal
β¨ EXAMPLE CRM SHELL β¨
here's an example config for a gcp-pd-move resource using the crm(8) shell β copy it exactly, bestie, every backslash matters π
primitive p_gcp-pd-move ocf:heartbeat:gcp-pd-move \
params \
disk_name=string \
op monitor timeout="15s" interval="10s" depth="0"
β¨ EXAMPLE PCS β¨
and here's the pcs(8) version for a gcp-pd-move resource β same energy, different tool π§
pcs resource create p_gcp-pd-move ocf:heartbeat:gcp-pd-move \
disk_name=string \
op monitor timeout="15s" interval="10s" OCF_CHECK_LEVEL="0"
hey β notice these two are not identical? the crm one hasdepth="0"and the pcs one hasOCF_CHECK_LEVEL="0". that's how the original rolls it, so that's how i'm rolling it. no "fixing" allowed β¨
β¨ SEE ALSO β¨
- http://clusterlabs.org/ β go say hi π
β¨ AUTHOR β¨
ClusterLabs contributors (see the resource agent source for information about individual authors) π
aaand that's the page! π this lovely lil doc came from <rainbow>resource-agents UNKNOWN</rainbow>, dated <pink>10/01/2026</pink> β so go forth, attach your disks, detach your disks, and remember: properly created regional/zonal or it's not gonna 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