[DRBD-user] DRBD8 ADJUST&DISCONNECT

yataman raveen at tlen.pl
Mon Nov 26 12:00:32 CET 2007

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


SHORT NAMES:
root at host22446677:~# cat /proc/drbd
version: 8.0.6 (api:86/proto:86)
SVN Revision: 3048 build by root at develsystem, 2007-11-23 17:23:17
 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:0 nr:0 dw:0 dr:1056896 al:0 bm:64 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:65731 misses:65 starving:0 dirty:0 changed:65
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0

root at host22446677:~# drbdadm adjust all -d
drbdsetup /dev/drbd0 syncer --set-defaults --create-device --rate=40M
root at dss22446677:~# drbdadm adjust all
root at dss22446677:~# dmesg
// empty
root at host22446677:~# cat /proc/drbd
version: 8.0.6 (api:86/proto:86)
SVN Revision: 3048 build by root at develsystem, 2007-11-23 17:23:17
 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:0 nr:0 dw:0 dr:1056896 al:0 bm:64 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:65731 misses:65 starving:0 dirty:0 changed:65
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0

without sync

LONG NAMES:
root at host22446677:~# cat /proc/drbd
version: 8.0.6 (api:86/proto:86)
SVN Revision: 3048 build by root at develsystem, 2007-11-23 17:23:17
 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:0 nr:1048576 dw:1048576 dr:0 al:0 bm:132 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:65472 misses:64 starving:0 dirty:0 changed:64
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0

root at host22446677:~# drbdadm adjust all -d
drbdsetup /dev/dssc7s-dRzb-51O9-9fFy-n5IQ-n4at-bUT2H6_drbd detach
drbdsetup /dev/dssc7s-dRzb-51O9-9fFy-n5IQ-n4at-bUT2H6_drbd disk
/dev/vg+vg00/lv+n+lv0000
/dev/vg+vg00/lv+r+dssc7s-dRzb-51O9-9fFy-n5IQ-n4at-bUT2H6 0 --set-defaults
--create-device --on-io-error=detach
root at host22446677:~# drbdadm adjust all
root at host22446677:~# cat /proc/drbd
version: 8.0.6 (api:86/proto:86)
SVN Revision: 3048 build by root at develsystem, 2007-11-23 17:23:17
 0: cs:SyncTarget st:Primary/Secondary ds:Inconsistent/UpToDate C r---
    ns:0 nr:70560 dw:70560 dr:0 al:0 bm:138 lo:1 pe:771 ua:0 ap:0
        [=>..................] sync'ed:  7.4% (978016/1048576)K
        finish: 0:01:22 speed: 11,760 (11,760) K/sec
        resync: used:2/31 hits:5175 misses:6 starving:0 dirty:0 changed:6
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0

root at host22446677:~# dmesg
drbd0: disk( UpToDate -> Diskless )
drbd0: disk( Diskless -> Attaching )
drbd0: Found 2 transactions (2 active extents) in activity log.
drbd0: max_segment_size ( = BIO size ) = 32768
drbd0: reading of bitmap took 1 jiffies
drbd0: recounting of set bits took additional 0 jiffies
drbd0: 0 KB marked out-of-sync by on disk bit-map.
drbd0: Marked additional 8192 KB as out-of-sync based on AL.
drbd0: disk( Attaching -> Negotiating )
drbd0: Writing meta data super block now.
drbd0: Writing meta data super block now.
drbd0: writing of bitmap took 0 jiffies
drbd0: 1024 MB marked out-of-sync by on disk bit-map.
drbd0: 1048576 KB now marked out-of-sync by on disk bit-map.
drbd0: Writing meta data super block now.
drbd0: conn( Connected -> WFBitMapT )
drbd0: conn( WFBitMapT -> WFSyncUUID )
drbd0: conn( WFSyncUUID -> SyncTarget ) disk( Negotiating -> Inconsistent )
drbd0: Began resync as SyncTarget (will sync 1048576 KB [262144 bits set]).
drbd0: Writing meta data super block now.

with sync

maybe i do something wrong, i`m going to do more tests. 

-- 
View this message in context: http://www.nabble.com/DRBD8-ADJUST-DISCONNECT-tf4860177.html#a13947576
Sent from the DRBD - User mailing list archive at Nabble.com.




More information about the drbd-user mailing list