Centos5 pacemaker corosync

From RARFORGE
Jump to: navigation, search

Contents

Install

corosync

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

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

pacemaker

  • version 1.1.5

http://clusterlabs.org/rpm-next/epel-5/

[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

packages

  • known working packages
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

After Install

  • disabled updates - manual update if you want
/etc/yum.conf
## repackage in case you need to go back
tsflags=repackage
 
## do NOT update pacemaker or corosync - things will break!
exclude=pacemaker* corosync*


PCS

  • pcs does seem to work on Centos5. (I still prefer CRMSH)
  • You will need epel to install Python2.6

Build

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
/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
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox