Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716810 - sys-cluster/drbd-utils-8.9.6-r1 needs fix for kernel 5.4.X - No access to data. drbd-utils update?
Summary: sys-cluster/drbd-utils-8.9.6-r1 needs fix for kernel 5.4.X - No access to dat...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major with 1 vote (vote)
Assignee: Gentoo Cluster Team
Depends on:
Reported: 2020-04-09 15:08 UTC by Oliver Bohlen
Modified: 2021-02-17 09:36 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch for drbd (NLA_F_NESTED.patch,304 bytes, patch)
2020-04-25 20:46 UTC, Oliver Bohlen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Bohlen 2020-04-09 15:08:47 UTC
After update from Kernel 4.19 to 5.4 I'm getting "Invalid argument" while opening drbd device:

$ sudo drbdadm -v up r0
drbdsetup new-resource r0
r0: Invalid argument	

Looks as described here:

Seems drbd-utils have to be fixed for Kernel 5.4. 

Using lastest available Version in Portage: sys-cluster/drbd-utils-8.9.6-r1

Please help/fix.
Comment 1 Jonas Stein gentoo-dev 2020-04-09 15:39:24 UTC
I assigned the ticket. You can try to apply the patch in the meantime with the help of our support channels [1-4] and report back.

Comment 2 Oliver Bohlen 2020-04-13 11:32:41 UTC
I spent some time and tried to apply the patch but I'm not familiar in doing this and it didn't work.
There are also many other things I have to do so my time-frame for this is very small.
Sorry but I think I have to wait for you to get the fix.
Comment 3 Oliver Bohlen 2020-04-13 11:34:14 UTC
My workaround until now is to keep Kernel 4.19. running.
Comment 4 Oliver Bohlen 2020-04-13 11:38:42 UTC
Maybe this will solve the problem?
Comment 5 Oliver Bohlen 2020-04-25 20:46:43 UTC
Created attachment 634566 [details, diff]
Patch for drbd

Patch from "electronvolt" from Gentoo Forums:
Comment 6 Oliver Bohlen 2020-04-25 20:47:30 UTC
Patch works for me. Please add to default Gentoo drbd.
Comment 7 Joe Khoobyar 2020-05-05 16:29:29 UTC
You can also see bug #721110 for a newer drbd-utils ebuild that supports Linux 5.4
Comment 8 Larry the Git Cow gentoo-dev 2021-02-17 09:36:59 UTC
The bug has been closed via the following commit(s):

commit 64bd02f1d3e9dbb8300cfb01af795b5ed374ca95
Author:     Jakov Smolic <>
AuthorDate: 2021-02-17 09:36:34 +0000
Commit:     David Seifert <>
CommitDate: 2021-02-17 09:36:34 +0000

    sys-cluster/drbd-utils: Bump to 9.15.1
    Signed-off-by: Jakov Smolic <>
    Signed-off-by: David Seifert <>

 sys-cluster/drbd-utils/Manifest                    |   1 +
 sys-cluster/drbd-utils/drbd-utils-9.15.1.ebuild    | 104 +++++++++++++++++++++
 .../files/drbd-utils-9.15.1-run-lock.patch         |  13 +++
 .../files/drbd-utils-9.15.1-sysmacros.patch        |  41 ++++++++
 4 files changed, 159 insertions(+)