[DRBD-user] Setting up using drbdmanage?

norman lists at thekingstech.com
Wed Aug 3 15:10:09 CEST 2016

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello.

I'm testing drbd for my company and am having a little trouble. I think 
i'm just missing something but can't figure out for the life of me what.

My setup is as follows.

I am trying to set up with 2 nodes, named drbd-0 and drbd-1 respectively.

drbd-0 has an IP address of 10.0.1.53 and drbd-1 has an IP of 10.0.1.55

There is no firewall between the 2 and i have public key authorization 
set up and working for ssh.

drbd-0 will be the primary node when i'm done.

OS on both nodes is debian 8.5 Jesse and there is a second hard disk set 
up as /dev/sdb. LVM is set up and working.

drbd server version is as 9.0



root at drbd-0:/home/support# drbdmanage server-version
server_version=0.97
server_git_hash=GIT-hash: d0032c6a22c29812263ab34a6e856a5b36fd7da0
drbd_kernel_version=version: 9.0.3-1 (api:2/proto:86-111)
drbd_kernel_git_hash=GIT-hash: a14cb9c3818612dfb8c3288db28a591d5a0fc2a6 
build by root at drbd-0, 2016-08-01 14:46:28
drbd_utils_version=<unknown>
drbd_utils_git_hash=<unknown>
Operation completed successfully



I set it up with the instructions from the following guides.

http://web.theurbanpenguin.com/create-3-node-drbd-9-cluster-using-drbd-manage/


http://www.drbd.org/en/doc/users-guide-90/ch-admin-drbdmanage


Everything goes fine until it comes to actually syncing the 2 nodes. The 
control volumes are there and working on both nodews but for some reason 
the other volume will not sync.

Here is the status and configuration. the resource and volume will both 
be test-1

drbd-0


root at drbd-0:/home/support# vgscan
   Reading all physical volumes.  This may take a while...
   Found volume group "drbdpool" using metadata type lvm2
   Found volume group "debian-vg" using metadata type lvm2
root at drbd-0:/home/support# drbdmanage list-nodes
+------------------------------------------------------------------------------------------------------------+
| Name   | Pool Size | Pool Free | | State |
|------------------------------------------------------------------------------------------------------------|
| drbd-0 |     20476 |     15344 | |    ok |
| drbd-1 |     20476 |     15344 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-0:/home/support# drbdmanage list-resources
+------------------------------------------------------------------------------------------------------------+
| Name | | State |
|------------------------------------------------------------------------------------------------------------|
| test-1 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-0:/home/support# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name   | Vol ID |  Size | Minor | | State |
|------------------------------------------------------------------------------------------------------------|
| test-1 |      0 | 5 GiB |   100 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-0:/home/support# drbd-overview
  0:.drbdctrl/0  Connected(2*) Secondary(2*) UpToDa/UpToDa
  1:.drbdctrl/1  Connected(2*) Secondary(2*) UpToDa/UpToDa
root at drbd-0:/home/support# ls /etc/drbd.d/
drbdctrl.res  global_common.conf
root at drbd-0:/home/support# cat /etc/drbd.conf
# You can find an example in /usr/share/doc/drbd.../drbd.conf.example

include "drbd.d/global_common.conf";
include "drbd.d/*.res";


and drbd-1

root at drbd-1:~# vgscan
   Reading all physical volumes.  This may take a while...
   Found volume group "drbdpool" using metadata type lvm2
   Found volume group "debian-vg" using metadata type lvm2
root at drbd-1:~# drbdmanage list-nodes
+------------------------------------------------------------------------------------------------------------+
| Name   | Pool Size | Pool Free | | State |
|------------------------------------------------------------------------------------------------------------|
| drbd-0 |     20476 |     15344 | |    ok |
| drbd-1 |     20476 |     15344 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-1:~# drbdmanage list-resources
+------------------------------------------------------------------------------------------------------------+
| Name | | State |
|------------------------------------------------------------------------------------------------------------|
| test-1 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-1:~# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name   | Vol ID |  Size | Minor | | State |
|------------------------------------------------------------------------------------------------------------|
| test-1 |      0 | 5 GiB |   100 | |    ok |
+------------------------------------------------------------------------------------------------------------+
root at drbd-1:~# drbd-overview
  0:.drbdctrl/0  Connected(2*) Secondary(2*) UpToDa/UpToDa
  1:.drbdctrl/1  Connected(2*) Secondary(2*) UpToDa/UpToDa
root at drbd-1:~# ls /etc/drbd.d
drbdctrl.res


What am i missing?

Do i have to manually create the .res files in /etc/drbd.d?

If so then what does "drbdmanage add-resource" do?



Any help would be appreciated.





More information about the drbd-user mailing list