我正在爲HAProxy創建Fedora PCS羣集。我有它在VMWare上運行,並按照本指南,並加入到這一步添加IPAddr2資源:http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_adding_a_resource.html具有不同接口上的共享IP的PCS羣集
唯一的區別是,我需要我的羣集心跳/通信在一個NIC /子網上,我的共享資源IP在不同的NIC /子網上。
我的內部通訊科爲節點1 = 192.160.0.1和節點2 = 192.168.0.2,我的資源IP爲10.0.0.1
如何在這種情況下使用這個命令:
pcs resource create ClusterIP ocf:heartbeat:IPaddr2 \
ip=192.168.0.120 cidr_netmask=32 op monitor interval=30s
如果我如上所述添加它,我得到這個:
[[email protected] .pcs]# pcs status
Cluster name: mycluster
Last updated: Tue Oct 28 09:10:13 2014
Last change: Tue Oct 28 09:00:13 2014 via cibadmin on node-02
Stack: corosync
Current DC: node-02 (2) - partition with quorum
Version: 1.1.11-1.fc20-9d39a6b
2 Nodes configured
1 Resources configured
Online: [ node-01 node-02 ]
Full list of resources:
ClusterIP (ocf::heartbeat:IPaddr2): Stopped
Failed actions:
ClusterIP_start_0 on node-01 'unknown error' (1): call=7, status=complete, last-rc-change='Tue Oct 28 09:00:13 2014', queued=0ms, exec=27ms
ClusterIP_start_0 on node-02 'unknown error' (1): call=6, status=complete, last-rc-change='Tue Oct 28 09:00:13 2014', queued=0ms, exec=27ms