PVE kernel drbd and dkms

cesarpk

Well-Known Member
Mar 31, 2012
770
3
58
Hi PVE team

This questions is for PVE developer team:

Currently PVE 3.1 has a kernel with support for DRBD 8.3.13, but DRBD 8.4.4 is much faster and more stable
please see this link:
http://blogs.linbit.com/p/469/843-random-writes-faster/

And I say more stable and faster in my personal exprience because I use these versions in production environments and developer environments since many months ago without any problem or inconveniences.

Then, I want to apply to PVE team one of two things if is possible:
1- PVE and his kernel have support for the latest version of DRBD, or
2- PVE and his kernel have "THE CORRECT KERNEL HEADER" for use it correctly with dkms, since that i have that modify the "kernel header" in each upgrade of PVE + compile DRBD = then, is very annoying because the extra work required in each PVE node

For this support, please consider these:
1- If PVE have doubts in anything, please let me know
2- For use with DKMS the solution is add these lines in the pve Kernel header:
lines are inserted from 45 to 49 in "idr.h" file:

41 #define MAX_ID_SHIFT (sizeof(int)*8 - 1)
42 #define MAX_ID_BIT (1U << MAX_ID_SHIFT)
43 #define MAX_ID_MASK (MAX_ID_BIT - 1)
44
45 /* Leave the possibility of an incomplete final layer */
46 #define MAX_LEVEL (MAX_ID_SHIFT + IDR_BITS - 1) / IDR_BITS
47
48 /* Number of id_layer structs to leave in free list */
49 #define IDR_FREE_MAX MAX_LEVEL + MAX_LEVEL
50
51 struct idr_layer {
52 unsigned long bitmap; /* A zero bit means "space here" */
53 struct idr_layer *ary[1<<IDR_BITS];
54 int count; /* When zero, we can release it */
55 int layer; /* distance from leaf */
56 struct rcu_head rcu_head;
57 };

Please PVE team let me know about of your think about of this topic, and please take into account that linbit certified his development for several linux distributions
Please see this links:
http://www.linbit.com/en/products-and-services/drbd/drbd-rhel
http://www.linbit.com/support/drbd-8.4.4/

Note extra - re edited:
And please consider that DRBD is much faster that gluterfs, ceph or any other storage backend, above all when is used in the same PVE node, it consumes a very bit of processor, and it not have comparation of consumption of hardware resources above all compared with the other storage backends. The performance incomparable of DRBD is the key of success due to his high performance for synchronous replication, especially when databases are used in the VMs (my experoence is with MS-SQl Server).

Then I want to do a third question:
Very respectfully I want to ask: Why not PVE team want to do support for the latest stable version of drbd?... Sheedog not is stable (have many bugs), and PVE team give support for this storage.


Best regards
Cesar
 
Last edited:
Then I want to do a third question:
Very respectfully I want to ask: Why not PVE team want to do support for the latest stable version of drbd?... Sheedog not is stable (have many bugs), and PVE team give support for this storage.

We do not provide 'support' for Sheeddog - that is just a technology preview, and currently not usable for production environment.
 

Hi Dietmar and thanks for your reply

I use 8.4.x and 8.3.x versions of DRBD, with protocol C, always in the LAN since many months ago in production enviroments and without problems, always installed since his tar.gz

Then, I don't know what is the problem of adamb user, but if the staff of Proxmox don't want include support for the latest version stable of DRBD, i think that will be better that the the Kernel header have the patch for that others users can compile it. In my case with dkms.

Then, I would like to apply the staff Proxmox do one of these two things

Best regards
Cesar
 
I was testing DRBD 8.4 the other day, it sure was a pain having to patch the header file Cesar referrs to.
It would be great if the Proxmox kernel had this minor fix so people can test DRBD 8.4 if they so choose.

It is really simple to build the kernel module and the user space tools packages for 8.4, but not when the kernel is missing some info in a header file.
 
Why are those patches required - is it due to openvz patches?

Hi Dietmar

The patch is for compile any version of "DRBD" with the PVE Kernel and without problems, then, if the Proxmox Staff don't want include the latest version stable of DRBD (8.4.4) in his kernel, i will be able compile it with dkms.

Best regards
Cesar
 

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!