Compiling DRBD 9 and DRBD Utils From Source

This article will guide you through compiling and installing DRBD 9 from source using the LINBIT provided source tarballs found under "Downloads" at LINBIT.com

Be sure to check your source tarball URLs and dependent package versions in the sections below.

RHEL/CentOS 7 and RHEL/AlmaLinux 8

DRBD® 9 Kernel Module

yum group install Development\ Tools -y
yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) -y
curl -LO https://pkg.linbit.com//downloads/drbd/9/drbd-9.1.7.tar.gz
tar xf drbd-9.1.7.tar.gz; cd ./drbd-9.1.7
make && make install
modprobe drbd

DRBD 9 Utils

curl -LO https://pkg.linbit.com//downloads/drbd/utils/drbd-utils-9.21.1.tar.gz
tar xf drbd-utils-9.21.1.tar.gz; cd drbd-utils-9.21.1
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
make tools && make install

SLES/OpenSUSE Leap 15.3

DRBD 9 Kernel Module

zypper up -y && reboot
zypper install -y -t pattern "devel_basis" "devel_C_C++" "devel_kernel"
curl -LO https://pkg.linbit.com//downloads/drbd/9/drbd-9.1.7.tar.gz
tar xf drbd-9.1.7.tar.gz; cd ./drbd-9.1.7
make && make install
modprobe drbd

DRBD 9 Utils

curl -LO https://pkg.linbit.com//downloads/drbd/utils/drbd-utils-9.21.1.tar.gz
tar xf drbd-utils-9.21.1.tar.gz; cd drbd-utils-9.21.1
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
make tools && make install

Reviewed 2022/05/11 – MDK