DebianCorosync
From Cluster Labs
| Be cautious! Do compile only if you really know what you are doing.
Please really consider using the packages and setup as described in "Debian Lenny HowTo". |
In this HOWTO I want to describe the process building a complete cluster system from the latest structure the source respositories provide.
Contents |
corosync
corosync:
As far a I understand the OpenAIS project split up into subprojects. corosync now provides only the cluster communication. Since pacemaker only need the communication in the cluster, this it all we need. There exists a working version of corosync in the experimental repositories of Debian. So just add the experimental repositories to your /etc/apt/sources
deb http://ftp.de.debian.org/debian/ experimental main
deb-src http://ftp.de.debian.org/debian/ experimental main
make a apt-get update and install the program:
apt-get install corosync libcorosync-dev libcorosync4
Do not forget to disable the experimental repositories and make a apt-get update again.
cluster-glue
The remains of the heartbeat project: cluster-glue
A lot of packages are needed to compile the whole pacemaker software. So let's install everything first:
apt-get install autogen autoconf libtool build-essential pkg-config
apt-get install python libglib2.0-dev libxml2-dev uuid-dev libbz2-dev libxslt-dev
Get the latest files from the repository:
wget http://hg.linux-ha.org/glue/archive/tip.tar.gz
and untar it into a local directory:
tar xvzf tip.tar.gz
Change to the directory with cd ... and compile the sources:
# ./autogen.sh # ./configure --localstatedir=/var --disable-fatal-warnings # make # groupadd haclient # useradd -g haclient hacluster # make install # cd .. # rm tip.tar.gz
Please note the --localstatedir=/var in the configuration. Without this it uses /usr/var, which makes the cluster-glue unusable.
In the source code there are also a lot of warnings left which would stop the compile process without the second option.
agents
The agents from the heartbeat project:
Same as above:
# wget http://hg.linux-ha.org/agents/archive/tip.tar.gz # tar xvzf tip.tar.gz # cd ... # ./autogen.sh # ./configure --localstatedir=/var --disable-fatal-warnings # make # make install # cd .. # rm tip.tar.gz
pacemaker
Basically the same procedure:
# wget http://hg.clusterlabs.org/pacemaker/stable-1.0/archive/tip.tar.gz # tar xvzf tip.tar.gz # apt-get install libxslt-dev # ./autogen.sh # ./configure --localstatedir=/var --disable-fatal-warnings # make # make install # cd .. # rm tip.tar.gz
Configuration
The syntax of the configuration file of corosync is equivalent to OpenAIS. So you can reuse this config (see ...).
To enable the start of corosync set START=yes in /etc/default/corosync.
Cluster start
Start the cluster with /etc/init.d/corosync start.

