Showing posts with label HA. Show all posts
Showing posts with label HA. Show all posts

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/*

Wednesday, October 29, 2014

No module named crmsh

If you encounter the following error while trying to compile crmsh:
crmFatal error:No module named crmshNo module named modules 
Failed to start the crm shell! This is likely due toa broken installation or a missing dependency. 
If you are using a packaged version of the crm shell,please try reinstalling the package. Also check yourPYTHONPATH and make sure that the crmsh module isreachable.
Please make sure that:
1. In case you've compiled crms in /usr/local, make sure to link the folders inside:
/usr/local/ha/lib64/python2.6/site-packages/
to
/usr/lib64/python2.6/site-packages/
by using the command:
ln -s /usr/local/ha/lib64/python2.6/site-packages/* /usr/lib64/python2.6/site-packages/
2. Make sure to install the following dependencies:
yum install *lxml* *PyYAML* -y