Building DRBD utils from scratch

tested on Slackware current (aug 2021) and Ubuntu/focal

Introduction

good thing is, the init script work for both DRBD v8 and v9

Build & deploy

slackpkg install libgcrypt libgpg-error libxml2 flex gc git
# libxslt only required for building docs

git clone --recursive https://github.com/LINBIT/drbd-utils
cd drbd-utils/
./autogen.sh
./configure \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --with-xen \
  --with-heartbeat \
  --without-pacemaker \
  --without-rgmanager \
  --with-bashcompletion \
  --with-prebuiltman

and since we’re running it on a minimal system

# --with-prebuiltman
--without-manual

more options

# --with-udev

finally proceed with the build

make clean
echo $MAKEFLAGS
make > ../drbd-utils.log && echo BUILT
make install >/dev/null && echo DEPLOYED
ls -lF /etc/init.d/drbd
vi /etc/init.d/drbd

    (start)
    #handle_linstor_loopback "$1"

    (stop)
            #handle_linstor_loopback "$1"

GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH