Saturday, November 1, 2014

Install Corosync, Pacemaker and Crmsh on CentOS 6

1. Create a temporary directory to hold a few rpms:
mkdir /tmp/ha
cd /tmp/ha
2. Install Corosync and Pacemaker:
yum install pacemaker corosync -y
3. Download crmsh and pssh:
yum install wget -y 
wget http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/src/crmsh-2.1-1.6.src.rpm 
wget http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/src/pssh-2.3.1-4.1.src.rpm
4. Build the RPMS:
yum install python-devel python-setuptools gcc make gcc-c++ rpm-build python-lxml cluster-glue-libs-devel pacemaker-libs-devel asciidoc autoconf automake redhat-rpm-config -y
rpmbuild --rebuild crmsh-2.1-1.6.src.rpm
rpmbuild --rebuild pssh-2.3.1-4.1.src.rpm
5. Install the newly created RPMS:
yum install /root/rpmbuild/RPMS/x86_64/*

1 comment:

Dan said...

This was tremendously helpful as I was trying to install the latest crmsh/pssh on CentOS6.6. Thanks bud!

Post a Comment