OCF_HEARTBEAT_SCSI2R(7)

πŸ’– OCF_HEARTBEAT_SCSI2R(7) πŸ’–

okay so real talk, this page lives in the OCF resource agents manual, and bestie, it's a whole mood. it's all about ocf_heartbeat_scsi2reservation β€” aka the scsi-2 reservation situation. let's get into it ✨


🌸 NAME 🌸

ocf_heartbeat_scsi2reservation β€” scsi-2 reservation, no cap πŸ’…


✨ SYNOPSIS ✨

scsi2reservation [start | stop | monitor | meta-data | validate-all]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the scsi-2-reserve resource agent is literally a place holder for SCSI-2 reservation. that's it, that's the vibe. a healthy instance of the scsi-2-reserve resource means you're the owner of the specified SCSI device β€” it's giving main character energy, but for a disk 🫢

one thing tho: this resource agent depends on the scsi_reserve from the scsires package, and that package is Linux specific. so if you're on something else, this is not the moment, sorry bestie 😭


πŸ‘‘ SUPPORTED PARAMETERS πŸ‘‘

  • scsi_reserve β€” this is the scsi_reserve command from the scsires package. it's the little helper that lets you issue SCSI-2 reservation on SCSI devices. (optional, string, default "/usr/sbin/scsi_reserve")
  • sharedisk β€” the shared disk that can be reserved. (optional, string, default "/dev/sdb")
  • start_loop β€” we're gonna try several times before we give up, periodt. start_loop tells you how many times we re-try. (optional, string, default "10")

πŸ’œ SUPPORTED ACTIONS πŸ’œ

this resource agent supports the following actions (operations), and honestly, iconic lineup:

  • start β€” starts the resource. suggested minimum timeout: 300s.
  • stop β€” stops the resource. suggested minimum timeout: 100s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 20s. suggested interval: 20s.
  • meta-data β€” retrieves resource agent metadata (internal use only, so don't touch, iykyk). suggested minimum timeout: 5s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 30s.

πŸŽ€ EXAMPLE CRM SHELL πŸŽ€

here's an example config for a scsi2reservation resource using the crm(8) shell, and it ate:

primitive p_scsi2reservation ocf:heartbeat:scsi2reservation \
  op monitor depth="0" timeout="20s" interval="20s"

🌈 EXAMPLE PCS 🌈

and here's the same energy for a scsi2reservation resource using pcs(8):

pcs resource create p_scsi2reservation ocf:heartbeat:scsi2reservation \
  op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="20s"

⭐ SEE ALSO ⭐


πŸ’€ AUTHOR πŸ’€

ClusterLabs contributors (see the resource agent source for information about individual authors) β€” shoutout to the whole squad 🫢


fr fr, that's the whole page. go forth and reserve your SCSI devices responsibly πŸ’…

and that's a wrap, bestie 🧚 this was resource-agents version UNKNOWN, dated 04/08/2026 β€” mwah, slay, bye πŸ‘‘πŸ’–

πŸ“¦ where this page comes from