The officially official Devuan Forum!

You are not logged in.

#1 2023-12-15 19:45:39

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

[SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

From IRC last night:

tux2bsd    Latest stable Devuan kernel has drbd 8.x.   Userland drbd-utils 9.x.   Meaning if you attempt to configure via drbd (9) howtos the configs won't parse.   
tux2bsd    got the clue about what was wrong from here: https://serverfault.com/questions/10854 … connection
tux2bsd    I guess I configure for drbd8.x and hope the userland utils are backwards compatible

IRC END, continuing here:

drbd-utils provides /usr/share/doc/drbd-utils/examples
  and those examples are for 9.x which don't work with the loaded kernel module (8.x).

This isn't a new problem and it's inherited from upstream.

Any Devuan DRBD users out there that can point out what the right thing to do is?

Last edited by tux2bsd (2023-12-15 23:05:09)

Offline

#2 2023-12-15 20:01:18

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

Re: [SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

This bug is also inherited:
https://www.mail-archive.com/debian-bug … 92274.html

Very relevant to Devuan.

Last edited by tux2bsd (2023-12-15 20:06:49)

Offline

#3 2023-12-15 20:03:47

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

Re: [SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

I've got a working DRBD with these instructions: https://ubuntu.com/server/docs/ubuntu-ha-drbd
  The syntax (config format) there is 8.x , so it works with the loaded kernel module

That's "hello world" working, not well tuned.

Offline

#4 2023-12-15 21:26:48

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

Re: [SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

the drbd man pages do say 8.x...

root@devuan:~# drbdadm --version
DRBDADM_BUILDTAG=GIT-hash:\ 409097fe02187f83790b88ac3e0d94f3c167adab\ reproducible\ build\,\ 2023-01-09\ 14:51:18
DRBDADM_API_VERSION=1
DRBD_KERNEL_VERSION_CODE=0x08040b
DRBDADM_VERSION_CODE=0x091600
DRBDADM_VERSION=9.22.0

root@devuan:~# man drbdadm | tail
       or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO
       drbd.conf(5), drbd(8), drbddisk(8), drbdsetup(8), drbdmeta(8) and the DRBD project web site[1]

NOTES
        1. DRBD project web site
           http://www.drbd.org/

DRBD 8.4.0                                      6 May 2011                                      DRBDADM(8)

I said earlier:

drbd-utils provides /usr/share/doc/drbd-utils/examples
  and those examples are for 9.x which don't work with the loaded kernel module (8.x).

Just doesn't make sense but this is inherited inconsistent example from, I asume, Debian.

tldr: ignore the example in /usr/share/doc/drbd-utils/

Last edited by tux2bsd (2023-12-16 05:28:11)

Offline

#5 2023-12-15 21:29:51

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

Re: [SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

Marking as solved as I have things working and don't need help.  There should be example-8.x , example-9.x .

Last edited by tux2bsd (2023-12-16 05:37:39)

Offline

#6 2023-12-29 10:39:27

tux2bsd
Member
Registered: 2023-12-15
Posts: 18  

Re: [SOLVED] DRBD 9.x userland vs kernel module being drbd 8.x

tux2bsd wrote:

This bug is also inherited:
https://www.mail-archive.com/debian-bug … 92274.html

Very relevant to Devuan.

I fixed that bug and provided the fix upstream, given time it'll make it into Debian and Devuan.

https://bugs.debian.org/cgi-bin/bugrepo … 1030118#20

Last edited by tux2bsd (2023-12-29 10:42:13)

Offline

Board footer