Centos5 pacemaker corosync
Install[edit]
corosync[edit]
- this repo also provides a newer pacemaker, 1.1.8 - however crm shell is excluded and pcs is no where to be found
http://clusterlabs.org/rpm-next/rhel-5/
<source> [clusterlabs-next-rhel5] name=High Availability/Clustering server technologies (rhel-5-next) baseurl=http://www.clusterlabs.org/rpm-next/rhel-5 metadata_expire=45m type=rpm-md gpgcheck=0 enabled=1
- do NOT update pacemaker - we want to keep crmsh
exclude=pacemaker* </source>
pacemaker[edit]
- version 1.1.5
http://clusterlabs.org/rpm-next/epel-5/
<source> [clusterlabs-next-epel5] name=High Availability/Clustering server technologies (epel-5-next) baseurl=http://www.clusterlabs.org/rpm-next/epel-5 metadata_expire=45m type=rpm-md gpgcheck=0 enabled=1 </source>
packages[edit]
- known working packages
<source> rpm -q -a --queryformat='%{N}-%{V}-%{R}.%{arch}\n' | egrep pacemaker\|corosync\|heart corosync-1.4.1-7.el5.1.x86_64 heartbeat-libs-3.0.2-2.el5.x86_64 heartbeat-libs-3.0.2-2.el5.i386 corosynclib-1.4.1-7.el5.1.x86_64 corosync-1.4.1-7.el5.1.i686 pacemaker-1.1.5-1.1.el5.x86_64 pacemaker-libs-1.1.5-1.1.el5.x86_64 pacemaker-libs-1.1.5-1.1.el5.i386 corosynclib-1.4.1-7.el5.1.i686 heartbeat-3.0.2-2.el5.x86_64 pacemaker-1.1.5-1.1.el5.i386 </source>
After Install[edit]
- disabled updates - manual update if you want
- /etc/yum.conf
<source>
- repackage in case you need to go back
tsflags=repackage
- do NOT update pacemaker or corosync - things will break!
exclude=pacemaker* corosync* </source>
PCS[edit]
- pcs does seem to work on Centos5. (I still prefer CRMSH)
- You will need epel to install Python2.6
Build[edit]
<source> cd /usr/src git clone https://github.com/feist/pcs.git cd /usr/src/pcs
- EDIT the Makefile
- replace 'python' with 'python2.6' in all places
- optional: you could just change python to point to python2.6 binary - no clue what that breaks
make install </source> <source> /usr/bin/python2.6 /usr/sbin/pcs
Usage: pcs [-f file] [-h] [commands]... Control and configure pacemaker and corosync.
Options:
-h Display usage and exit -f file Perform actions on file instead of active CIB
Commands:
resource Manage cluster resources cluster Configure cluster options and nodes stonith Configure fence devices property Set pacemaker properties constraint Set resource constraints status View cluster status config Print full cluster configuration
</source>