device drbd0 not present

Benji

New Member
Nov 30, 2011
2
0
1
Hi all,
I'm facing a small problem with drbd.
I'm using proxmox VE 1.9 on both servers.
The servers have the same hardware.

I followed the instructions of http://pve.proxmox.com/wiki/DRBD to setup drbd.

Everything worked fine until I started to test rebooting the server.
On node1, get back to normal after reboot. fine
on node2, everything looks ok, drbd sees the splitbrain and solve it right away and the /proc/drbd is ok :
# cat /proc/drbd
version: 8.3.10 (api:88/proto:86-96)
GIT-hash: 5c0b0469666682443d4785d90a2c603378f9017b build by phil@fat-tyre, 2011-01-28 12:17:35
0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
ns:0 nr:521728 dw:521728 dr:0 al:0 bm:93 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

But on node2, the device /dev/drbd0 is not created by drbd which block lvm to see the physical volume and obviously the volume group that i need in proxmox.

Any tips ?

Thx in advance.
Benji
 
Hi all,
I'm facing a small problem with drbd.
I'm using proxmox VE 1.9 on both servers.
The servers have the same hardware.

I followed the instructions of http://pve.proxmox.com/wiki/DRBD to setup drbd.

Everything worked fine until I started to test rebooting the server.
On node1, get back to normal after reboot. fine
on node2, everything looks ok, drbd sees the splitbrain and solve it right away and the /proc/drbd is ok :
# cat /proc/drbd
version: 8.3.10 (api:88/proto:86-96)
GIT-hash: 5c0b0469666682443d4785d90a2c603378f9017b build by phil@fat-tyre, 2011-01-28 12:17:35
0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
ns:0 nr:521728 dw:521728 dr:0 al:0 bm:93 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

But on node2, the device /dev/drbd0 is not created by drbd which block lvm to see the physical volume and obviously the volume group that i need in proxmox.

Any tips ?

Thx in advance.
Benji
Hi,
that's strange - what is the output of drbd-overview and the drbd-resources of the rebooted machine?
Do you have exclude the disk (partition) from lvm? Please post the output of pvdisplay.

Udo
 
On the working node : I've got :
# drbd-overview
0:r0 Connected Primary/Primary UpToDate/UpToDate C r----- lvm-pv: data 1862.43G 1140.00G

On the second node : I've got :
# drbd-overview
0:r0 Connected Primary/Primary UpToDate/UpToDate C r-----

The filter in lvm.conf is the same on both node :
filter = [ "r|/dev/sdb1|", "r|/dev/disk/|", "r|/dev/block/|", "a/.*/" ]

the pvdisplay :
# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name pve
PV Size 232.38 GB / not usable 672.00 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 59490
Free PE 1023
Allocated PE 58467
PV UUID IAEoFP-xRd3-gd0k-8MVT-Ozfc-9qem-RMS7cq

drbd0 is missing...

Thx