Bug in DRBD causes split-brain, already patched by DRBD devs

You can't compile drbd because of bug #285. The solution is to patch idr.h to the old content, I explained how in the thread about this bug (at posting #18).

Many thanks richardvd, after reboot i see the module DRBR 8.4.2 on the kernel. :p

Also on my lab I have recently installed DRBD 8.4.3 on PVE 3.0 since his tar.gz, but ...
... is possible install it from the git? or make the ".deb" files since his tar.gz? and how do it?

Best regards
Cesar
 
Yes, for PVE 2.3 it is explained in the second half of the same posting. Just follow the steps.

If you ask about 3.0, I don't know.

Thank you very much richardvd and all people who has the patience to explain me. In this forum you are people wonderful.

Now i have my two nodes with DRBD 8.4.2 online, and will wait one day to see if you lose the connection.

About of DRBD 8.4.3 on PVE 3.0 is the same work, on my lab i have installed DRBD 8.4.3 on one node for now, i am sure that you don't will have problems.

Please let me to do one question: How can i to make ".deb" files for install the DRBD 8.4.3 files on PVE 2.3?

Best regards
cesar
 
I already pointed you to the second half of this posting.

If you follow these steps then it should create everything you need for drbd-8.4.3 on PVE 2.3.

Thanks richardvd, but I want to create the files:
drbd8-module-source_8.4.3-0_all.deb, and
drbd8-utils_8.4.3-0_amd64.deb

So, if i have these files with me, i will can install on several computers without need to download of git o linbit and compile it. The idea is only for gain time.

A hug
Cesar
 
These files are generated if you follow the steps indicated. You will find the .deb files in /root/drbd.
 
More details please. What do you do exactly and what's the output?

shell#mkdir ~/drbd && cd ~/drbd
shell#apt-get install git git-core git-buildpackage fakeroot debconf-utils docbook-xml docbook-xsl dpatch xsltproc autoconf flex module-assistant build-essential autoconf debhelper dpatch
shell#apt-get install pve-headers-2.6.32-19-pve
# After I apply the patch manually on the file /path/idr.h
# After i run:
shell#git clone http://git.drbd.org/drbd-8.4.git
shell#cd drbd-8.4
# So far all is oK!
# After i run:
shell#git checkout drbd-8.4.3
error: pathspec 'drbd-8.4.3' did not match any file(s) known to git.

Any idea?

Best regards
Cesar
 
Last edited:
Are you using a dedicated network port for DRBD?
If not, then network congestion is a likely source of the issue here.

