INNER CODE UNIT · Python
check_drbd_module
LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:340
def check_drbd_module():
"""LINSTOR needs DRBD 9. Distributions ship an in-tree DRBD 8.4 module that
can be loaded ahead of the 9.x one from drbd-dkms, in which case everything
only breaks later with a confusing error."""
version = drbd_kernel_version()
if version is None:
die("the DRBD kernel module is not loaded — install drbd-dkms (or "
"drbd-module-$(uname -r)) and run 'modprobe drbd'")
if version[0] < 9:
die("DRBD kernel module " + str(version[0]) + "." + str(version[1])
+ " is loaded, but LINSTOR needs DRBD 9 — the distribution's "
"in-tree module is in the way: install drbd-dkms, then "
"'rmmod drbd && modprobe drbd'")
def check_reactor_can_read_drbd():
"""drbd-reactor drives the promoter off 'drbdsetup status --json'. When
drbd-utils is too old for the installed reactor, that output cannot be