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
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.
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.
My workaround until now is to keep Kernel 4.19. running.
Maybe this will solve the problem?
Created attachment 634566 [details, diff]
Patch for drbd
Patch from "electronvolt" from Gentoo Forums:
Patch works for me. Please add to default Gentoo drbd.
You can also see bug #721110 for a newer drbd-utils ebuild that supports Linux 5.4
The bug has been closed via the following commit(s):
Author: Jakov Smolic <email@example.com>
AuthorDate: 2021-02-17 09:36:34 +0000
Commit: David Seifert <firstname.lastname@example.org>
CommitDate: 2021-02-17 09:36:34 +0000
sys-cluster/drbd-utils: Bump to 9.15.1
Signed-off-by: Jakov Smolic <email@example.com>
Signed-off-by: David Seifert <firstname.lastname@example.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(+)