[DRBD-user] Different Sync speeds due to same config?

Christian Hammers ch at westend.com
Fri Feb 20 00:43:09 CET 2004

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


Hello

Today I added a 10GB partition to the existing two 5GB ones. At the next
full sync I noticed that the 10GB was twice as fast synced as the
smaller 5GB. How is that possible? The config (below) was made by
cut&paste and has the same speed rates. Also the partitions are on the
same raid1 in both servers and of course connected over the same gigabit 
crosslink. I always complained about the slow syncing speed but this is
even stranger now...

$ cat drbd.strangeness 
root at mail3a:~# cat /proc/drbd 
version: 0.6.11 (api:64/proto:62)

0: cs:SyncingAll st:Primary/Secondary ns:567720 nr:0 dw:0 dr:567720 pe:120 ua:0
        [==>.................] sync'ed: 11.1% (4450/5004)M
        finish: 0:21:32h speed: 3,696 (3,548) K/sec
1: cs:SyncingAll st:Primary/Secondary ns:589080 nr:0 dw:0 dr:589080 pe:183 ua:0
        [==>.................] sync'ed: 11.6% (4429/5004)M
        finish: 0:21:05h speed: 3,762 (3,682) K/sec
2: cs:SyncingAll st:Primary/Secondary ns:1742340 nr:0 dw:0 dr:1742340 pe:632 ua:0
        [===>................] sync'ed: 16.7% (8542/10244)M
        finish: 0:13:59h speed: 11,214 (10,889) K/sec

After the big one was finished the speed of the others only changed
marginally: 

# cat /proc/drbd 
version: 0.6.11 (api:64/proto:62)

0: cs:SyncingAll st:Primary/Secondary ns:4545188 nr:0 dw:0 dr:4545240 pe:513 ua:0
        [=================>..] sync'ed: 88.8% (565/5004)M
        finish: 0:02:05h speed: 8,808 (4,208) K/sec
1: cs:SyncingAll st:Primary/Secondary ns:4651524 nr:0 dw:0 dr:4651560 pe:634 ua:0
        [==================>.] sync'ed: 90.8% (461/5004)M
	finish: 0:01:48h speed: 9,729 (4,307) K/sec
2: cs:Connected st:Secondary/Secondary ns:10490412 nr:0 dw:0 dr:10490412 pe:0 ua:

bye,

-christian-

resource drbd0 {
  protocol=C
  fsckcmd=fsck -p -y
  # inittimeout=60
  # skip-wait

  disk {
    do-panic
    disk-size=5124703
  }

  net {
		sync-nice=-10
		# KB/s
    sync-min=100000
    sync-max=122070
    #tl-size=5000
    timeout=60
    connect-int=10
    ping-int=10
  }

  on mail3a {
    device=/dev/nb0
    disk=/dev/sda7
    address=10.10.10.1
    port=7788
  }

  on mail3b {
    device=/dev/nb0
    disk=/dev/sda7
    address=10.10.10.2
    port=7788
  }
}

resource drbd1 {
  protocol=C
  fsckcmd=fsck -p -y
  # inittimeout=60
  # skip-wait

  disk {
    do-panic
    disk-size=5124703
  }

  net {
		sync-nice=-10
		# KB/s
    sync-min=100000
    sync-max=122070
    #tl-size=5000
    timeout=60
    connect-int=10
    ping-int=10
  }
  on mail3a {
    device=/dev/nb1
    disk=/dev/sda8
    address=10.10.10.1
    port=7789
  }
  on mail3b {
    device=/dev/nb1
    disk=/dev/sda8
    address=10.10.10.2
    port=7789
  }
}	

resource drbd2 {
  protocol=C
  fsckcmd=fsck -p -y
  # inittimeout=60
  # skip-wait

  disk {
    do-panic
    disk-size=10490413
  }

  net {
		sync-nice=-10
		# KB/s
    sync-min=100000
    sync-max=122070
    #tl-size=5000
    timeout=60
    connect-int=10
    ping-int=10
  }
  on mail3a {
    device=/dev/nb2
    disk=/dev/sda10
    address=10.10.10.1
    port=7790
  }
  on mail3b {
    device=/dev/nb2
    disk=/dev/sda10
    address=10.10.10.2
    port=7790
  }
}	

-- 
Christian Hammers             WESTEND GmbH  |  Internet-Business-Provider
Technik                       CISCO Systems Partner - Authorized Reseller
                              Lütticher Straße 10      Tel 0241/701333-11
ch at westend.com                D-52064 Aachen              Fax 0241/911879




More information about the drbd-user mailing list