Hi,<br><br>this applies for drbd 0.7.17.<br><br>I was trying to get drbd to work only using drbdsetup (not drbdadm) without configuration files.<br>As I wrote in <a href="http://lists.linbit.com/pipermail/drbd-user/2006-April/004856.html">
http://lists.linbit.com/pipermail/drbd-user/2006-April/004856.html</a> I'm experiencing very slow syncing.<br><br>Now I found that maybe the default syncing rate in drbd/drbd_main.c line 1339 is given in B/s and not in KB/s as it should be.
<br><br>I guess instead of<br>mdev-&gt;sync_conf.rate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 250;<br>there should be<br>mdev-&gt;sync_conf.rate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 250*1024;<br><br>I don't understand the shaping algorithm up to now but changing that seems to work somehow. Now I see in /proc/drbd:
<br><br>version: 0.7.17 (api:77/proto:74)<br>SVN Revision: 2093 build by XXX, 2006-04-24 19:09:50<br>&nbsp;0: cs:SyncTarget st:Secondary/Primary ld:Inconsistent<br>&nbsp;&nbsp;&nbsp; ns:0 nr:37104 dw:37104 dr:0 al:0 bm:10 lo:15 pe:6384 ua:15 ap:0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [======&gt;.............] sync'ed: 32.3% (86076/123120)K<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; finish: 0:01:29 speed: 924 (820) K/sec<br><br>instead of:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; finish: 0:15:21 speed: 4 (4) K/sec<br><br>This is for sure better - since faster - but somehow not really shaped at 250 K/sec. I don't mind that since I don't really need shaping.
<br><br>Warm regards,<br>Martin<br>