---
name: "ocf_linbit_drbd-attr"
section: "7"
platform: "linux"
package: "drbd-utils"
version: "9.22.0-1.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_linbit_drbd-attr"
---

# ocf\_linbit\_drbd-attr(7)

import DRBD state change events as transient node attributes

## NAME

ocf\_linbit\_drbd-attr - import DRBD state change events as transient node attributes

## SYNOPSIS

**drbd-attr** \[start \| stop \| monitor \| meta-data \| validate-all\]

## DESCRIPTION

This listens for DRBD state change events, and sets or deletes transient node attributes based on the "promotion\_score" and "may\_promote" values as presented by the DRBD events2 interface.

Optionally using a dampening delay, see attrd\_updater for details.

To be used as a clone on all DRBD nodes. The idea is to start DRBD outside of pacemaker, use DRBD auto-promote, and add location constraints for the Filesystem or other resource agents which are using DRBD.

## SUPPORTED PARAMETERS

**dampening\_delay**

To be used as dampening delay in attrd\_updater.

(optional, integer, default 5)

**attr\_name\_prefix**

The attributes will be named "\*prefix\*-drbd\_resource\_name". You can chose that prefix here.

(optional, string, default "drbd-promotion-score")

**record\_event\_details**

It may be convenient to know which event lead to the current score. This setting toggles the recording of the event. The attributes will be named "\*prefix\*:event-details-drbd\_resource\_name".

(optional, boolean, default false)

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 20s.

**stop**

Stops the resource. Suggested minimum timeout: 20s.

**monitor**

Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.

**validate-all**

Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

**meta-data**

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

## EXAMPLE CRM SHELL

The following is an example configuration for a drbd-attr resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_drbd-attr ocf:linbit:drbd-attr \
  op monitor timeout="20s" interval="60s" depth="0"
```

## EXAMPLE PCS

The following is an example configuration for a drbd-attr resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_drbd-attr ocf:linbit:drbd-attr \
  op monitor timeout="20s" interval="60s" depth="0"
```

## SEE ALSO

**https://docs.linbit.com/**, **https://clusterlabs.org/**, **https://www.linbit.com/drbd-community/**

## AUTHORS

**LINBIT HA Solutions GmbH**
