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, default false)
  • stackdriver_logging β€” Use stackdriver_logging output 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 has depth="0" and the pcs one has OCF_CHECK_LEVEL="0". that's how the original rolls it, so that's how i'm rolling it. no "fixing" allowed ✨

✨ SEE ALSO ✨


✨ 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