Hello,
 
I'm (try to) running drbd-8.4.3 on a 3.4.54-8.el6.centos.alt.x86_64 kernel 
(CentOS6-4 with xen support).
 I set up my nodes with a resource tier0
 
 resource tier0 {
  protocol C;

  startup  {
    degr-wfc-timeout 120;
  }

  net {
    sndbuf-size 0;
  }

  disk {
    on-io-error   detach;
    resync-rate 25M;
  }

  syncer {
    rate 25M;
    al-extents 3833;
    verify-alg sha1;
  }

  meta-disk internal;
  on ctb5 {
    disk      /dev/sda3;
    device    /dev/drbd1;
    address   172.23.10.1:7799;
  }
  on ctb6 {
    disk      /dev/sda3;
    device    /dev/drbd1;
    address   172.23.10.2:7799;
  }

Here is the sequence of commands and status after I zeroed out the partition

### Load module, device creation and "drbdadm up $resource" went ok, leading to 
the Connected state below
[root@ctb5 ~]# modprobe drbd
[root@ctb5 ~]# drbdadm create-md tier0
Writing meta data...
initializing activity log
NOT initializing bitmap
New drbd meta data block successfully created.
success
[root@ctb5 ~]# cat /proc/drbd
version: 8.4.3 (api:1/proto:86-101)
GIT-hash: 89a294209144b68adb3ee85a73221f964d3ee515 build by root@ctb5, 
2013-08-18 15:58:37

 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:221273604

########

A this point, I declared ctb5 as the primary node:
[root@ctb5 ~]# drbdadm primary --force tier0
[root@ctb5 ~]# cat /proc/drbd
version: 8.4.3 (api:1/proto:86-101)
GIT-hash: 89a294209144b68adb3ee85a73221f964d3ee515 build by root@ctb5, 
2013-08-18 15:58:37

 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r---n-
    ns:84 nr:0 dw:0 dr:3736 al:0 bm:0 lo:0 pe:1 ua:3 ap:0 ep:1 wo:f 
oos:221273604
    [>....................] sync'ed:  0.1% (216084/216084)M
    finish: 307:19:28 speed: 0 (0) K/sec


The other node (ctb6) is now aware that this node (ctb5) is primary:
[root@ctb6 drbd-8.4.3]# cat /proc/drbd
version: 8.4.3 (api:1/proto:86-101)
GIT-hash: 89a294209144b68adb3ee85a73221f964d3ee515 build by root@ctb6, 
2013-08-17 13:13:16

 1: cs:SyncTarget ro:Secondary/Primary ds:Inconsistent/UpToDate C r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:3 ua:0 ap:0 ep:1 wo:f oos:221273604
    [>....................] sync'ed:  0.1% (216084/216084)M
    finish: 3073:14:40 speed: 0 (0) want: 0 K/sec

but nothing is ever written to disk on the secondary node (speed is 0). And 
there is "want: 0 K". Why?


At last, the loop dialog between the two nodes
:
drbdsetup events 1
1376836259 ST 1,tier0[0] { cs:SyncSource ro:Primary/Secondary 
ds:UpToDate/Inconsistent r--- }
278 ST-prev 1,tier0[0] { cs:SyncSource ro:Primary/Secondary 
ds:UpToDate/Inconsistent r--- }
/* long pause here, then */
278 ST-new 1,tier0[0] { cs:NetworkFailure ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
278 ST 1,tier0[0] { cs:NetworkFailure ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
279 ST-prev 1,tier0[0] { cs:NetworkFailure ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
279 ST-new 1,tier0[0] { cs:Unconnected ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
279 ST 1,tier0[0] { cs:WFConnection ro:Primary/Unknown ds:UpToDate/Inconsistent 
r--- }
280 ST-prev 1,tier0[0] { cs:Unconnected ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
280 ST-new 1,tier0[0] { cs:WFConnection ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
280 ST 1,tier0[0] { cs:WFConnection ro:Primary/Unknown ds:UpToDate/Inconsistent 
r--- }
281 ST-prev 1,tier0[0] { cs:WFConnection ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
281 ST-new 1,tier0[0] { cs:WFReportParams ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
281 ST 1,tier0[0] { cs:WFReportParams ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
282 ST-prev 1,tier0[0] { cs:WFReportParams ro:Primary/Unknown 
ds:UpToDate/Inconsistent r--- }
282 ST-new 1,tier0[0] { cs:WFBitMapS ro:Primary/Secondary 
ds:UpToDate/Inconsistent r--- }
282 ST 1,tier0[0] { cs:WFBitMapS ro:Primary/Secondary ds:UpToDate/Inconsistent 
r--- }
283 UH 1,tier0[0] before-resync-source
284 UH-post 1,tier0[0] before-resync-source 0x0000
285 ST-prev 1,tier0[0] { cs:WFBitMapS ro:Primary/Secondary 
ds:UpToDate/Inconsistent r--- }
285 ST-new 1,tier0[0] { cs:SyncSource ro:Primary/Secondary 
ds:UpToDate/Inconsistent r--- }
285 ST 1,tier0[0] { cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent 
r--- }
/* another long pause... */

I used a 8.3 conf file for 8.4. Drbd never complained about anything, so why 
doesn't it start syncing?

Hope someone can help me, thanks.
Massimiliano



Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di 
uno spot in TV. Per ogni nuovo abbonato 30 € di premio per te e per lui! Un 
amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/ 

_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to