DRBD on Proxmox 3.0 ?

fpausp

Renowned Member
Aug 31, 2010
682
52
93
Austria near Vienna
I am searching a solution to sync a Block Device over VPN. The N2N-VPN is working.

I try to install drbd on proxmox 3.0, I used the howto-Information from here: http://pve.proxmox.com/wiki/DRBD


Everything works until:
Code:
root@proxmox01:/etc/drbd.d# /etc/init.d/drbd start
Starting DRBD resources:WARN: no normal resources defined for this host (proxmox01)!?

root@proxmox01:/etc/drbd.d# drbdadm create-md r0
'r0' ignored, since this host (proxmox01) is not mentioned with an 'on' keyword.

root@proxmox01:/etc/drbd.d# drbdadm up r0
'r0' ignored, since this host (proxmox01) is not mentioned with an 'on' keyword.

.....
 
Last edited:
I am searching a solution to sync a Block Device over VPN. The N2N-VPN is working.

I try to install drbd on proxmox 3.0, I used the howto-Information from here: http://pve.proxmox.com/wiki/DRBD


Everything works until:
Code:
root@proxmox01:/etc/drbd.d# /etc/init.d/drbd start
Starting DRBD resources:WARN: no normal resources defined for this host (proxmox01)!?

root@proxmox01:/etc/drbd.d# drbdadm create-md r0
'r0' ignored, since this host (proxmox01) is not mentioned with an 'on' keyword.

root@proxmox01:/etc/drbd.d# drbdadm up r0
'r0' ignored, since this host (proxmox01) is not mentioned with an 'on' keyword.

.....

Check your hostnames in /etc/drbd.d/r0.res

Where it says:
on proxmox-105 {

and

on proxmox-105 {

You must replace with your machines hostnames.
 
On both servers I have this:



resource r0 {
protocol C;
startup {
wfc-timeout 0; # non-zero wfc-timeout can be dangerous (http://forum.proxmox.com/threads/3465-Is-it-safe-to-use-wfc-timeout-in-DRBD-con$
degr-wfc-timeout 60;
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;
#data-integrity-alg crc32c; # has to be enabled only for test and disabled for production use (check man drbd.conf, section "NOTES ON DA$
}
on proxmox01.mydomain.at {
device /dev/drbd0;
disk /dev/sdc1;
address 192.168.xxx.240:7788;
meta-disk internal;
}
on proxmox2.mydomain.at {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.xxx.239:7788;
meta-disk internal;
}
}
 
Hi,

Try to insert only the hostname, without FQDN.

Where you have "on proxmox01.mydomain.at" change it to "on proxmox01" and the same for the other hostname.

Also make sure that in the /etc/hosts file you have an entry to the other server. If you don't have, add it in the following form:
In proxmox1 add a new line: 192.168.xxx.239 proxmox2 proxmox2.mydomain.at
And in proxmox2 add a new line: 192.168.xxx.240 proxmox1 proxmox1.mydomain.at

Btw: the IP for proxmox1 is 192.168.xxx.240 and the IP for proxmox2 is 192.168.xxx.239? Or the other way around?

Cumps