Configure corosync and pacemaker

By | 2015年2月28日

Env:
node1 eth0 192.168.0.201
node2 eth0 192.168.0.202

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:

Test:

You will see 192.168.0.209 migrating between these two nodes.

发表评论

邮箱地址不会被公开。