I have a (probably very basic) question about DRBD versions: How do I know, what version I am using?
On Debian 12 for example I get this:
root@debian12:/# apt list "*drbd*"
drbd-doc/stable 8.4~20220106-1 all
drbd-utils/stable 9.22.0-1 amd64
root@debian12:/# dpkg -l | grep -i drbd
ii drbd-utils 9.22.0-1 amd64 RAID 1 over TCP/IP for Linux (user utilities)
But at the same time I see this:
root@debian12:/# modinfo drbd
filename: /lib/modules/6.1.0-16-amd64/kernel/drivers/block/drbd/drbd.ko
alias: block-major-147-*
license: GPL
version: 8.4.11
description: drbd - Distributed Replicated Block Device v8.4.11
author: Philipp Reisner <phil@linbit.com>, Lars Ellenberg <lars@linbit.com>
srcversion: 488C1124B879DCE7CD031DA
depends: lru_cache,libcrc32c
retpoline: Y
intree: Y
name: drbd
vermagic: 6.1.0-16-amd64 SMP preempt mod_unload modversions
sig_id: PKCS#7
signer: Debian Secure Boot CA
sig_key: 32:A0:28:7F:84:1A:03:6F:A3:93:C1:E0:65:C4:3A:E6:B2:42:26:43
sig_hashalgo: sha256
signature: 89:86:E7:81:36:C4:CF:ED:06:87:39:89:5D:94:A9:A5:66:81:8C:8B:
FD:83:D9:78:DD:8F:87:64:36:AE:2B:E3:F2:4E:3B:97:CE:5E:85:68:
51:76:04:1D:AB:C1:25:02:C5:02:62:E7:9A:48:68:A8:55:90:C7:FF:
5D:F3:D2:56:55:96:A0:60:30:09:89:CC:1B:32:6A:6A:DD:F5:08:40:
E6:FD:CF:6C:84:2A:04:02:FC:38:41:97:90:24:46:DB:21:F5:1C:D0:
DF:55:92:7D:71:FF:05:B9:FC:51:62:EF:51:11:38:E1:25:D9:75:21:
34:6E:9D:B3:23:CC:F2:53:25:0C:FE:BB:9E:10:CB:CF:64:7E:A6:BD:
E4:A7:4B:14:19:1B:E6:B8:2C:13:49:A9:38:08:B0:17:F5:49:B8:7E:
3B:8A:1D:52:D5:B8:32:71:CB:78:54:F9:84:D8:84:2D:B8:12:81:2D:
A4:8C:EC:C1:FD:1D:D2:D5:4E:07:47:E9:3A:F6:95:48:39:2C:A0:D9:
15:3A:A1:58:C5:16:8C:B2:2D:3D:29:88:E8:61:A1:6C:0E:89:50:9E:
D9:B1:7D:94:97:3D:F1:B5:03:55:A3:EF:0D:F5:77:28:09:A2:0F:F5:
41:D6:9B:40:E1:83:47:E2:B6:74:5E:67:41:22:7F:B2
parm: allow_oos:DONT USE! (bool)
parm: disable_sendpage:bool
parm: proc_details:int
parm: minor_count:Approximate number of drbd devices (1-255) (uint)
parm: usermode_helper:string
So my forty-two dollar question is this: Am I using DRBD 8 or 9?
Background of my question: I want to know which commands to use when referring to the docs, which make a distinction between the two versions at times.