Configure corosync and pacemaker

By | 2015年2月28日

node1 eth0
node2 eth0

1. Install essential packages

Add following content to /etc/yum.repos.d/ha.repo, since you will need crmsh later:

Install packages:

2. Configure corosync

Using configuration files below if you need broadcast:

Here’s a sample using multicast:

Note that if the ver in the service section of pacemaker is 0, pacemaker will be loaded automatically, or else you will start the pacemaker service manually.

Copy this configuration file to the other host and start the service:

3. Configure corosync using crmsh

Add virtual IP to your cluster:


You will see migrating between these two nodes.