This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Click Cluster > Create a new cluster > Add Node Host Name and password:
Give Cluster Name: Cluster_01
Node: station20.example.com
Node: station30.example.com
Click view SSL cert fingerprints to verify the communication.
After the finish:
On Any Cluster Node:
# clustat
Cluster Status for Cluster_01 @ Fri Jun 1 15:56:08 2012
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
station30.example.com 1 Online
station20.example.com 2 Online, Local
# cman_tool status
Version: 6.2.0
Config Version: 1
Cluster Name: Cluster_01
Cluster Id: 25517
Cluster Member: Yes
Cluster Generation: 8
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Total votes: 2
Quorum: 1
Active subsystems: 9
Flags: 2node Dirty
Ports Bound: 0 11 177
Node name: station20.example.com
Node ID: 2
Multicast addresses: 239.192.99.17
Node addresses: 192.168.5.20
# grep locking_type /etc/lvm/lvm.conf
locking_type = 3
Configure Fence:
On Any one node run:
# ls /etc/cluster/
cluster.conf
Add a Fence Device:
Click Cluster Name > Shared Fence Devices > Add a Fence Device > In Fencing Type select “Virtual Machine Fancing” > Give Name “XEN_Fencing” > Click “Add this shared fence device” > OK
Add Failover Domains:
Click Cluster Name > Failover Domains > Add a Failover Domain
Add Fence Device to each node:
Cluster > Cluster List > Click Cluster Name > Nodes > Click on Node “station20.example.com” > Add a fence device to this level > Main Fencing Method > Select “XEN_Fencing (Virtual Machine Fencing)” > Remember to give the XEN VM hypervisor Name for host station20.example.com (not machine host name) Domain “XEN_VM01” > Click update main fence properties.
Repeat the same for station30.example.com. Remember to give the XEN VM hypervisor Name for host station30.example.com (not machine host name) Domain “XEN_VM02
Configure fence key and distribute to both node:
Click Cluster name > Fence > Check Run XVM fence daemon > Give the node name > Click Retrieve Cluster Node > Create and Distribute Keys > Apply