Debian Lenny HowTo

=Introduction= This page will guide you trough installing a OpenAIS + Pacemaker two node cluster.

=Installation=

Install Debian Lenny
At first you need to [install a server] with a Debian GNU/Linux version 5 also know as Debian Lenny.

Currently only x86 (for 32 bit systems) and amd64 (for 64 bit systems) are working.

Add repository to the apt system
Create a new file /etc/apt/sources.list.d/pacemaker.list that contains: deb http://people.debian.org/~madkiss/ha lenny main

Add the Madkiss key to you package system: apt-key adv --keyserver pgp.mit.edu --recv-key 1CFA3E8CD7145E30 If you omit this step you will get this error: W: GPG error: http://people.debian.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1CFA3E8CD7145E30

Update the package list aptitude update

Install the packages
This is the actual installation: aptitude install pacemaker-openais

This will install a whole list of dependancies and the pacemaker-openais package itself. That pacemaker-openais package has an error in it which will give you this output: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: pacemaker-openais 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/823kB of archives. After unpacking 2851kB will be used. Writing extended state information... Done Selecting previously deselected package pacemaker-openais. (Reading database ... 26756 files and directories currently installed.) Unpacking pacemaker-openais (from .../pacemaker-openais_1.0.4.1+hg20090606-1~bpo50+1_i386.deb) ... Processing triggers for man-db ... Setting up pacemaker-openais (1.0.4.1+hg20090606-1~bpo50+1) ... addgroup: The group `hacluster' already exists as a system group. Exiting. Warning: The home dir /var/lib/heartbeat you specified already exists. The system user `haclient' already exists. Exiting. chown: invalid user: `hacluster' dpkg: error processing pacemaker-openais (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: pacemaker-openais E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up pacemaker-openais (1.0.4.1+hg20090606-1~bpo50+1) ... addgroup: The group `hacluster' already exists as a system group. Exiting. Warning: The home dir /var/lib/heartbeat you specified already exists. The system user `haclient' already exists. Exiting. chown: invalid user: `hacluster' dpkg: error processing pacemaker-openais (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: pacemaker-openais Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done

To fix this you have to manually fix /var/lib/dpkg/info/pacemaker-openais.postinst:

Change these two lines (lines 32 and 33): chown haclient $i chgrp hacluster $i Into this: chown hacluster $i chgrp haclient $i

Then make sure you set the permissions manually: chown haclient /var/run/heartbeat/crm /var/lib/heartbeat/crm /var/lib/heartbeat/pengine /var/lib/pengine /var/lib/heartbeat chgrp hacluster /var/run/heartbeat/crm /var/lib/heartbeat/crm /var/lib/heartbeat/pengine /var/lib/pengine /var/lib/heartbeat

And last re-run your install command to fix your apt system: aptitude install pacemaker-openais

This still gives you this output, but that's ok: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following partially installed packages will be configured: pacemaker-openais 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Writing extended state information... Done Setting up pacemaker-openais (1.0.4.1+hg20090606-1~bpo50+1) ... addgroup: The group `hacluster' already exists as a system group. Exiting. Warning: The home dir /var/lib/heartbeat you specified already exists. The system user `haclient' already exists. Exiting. Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done