[DRBD-user] Question about different drbd blocksizes.

Uli Schellhaas uli.schellhaas at leute.server.de
Fri Jul 27 14:20:18 CEST 2007

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


Hello List,

i got a question about different sizes of underlying partitions for drbd 
devices.
I created 2 devices long ago on one host, now i got the other host up 
and running and try to connect r0.
Thing is, r1 has same sizes on both nodes, with r0 i didnt manage to 
create same blocksize partitions with fdisk.
So I chose  to make the new hosts device bigger than the syncsource, to 
make sure the filesystem fits.
r1 is already synced, now i tried with r0 and it wont work.
What can i do to make it sync ?
Version is 07.23

connect on ares:

atlas ~ # cat /proc/drbd
version: 0.7.23 (api:79/proto:74)
SVN Revision: 2686 build by root at livecd, 2007-02-16 16:59:18
 0: cs:WFBitMapS st:Primary/Unknown ld:Consistent
    ns:0 nr:0 dw:434347556 dr:774607069 al:1004314 bm:1004314 lo:0 pe:0 
ua:0 ap:0
 1: cs:Connected st:Primary/Secondary ld:Consistent
    ns:580609660 nr:0 dw:116590468 dr:687315273 al:47486 bm:79234 lo:0 
pe:0 ua:0 ap:0

ares usr # cat /proc/drbd
version: 0.7.23 (api:79/proto:74)
SVN Revision: 2686 build by root at livecd, 2007-07-25 17:06:30
 0: cs:WFReportParams st:Secondary/Unknown ld:Inconsistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:84711 lo:1 pe:0 ua:0 ap:0
 1: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:580609692 dw:580609692 dr:0 al:0 bm:105963 lo:0 pe:0 ua:0 ap:0

disconnect on ares

ares usr # cat /proc/drbd
version: 0.7.23 (api:79/proto:74)
SVN Revision: 2686 build by root at livecd, 2007-07-25 17:06:30
 0: cs:Unconnected st:Secondary/Unknown ld:Inconsistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:93083 lo:1 pe:0 ua:0 ap:0
 1: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:580609916 dw:580609916 dr:0 al:0 bm:105963 lo:0 pe:0 ua:0 ap:0

atlas ~ # cat /proc/drbd
version: 0.7.23 (api:79/proto:74)
SVN Revision: 2686 build by root at livecd, 2007-02-16 16:59:18
 0: cs:Timeout st:Primary/Secondary ld:Consistent
    ns:0 nr:0 dw:434390832 dr:774608113 al:1004854 bm:1004854 lo:0 pe:0 
ua:0 ap:0
 1: cs:Connected st:Primary/Secondary ld:Consistent
    ns:580609940 nr:0 dw:116590748 dr:687315273 al:47486 bm:79234 lo:0 
pe:0 ua:0 ap:0

disconnect on atlas

atlas ~ # cat /proc/drbd
version: 0.7.23 (api:79/proto:74)
SVN Revision: 2686 build by root at livecd, 2007-02-16 16:59:18
 0: cs:StandAlone st:Primary/Unknown ld:Consistent
    ns:0 nr:0 dw:434393000 dr:774608113 al:1004861 bm:1004861 lo:0 pe:0 
ua:0 ap:0
 1: cs:Connected st:Primary/Secondary ld:Consistent
    ns:580609976 nr:0 dw:116590784 dr:687315273 al:47486 bm:79234 lo:0 
pe:0 ua:0 ap:0

fdisk atlas

/dev/sda3            1497       73559   578846047+  83  Linux
/dev/sda4           73560      145619   578821950   83  Linux

fdisk ares

/dev/sdb1               1       72064   578854048+  83  Linux
/dev/sdb2           72065      144124   578821950   83  Linux

log atlas

drbd0: drbd0_receiver [6779]: cstate WFConnection --> WFReportParams
drbd0: Handshake successful: DRBD Network Protocol version 74
drbd0: Connection established.
drbd0: I am(P): 1:00000002:00000001:00000001:00000003:10
drbd0: Peer(S): 0:00000001:00000001:00000001:00000001:00
drbd0: drbd0_receiver [6779]: cstate WFReportParams --> WFBitMapS
drbd0: [drbd0_receiver/6779] sock_sendmsg time expired, ko = 4294967295
..
drbd0: [drbd0_receiver/6779] sock_sendmsg time expired, ko = 4294967262
drbd0: PingAck did not arrive in time.
drbd0: drbd0_asender [31534]: cstate WFBitMapS --> NetworkFailure
drbd0: asender terminated
drbd0: drbd0_receiver [6779]: cstate NetworkFailure --> Timeout
drbd0: short sent ReportBitMap size=4096 sent=440
drbd0: Primary/Unknown --> Primary/Secondary
drbd0: drbdsetup [31764]: cstate Timeout --> Unconnected
drbd0: drbd0_receiver [6779]: cstate Unconnected --> BrokenPipe
drbd0: short read expecting header on sock: r=-512
drbd0: worker terminated
drbd0: drbd0_receiver [6779]: cstate BrokenPipe --> StandAlone
drbd0: Connection lost.
drbd0: receiver terminated
drbd0: drbdsetup [31764]: cstate StandAlone --> StandAlone

log ares

drbd0: drbdsetup [7159]: cstate StandAlone --> Unconnected
drbd0: drbd0_receiver [7160]: cstate Unconnected --> WFConnection
drbd0: drbd0_receiver [7160]: cstate WFConnection --> WFReportParams
drbd0: Handshake successful: DRBD Network Protocol version 74
drbd0: resync bitmap: bits=144678743 words=4521212
drbd0: size = 551 GB (578714972 KB)
drbd0: drbdsetup [7174]: cstate WFReportParams --> Unconnected
drbd0: short sent PingAck size=8 sent=-1001
drbd0: asender terminated
drbd0: 578714972 KB now marked out-of-sync by on disk bit-map.
drbd0: I am(S): 0:00000001:00000001:00000001:00000001:00
drbd0: Peer(P): 1:00000002:00000001:00000001:00000003:10
drbd0: drbd0_receiver [7160]: cstate Unconnected --> WFBitMapT
drbd0: Secondary/Unknown --> Secondary/Primary
drbd0: drbd0_receiver [7160]: cstate WFBitMapT --> BrokenPipe
drbd0: error receiving ReportBitMap, l: 4088!
drbd0: worker terminated
drbd0: drbd0_receiver [7160]: cstate BrokenPipe --> StandAlone
drbd0: Connection lost.
drbd0: receiver terminated
drbd0: drbdsetup [7174]: cstate StandAlone --> StandAlone




More information about the drbd-user mailing list