以下针对CentOS6.5,配好repo源后,使用yum install可以很容易的安装软件。
1. CentOS
CentOS 6.5自带的repo或CentOS 6.5安装DVD(CentOS-6.5-x86_64-bin-DVD1.iso)
包含软件及版本:
pacemaker-1.1.10-14
resource-agents-3.9.2
cluster-glue-1.0.5-6
corosync-1.4.1-17
注:resource-agents比较旧,如果搭建pgsql 9.x的流复制HA,还是要用需要最新的pgsql RA。
2. epel
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
包含软件及版本:
heartbeat-3.0.4-2.el6
3. network_ha-clustering_Stable
wget http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/network:ha-clustering:Stable.repo
cp network:ha-clustering:Stable.repo /etc/yum.repos.d/
包含软件及版本:
pacemaker-1.1.9-2.7
resource-agents-3.9.5-3.7
cluster-glue-1.0.12-0.rc1.6.3
corosync-1.4.5-2.4
crmsh-2.0+git46-1.1
注)这个版本的pacemaker编译没有包含cman的支持(通过pacemakerd -F可以看出来),如果需要cman得用前面的pacemaker-1.1.10-14。
参考
http://crmsh.nongnu.org/
http://www.linux-ha.org/wiki/Heartbeat
http://www.linux-ha.org/wiki/Pacemaker
http://fedoraproject.org/wiki/EPEL
http://corosync.github.io/corosync/