[DRBD-user] drbd resync slow

Kirby Bakken kirbyb at us.ibm.com
Thu Jan 10 18:42:43 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.


I've got two systems connected via 2nd ethernet (eth1) via a crossover 
cable.  I'm resyncing a 450GB drbd device, and its going really slowly... 
I must have something goofed up.  Here's the drbd status:

1: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate C r---
    ns:0 nr:241883576 dw:241428824 dr:0 al:0 bm:14736 lo:14212 pe:475 
ua:14211 ap:0
        [===========>........] sync'ed: 59.1% (163515/399280)M
        finish: 8:18:19 speed: 5,440 (5,504) K/sec
        resync: used:29/31 hits:15089561 misses:14877 starving:0 dirty:0 
changed:14877
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0

And here's the drbd.conf contents (below).

Any ideas?  My 'r0' resource resync'ed in about 3 hours or less..  The 
'r1' resource is going to take 20+ hours at this rate....

[root at fspbro214 sysconfig]# cat /etc/drbd.conf 
global {
  usage-count yes;
}

common {
  syncer { rate 100M; }
}

resource r0 {
  protocol C;

  handlers {
    pri-on-incon-degr "echo O > /proc/sysrq-trigger ; halt -f";
    pri-lost-after-sb "echo O > /proc/sysrq-trigger ; halt -f";
    local-io-error "echo O > /proc/sysrq-trigger ; halt -f";
  }

  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
  }

  net {
    after-sb-0pri discard-younger-primary;
    after-sb-1pri consensus;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

  syncer {
    al-extents 257;
  }

  on fspbro213.rchland.ibm.com {
    device     /dev/drbd0;
    disk       /dev/sdb1;
     address    192.168.0.2:7788;
     meta-disk  /dev/mapper/rootvg-data[0]; 
  }

  on fspbro214.rchland.ibm.com {
    device    /dev/drbd0;
    disk      /dev/sdb1;
     address   192.168.0.3:7788;
     meta-disk /dev/mapper/rootvg-data[0];
  }
}

resource r1 {
  protocol C;

  handlers {
    pri-on-incon-degr "echo O > /proc/sysrq-trigger ; halt -f";
    pri-lost-after-sb "echo O > /proc/sysrq-trigger ; halt -f";
    local-io-error "echo O > /proc/sysrq-trigger ; halt -f";
  }

  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
  }

  net {
    after-sb-0pri discard-younger-primary;
    after-sb-1pri consensus;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

  syncer {
    al-extents 257;
  }

  on fspbro213.rchland.ibm.com {
    device     /dev/drbd1;
    disk       /dev/sda4;
     address    192.168.0.2:7789;
     meta-disk  /dev/mapper/rootvg-data[1]; 
  }

  on fspbro214.rchland.ibm.com {
    device    /dev/drbd1;
    disk      /dev/sda4;
     address   192.168.0.3:7789;
     meta-disk /dev/mapper/rootvg-data[1];
  }
}

=======================
Kirby Bakken
ESW Build Architect
Rochester, MN
email: kirbyb at us.ibm.com
ezpage:kirbyb
507-253-4549 / Tie:  553-4549
Fax:  507-253-3495

......one more straw can't possibly matter....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080110/ad217dff/attachment.htm>


More information about the drbd-user mailing list