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.
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
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
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
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