[DRBD-user] syncing before connecting??

Jean-Francois Malouin Jean-Francois.Malouin at bic.mni.mcgill.ca
Thu Mar 13 23:12:41 CET 2008

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


Just replaced a failed physical volume that was part of a logical
volume device under drbd and after doing all the nitty gritty work
(pvcreate/vgcreate/lvcreate/mkfs/resize2fs) right after re-attaching
the backing device to the drbd block device I see the syncing going on
from the primary, before connecting them?!?

feeble-0:~# drbdadm create-md r0
v08 Magic number not found
v07 Magic number not found
v07 Magic number not found
v08 Magic number not found
Writing meta data...
initialising activity log
NOT initialized bitmap
New drbd meta data block sucessfully created.

feeble-0:~# drbdadm attach r0

feeble-0:~# cat /proc/drbd 
version: 8.2.5 (api:88/proto:86-88)
GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by
root at feeble-0, 2008-03-04 17:03:29

 1: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate C r---
    ns:0 nr:1417024 dw:1415552 dr:0 al:0 bm:86 lo:47 pe:9 ua:46 ap:0
        [>....................] sync'ed:  1.0% (137877/139259)M
        finish: 0:50:23 speed: 46,640 (41,628) K/sec
        resync: used:1/31 hits:88434 misses:87 starving:0 dirty:0 changed:87
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0

feeble-0:~# drbdadm connect r0
Failure: (125) Device has a net-config (use disconnect first)
Command 'drbdsetup /dev/drbd1 net 10.0.0.1:7789 10.0.0.2:7789 C
--set-defaults - -create-device --sndbuf-size=512k --max-buffers=1024 
--timeout=60 --connect-int= 10 --ping-int=10 --ping-timeout=5 
--ko-count=4 --cram-hmac-alg=sha1 
--shared-secret=1e65d9df3b7c3ac2b77c8f7badc249b9c769393f' 
terminated with exit code 10

what gives?

regards,
jf
-- 
<° ><



More information about the drbd-user mailing list