1OCF_LINBIT_DRBD-ATT(7) OCF resource agents OCF_LINBIT_DRBD-ATT(7)
2
3
4
6 ocf_linbit_drbd-attr - import DRBD state change events as transient
7 node attributes
8
10 drbd-attr [start | stop | monitor | meta-data | validate-all]
11
13 This listens for DRBD state change events, and sets or deletes
14 transient node attributes based on the "promotion_score" and
15 "may_promote" values as presented by the DRBD events2 interface.
16
17 Optionally using a dampening delay, see attrd_updater for details.
18
19 To be used as a clone on all DRBD nodes. The idea is to start DRBD
20 outside of pacemaker, use DRBD auto-promote, and add location
21 constraints for the Filesystem or other resource agents which are using
22 DRBD.
23
25 dampening_delay
26 To be used as dampening delay in attrd_updater.
27
28 (optional, integer, default 5)
29
30 attr_name_prefix
31 The attributes will be named "*prefix*-drbd_resource_name". You can
32 chose that prefix here.
33
34 (optional, string, default "drbd-promotion-score")
35
36 record_event_details
37 It may be convenient to know which event lead to the current score.
38 This setting toggles the recording of the event. The attributes
39 will be named "*prefix*:event-details-drbd_resource_name".
40
41 (optional, boolean, default false)
42
44 This resource agent supports the following actions (operations):
45
46 start
47 Starts the resource. Suggested minimum timeout: 20s.
48
49 stop
50 Stops the resource. Suggested minimum timeout: 20s.
51
52 monitor
53 Performs a detailed status check. Suggested minimum timeout: 20s.
54 Suggested interval: 60s.
55
56 validate-all
57 Performs a validation of the resource configuration. Suggested
58 minimum timeout: 20s.
59
60 meta-data
61 Retrieves resource agent metadata (internal use only). Suggested
62 minimum timeout: 5s.
63
65 The following is an example configuration for a drbd-attr resource
66 using the crm(8) shell:
67
68 primitive p_drbd-attr ocf:linbit:drbd-attr \
69 op monitor timeout="20s" interval="60s" depth="0"
70
72 The following is an example configuration for a drbd-attr resource
73 using pcs(8)
74
75 pcs resource create p_drbd-attr ocf:linbit:drbd-attr \
76 op monitor timeout="20s" interval="60s" depth="0"
77
79 https://docs.linbit.com/, https://clusterlabs.org/,
80 https://www.linbit.com/drbd-community/
81
83 LINBIT HA Solutions GmbH
84
85
86
87drbd-pacemaker 9.21.3 07/10/2022 OCF_LINBIT_DRBD-ATT(7)