drbd 8.4.6 on pve 4.0?

acidrop

Renowned Member
Jul 17, 2012
204
6
83
Hello,

PVE 4.0 ships with DRBD9 already included in the pve kernel.
Is it possible to use drbd 8.4.6 (compiled from source) instead?
I'm trying to compile it against 4.2.3-2-pve but I get the following error:

Need a git checkout to regenerate drbd/.drbd_git_revision
make[1]: Entering directory '/root/drbd-8.4.6/drbd'

Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/lib/modules/4.2.3-2-pve/build

make -C /lib/modules/4.2.3-2-pve/build SUBDIRS=/root/drbd-8.4.6/drbd modules
CC [M] /root/drbd-8.4.6/drbd/drbd_debugfs.o
CC [M] /root/drbd-8.4.6/drbd/drbd_bitmap.o
CC [M] /root/drbd-8.4.6/drbd/drbd_proc.o
/root/drbd-8.4.6/drbd/drbd_proc.c: In function ‘drbd_seq_show’:
/root/drbd-8.4.6/drbd/drbd_proc.c:292:4: error: implicit declaration of function ‘bdi_rw_congested’ [-Werror=implicit-function-declaration]
bdi_rw_congested(&device->rq_queue->backing_dev_info);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/drbd-8.4.6/drbd/drbd_proc.o' failed
make[3]: *** [/root/drbd-8.4.6/drbd/drbd_proc.o] Error 1
Makefile:1398: recipe for target '_module_/root/drbd-8.4.6/drbd' failed
make[2]: *** [_module_/root/drbd-8.4.6/drbd] Error 2
Makefile:103: recipe for target 'kbuild' failed
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory '/root/drbd-8.4.6/drbd'
Makefile:90: recipe for target 'module' failed
make: *** [module] Error 2

PVE headers and build-essential already installed.

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!