Proxmox 4.x Jessie 8.2 - drbd global_common.conf

ssaman

Active Member
Oct 28, 2015
38
2
28
Hello,

I have a problem, when i try to execute.
Code:
drbdadm create-md res-node1
i get this output
Code:
drbd.d/res-node2.res:1: conflicting use of resource section 'res-node1' ...
drbd.d/res-node1.res:1: resource section 'res-node1' first used here.
my global_common.conf looks like this similar to wiki/DRBD#Prepare_drbd_configuration :
Code:
global { usage-count no; }
common { syncer { rate 30M; verify-alg md5; }
i think its because of the new version of drbd - my current version is 8.9.4-1

EDIT:
this is my res-node1
Code:
resource res-node1 {
  protocol C;
  startup {
    wfc-timeout  0;
    degr-wfc-timeout 60;
    become-primary-on both;
  }
  net {
    cram-hmac-alg sha1;
    shared-secret "xxxxxxxxxxxxx";
    allow-two-primaries;
    after-sb-0pri discard-zero-changes;
    after-sb-1pri discard-secondary;
    after-sb-2pri disconnect;
  }
  on pve4-node1 {
    device /dev/drbd0;
    disk /dev/sdb1;
    address 10.0.0.1:7788;
    meta-disk internal;
  }
  on pve4-node2 {
    device /dev/drbd0;
    disk /dev/sdb1;
    address 10.0.0.2:7788;
    meta-disk internal;
  }
}
 
Do i need drbd version 9 ? i have only version 8.9

Code:
root@pve4-node1:/home/jessie# apt-cache policy drbd-utils
drbd-utils:
  Installed: (none)
  Candidate: 8.9.4-1
  Version table:
     8.9.4-1 0
        500 http://download.proxmox.com/debian/ jessie/pve-no-subscription amd64 Packages
     8.9.2~rc1-2 0
        500 http://ftp.stw-bonn.de/debian/ jessie/main amd64 Packages
 
Do i need drbd version 9 ? i have only version 8.9

Code:
root@pve4-node1:/home/jessie# apt-cache policy drbd-utils
drbd-utils:
  Installed: (none)
  Candidate: 8.9.4-1
  Version table:
     8.9.4-1 0
        500 http://download.proxmox.com/debian/ jessie/pve-no-subscription amd64 Packages
     8.9.2~rc1-2 0
        500 http://ftp.stw-bonn.de/debian/ jessie/main amd64 Packages

the version number is misleading, you got the right one.
 
thanks you

I have one more question.
is it possible to run drbd "9" in dual primary mode or does it already use it?

if i run
Code:
drbdmanage list-nodes
it shows at my first node
Code:
+--------------------------------------------------------------------------------------------+
| Name       | Pool Size | Pool Free | Site |                                        | State |
|--------------------------------------------------------------------------------------------|
| pve4-node1 |      3072 |      3036 |  N/A |                                        |    ok |
| pve4-node2 |      3072 |      3036 |  N/A |                                        |    ok |
+--------------------------------------------------------------------------------------------+
and my second node
Code:
+--------------------------------------------------------------------------------------------+
| Name       | Pool Size | Pool Free | Site |                   |                      State |
|--------------------------------------------------------------------------------------------|
| pve4-node1 |      3072 |      3036 |  N/A |                   |                         ok |
| pve4-node2 |      3072 |      3036 |  N/A |                   | online/quorum vote ignored |
+--------------------------------------------------------------------------------------------+

EDIT:

after that i created a new VM - the command
Code:
drbdmanage list-nodes
shows
Code:
+--------------------------------------------------------------------------------------------+
| Name       | Pool Size | Pool Free | Site |                                        | State |
|--------------------------------------------------------------------------------------------|
| pve4-node1 |      3072 |      3032 |  N/A |                                        |    ok |
| pve4-node2 |      3072 |      3032 |  N/A |                                        |    ok |
+--------------------------------------------------------------------------------------------+
 
Last edited:

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!