Knowledge Base
linbit.com Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Compiling DRBD 9 and DRBD Utilities From Source

This article will guide you through compiling and installing DRBD® 9 from source using the LINBIT® provided source tar files found under Downloads at (https://linbit.com)

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

RHEL or CentOS 7 and RHEL or 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 Utilities

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 or 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 Utilities

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