[DRBD-user] problem with configure drbd

Razuvakin Alexander rav at mototelecom.ru
Mon Jul 12 11:52:50 CEST 2010

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 have some problems with launch DRBD

i did the following:

for first i read documentation on
http://www.drbd.org/users-guide-emb/s-first-time-up.html

after that I began configure

this's my drbd.conf

global {
  usage-count yes;
}
common {
  protocol C;
}
resource stone {
net {
        allow-two-primaries;
        after-sb-0pri discard-least-changes;
        after-sb-1pri call-pri-lost-after-sb;
        after-sb-2pri call-pri-lost-after-sb;
    }
  on stone1 {
    device    /dev/drbd1;
    disk      /dev/sda1;
    address   192.168.9.53:7789;
    meta-disk /dev/sda2[1];
  }
}

1. drbdadm -v create-md all
drbdmeta /dev/drbd1 v08 /dev/sda2 1 create-md
md_offset 134217728
al_offset 134221824
bm_offset 134254592

Found some data
 ==> This might destroy existing data! <==

Do you want to proceed?
[need to type 'yes' to confirm] yes

Writing meta data...
initialising activity log
NOT initialized bitmap
New drbd meta data block sucessfully created.


2. drbdadm -v attach stone
drbdsetup /dev/drbd1 disk /dev/sda1 /dev/sda2 1 --set-defaults
--create-device
/dev/drbd1: Failure: (114) Lower device is already claimed. This usually
means it is mounted.
Command 'drbdsetup /dev/drbd1 disk /dev/sda1 /dev/sda2 1 --set-defaults
--create-device' terminated with exit code 10


3. drbdadm -v syncer stone
drbdsetup /dev/drbd1 syncer --set-defaults --create-device


4. drbdadm -v connect all
drbdsetup /dev/drbd1 net 192.168.9.53:7789 192.168.9.54:7789 C
--set-defaults --create-device --allow-two-primaries
--after-sb-0pri=discard-least-changes
--after-sb-1pri=call-pri-lost-after-sb
--after-sb-2pri=call-pri-lost-after-sb

5. /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by
phil at fat-tyre, 2008-11-12 16:40:33
m:res    cs            st                 ds                 p  mounted
fstype
1:stone  WFConnection  Secondary/Unknown  Diskless/DUnknown  C


in other server i see
/etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by
phil at fat-tyre, 2008-11-12 16:40:33
m:res    cs            st  ds  p  mounted  fstype
1:stone  Unconfigured


what have i done wrong???

Thank you






More information about the drbd-user mailing list