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


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-16 12:21:51

original post:

From: Jens Benecke
Subject: [DRBD-dev] Re: RFC: new ./INSTALL hints
Date: Wed, 24 Dec 2003 13:14:23 +0100

Howto Package DRBD for Debian

For Debian, IMHO it makes a lot of sense to make a .deb package:

/tmp/drbd-0.6.12# dpkg-buildpackage -us -uc -b

creates drbd_*.deb, drbd-source_*.deb and kernel-patch-wup_*.deb. drbd-source_*.deb only contains /usr/src/linux/drbd.tar.gz, which must be unpacked and recompiled with the target kernel.

/tmp# dpkg -i drbd*deb  # install them all
/tmp# cd /usr/src/linux ; tar xvzf drbd.tar.gz
/usr/src/linux# make menuconfig
              # FOO=anything-you-want
/usr/src/linux# make-kpkg --bzimage --revision $FOO binary-arch modules_image

creates kernel-image*deb, kernel-headers*deb, and drbd-module*deb, in my case (applied reiserfs data-logging patches and changed EXTRAVERSION in the Makefile to my initials, also used --revision $FOO on the make-kpkg command line):


These can be installed on any computer now.

$FOO can be anything you want, like 01 or jb1 (which I use). It's the kernel revision number for your build. If you build later .deb packages with the same kernel version, you can use

# dch -i 'added $foo patches/configure items/whatever'

to update the Debian changelog in the kernel source directory and then just rebuild the kernel image. It will auto-replace the running kernel on installation.

If you build another .deb with a different version, it will not replace the running kernel. See kernel-package documentation for that.

Trust me, it's much cleaner and easier (also to upgrade) machines this way. Especially if you have several machines to upgrade, which is always the case when running drbd, as that's the whole point. :)