[DRBD-user] cannot synchronize drbd

Miguel Olivares miguel.olivares at evistel.com
Mon Dec 1 20:40:55 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.


Hi everybody,

I try to install drbd in order to create a cluster, but i cannot synchronize
the data of  the cluster partition . I don't have any error message, I use
redhat  4U5 and the drdb version is 0.7.25 and I followed this link :

http://www.linux-ha.org/DRBD/QuickStart07

 Does anybody knows if it is possible to use drbd with RAID software?

This is my drbd.conf file

resource drbd0 {
protocol C;
syncer {
    rate 100M;
    group 1;
}

on pam1 {
   device    /dev/drbd1;
   disk      /dev/md3;
   address   192.168.2.1:7789;
   meta-disk  internal;
}

on pam2 {
   device    /dev/drbd1;
   disk      /dev/md3;
   address   192.168.2.2:7789;
   meta-disk  internal;
}
}

In the primary server  I did

[root at pam1 /]#  drbdadm -- --do-what-I-say primary all

[root at pam1 /]# cat /proc/drbd
version: 0.7.25 (api:79/proto:74)
GIT-hash: 3a9c7c136a9af8df921b3628129dafbe212ace9f build by
buildcentos at v20z-c4i386, 2008-02-04 09:05:54
0: cs:Unconfigured
1: cs:Connected st: Primary/Secondary ld:Consistent
   ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

[root at pam2 /]# cat /proc/drbd
version: 0.7.25 (api:79/proto:74)
GIT-hash: 3a9c7c136a9af8df921b3628129dafbe212ace9f build by
buildcentos at v20z-c4i386, 2008-02-04 09:05:54
0: cs:Unconfigured
1: cs:Connected st: Secondary/Primary ld:Consistent
   ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

[root at aspam1 /]# df -h

/dev/md1              9.7G  1.7G  7.6G  18% /
/dev/md0               46M   15M   29M  33% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/md2               71G  174M   68G   1% /var
/dev/sda7             2.1G   36M  1.9G   2% /var/crash1
/dev/sdb7             2.1G   36M  1.9G   2% /var/crash2

Dec  1 18:13:17 pam2 kernel: drbd1: short read expecting header on sock: r=0
Dec  1 18:13:17 pam2 kernel: drbd1: meta connection shut down by peer.
Dec  1 18:13:17 pam2 kernel: drbd1: asender terminated
Dec  1 18:13:17 pam2 kernel: drbd1: worker terminated
Dec  1 18:13:17 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate BrokenPipe
--> Unconnected
Dec  1 18:13:17 pam2 kernel: drbd1: Connection lost.
Dec  1 18:13:17 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
Unconnected --> WFConnection
Dec  1 18:13:48 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
WFConnection --> WFReportParams
Dec  1 18:13:48 pam2 kernel: drbd1: Handshake successful: DRBD Network
Protocol version 74
Dec  1 18:13:48 pam2 kernel: drbd1: Connection established.
Dec  1 18:13:48 pam2 kernel: drbd1: I am(P):
1:00000002:00000001:00000012:00000001:10
Dec  1 18:13:48 pam2 kernel: drbd1: Peer(S):
1:00000002:00000001:00000011:00000001:01
Dec  1 18:13:48 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
WFReportParams --> WFBitMapS
Dec  1 18:13:48 pam2 kernel: drbd1: Primary/Unknown --> Primary/Secondary
Dec  1 18:13:48 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate WFBitMapS
--> SyncSource
Dec  1 18:13:48 pam2 kernel: drbd1: Resync started as SyncSource (need to
sync 0 KB [0 bits set]).
Dec  1 18:13:48 pam2 kernel: drbd1: Resync done (total 1 sec; paused 0 sec;
0 K/sec)
Dec  1 18:13:48 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate SyncSource
--> Connected
Dec  1 18:16:19 pam2 kernel: drbd1: sock was shut down by peer
Dec  1 18:16:19 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate Connected
--> BrokenPipe
Dec  1 18:16:19 pam2 kernel: drbd1: short read expecting header on sock: r=0
Dec  1 18:16:19 pam2 kernel: drbd1: meta connection shut down by peer.
Dec  1 18:16:19 pam2 kernel: drbd1: worker terminated
Dec  1 18:16:19 pam2 kernel: drbd1: asender terminated
Dec  1 18:16:19 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate BrokenPipe
--> Unconnected
Dec  1 18:16:19 pam2 kernel: drbd1: Connection lost.
Dec  1 18:16:19 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
Unconnected --> WFConnection
Dec  1 18:16:36 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
WFConnection --> WFReportParams
Dec  1 18:16:36 pam2 kernel: drbd1: Handshake successful: DRBD Network
Protocol version 74
Dec  1 18:16:36 pam2 kernel: drbd1: Connection established.
Dec  1 18:16:36 pam2 kernel: drbd1: I am(P):
1:00000002:00000001:00000013:00000001:10
Dec  1 18:16:36 pam2 kernel: drbd1: Peer(S):
1:00000002:00000001:00000012:00000001:01
Dec  1 18:16:36 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate
WFReportParams --> WFBitMapS
Dec  1 18:16:36 pam2 kernel: drbd1: Primary/Unknown --> Primary/Secondary
Dec  1 18:16:36 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate WFBitMapS
--> SyncSource
Dec  1 18:16:36 pam2 kernel: drbd1: Resync started as SyncSource (need to
sync 0 KB [0 bits set]).
Dec  1 18:16:36 pam2 kernel: drbd1: Resync done (total 1 sec; paused 0 sec;
0 K/sec)
Dec  1 18:16:36 pam2 kernel: drbd1: drbd1_receiver [5586]: cstate SyncSource
--> Connected
Dec  1 18:17:28 pam2 kernel: drbd1: Primary/Secondary -->
Secondary/Secondary
Dec  1 18:17:51 aspam2 kernel: drbd1: Secondary/Secondary -->
Secondary/Primary



Can anybody help me, and tell me how can i do to synchronize the data?

Thanks nd best regards

Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20081201/089cd444/attachment.htm>


More information about the drbd-user mailing list