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.
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/
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? https://bugs.gentoo.org/715616
Created attachment 634566 [details, diff] Patch for drbd Patch from "electronvolt" from Gentoo Forums: https://forums.gentoo.org/viewtopic-p-8449162.html#8449162
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): 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(+)