[DRBD-user] sync doesnt work

Walter Robert Ditzler ditwal001 at gmail.com
Thu Jun 28 13:48:00 CEST 2012

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


Hi Felix,

 

yes all volumes didn't sync even when the /etc/init.d/drbd status said

 

- Primary/Secondary  UpToDate/UpToDate C

 

I just finished to manually copy all devices onto the xen002.

 

And about the " meta-disk /dev/vgmain/lv_drbd-meta[0];" you said you are not
familiar with it, have a look here

 

- http://www.drbd.org/users-guide-8.3/ch-internals.html#s-meta-data-size

 

my disk size total is 2 TB that means with drbd formula:

Mmb<(Cmb/32768) + 1

Mmb<(1024*1024*2/32768) + 1

Mmb<65

 

and here 

 

- http://www.drbd.org/users-guide/re-drbdconf.html#idp10760864

 

meta-disk internal, meta-disk device, meta-disk device [index]

When an index is specified, each index number refers to a fixed slot of
meta-data of 128 MB, which allows a maximum data size of 4 GB. This way,
multiple DBRD devices can share the same meta-data device. For example, if
/dev/sde6[0] and /dev/sde6[1] are used, /dev/sde6 must be at least 256 MB
big. Because of the hard size limit, use of meta-disk indexes is
discouraged.

My meta lv device is 10GB big (lvcreate -L 10GB -n lv_drbd-meta vgmain), i
think big enough for 2TB of max disk usage.

 

 

Thanks Walter.

 

From: Walter Robert Ditzler [mailto:ditwal001 at gmail.com] 
Sent: Mittwoch, 27. Juni 2012 10:31
To: drbd-user at lists.linbit.com
Subject: sync doesnt work
Importance: High

 

hi all,

 

i have a problem in sync'ing 2 hosts. actually they dont even when i see in
the status, that all goes fine! for maintenance reasons i had to move my xen
from host xen001 to host xen002. after stopping xen001 and starting xen002 i
realized, that i had a 2 month old disk replication.

 

after stopping drbd and doing the "dd bs=4M if=/dev/vgmain/lv_server01 | ssh
-p 2222 root at 10.255.255.2 'dd bs=4M of=/dev/vgmain/lv_server01'" i had again
the latest copy onto the xen002 L

 

any glue in that?

 

thanks a lot, walter.

 

 

(ping works between hosts)

***

root at srv-ldeb-xen001:~# ping 10.255.255.2

PING 10.255.255.2 (10.255.255.2) 56(84) bytes of data.

64 bytes from 10.255.255.2: icmp_req=1 ttl=64 time=0.166 ms 

 

root at srv-ldeb-xen002:~#  ping 10.255.255.1

PING 10.255.255.1 (10.255.255.1) 56(84) bytes of data.

64 bytes from 10.255.255.1: icmp_req=1 ttl=64 time=0.169 ms

***

 

(drbd status)

***

root at srv-ldeb-xen001:~# /etc/init.d/drbd status

drbd driver loaded OK; device status:

version: 8.3.11 (api:88/proto:86-96)

srcversion: 0D2B62DEDB020A425130935

m:res         cs            ro                 ds                 p  mounted
fstype

0:server01    Connected     Primary/Secondary  UpToDate/UpToDate C

1:server02    Connected     Primary/Secondary  UpToDate/UpToDate  C

2:server03    Connected     Primary/Secondary  UpToDate/UpToDate  C

3:server04    Connected     Primary/Secondary  UpToDate/UpToDate  C

4:server05_1  Connected     Primary/Secondary  UpToDate/UpToDate  C

5:server05_2  Connected     Primary/Secondary  UpToDate/UpToDate  C

6:server06    Connected     Primary/Secondary  UpToDate/UpToDate  C

root at srv-ldeb-xen001:~#

***

 

(lvm and drbd install script)

***

lvcreate -L 10GB -n lv_drbd-meta vgmain

lvcreate -L 100GB -n lv_server01 vgmain

lvcreate -L 50GB -n lv_server02 vgmain

lvcreate -L 100GB -n lv_server03 vgmain

lvcreate -L 100GB -n lv_server04 vgmain

lvcreate -L 50GB -n lv_server05_1 vgmain

lvcreate -L 1.15TB -n lv_server05_2 vgmain

lvcreate -L 50GB -n lv_server06 vgmain

 

drbdadm -f create-md server01

drbdadm -f create-md server02

drbdadm -f create-md server03

drbdadm -f create-md server04

drbdadm -f create-md server05_1

drbdadm -f create-md server05_2

drbdadm -f create-md server06

 

/etc/init.d/drbd start

 

drbdadm up server01

drbdadm up server02

drbdadm up server03

drbdadm up server04

drbdadm up server05_1

drbdadm up server06

 

(only on xen001 host)

drbdsetup /dev/drbd0 primary -o

drbdsetup /dev/drbd1 primary -o

drbdsetup /dev/drbd2 primary -o

drbdsetup /dev/drbd3 primary -o

drbdsetup /dev/drbd4 primary -o

drbdsetup /dev/drbd5 primary -o

drbdsetup /dev/drbd6 primary -o

***

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20120628/febd3475/attachment.htm>


More information about the drbd-user mailing list