drbd-attr [start | stop | monitor | meta-data | validate-all]
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.
To be used as dampening delay in attrd_updater.
(optional, integer, default 5)
The attributes will be named "*prefix*-drbd_resource_name". You can chose that prefix here.
(optional, string, default "drbd-promotion-score")
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)
This resource agent supports the following actions (operations):
Starts the resource. Suggested minimum timeout: 20s.
Stops the resource. Suggested minimum timeout: 20s.
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
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) shell:
primitive p_drbd-attr ocf:linbit:drbd-attr \ op monitor timeout="20s" interval="60s" depth="0"
The following is 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"
https://docs.linbit.com/, https://clusterlabs.org/, https://www.linbit.com/drbd-community/
LINBIT HA Solutions GmbH