質問編集履歴
10
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -372,7 +372,7 @@
|
|
372
372
|
|
373
373
|
Failed Resource Actions:
|
374
374
|
|
375
|
-
* eip_start_0 on ip-10-10-10-2.ap-northeast-1.compute.internal 'error' (1): call=
|
375
|
+
* eip_start_0 on ip-10-10-10-2.ap-northeast-1.compute.internal 'error' (1): call=244, status='complete', exitreason='', last-rc-change='2021-06-07 03:10:06 +09:00', queued=0ms, exec=14ms
|
376
376
|
|
377
377
|
|
378
378
|
|
9
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -372,7 +372,7 @@
|
|
372
372
|
|
373
373
|
Failed Resource Actions:
|
374
374
|
|
375
|
-
* eip_start_0 on ip-10-10-10-
|
375
|
+
* eip_start_0 on ip-10-10-10-2.ap-northeast-1.compute.internal 'error' (1): call=6, status='complete', exitreason='', last-rc-change='2021-06-07 03:10:06 +09:00', queued=0ms, exec=14ms
|
376
376
|
|
377
377
|
|
378
378
|
|
8
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -350,7 +350,7 @@
|
|
350
350
|
|
351
351
|
* Last updated: Mon Jun 7 03:39:48 2021
|
352
352
|
|
353
|
-
* Last change: Mon Jun 7 03:23:05 2021 by root via cibadmin on ip-10-0-0-2.ap-northeast-1.compute.internal
|
353
|
+
* Last change: Mon Jun 7 03:23:05 2021 by root via cibadmin on ip-10-10-10-2.ap-northeast-1.compute.internal
|
354
354
|
|
355
355
|
* 2 nodes configured
|
356
356
|
|
7
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -338,7 +338,7 @@
|
|
338
338
|
|
339
339
|
|
340
340
|
|
341
|
-
#Online後のpcs status
|
341
|
+
#Online後のpcs status [server01]
|
342
342
|
|
343
343
|
Cluster name: aws-cluster
|
344
344
|
|
6
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -335,3 +335,51 @@
|
|
335
335
|
timestamp: on
|
336
336
|
|
337
337
|
}
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
#Online後のpcs status
|
342
|
+
|
343
|
+
Cluster name: aws-cluster
|
344
|
+
|
345
|
+
Cluster Summary:
|
346
|
+
|
347
|
+
* Stack: corosync
|
348
|
+
|
349
|
+
* Current DC: ip-10-10-10-1.ap-northeast-1.compute.internal (version 2.0.5-9.el8_4.1-ba59be7122) - partition with quorum
|
350
|
+
|
351
|
+
* Last updated: Mon Jun 7 03:39:48 2021
|
352
|
+
|
353
|
+
* Last change: Mon Jun 7 03:23:05 2021 by root via cibadmin on ip-10-0-0-2.ap-northeast-1.compute.internal
|
354
|
+
|
355
|
+
* 2 nodes configured
|
356
|
+
|
357
|
+
* 1 resource instance configured
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
Node List:
|
362
|
+
|
363
|
+
* Online: [ ip-10-10-10-1.ap-northeast-1.compute.internal ip-10-10-10-2.ap-northeast-1.compute.internal ]
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
Full List of Resources:
|
368
|
+
|
369
|
+
* eip (ocf::heartbeat:eip): Stopped
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
Failed Resource Actions:
|
374
|
+
|
375
|
+
* eip_start_0 on ip-10-10-10-1.ap-northeast-1.compute.internal 'error' (1): call=6, status='complete', exitreason='', last-rc-change='2021-06-07 03:10:06 +09:00', queued=0ms, exec=14ms
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
Daemon Status:
|
380
|
+
|
381
|
+
corosync: active/enabled
|
382
|
+
|
383
|
+
pacemaker: active/enabled
|
384
|
+
|
385
|
+
pcsd: active/enabled
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -282,11 +282,7 @@
|
|
282
282
|
|
283
283
|
version: 2
|
284
284
|
|
285
|
-
transport:
|
285
|
+
transport:udpu
|
286
|
-
|
287
|
-
crypto_cipher: aes256
|
288
|
-
|
289
|
-
crypto_hash: sha256
|
290
286
|
|
291
287
|
}
|
292
288
|
|
4
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -273,3 +273,69 @@
|
|
273
273
|
pacemaker: active/disabled
|
274
274
|
|
275
275
|
pcsd: active/enabled
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
# corosync.conf
|
280
|
+
|
281
|
+
totem {
|
282
|
+
|
283
|
+
version: 2
|
284
|
+
|
285
|
+
transport:knet←ここをudpu、udpに変更したがサービス再起動でエラー
|
286
|
+
|
287
|
+
crypto_cipher: aes256
|
288
|
+
|
289
|
+
crypto_hash: sha256
|
290
|
+
|
291
|
+
}
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
nodelist {
|
296
|
+
|
297
|
+
node {
|
298
|
+
|
299
|
+
ring0_addr: 10.10.10.1
|
300
|
+
|
301
|
+
name: ip-10-10-10-1.ap-northeast-1.compute.internal
|
302
|
+
|
303
|
+
nodeid: 1
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
node {
|
310
|
+
|
311
|
+
ring0_addr: 10.10.10.2
|
312
|
+
|
313
|
+
name: ip-10-10-10-2.ap-northeast-1.compute.internal
|
314
|
+
|
315
|
+
nodeid: 2
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
quorum {
|
324
|
+
|
325
|
+
provider: corosync_votequorum
|
326
|
+
|
327
|
+
two_node: 2
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
logging {
|
334
|
+
|
335
|
+
to_logfile: yes
|
336
|
+
|
337
|
+
logfile: /var/log/cluster/corosync.log
|
338
|
+
|
339
|
+
timestamp: on
|
340
|
+
|
341
|
+
}
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,11 +26,11 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
#pcs status node
|
29
|
+
#pcs status node[server01]
|
30
|
-
|
30
|
+
|
31
|
-
Pacemaker Nodes:
|
31
|
+
Pacemaker Nodes:
|
32
|
-
|
32
|
+
|
33
|
-
Online:ip-
|
33
|
+
Online:ip-10-10-10-1.ap-northeast-1.compute.internal
|
34
34
|
|
35
35
|
Standby:
|
36
36
|
|
@@ -38,7 +38,23 @@
|
|
38
38
|
|
39
39
|
Maintenance:
|
40
40
|
|
41
|
-
Offline:ip-
|
41
|
+
Offline:ip-10-10-10-2.ap-northeast-1.compute.internal
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
#pcs status node[server02]
|
46
|
+
|
47
|
+
Pacemaker Nodes:
|
48
|
+
|
49
|
+
Online:ip-10-10-10-2.ap-northeast-1.compute.internal
|
50
|
+
|
51
|
+
Standby:
|
52
|
+
|
53
|
+
Standby with resource(s) running:
|
54
|
+
|
55
|
+
Maintenance:
|
56
|
+
|
57
|
+
Offline:ip-10-10-10-1.ap-northeast-1.compute.internal
|
42
58
|
|
43
59
|
|
44
60
|
|
@@ -48,17 +64,17 @@
|
|
48
64
|
|
49
65
|
Corosync Nodes:
|
50
66
|
|
51
|
-
ip-
|
67
|
+
ip-10-10-10-1.ap-northeast-1.compute.internal ip-10-10-10-2.ap-northeast-1.compute.internal
|
52
|
-
|
68
|
+
|
53
|
-
Pacemaker Nodes:
|
69
|
+
Pacemaker Nodes:
|
54
|
-
|
70
|
+
|
55
|
-
ip-
|
71
|
+
ip-10-10-10-1.ap-northeast-1.compute.internal ip-10-10-10-2.ap-northeast-1.compute.internal
|
56
72
|
|
57
73
|
Resources:
|
58
74
|
|
59
75
|
Resource: eip (class=ocf provider=heartbeat type=eip)
|
60
76
|
|
61
|
-
Attributes: elastic_ip=
|
77
|
+
Attributes: elastic_ip=1.1.1.1←例
|
62
78
|
|
63
79
|
Operations: start interval=0s timeout=60s on-fail=stop (eip-start-interval-0s)
|
64
80
|
|
@@ -116,11 +132,11 @@
|
|
116
132
|
|
117
133
|
Corosync Nodes:
|
118
134
|
|
119
|
-
ip-
|
135
|
+
ip-10-10-10-2.ap-northeast-1.compute.internal ip-10-10-10-1.ap-northeast-1.compute.internal
|
120
|
-
|
136
|
+
|
121
|
-
Pacemaker Nodes:
|
137
|
+
Pacemaker Nodes:
|
122
|
-
|
138
|
+
|
123
|
-
ip-
|
139
|
+
ip-10-10-10-2.ap-northeast-1.compute.internal ip-10-10-10-1.ap-northeast-1.compute.internal
|
124
140
|
|
125
141
|
Resources:
|
126
142
|
|
@@ -168,16 +184,6 @@
|
|
168
184
|
|
169
185
|
|
170
186
|
|
171
|
-
#crm_mon -f1(Node Listのみ記載します)
|
172
|
-
|
173
|
-
Nodo List:
|
174
|
-
|
175
|
-
* Node ip-×-×-×-×.ap-northeast-1.compute.internal:UNCLEAN(offline)←F/O先のサーバ
|
176
|
-
|
177
|
-
* Online: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]←操作しているサーバ
|
178
|
-
|
179
|
-
|
180
|
-
|
181
187
|
#pcs status[server01]
|
182
188
|
|
183
189
|
Cluster name: aws-cluster
|
@@ -186,11 +192,11 @@
|
|
186
192
|
|
187
193
|
* Stack: corosync
|
188
194
|
|
189
|
-
* Current DC: ip-
|
195
|
+
* Current DC: ip-10-10-10-1.ap-northeast-1.compute.internal (version 2.0.5-9.el8_4.1-ba59be7122) - partition WITHOUT quorum
|
190
196
|
|
191
197
|
*Last updated: Fri Jun 4 14:20:06 2021
|
192
198
|
|
193
|
-
* Last change: Fri Jun 4 09:46:23 2021 by root via cibadmin on ip-
|
199
|
+
* Last change: Fri Jun 4 09:46:23 2021 by root via cibadmin on ip-10-10-10-1.ap-northeast-1.compute.internal
|
194
200
|
|
195
201
|
*2 nodes configured
|
196
202
|
|
@@ -198,9 +204,9 @@
|
|
198
204
|
|
199
205
|
Node List:
|
200
206
|
|
201
|
-
*Online: [ ip-
|
207
|
+
*Online: [ ip-10-10-10-1.ap-northeast-1.compute.internal ]
|
202
|
-
|
208
|
+
|
203
|
-
*OFFLINE: [ ip-
|
209
|
+
*OFFLINE: [ ip-10-10-10-2.ap-northeast-1.compute.internal ]
|
204
210
|
|
205
211
|
|
206
212
|
|
@@ -212,7 +218,7 @@
|
|
212
218
|
|
213
219
|
|
214
220
|
|
215
|
-
*eip_start_0 on ip-
|
221
|
+
*eip_start_0 on ip-10-10-10-1.ap-northeast-1.compute.internal 'error' (1): call=6, status='complete', exitreason='', last-rc-change='2021-06-04 09:32:25 +09:00', queued=0ms, exec=12ms
|
216
222
|
|
217
223
|
|
218
224
|
|
@@ -238,11 +244,11 @@
|
|
238
244
|
|
239
245
|
* Stack: corosync
|
240
246
|
|
241
|
-
* Current DC: ip-
|
247
|
+
* Current DC: ip-10-10-10-2.ap-northeast-1.compute.internal (version 2.0.5-9.el8_4.1-ba59be7122) - partition WITHOUT quorum
|
242
248
|
|
243
249
|
* Last updated: Fri Jun 4 14:28:01 2021
|
244
250
|
|
245
|
-
* Last change: Fri Jun 4 09:29:47 2021 by hacluster via crmd on ip-
|
251
|
+
* Last change: Fri Jun 4 09:29:47 2021 by hacluster via crmd on ip-10-10-10-2.ap-northeast-1.compute.internal
|
246
252
|
|
247
253
|
* 2 nodes configured
|
248
254
|
|
@@ -250,9 +256,9 @@
|
|
250
256
|
|
251
257
|
Node List:
|
252
258
|
|
253
|
-
* Node ip-
|
259
|
+
* Node ip-10-10-10-1.ap-northeast-1.compute.internal: UNCLEAN (offline)
|
254
|
-
|
260
|
+
|
255
|
-
* Online: [ ip-
|
261
|
+
* Online: [ ip-10-10-10-2.ap-northeast-1.compute.internal ]
|
256
262
|
|
257
263
|
|
258
264
|
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
|
4
|
-
|
5
3
|
AWSを利用してMulti-AZのHA構成でサーバを構築しています。
|
6
4
|
|
7
5
|
利用しているクラスターソフトはPacemekarとcorosyncです。
|
@@ -24,51 +22,43 @@
|
|
24
22
|
|
25
23
|
AWSの設定は上記URLの内容とほとんど変更なし
|
26
24
|
|
27
|
-
|
28
|
-
|
29
25
|
### 発生している問題・エラーメッセージ
|
30
26
|
|
27
|
+
|
28
|
+
|
31
29
|
#pcs status node
|
32
30
|
|
33
31
|
Pacemaker Nodes:
|
34
32
|
|
35
|
-
|
33
|
+
Online:ip-×-×-×-×.ap-northeast-1.compute.internal←操作しているサーバ
|
36
|
-
|
34
|
+
|
37
|
-
|
35
|
+
Standby:
|
38
|
-
|
36
|
+
|
39
|
-
|
37
|
+
Standby with resource(s) running:
|
40
|
-
|
38
|
+
|
41
|
-
|
39
|
+
Maintenance:
|
42
|
-
|
40
|
+
|
43
|
-
|
41
|
+
Offline:ip-×-×-×-×.ap-northeast-1.compute.internal←F/O先のサーバ
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
42
|
+
|
43
|
+
|
44
|
+
|
51
|
-
#pcs s
|
45
|
+
#pcs config[server01]
|
52
|
-
|
53
|
-
|
54
46
|
|
55
47
|
Cluster Name: aws-cluster
|
56
48
|
|
57
49
|
Corosync Nodes:
|
58
50
|
|
59
|
-
|
51
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
60
52
|
|
61
53
|
Pacemaker Nodes:
|
62
54
|
|
63
|
-
|
55
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
64
|
-
|
65
|
-
|
66
56
|
|
67
57
|
Resources:
|
68
58
|
|
69
|
-
|
59
|
+
Resource: eip (class=ocf provider=heartbeat type=eip)
|
70
|
-
|
60
|
+
|
71
|
-
|
61
|
+
Attributes: elastic_ip=×.×.×.×
|
72
62
|
|
73
63
|
Operations: start interval=0s timeout=60s on-fail=stop (eip-start-interval-0s)
|
74
64
|
|
@@ -80,47 +70,101 @@
|
|
80
70
|
|
81
71
|
Stonith Devices:
|
82
72
|
|
73
|
+
Fencing Levels:
|
74
|
+
|
75
|
+
Location Constraints:
|
76
|
+
|
77
|
+
Ordering Constraints:
|
78
|
+
|
79
|
+
Colocation Constraints:
|
80
|
+
|
81
|
+
Resources Defaults:
|
82
|
+
|
83
|
+
resource-stickiness: INFINITY
|
84
|
+
|
85
|
+
migration-threshold: 1
|
86
|
+
|
87
|
+
Operations Defaults:
|
88
|
+
|
89
|
+
No defaults set
|
90
|
+
|
91
|
+
Cluster Properties:
|
92
|
+
|
93
|
+
cluster-infrastructure: corosync
|
94
|
+
|
95
|
+
cluster-name: aws-cluster
|
96
|
+
|
97
|
+
transition-delay: 0s
|
98
|
+
|
99
|
+
dc-version: 1.1.13-10.el7-44eb2dd
|
100
|
+
|
101
|
+
have-watchdog: false
|
102
|
+
|
103
|
+
no-quorum-policy: ignore
|
104
|
+
|
105
|
+
stonith-enabled: false
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
#pcs config[server02]
|
114
|
+
|
115
|
+
Cluster Name: aws-cluster
|
116
|
+
|
117
|
+
Corosync Nodes:
|
118
|
+
|
119
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
120
|
+
|
121
|
+
Pacemaker Nodes:
|
122
|
+
|
123
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
124
|
+
|
125
|
+
Resources:
|
126
|
+
|
127
|
+
Stonith Devices:
|
128
|
+
|
83
129
|
Fencing Levels:
|
84
130
|
|
85
|
-
|
86
|
-
|
87
131
|
Location Constraints:
|
88
132
|
|
89
133
|
Ordering Constraints:
|
90
134
|
|
91
135
|
Colocation Constraints:
|
92
136
|
|
93
|
-
|
137
|
+
Ticket Constraints:
|
138
|
+
|
139
|
+
Alerts:
|
140
|
+
|
141
|
+
No alerts defined
|
94
142
|
|
95
143
|
Resources Defaults:
|
96
144
|
|
97
|
-
resource-stickiness: INFINITY
|
98
|
-
|
99
|
-
|
145
|
+
No defaults set
|
100
146
|
|
101
147
|
Operations Defaults:
|
102
148
|
|
103
|
-
No defaults set
|
149
|
+
No defaults set
|
104
|
-
|
105
|
-
|
106
150
|
|
107
151
|
Cluster Properties:
|
108
152
|
|
109
|
-
|
153
|
+
cluster-infrastructure: corosync
|
110
|
-
|
154
|
+
|
111
|
-
|
155
|
+
cluster-name: aws-cluster
|
112
|
-
|
113
|
-
|
156
|
+
|
114
|
-
|
115
|
-
|
157
|
+
dc-version: 2.0.5-9.el8_4.1-ba59be7122
|
116
|
-
|
158
|
+
|
117
|
-
|
159
|
+
have-watchdog: false
|
118
|
-
|
160
|
+
|
119
|
-
|
161
|
+
Tags:
|
120
|
-
|
162
|
+
|
121
|
-
s
|
163
|
+
No tags defined
|
164
|
+
|
122
|
-
|
165
|
+
Quorum:
|
166
|
+
|
123
|
-
|
167
|
+
Options:
|
124
168
|
|
125
169
|
|
126
170
|
|
@@ -131,3 +175,95 @@
|
|
131
175
|
* Node ip-×-×-×-×.ap-northeast-1.compute.internal:UNCLEAN(offline)←F/O先のサーバ
|
132
176
|
|
133
177
|
* Online: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]←操作しているサーバ
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
#pcs status[server01]
|
182
|
+
|
183
|
+
Cluster name: aws-cluster
|
184
|
+
|
185
|
+
Cluster Summary:
|
186
|
+
|
187
|
+
* Stack: corosync
|
188
|
+
|
189
|
+
* Current DC: ip-×-×-×-×.ap-northeast-1.compute.internal (version 2.0.5-9.el8_4.1-ba59be7122) - partition WITHOUT quorum
|
190
|
+
|
191
|
+
*Last updated: Fri Jun 4 14:20:06 2021
|
192
|
+
|
193
|
+
* Last change: Fri Jun 4 09:46:23 2021 by root via cibadmin on ip-×-×-×-×.ap-northeast-1.compute.internal
|
194
|
+
|
195
|
+
*2 nodes configured
|
196
|
+
|
197
|
+
*1 resource instance configured
|
198
|
+
|
199
|
+
Node List:
|
200
|
+
|
201
|
+
*Online: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]
|
202
|
+
|
203
|
+
*OFFLINE: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
Full List of Resources:
|
208
|
+
|
209
|
+
*eip (ocf::heartbeat:eip): Stopped
|
210
|
+
|
211
|
+
Failed Resource Actions:
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
*eip_start_0 on ip-×-×-×-×.ap-northeast-1.compute.internal 'error' (1): call=6, status='complete', exitreason='', last-rc-change='2021-06-04 09:32:25 +09:00', queued=0ms, exec=12ms
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
Daemon Status:
|
220
|
+
|
221
|
+
corosync: active/disabled
|
222
|
+
|
223
|
+
pacemaker: active/disabled
|
224
|
+
|
225
|
+
pcsd: active/enabled
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
#pcs status[server02]
|
230
|
+
|
231
|
+
Cluster name: aws-cluster
|
232
|
+
|
233
|
+
WARNINGS:
|
234
|
+
|
235
|
+
No stonith devices and stonith-enabled is not false
|
236
|
+
|
237
|
+
Cluster Summary:
|
238
|
+
|
239
|
+
* Stack: corosync
|
240
|
+
|
241
|
+
* Current DC: ip-×-×-×-×1.ap-northeast-1.compute.internal (version 2.0.5-9.el8_4.1-ba59be7122) - partition WITHOUT quorum
|
242
|
+
|
243
|
+
* Last updated: Fri Jun 4 14:28:01 2021
|
244
|
+
|
245
|
+
* Last change: Fri Jun 4 09:29:47 2021 by hacluster via crmd on ip-×-×-×-×.ap-northeast-1.compute.internal
|
246
|
+
|
247
|
+
* 2 nodes configured
|
248
|
+
|
249
|
+
* 0 resource instances configured
|
250
|
+
|
251
|
+
Node List:
|
252
|
+
|
253
|
+
* Node ip-×-×-×-×.ap-northeast-1.compute.internal: UNCLEAN (offline)
|
254
|
+
|
255
|
+
* Online: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
Full List of Resources:
|
260
|
+
|
261
|
+
* No resources
|
262
|
+
|
263
|
+
Daemon Status:
|
264
|
+
|
265
|
+
corosync: active/disabled
|
266
|
+
|
267
|
+
pacemaker: active/disabled
|
268
|
+
|
269
|
+
pcsd: active/enabled
|
1
文の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,48 +2,132 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
AWSを利用してMulti-AZのHA構成でサーバを構築しています。
|
6
6
|
|
7
|
-
|
7
|
+
利用しているクラスターソフトはPacemekarとcorosyncです。
|
8
8
|
|
9
|
-
|
9
|
+
VIPの設定を実施したところ上手く動作しません。
|
10
|
+
|
11
|
+
また、Pacemekar設定時からですがpcs statusで確認したところ自身のサーバのみOnlineになり、
|
12
|
+
|
13
|
+
対象のサーバがOfflineになったままになります。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
下記の内容を参考に実施しております。
|
18
|
+
|
19
|
+
https://qiita.com/kenzo0107/items/851c002b6ea62f9a07c4
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
OS:Red Hat Enterprise Linux 8 with High Availability
|
24
|
+
|
25
|
+
AWSの設定は上記URLの内容とほとんど変更なし
|
10
26
|
|
11
27
|
|
12
28
|
|
13
29
|
### 発生している問題・エラーメッセージ
|
14
30
|
|
31
|
+
#pcs status node
|
15
32
|
|
33
|
+
Pacemaker Nodes:
|
16
34
|
|
17
|
-
|
35
|
+
Online:ip-×-×-×-×.ap-northeast-1.compute.internal←操作しているサーバ
|
18
36
|
|
19
|
-
|
37
|
+
Standby:
|
20
38
|
|
39
|
+
Standby with resource(s) running:
|
40
|
+
|
21
|
-
|
41
|
+
Maintenance:
|
42
|
+
|
43
|
+
Offline:ip-×-×-×-×.ap-northeast-1.compute.internal←F/O先のサーバ
|
22
44
|
|
23
45
|
|
24
46
|
|
25
|
-
### 該当のソースコード
|
26
47
|
|
27
48
|
|
28
49
|
|
29
|
-
```ここに言語名を入力
|
30
50
|
|
31
|
-
|
51
|
+
#pcs status
|
32
|
-
|
33
|
-
```
|
34
52
|
|
35
53
|
|
36
54
|
|
55
|
+
Cluster Name: aws-cluster
|
56
|
+
|
37
|
-
|
57
|
+
Corosync Nodes:
|
58
|
+
|
59
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
60
|
+
|
61
|
+
Pacemaker Nodes:
|
62
|
+
|
63
|
+
ip-×-×-×-×.ap-northeast-1.compute.internal ip-×-×-×-×.ap-northeast-1.compute.internal
|
38
64
|
|
39
65
|
|
40
66
|
|
67
|
+
Resources:
|
68
|
+
|
69
|
+
Resource: eip (class=ocf provider=heartbeat type=eip)
|
70
|
+
|
41
|
-
|
71
|
+
Attributes: elastic_ip=×.×.×.×
|
72
|
+
|
73
|
+
Operations: start interval=0s timeout=60s on-fail=stop (eip-start-interval-0s)
|
74
|
+
|
75
|
+
monitor interval=10s timeout=60s on-fail=restart (eip-monitor-interval-10s)
|
76
|
+
|
77
|
+
stop interval=0s timeout=60s on-fail=block (eip-stop-interval-0s)
|
42
78
|
|
43
79
|
|
44
80
|
|
81
|
+
Stonith Devices:
|
82
|
+
|
45
|
-
|
83
|
+
Fencing Levels:
|
46
84
|
|
47
85
|
|
48
86
|
|
87
|
+
Location Constraints:
|
88
|
+
|
89
|
+
Ordering Constraints:
|
90
|
+
|
91
|
+
Colocation Constraints:
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
Resources Defaults:
|
96
|
+
|
97
|
+
resource-stickiness: INFINITY
|
98
|
+
|
99
|
+
migration-threshold: 1
|
100
|
+
|
49
|
-
|
101
|
+
Operations Defaults:
|
102
|
+
|
103
|
+
No defaults set
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
Cluster Properties:
|
108
|
+
|
109
|
+
cluster-infrastructure: corosync
|
110
|
+
|
111
|
+
cluster-name: aws-cluster
|
112
|
+
|
113
|
+
transition-delay: 0s
|
114
|
+
|
115
|
+
dc-version: 1.1.13-10.el7-44eb2dd
|
116
|
+
|
117
|
+
have-watchdog: false
|
118
|
+
|
119
|
+
no-quorum-policy: ignore
|
120
|
+
|
121
|
+
stonith-enabled: false
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
#crm_mon -f1(Node Listのみ記載します)
|
128
|
+
|
129
|
+
Nodo List:
|
130
|
+
|
131
|
+
* Node ip-×-×-×-×.ap-northeast-1.compute.internal:UNCLEAN(offline)←F/O先のサーバ
|
132
|
+
|
133
|
+
* Online: [ ip-×-×-×-×.ap-northeast-1.compute.internal ]←操作しているサーバ
|