Can you verify that the DRBD 9 kernel module is actually loaded (cat /proc/drbd)?
drbd-utils checks which version of the kmod is loaded into the kernel and then uses the DRBD 8 or DRBD 9 parser accordingly. node-id is a DRBD 9 option but not available in DRBD 8.
This is a new host and my first resource to add. I can’t get past create-md:
@trk-kvm-04:/etc/drbd.d$ sudo drbdadm create-md nchub.res
drbd.d/nchub.res:6: Parse error: 'disk | device | address | meta-disk | flexible-meta-disk' expected,
but got 'node-id'
@trk-kvm-04:/etc/drbd.d$ sudo cat /etc/drbd
cat: /etc/drbd: No such file or directory
Actually - it is not accurate to say a new host, it was used in the past and may have DRBD8 on there. How can I force it to use DRBD 9? I expected to see only DRBD9 after issuing:
add-apt-repository ppa:linbit/linbit-drbd9-stack
then updating. It did install DRBD 9, I even rebooted the host expecting to have DRBD9 across the board.
I noticed that you are using a PPA and a release candidate (rc) version of drbdadm. I will speculate that there are broken dependencies that weren’t met with the upgrade/install and so your node fell back on the DRBD kmod in the mainline kernel (DRBD 8.4). I will check in with the development team about this.
I have a slightly different kernel (just 1 minor newer), which should not matter, and everything works as expected. I installed the kernel module via dkms from the PPA (apt install drbd-dkms):
root@ubuntu-jammy-23:~# drbdadm --version
DRBDADM_BUILDTAG=GIT-hash:\ 2411ff2e4241716463b4afa8530dc3c628c157ce\ build\ by\ buildd@lcy02-amd64-089\,\ 2025-03-24\ 09:51:42
DRBDADM_API_VERSION=2
DRBD_KERNEL_VERSION_CODE=0x09020d
DRBD_KERNEL_VERSION=9.2.13
DRBDADM_VERSION_CODE=0x091f00
DRBDADM_VERSION=9.31.0-rc.1
root@ubuntu-jammy-23:~# uname -a
Linux ubuntu-jammy-23 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
From what I see you don’t have a valid DRBD9 kernel module for the kernel you are running.
What I would do: apt install --reinstall drbd-dkms and look for any errors. If everything looks fine, then a modinfo -F version drbd. If that shows a version 9, then rmmod drbd (just to make sure a loaded 8.4 is unloaded), modprobe drbd, cat /proc/drbd to see if the version 9 module really is loaded.
tl;tr: not an utils issue at all, for whatever reason you don’t have a valid DRBD9 kmod for your kernel (headers missing?).