I created two nodes on CentOS 7:
- node1: 192.168.0.1
- node2: 192.168.0.2
Installed such tools:
# yum install -y pacemaker corosync pcs crmsh
Also did load balancer with HAProxy.
After I did all the things well, I reboot node1 to test high availability. When node1 booted, from this way can only see one node:
# pcs status corosync
This can see two nodes:
# crm status
But the other one is UNCLEAN
!
Stack: corosync
Current DC: node1 (version 1.1.15-11.el7_3.5-e174ec8) - partition WITHOUT quorum
2 nodes and 0 resources configured
Node node2: UNCLEAN (offline)
Online: [ node1 ]
No resources
From node2 to check status, also the another one is UNCLEAN
!
Stack: corosync
Current DC: node2 (version 1.1.15-11.el7_3.5-e174ec8) - partition WITHOUT quorum
2 nodes and 0 resources configured
Node node1: UNCLEAN (offline)
Online: [ node2 ]
No resources
How to deal with it?
Addition
I did this:
# pcs property set stonith-enabled=false
The corosync config:
totem {
version: 2
secauth: off
cluster_name: lbcluster
transport: udpu
}
nodelist {
node {
ring0_addr: node1
nodeid: 1
}
node {
ring0_addr: node2
nodeid: 2
}
}
quorum {
provider: corosync_votequorum
two_node: 1
}
logging {
to_logfile: yes
logfile: /var/log/cluster/corosync.log
to_syslog: yes
}
crm status