<p dir="ltr"><br>
On 7 Jun 2016 3:18 pm, &quot;Stephano-Shachter, Dylan&quot; &lt;<a href="mailto:dstathis@seas.harvard.edu">dstathis@seas.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I am building an HA NFS server using drbd and pacemaker. Everything is working well except I am getting lower write speeds than I would expect. I have been doing all of my benchmarking with bonnie++. I always get read speeds of about 112 MB/s which is just about saturating the network. When I perform a write, however, I get about 89 MB/s which is significantly slower.<br>
&gt;<br>
&gt; The weird thing is that if I run the test locally, on the server (not using nfs), I get 112 MB/s read. Also, if I run the tests over nfs but with the secondary downed via &quot;drbdadm down name&quot;, then I also get 112 MB/s. </p>
<p dir="ltr">This is confusing, you are just saying that the reads are same in case of drbd and nfs and without. Or you meant writes here? What does locally mean? Different partition without drbd? Or drbd without nfs? Nothing in drbd is local it is block level replicated storage.</p>
<p dir="ltr">I can&#39;t understand what is causing the bottleneck if it is not drbd replication or nfs. <br>
&gt;</p>
<p dir="ltr">How exactly are you testing and what is the physical disk, meaning raid or not? Is this a virtual or bare metal server? <br>
The reads are faster due to caching so did you account for that in your read test, ie reading a file at least twice the ram size?</p>
<p dir="ltr">Not exactly an answer just trying to get some more info about your setup.</p>
<p dir="ltr">&gt; If anyone could help me to figure out what is slowing down the write performance if would be very helpful. My configs are<br>
&gt;<br>
&gt;<br>
&gt; --------------------drbd-config-----------------------------<br>
&gt;<br>
&gt;<br>
&gt; # /etc/drbd.conf<br>
&gt; global {<br>
&gt;     usage-count yes;<br>
&gt;     cmd-timeout-medium 600;<br>
&gt;     cmd-timeout-long 0;<br>
&gt; }<br>
&gt;<br>
&gt; common {<br>
&gt;     net {<br>
&gt;         protocol           C;<br>
&gt;         after-sb-0pri    discard-zero-changes;<br>
&gt;         after-sb-1pri    discard-secondary;<br>
&gt;         after-sb-2pri    disconnect;<br>
&gt;         max-buffers      8000;<br>
&gt;         max-epoch-size   8000;<br>
&gt;     }<br>
&gt;     disk {<br>
&gt;         resync-rate      1024M;<br>
&gt;     }<br>
&gt;     handlers {<br>
&gt;         pri-on-incon-degr &quot;/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b &gt; /proc/sysrq-trigger ; reboot -f&quot;;<br>
&gt;         pri-lost-after-sb &quot;/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b &gt; /proc/sysrq-trigger ; reboot -f&quot;;<br>
&gt;         local-io-error   &quot;/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o &gt; /proc/sysrq-trigger ; halt -f&quot;;<br>
&gt;         split-brain      &quot;/usr/lib/drbd/notify-split-brain.sh root&quot;;<br>
&gt;     }<br>
&gt; }<br>
&gt;<br>
&gt; # resource &lt;res_name&gt; on &lt;host1&gt;: not ignored, not stacked<br>
&gt; # defined at /etc/drbd.d/&lt;res_name&gt;.res:1<br>
&gt; resource &lt;res_name&gt; {<br>
&gt;     on &lt;host2&gt; {<br>
&gt;         device           /dev/drbd1 minor 1;<br>
&gt;         disk             /dev/sdb1;<br>
&gt;         meta-disk        internal;<br>
&gt;         address          ipv4 55.555.55.55:7789;<br>
&gt;     }<br>
&gt;     on &lt;host1&gt; {<br>
&gt;         device           /dev/drbd1 minor 1;<br>
&gt;         disk             /dev/sdb1;<br>
&gt;         meta-disk        internal;<br>
&gt;         address          ipv4 55.555.55.55:7789;<br>
&gt;     }<br>
&gt;     net {<br>
&gt;         allow-two-primaries  no;<br>
&gt;         after-sb-0pri    discard-zero-changes;<br>
&gt;         after-sb-1pri    discard-secondary;<br>
&gt;         after-sb-2pri    disconnect;<br>
&gt;     }<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -----------------------nfs.conf-----------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; MOUNTD_NFS_V3=&quot;yes&quot;<br>
&gt; RPCNFSDARGS=&quot;-N 2&quot;<br>
&gt; LOCKD_TCPPORT=32803<br>
&gt; LOCKD_UDPPORT=32769<br>
&gt; MOUNTD_PORT=892<br>
&gt; RPCNFSDCOUNT=48<br>
&gt; #RQUOTAD_PORT=875<br>
&gt; #STATD_PORT=662<br>
&gt; #STATD_OUTGOING_PORT=2020<br>
&gt; STATDARG=&quot;--no-notify&quot;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; drbd-user mailing list<br>
&gt; <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
&gt; <a href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
&gt;<br>
</p>