OCF_LINBIT_DRBD-ATT(7)
π NAME π
okay bestie, welcome to OCF_LINBIT_DRBD-ATT(7) β yes, that's the manual name, and it's part of the OCF resource agents family. The star of the page is ocf_linbit_drbd-attr, and its whole job is to import DRBD state change events as transient node attributes. That's the main character job, and it ate. β¨
π¦ SYNOPSIS π¦
Run it like this, bestie:
drbd-attr [start | stop | monitor | meta-data | validate-all]
No cap, that bracket list is the whole vibe check. π
πΈ DESCRIPTION πΈ
This icon listens for DRBD state change events, then sets or deletes transient node attributes based on the "promotion_score" and "may_promote" values as presented by the DRBD events2 interface. Literally event-to-attribute behavior, and it's giving useful. π«Ά
There's optionally a dampening delay too β see attrd_updater for the details, iykyk.
Use this as a clone on all DRBD nodes. The idea is: start DRBD outside of pacemaker, use DRBD auto-promote, and add location constraints for the Filesystem or other resource agents which are using DRBD. That's the plan, periodt. π
π SUPPORTED PARAMETERS π
dampening_delayβ this is used as the dampening delay inattrd_updater. It's optional, an integer, and the default is5. Set it and slay. πattr_name_prefixβ the attributes will be named prefix-drbd_resource_name. You can choose that prefix here. It's optional, a string, and the default is"drbd-promotion-score". Obsessed with a customizable prefix, ngl. πrecord_event_detailsβ sometimes it may be convenient to know which event led to the current score. This setting toggles the recording of the event. The attributes will be named prefix:event-details-drbd_resource_name. It's optional, a boolean, and the default isfalse. Lowkey detective mode for your scores. π
β SUPPORTED ACTIONS β
This resource agent supports these actions (operations), bestie:
startβ starts the resource. Suggested minimum timeout:20s. Go go go. πstopβ stops the resource. Suggested minimum timeout:20s. Bye boo. πmonitorβ performs a detailed status check. Suggested minimum timeout:20s. Suggested interval:60s. The vibe check, literally. π΅οΈββοΈvalidate-allβ performs a validation of the resource configuration. Suggested minimum timeout:20s. Make sure it's valid before you commit, fr fr. βmeta-dataβ retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s. Behind-the-scenes icon behavior. π«Ά
π§ EXAMPLE CRM SHELL π§
Here's an example configuration for a drbd-attr resource using the crm(8) shell. Copy the vibe, keep the exact command:
primitive p_drbd-attr ocf:linbit:drbd-attr \
op monitor timeout="20s" interval="60s" depth="0"
π EXAMPLE PCS π
And here's an example configuration for a drbd-attr resource using pcs(8):
pcs resource create p_drbd-attr ocf:linbit:drbd-attr \
op monitor timeout="20s" interval="60s" depth="0"
π SEE ALSO π
Go read, bestie. The lore is there. π
π AUTHORS π
LINBIT HA Solutions GmbH β absolute legends. π
This page is brought to you by drbd-pacemaker 9.34.0, dated 04/22/2026, and it's OCF_LINBIT_DRBD-ATT(7). Mwah, go be iconic with your DRBD events π
β¨
π¦ where this page comes from
- alpine 3.24: drbd-utils-doc 9.34.0-r0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms