Proxmox & DRBD - Up to date how-to ?

avanmessen

New Member
May 12, 2010
9
0
1
I' m curious about running proxmox on DRBD but
I' m having some trouble getting this to work by
following the how-to on this ...

Here is what I get when I try to run DRBD :

DRBD module version: 8.3.2
userland version: 8.3.4
preferably kernel and userland versions should match.

How can I make these match ?
DRBD will not run like this ...

Thanks to advise ! :p
 
You' re right it runs, but ...

drbdadm create-md r0
DRBD module version: 8.3.2
userland version: 8.3.4
preferably kernel and userland versions should match.
Device '0' is configured!
Command 'drbdmeta 0 v08 /dev/sdb1 internal create-md' terminated with exit code 20
drbdadm create-md r0: exited with code 20
 
global { usage-count no; }
common { syncer { rate 30M; } }

resource r0 {
protocol C;
startup {
wfc-timeout 15;
become-primary-on both;
}
net {
cram-hmac-alg sha1;
shared-secret "my-secret";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
on node1 {
device /dev/drbd0;
disk /dev/sdb1;
address 10.0.0.1:7788;
meta-disk internal;
}
on node2 {
device /dev/drbd0;
disk /dev/sdb1;
address 10.0.0.2:7788;
meta-disk internal;
}
}
 
Hum that's exactly what I did this morning...

Is there any filesystem on /dev.sdb1 ?
 
To be sure I ran a "dd if=/dev/zero of=/dev/sdb1" on the disks.
Then I recreated the sdb1 partition as stated in the how-to ...
 
Last edited:
Still getting :

drbdadm create-md r0
DRBD module version: 8.3.2
userland version: 8.3.4
preferably kernel and userland versions should match.
Device '0' is configured!
Command 'drbdmeta 0 v08 /dev/sdb1 internal create-md' terminated with exit code 20
drbdadm create-md r0: exited with code 20

Even though fdisk shows :

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1bc37ad4

Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 8e Linux LVM
 
Have you tried restarting drbd ?

Or passing through this error and up the resource ?
 
DRBD restarted.
Upping resource gives me :

drbdadm up r0
DRBD module version: 8.3.2
userland version: 8.3.4
preferably kernel and userland versions should match.
0: Failure: (124) Device is attached to a disk (use detach first)
Command 'drbdsetup 0 disk /dev/sdb1 /dev/sdb1 internal --set-defaults --create-device' terminated with exit code 10
 
you are not running the latest stable, all our kernel branches got DRBD module 8.3.4

pls post the output of:
Code:
pveversion -v
 
Here it is :

pve-manager: 1.5-8 (pve-manager/1.5/4674)
running kernel: 2.6.24-8-pve
pve-kernel-2.6.24-8-pve: 2.6.24-16
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1

Am stuck again though, when I try to run
"pvcreate /dev/drbd0" it now returns me :

Device /dev/drbd0 not found (or ignored by filtering).

And yes, I modified lvm.conf as per the how-to and
restarted the lvm service.

We would like to compare a working version of proxmox
to our actual setup running vmware server 2 on a DRBD.
All help is appreciated in getting us there ...
 
Last edited:
df command doesn' t show the drbd0 device
fdisk on sdb1 shows a linux lvm partition
rebooted the servers to be sure

What am I missing ?
 

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!