Also, the error seems to indicate some sort of data corruption, maybe you have a bad nic/switch or ram.
Code:
[COLOR=#333333]Jun 14 08:50:12 kvm6 kernel: block drbd0:[B] Digest integrity check FAILED:[/B] 21158352s +4096[/COLOR]
[COLOR=#333333]Jun 14 08:50:12 kvm6 kernel: block drbd0: error receiving Data, l: 4140!
[/COLOR]


Code:
Code:
[COLOR=#333333]Jun 14 08:50:12 kvm5 kernel: block drbd0: Digest mismatch, [B]buffer modified by upper layers during write[/B]: 21158352s +4096[/COLOR]


A simple google search took me to this page:

http://www.drbd.org/users-guide/re-drbdconf.html

Go to the section titled "Notes on data integrity"
I think your answer is to this problem is there.

Hi e1000 and all people

In the mailing-list of DRBD tell me that: "the in-kernel realtek drivers of the 2.6.32 kernel were known to cause troubles. I still have to replace them for optimum stability. try to install the current version of the driver from realtek ot switch to Intel-NICs"

So, I don't know how do it, and in this link http://packages.debian.org/squeeze/firmware-realtek say for download the drivers for Realtek and Debian, but neither know if these drivers are more modern that the pve kernel.

And to make matters worse, in this country (Paraguay) is not easy to buy another brand of NICs.

Can you or anyone helpme with this problem.

Append - Re-Edit: The model of NIC is "RTL8168E" and lshw shows "firmware=rtl_nic/rtl8168e-2.fw"
and the link of debian shows (among other models):
* Realtek RTL8111D-1/RTL8168D-1 firmware (rtl_nic/rtl8168d-1.fw)
* Realtek RTL8111D-2/RTL8168D-2 firmware (rtl_nic/rtl8168d-2.fw)
* Realtek RTL8168E-1 firmware (rtl_nic/rtl8168e-1.fw)
* Realtek RTL8168E-2 firmware (rtl_nic/rtl8168e-2.fw)
* Realtek RTL8168E-3 firmware (rtl_nic/rtl8168e-3.fw)

Best regards
Cesar
 
Last edited:
Code:
shell#mkdir ~/drbd && cd ~/drbd
shell#apt-get install git git-core git-buildpackage fakeroot debconf-utils docbook-xml docbook-xsl dpatch xsltproc autoconf flex module-assistant build-essential autoconf debhelper dpatch 
shell#apt-get install pve-headers-2.6.32-19-pve
# After I apply the patch manually on the file /path/idr.h
# After i run:
shell#git clone [URL]http://git.drbd.org/drbd-8.4.git[/URL]
shell#cd drbd-8.4
[B]# So far all is oK![/B]
# After i run:
shell#git checkout drbd-8.4.3
error: pathspec 'drbd-8.4.3' did not match any file(s) known to git.

Any idea?
Why did you replace git:// by http:// ?
It is not the same. Replace your git clone line by this and try again:
Code:
git clone git://git.drbd.org/drbd-8.4.git
 
I have downloaded the drivers of Realtek from his official Web Portal:
http://152.104.125.41/downloads/dow...d=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

But when i execute (after of unpack the file):
shell# ./autorun.sh

I get this message:
Check old driver and unload it.
Build the module and install
expr: syntax error
expr: syntax error
/root/realtek/r8168-8.036.00/src/r8168_n.c: In function 'rtl8168_get_rx_csum':
/root/realtek/r8168-8.036.00/src/r8168_n.c:2103:24: error: 'RxChkS1um' undeclared (first use in this function)
/root/realtek/r8168-8.036.00/src/r8168_n.c:2103:24: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/root/realtek/r8168-8.036.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/root/realtek/r8168-8.036.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2


Or if I execute:
shell# make modules

I get this message:

# make modules
make -C src/ modules
make[1]: Entering directory `/root/realtek/r8168-8.036.00/src'
make -C /lib/modules/2.6.32-20-pve/build SUBDIRS=/root/realtek/r8168-8.036.00/src modules
expr: syntax error
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-20-pve'
CC [M] /root/realtek/r8168-8.036.00/src/r8168_n.o
/root/realtek/r8168-8.036.00/src/r8168_n.c: In function 'rtl8168_get_rx_csum':
/root/realtek/r8168-8.036.00/src/r8168_n.c:2103:24: error: 'RxChkS1um' undeclared (first use in this function)
/root/realtek/r8168-8.036.00/src/r8168_n.c:2103:24: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/root/realtek/r8168-8.036.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/root/realtek/r8168-8.036.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-20-pve'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/realtek/r8168-8.036.00/src'
make: *** [modules] Error 2

Any idea?
Best regards
Cesar
 
Why did you replace git:// by http:// ?
It is not the same. Replace your git clone line by this and try again:
Code:
git clone git://git.drbd.org/drbd-8.4.git

Many thanks richardvd

PVE 2.3 works with DRBD 8.4.3 :D

Best regards
Cesar
 
8.035.00 works with the current pve kernel. If you provide me with an email address I can send a tarball of it to you.

You're a great buddy

Please, before let me to do a questions:
1- Did you tried it or did they say?
2- Your source is http://download.hetzner.de/drivers/r8168-8.035.00.tar.bz2 ?
3- The latest version is 8.036.00 with update time 2013/6/11, can you give me access to this version?

because i tried with this (link above of hetzner.de) and i get this message:

make -C src/ modules
make[1]: Entering directory `/root/aleman/r8168-8.035.00/src'
make -C /lib/modules/2.6.32-20-pve/build SUBDIRS=/root/aleman/r8168-8.035.00/src modules
expr: syntax error
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-20-pve'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-20-pve'
make[1]: Leaving directory `/root/aleman/r8168-8.035.00/src'

Best regards
Cesar
 
1) I have tried it
2) My source was downloaded from realtek
3) I don't have latest driver source since I recently have replaced all my realtek nics with intel nics. Using intel nics and your life gets so much easier;)
 
1) I have tried it
2) My source was downloaded from realtek
3) I don't have latest driver source since I recently have replaced all my realtek nics with intel nics. Using intel nics and your life gets so much easier;)

Many thanks MIR :D

Aout of NICs Intel i will be speaking with the boss. i know that realtek is garbage

And when you have sent the file please let me know by this means (as a precaution if no arrives)

Best regards
Cesar
 
Last edited:
Hi mir

Many thanks for all your attentions and sorry if I make newbie questions

For install Realtek NICs Drivers I have executed:
shell# make modules
shell# make all

so far everything ok!

What next?

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!