Cluster Resources

From DHVLab

IP Addresses

Create virtual IP addresses the cluster is reachable at, despite which node the services are running on.
They are created for every network the cluster is available in.

pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip=CLUSTER_IP \
cidr_netmask=24 nic=NIC1 op monitor interval=10s start interval=0s stop \
interval=0s
pcs resource create ClusterRepIP ocf:heartbeat:IPaddr2 ip=CLUSTERLAN_CLUSTER_IP\
cidr_netmask=24 nic=NIC3 op monitor interval=10s start interval=0s stop \
interval=0s
pcs resource create ClusterMgmtIP ocf:heartbeat:IPaddr2 ip=CLUSTER_MGMT_IP \
cidr_netmask=24 nic=b_mgmt op monitor interval=10s start interval=0s stop \
interval=0s \
#create a resource group containing all IP addresses so that they always run on the same node
pcs resource group add IP-Group ClusterIP ClusterRepIP ClusterMgmtIP