building drbd v9 for thead1520-linux

scaleway-riscv scaleway-riscv-kernel scaleway-riscv-drbd scaleway-riscv-gfs2

requirements

cd /usr/src/th1520-linux-kernel/
make prepare
    make scripts
    make modules_prepare
cd -

build

# https://linbit.com/linbit-software-download-page-for-linstor-and-drbd-linux-driver/#drbd-9
ver=9.2.12
wget https://pkg.linbit.com//downloads/drbd/9/drbd-$ver.tar.gz
    tar xzf drbd-$ver.tar.gz
    cd drbd-$ver/drbd/
export MAKEFLAGS=-j4
    time make > ../../drbd-$ver.log && echo BUILT

# 6m52.056s

    make install >/dev/null && echo DEPLOYED
depmod -a

acceptance

find /lib/modules/`uname -r`/ | grep drbd
modprobe drbd
modinfo drbd
cat /proc/drbd

templating

everything works? time to spread the thing across the cluster (and share the work)

from risc2 node

    scp /boot/boot.itb risc1:/boot/
    scp /boot/boot.itb elge@md:~/lab/nunux/GFS2-AND-OCFS2-AND-DRBD9/`uname -r`.boot.itb

    cd /lib/modules/
    time tar czf `uname -r`.tar.gz `uname -r`/

# 23m34.713s

    scp `uname -r`.tar.gz risc1:/lib/modules/
    scp `uname -r`.tar.gz elge@md:~/lab/nunux/GFS2-AND-OCFS2-AND-DRBD9/

results are here: https://lab.nethence.com/nunux/GFS2-AND-OCFS2-AND-DRBD9/

troubleshooting

sometimes happens with drbd 9.1.23 or 9.2.12 after a successful build

    modprobe: ERROR: could not insert 'drbd': Exec format error

==> …


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun