OCF_HEARTBEAT_SFEX(7)
π OCF_HEARTBEAT_SFEX β the whole manual page, bestie
okay so welcome to ocf_heartbeat_sfex, section 7 of the manual, and honestly? she's giving bouncer energy for your disks. Let's get into it π
β¨ NAME β¨
ocf_heartbeat_sfex β manages exclusive access to shared storage using Shared Disk File EXclusiveness (SF-EX)
π¦ SYNOPSIS π¦
sfex [start | stop | monitor | meta-data | validate-all]
πΈ DESCRIPTION πΈ
It's the resource script for SF-EX, no cap. It manages a shared storage medium exclusively. That's the whole vibe. One at a time, bestie. Periodt.
π SUPPORTED PARAMETERS π
deviceβ the block device path where the exclusive control data lives. That's it, that's the whole thing. (required, string, no default β so like, you have to give her this one π )indexβ where in that block device the exclusive control data gets stored. You gotta specify 1 or more. Default is1. (optional, integer, default1)collision_timeoutβ how long you wait when a collision of lock acquisition gets detected. Default is1second. (optional, integer, default1)monitor_intervalβ monitor interval, in seconds. Default is10seconds. (optional, integer, default10)lock_timeoutβ the valid term of the lock, in seconds. Default is100seconds. And thelock_timeoutis calculated by this formula right here:
lock_timeout = monitor_interval + "The expiration time of the lock"
We suggest 90 seconds as the default value of "The expiration time of the lock", but fr fr you should change it β take into account the access delay to the shared disk and the switch time of the multipath driver. Don't just leave it vibing on default if your setup is built different.
Also, the lock timeout has an impact on the start action timeout, because the start action timeout value is calculated by this formula:
start timeout = collision_timeout + lock_timeout + "safety margin"
The "safety margin" gets decided within the range of about 10-20 seconds (it depends on your system requirement, so like, know your system).
(optional, integer, default 100)
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations), bestie:
startβ starts the resource. Suggested minimum timeout:120s.stopβ stops the resource. Suggested minimum timeout:20s.monitorβ performs a detailed status check. Suggested minimum timeout:10s. Suggested interval:10s.meta-dataβ retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s.validate-allβ performs a validation of the resource configuration. Suggested minimum timeout:5s.
π EXAMPLE CRM SHELL π
Here's an example configuration for a sfex resource using the crm(8) shell, enjoy:
primitive p_sfex ocf:heartbeat:sfex \
params \
device=string \
op monitor depth="0" timeout="10s" interval="10s"
β EXAMPLE PCS β
And here's the same thing but for pcs(8):
pcs resource create p_sfex ocf:heartbeat:sfex \
device=string \
op monitor OCF_CHECK_LEVEL="0" timeout="10s" interval="10s"
π SEE ALSO π
π«Ά AUTHOR π«Ά
ClusterLabs contributors β see the resource agent source if you want the deets on individual authors.
okay that's the whole page, you ate that π β¨
signing off with the vibe: this is resource-agents version UNKNOWN, dated 04/08/2026 β go forth and lock your storage exclusively, queen ππΈ
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms