<div dir="ltr">I have a system of 2 identical nodes, each of which is set raid10 of 4 SATA drives. Synchronization is based on individual network adapters on the 1Gb Full duplex uplink. Disk resources are published through iscsitarget. Tests were performed using performance IOmeter.<br>
Settings IOmeter:<br>maximum disk sise = 10000 sectors<br>starting disks sector = 10000<br>Access spetifications = All in one<br><br>Sample results (no errors in the accuracy of measurement):<br>One site works, the other is poweroff 1000 I / O, 10 Mb / s Both site work, drbd disconnected 1000 I / O, 10 Mb / s Both site work, drbd connected 10 (!) I / O, 0.1 (!) M / s<br>
<br>And drbd simply in a state connected, synchronization has been completed, the two nodes in UpToDate. What could be the problem? Details of the systems and configuration below.<br><br>OS Ubintu 8.04. <br>Net <a href="http://10.133.133.0/30">10.133.133.0/30</a> is simply uplink bettween nodes.<br>
<br>#aptitude install drbd8-utils<br><br># /etc/drbd.conf<br>global { usage-count no; }<br><br>common { protocol A;<br> startup { wfc-timeout 30; degr-wfc-timeout 120; }<br> disk { on-io-error detach; }<br>
net { timeout 60;<br> connect-int 10;<br> ping-int 10;<br> sndbuf-size 240k;<br> max-buffers 20480;<br> max-epoch-size 16384;<br>
unplug-watermark 20480;<br> after-sb-0pri discard-younger-primary;<br> after-sb-1pri consensus;<br> }<br> syncer { rate 500M;<br> al-extents 257;<br>
}<br>}<br>resource r0 {<br> on fs0 {<br> address <a href="http://10.133.133.1:7790">10.133.133.1:7790</a>;<br> disk /dev/sdb1;<br> device /dev/drbd0;<br> meta-disk "internal";<br>
}<br> on fs1 {<br> address <a href="http://10.133.133.2:7790">10.133.133.2:7790</a>;<br> disk "/dev/sdb1";<br> device "/dev/drbd0";<br> meta-disk "internal";<br> }<br>
}<br><br># aptitude install iscsitarget<br><br># /etc/ietd.conf<br>Target iqn.2008-09.com:storage.r0<br> IncomingUser iscsi XXXXXXXXXXXX<br> Lun 0 Path=/dev/drbd0,Type=fileio<br><br># ifconfig eth1<br>eth1 Link encap:Ethernet HWaddr 00:30:48:d2:1b:37<br>
inet addr:<a href="http://10.133.133.1">10.133.133.1</a> Bcast:<a href="http://10.133.133.3">10.133.133.3</a> Mask:<a href="http://255.255.255.252">255.255.255.252</a><br> inet6 addr: fe80::230:48ff:fed2:1b37/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1<br> RX packets:31057691 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:66325409 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br>
RX bytes:3125652368 (2.9 GB) TX bytes:2951365778 (2.7 GB)<br> Base address:0x3000 Memory:d8400000-d8420000<br><br><br></div>