BUILDING DRBD FROM SCRATCH

tested on Slackware64 14.2 and current

REQUIREMENTS

on the build system only

slackpkg install gc libffi libmpc ocaml coccinelle libcroco po4a
#otherwise assuming the D and L sets are installed

for pkg in gc libffi libmpc ocaml coccinelle libcroco po4a; do
    ls -lF /var/log/packages/$pkg-*
done; unset pkg
#ocaml-findlib

git clone https://github.com/coccinelle/coccinelle.git
cd coccinelle/
slackpkg install automake
./autogen
./configure
make clean
make -j8
mkdir -p /usr/local/lib/coccinelle/python/coccilib/
make install
cd ../

which spatch

KERNEL MODULE v9

eventually have a look at libint’s official releases or those on github for v8.4 vs v9+

#git clone https://github.com/LINBIT/drbd-8.4.git
#cd drbd-8.4/

git clone --branch drbd-9.0 --recursive https://github.com/LINBIT/drbd.git
cd drbd/

#git clone --recursive https://github.com/LINBIT/drbd.git
#wget https://www.linbit.com/downloads/drbd/10.0/drbd-10.0.0a1.tar.gz
#tar xzf drbd-10.0.0a1.tar.gz 
#cd drbd-10.0.0a1/

you need the same and exact kernel source version than the target kernel

uname -r
ls -lF /lib/modules/`uname -r`/build
#make distclean
make clean

#make > ../drbd8.log && echo BUILT
make > ../drbd.log && echo BUILT
#make > ../drbd10.log && echo BUILT

#cat ../drbd8.log
cat ../drbd.log
#cat ../drbd10.log

make install
depmod -a

ls -lF /lib/modules/`uname -r`/updates/
find /lib/modules/`uname -r`/ -type f | grep drbd | xargs ls -lhF
cd ../

TOOLS

slackpkg install libgcrypt libgpg-error libxml2
#libxslt
git clone --recursive https://github.com/LINBIT/drbd-utils
cd drbd-utils/
./autogen.sh
./configure --help | less
./configure --localstatedir=/var --sysconfdir=/etc \
    --with-xen --with-heartbeat --with-bashcompletion \
    --with-udev --without-manual
#--prefix=/usr
make clean
make > ../drbd-utils.log && echo BUILT
make install
ls -lF /etc/init.d/drbd
cd ../

RESOURCES

3.4. Compiling packages from source https://docs.linbit.com/docs/users-guide-9.0/#s-from-source

DrBd https://wiki.debian.org/DrBd

Index of /www.linbit.com/downloads/tech-guides https://www.linbit.com/downloads/tech-guides/

DRBD Quick Command Reference https://www.linbit.com/downloads/tech-guides/DRBD_Quick_Reference_Guide.pdf

(gone) https://paste.fedoraproject.org/paste/kZTXesmKVZBBqR-iLwialA

How to Setup DRBD to Replicate Storage on Two CentOS 7 Servers https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/


HOME | GUIDES | BENCHMARKS | html