Compiling on Debian

In this HOWTO I want to describe the process building a complete cluster system from the latest structure the source respositories provide.

1) : As far a I understand the corosync project was forked (?) from the OpenAIS code and 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

make a  and install the program:

Do not forget to disable the experimental repositories and make a  again.

2) 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:

Get the latest files from the repository:

and  it into a local directory:

Change to the directory with  and compile the sources:

Please note the  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.

3) The agents from the heartbeat project:

Same as above:

4) pacemaker

Basically the same procedure:

5) Configuration

The syntax of the configuration file of  is equivalent to. So you can reuse this config (see ...).

To enable the start of  set   in /etc/default/corosync.

6) Start the cluster with.