...
程式碼區塊 |
---|
pcs resource create VIP ocf:heartbeat:IPaddr2 ip=172xxx.16xxx.68.253xxx.xxx[虛擬IP] cidr_netmask=24 op monitor interval=30s |
...
程式碼區塊 |
---|
pcs cluster standby ap1 pcs status pcs cluster unstandby ap1 |
VIP 與服務資源結合
程式碼區塊 |
---|
pcs resource create omnistorSV systemd:tomcat_omnistor
pcs constraint colocation add VIP with omnistorSV INFINITY |
進行 VIP+SV 漂移測試
程式碼區塊 |
---|
pcs cluster standby ap1
pcs status
pcs cluster unstandby ap1 |
...
清除歷史訊息
程式碼區塊 |
---|
pcs resource cleanup |