Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 716810

Summary: sys-cluster/drbd-utils-8.9.6-r1 needs fix for kernel 5.4.X - No access to data. drbd-utils update?
Product: Gentoo Linux Reporter: Oliver Bohlen <olli>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: major CC: chris, gentoo, joe, jstein, olli, tobias.pal
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for drbd

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:

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

Looks as described here:
https://bugs.launchpad.net/ubuntu/+source/drbd-utils/+bug/1866458
https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg64900.html

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.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
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?
https://bugs.gentoo.org/715616
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:
https://forums.gentoo.org/viewtopic-p-8449162.html#8449162
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64bd02f1d3e9dbb8300cfb01af795b5ed374ca95

commit 64bd02f1d3e9dbb8300cfb01af795b5ed374ca95
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-17 09:36:34 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-02-17 09:36:34 +0000

    sys-cluster/drbd-utils: Bump to 9.15.1
    
    Closes: https://bugs.gentoo.org/690298
    Closes: https://bugs.gentoo.org/698304
    Closes: https://bugs.gentoo.org/705614
    Closes: https://bugs.gentoo.org/715616
    Closes: https://bugs.gentoo.org/716810
    Closes: https://bugs.gentoo.org/718818
    Closes: https://bugs.gentoo.org/721110
    Closes: https://bugs.gentoo.org/725750
    Closes: https://bugs.gentoo.org/728166
    
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 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(+)