Wrong DRBD Kernel Module in 20.04 LTS

Asked by Benjamin Klusz

Hallo,

in 20.04 LTS we installed the package drbd-utils v. 9.11.0-1build1. After configuring a 3-node cluster in the drbd.conf and trying to create the resource we become following error: "/etc/drbd.conf:42: Parse error: 'disk | device | address | meta-disk | flexible-meta-disk' expected, but got 'node-id' "
This error is a syntax problem. But the syntax is correct and should work. The problem here is that the linux kernel 5.4.0-39-generic has an old drbd kernel module from version 8, which does not support the new drbd9 syntax for 3-nodes.
Updating the drbd kernel module manually to version 9 fixes the problem and the new syntax works.

Is it possible to update the drbd kernel module in the ubuntu package linux-modules-extra?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug. You can start the process with:

ubuntu-bug linux-image-generic

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Do you have any knowledge whether there is an updated drbd kernel module available in any newer mainline kernel versions than the one which the Ubuntu kernel is based on?

The kernel currently provided in Ubuntu 20.04 is 5.4.0-39 (from mainline kernel version 5.4.41), focal-proposed version is 5.4.0-40 (based on mainline kernel version 5.4.44).

Depending on the answer to this question, it might be the case that this requires an update in the mainline kernel, which then would be inherited by Ubuntu.

Revision history for this message
Benjamin Klusz (bgk) said :
#3

It looks like the mainline kernel 5.4.44 still has the old drbd kernel module as well.

~/Downloads/linux-5.4.44$ grep -ir version |grep drbd
...
include/linux/drbd.h:#define REL_VERSION "8.4.11"
...

This Version 8.4.11 is the exact same old version used in mainline kernel version 5.4.41.

1.Does Ubuntu contact the mainline kernel developer regarding this issue to update the drbd kernel module to version 9?
2. Shall we open an ubuntu bug report here?

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Even the v5.8-rc3 kernel has the same:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/drbd.h?h=v5.8-rc3#n42

I assume that this is something that needs to be tackled at kernel.org

Revision history for this message
Raul Andrade (arrobit) said :
#5

I solved it by purge drbd-utils and reinstalling from linbit repository, it install me the last kernel module version.

sudo apt purge drbd-utils

sudo add-apt-repository ppa:linbit/linbit-drbd9-stack
sudo apt-get update

sudo apt-get install drbd-utils drbd-dkms

It is important to install drbd-dkms (kernel module) because installing only the drbd-utils the kernel module used is the old one that comes in ubuntu.

At the end of the process, the drbd kernel module is not loaded, but when you request it by "drbdadm create-md" it load automatically.

Can you help with this problem?

Provide an answer of your own, or ask Benjamin Klusz for more information if necessary.

To post a message you must log in.