This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

This web page is no longer maintained. Information presented here exists only to avoid breaking historical links.
The Project stays maintained, and lives on: see the Linux-HA Reference Documentation.
To get rid of this notice, you may want to browse the old wiki instead.

1 February 2010 Hearbeat 3.0.2 released see the Release Notes

18 January 2009 Pacemaker 1.0.7 released see the Release Notes

16 November 2009 LINBIT new Heartbeat Steward see the Announcement

Last site update:
2017-12-13 22:10:50

Thanks to Debian maintainers Debian packages for DRBD 0.7 exist.

Here is, what Phil Hug (one of the maintainers) recommends:


quote begin


I think it would make sense to update the wiki for installation on debian:

default installation (compilation and installation is just one step):

m-a a-i drbd0.7-module-source

this builds drbd against the current running kernel (if it doesn't find an already built module on debian.org) and installs it automatically. ;-)

in case you want to build against a custom kernel have a look at the m-a man page. (e.g. --kernel-dir might be of interest or --kvers-list if you want to build against another "official" debian kernel)


quote end


Another method on a deeper level but using the "Debian way" as close as possible, is the following:

This uses a Sarge installation, compilation of Kernel 2.6.12 from unstable and the latest DRBD packages from unstable.

Your /etc/apt/sources.list should have an entry pointing to unstable.

Then you need a

apt-get update

Maybe some additional packages are necessary:

apt-get install libdb3-dev libncurses-dev docbook-utils 
apt-get install fakeroot dpatch

Get the kernel source and unpack it:

apt-get install linux-source-2.6.12
cd /usr/src
tar xjf /usr/src/linux-source-2.6.12.tar.bz2

Maybe you want to have your old .config

cd linux-source-2.6.12
cp /boot/config-2.6.12-1-386 .config

Now it's time to install patches:

apt-get install util-vserver -t unstable
apt-get install kernel-patch-vserver -t unstable

Compile the Kernel:

make-kpkg --rootcmd fakeroot --revision custom01 --added-patches vserver--append-to-version +vserver --initrd binary-arch

Now you should find a .deb ready to install:

cd ..
dpkg -i kernel-image-2.6.12+vserver_custom01_i386.deb

The configuration of GRUB should be updated now to boot the new kernel - try a reboot.

Install the DRBD packages:

apt-get install drbd0.7-module-source -t unstable
apt-get install drbd0.7-utils -t unstable

Unpack the module source:

cd /usr/src/
tar xzf drbd0.7.tar.gz

Compile the DRBD module:

cd linux-source-2.6.12
make-kpkg --append-to-version +vserver modules_image

Install the module:

cd ..
dpkg -i /usr/src/drbd0.7-module-2.6.12+vserver_0.7.11-1+custom01_i386.deb
update-modules
modprobe drbd

To have the packages on the second node, you can repeat the above steps, or just copy the .debs to the other node and install them.

Next you will need to configure some DRBD devices - see the appropriate chapters at DRBD/QuickStart07.