-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpillar.example
203 lines (179 loc) · 7.39 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# -*- mode: yaml -*-
# vim: ft=yaml
drbd:
## Install required package to manage DRBD
#install_packages: false
## Configure DRBD in pacemaker cluster
#with_ha: false
## Pirmary node when promoting DRBD
## TODO: Only support single primary currently
promotion: "drbd-node1"
## Resource template for /etc/drbd.d/xxx.res
#res_template: "res_single_vol_v9.j2"
## Perform initial sync for DRBD resources
#need_init_sync: true
## Optional: interval check time for waiting for resource synced
#sync_interval: 10
## Optional: timeout for waiting for resource synced
#sync_timeout: 2000
## Optional: format the DRBD resource after initial resync
#need_format: true
## Optional: stop the DRBD resources after initial resync
#stop_after_init_sync: true
## Configures some "global" parameters of /etc/drbd.d/global_common.conf
#global:
# # Optional: Participate in DRBD's online usage counter
# usage_count: "no"
# # Optional: A sizing hint for DRBD to right-size various memory pools.
# minor_count: 9
# # Optional: The user dialog redraws the second count every time seconds
# dialog_refresh: 1
## Configures some "common" parameters of /etc/drbd.d/global_common.conf
#common:
# # This section is used to fine tune the behaviour of the resource object
# options:
# # Optional: Cluster partition requires quorum to modify the replicated data set.
# quorum: "off"
# # This section is used to fine tune DRBD's properties.
# net:
# # Optional: you may assign the primary role to both nodes.
# multi_primaries: "no"
# # Optional: Maximal number of buffer pages allocated. Max: 128k
# max_buffers: 2048
# # Optional: The socket send buffer to store packets. Max: 10M
# sndbuf_size: 0
# # Optional: Packets received are stored in socket buffer. Max: 10M
# rcvbuf_size: 0
# # Optional: preventive measures to avoid situations where both nodes are primary and disconnected(AKA split brain)
# fencing: "resource-and-stonith"
# # Optional: split brain handler when no primary
# after_sb_0pri: "discard-zero-changes"
# # Optional: split brain handler when one primary
# after_sb_1pri: "discard-secondary"
# # Optional: split brain handler when two primaries
# after_sb_2pri: "disconnect"
# # Define handlers (executables) that are started by the DRBD system in response to certain events.
# handlers:
# # Optional: This handler is called in case the node needs to fence the peer's disk
# fence_peer: "/usr/lib/drbd/crm-fence-peer.9.sh"
# # Optional: This handler is called in case the node needs to unfence the peer's disk
# unfence_peer: "/usr/lib/drbd/crm-unfence-peer.9.sh"
# # Optional: This handler is called before a resync begins on the node that becomes resync target.
# before_resync_target: "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 15 -- -c 16k"
# # Optional: This handler is called after a resync operation finished on the node.
# after_resync_target: "/usr/lib/drbd/unsnapshot-resync-target-lvm.sh"
# # Optional: DRBD detected a split brain situation but remains unresolved. This handler should alert someone.
# split_brain: "/usr/lib/drbd/notify-split-brain.sh root"
## Define resources of /etc/drbd.d/xxx
#resource:
# # Resource name
# - name: "test1"
# # Define the device name and minor number of a replicated block device.
# device: "/dev/drbd8"
# # Define the lower-level block device that DRBD will use for storing the actual data.
# # Also support configure disk in nodes section for different device per node.
# disk: "/dev/vdb1"
# # Optional: Define where the metadata of a replicated block device resides.
# meta_disk: "internal"
# # Optional: Use the specified protocol on this connection.
# protocol: "B"
# # Optional: Define the timeout for replies to keep-alive packets.
# ping_timeout: 10
# # Optional: Configure how DRBD reacts to I/O errors on a lower-level device.
# on_io_error: "pass_on"
# # Optional: Choose "fixed rate" or "variable-rate" synchronization
# fixed_rate: false
# # Optional: Dynamically control the resync speed.
# c_plan_ahead: 20
# # Optional: A constant delay time
# c_delay_target: 1
# # Optional: Fill the buffers along the data path with a defined amount of data.
# c_fill_target: "10M"
# # Optional: Max rate of dynamically resync rate.
# c_max_rate: "100M"
# # Optional: Throttle the resync when device is busy.
# c_min_rate: "4M"
# # Optional: (salt) format the disk after initialize, required when "need_format" enabled
# file_system: "xfs"
# # Optional: (salt) default mount point of the resource
# mount_point: "/mnt/test1"
# # Optional: (salt) default virtual IP of the resource
# virtual_ip: "192.168.10.201"
# # Nodes defined in resource "test1"
# nodes:
# # Node name
# - name: "drbd-node1"
# # disk is optional if config in resource section
# # Node IP address
# ip: "192.168.10.101"
# # Node port
# port: 7980
# # Node ID
# id: 1
# # Node name
# - name: "drbd-node2"
# # disk is optional if config in resource section
# # Node IP address
# ip: "192.168.10.102"
# # Node port
# port: 7980
# # Node ID
# id: 2
# # Node name
# - name: "drbd-node3"
# # Node IP address
# ip: "192.168.10.103"
# # Node port
# port: 7980
# # Node ID
# id: 3
# # Resource name
# - name: "test2"
# # Define the device name and minor number of a replicated block device.
# device: "/dev/drbd9"
# # Define the lower-level block device that DRBD will use for storing the actual data.
# disk: "/dev/vdb2"
# # Optional: Define where the metadata of a replicated block device resides.
# meta_disk: "internal"
# # Optional: Use the specified protocol on this connection.
# protocol: "C"
# # Optional: Define the timeout for replies to keep-alive packets.
# ping_timeout: 10
# # Optional: Configure how DRBD reacts to I/O errors on a lower-level device.
# on_io_error: "detach"
# # Optional: Choose "fixed rate" or "variable-rate" synchronization
# fixed_rate: true
# # Optional: Define how much bandwidth DRBD may use for resynchronizing.
# resync_rate: "150M"
# # Optional: (salt) format the disk after initialize, required when "need_format" enabled
# file_system: "ext4"
# # Optional: (salt) default mount point of the resource
# mount_point: "/mnt/test2"
# # Optional: (salt) default virtual IP of the resource
# virtual_ip: "192.168.10.202"
# # Nodes defined in resource "test2"
# nodes:
# # Node name
# - name: "drbd-node1"
# # Node IP address
# ip: "192.168.10.101"
# # Node port
# port: 7982
# # Node ID
# id: 1
# # Node name
# - name: "drbd-node2"
# # Node IP address
# ip: "192.168.10.102"
# # Node port
# port: 7982
# # Node ID
# id: 2
# # Node name
# - name: "drbd-node3"
# # Node IP address
# ip: "192.168.10.103"
# # Node port
# port: 7982
# # Node ID
# id: 3