pacemakerを動かしているのですがserver1側をAct系にしてServer2側をStb系にしたいのですがどうしても2側がActになり、サービスを落としたらsbtになるのですがまた起動するとActになるのでうがどこを直せばよいのかわかりません。
追記
pcs config show
Cluster Name: hacluster
Corosync Nodes:
Server01 Server02
Pacemaker Nodes:
test01 test02 Server01 Server02
Resources:
Resource: dbvip (class=ocf provider=heartbeat type=IPaddr2)
Attributes: ip=192.168.0.10 cidr_netmask=24 nic=eth0
Operations: start interval=0s timeout=20s (dbvip-start-interval-0s)
stop interval=0s timeout=20s (dbvip-stop-interval-0s)
monitor interval=30s (dbvip-monitor-interval-30s)
Resource: Web_Cluster (class=ocf provider=heartbeat type=apache)
Attributes: configfile=/etc/httpd/conf/httpd.conf
Operations: start interval=0s timeout=40s (Web_Cluster-start-interval-0s)
stop interval=0s timeout=60s (Web_Cluster-stop-interval-0s)
monitor interval=1min (Web_Cluster-monitor-interval-1min)
Resource: Virtual_IP (class=ocf provider=heartbeat type=IPaddr2)
Attributes: ip=192.168.0.10 cidr_netmask=32
Operations: start interval=0s timeout=20s (Virtual_IP-start-interval-0s)
stop interval=0s timeout=20s (Virtual_IP-stop-interval-0s)
monitor interval=30s (Virtual_IP-monitor-interval-30s)
Stonith Devices:
Fencing Levels:
Location Constraints:
Ordering Constraints:
start Virtual_IP then start Web_Cluster (kind:Mandatory) (id:order-Virtual_IP-Web_Cluster-mandatory)
Colocation Constraints:
Web_Cluster with Virtual_IP (score:INFINITY) (id:colocation-Web_Cluster-Virtual_IP-INFINITY)
dbvip with Virtual_IP (score:INFINITY) (id:colocation-dbvip-Virtual_IP-INFINITY)
Resources Defaults:
resource-stickiness: INFINITY
Operations Defaults:
No defaults set
Cluster Properties:
cluster-infrastructure: classic openais (with plugin)
dc-version: 1.1.11-97629de
expected-quorum-votes: 2
last-lrm-refresh: 1447718920
no-quorum-policy: ignore
stonith-enabled: false
test01 test02はホスト名変更する前のノード名です。
ついでに消したいです。
回答1件
あなたの回答
tips
プレビュー