<div dir="ltr">drbd configure :<div><br></div><div><div>[root@kvm3 ~]# drbdadm dump drbd0</div><div># resource drbd0 on kvm3: not ignored, not stacked</div><div># defined at /etc/drbd.d/drbd0.res:1</div><div>resource drbd0 {</div>
<div> on kvm3 {</div><div> device /dev/drbd0 minor 0;</div><div> disk /dev/vg_kvm3/drbd0;</div><div> meta-disk internal;</div><div> address ipv4 <a href="http://192.168.10.6:7700">192.168.10.6:7700</a>;</div>
<div> }</div><div> on kvm4 {</div><div> device /dev/drbd0 minor 0;</div><div> disk /dev/vg_kvm4/drbd0;</div><div> meta-disk internal;</div><div> address ipv4 <a href="http://192.168.10.7:7700">192.168.10.7:7700</a>;</div>
<div> }</div><div> net {</div><div> protocol A;</div><div> csums-alg md5;</div><div> verify-alg md5;</div><div> ping-timeout 30;</div><div> ping-int 30;</div>
<div> max-epoch-size 8192;</div><div> max-buffers 8912;</div><div> unplug-watermark 131072;</div><div> }</div><div> disk {</div><div> on-io-error pass_on;</div><div> disk-barrier no;</div>
<div> disk-flushes no;</div><div> resync-rate 100M;</div><div> c-plan-ahead 20;</div><div> c-delay-target 100;</div><div> c-max-rate 400M;</div><div> c-min-rate 2M;</div>
<div> al-extents 601;</div><div> }</div><div>}</div></div><div><br></div><div><br></div><div style>I run iozone on drbd and it blocks for a long time.</div><div style><br></div><div style>/root/work/iozone/iozone3_414/src/current/iozone -a -i 0 -i 1 -Rb /root/drbd_100M_test.xls<br>
</div><div style><br></div><div style><div># cat /proc/drbd</div><div>version: 8.4.3 (api:1/proto:86-101)</div><div>GIT-hash: 2acb4389deadd704f072570faf373c835c028bb1 build by root@kvm3, 2013-05-08 23:19:24</div><div> 0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate A r---n-</div>
<div> ns:29990400 nr:0 dw:29995024 dr:1393 al:1441 bm:0 lo:0 pe:1156 ua:0 ap:1156 ep:1 wo:d oos:0</div><div><br></div><div><br></div></div><div style><br></div><div style><br></div></div>