<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank you for the reply; we are
deleting MYISAM tables not the INNODB tables.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'>And while dropping table I am able to
copy files in DRBD drive.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Calibri><span style='font-size:
12.0pt;font-family:Calibri;color:blue'>BalReddy. <o:p></o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
pascal.charest@gmail.com [mailto:pascal.charest@gmail.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Pascal Charest<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, July 29, 2011 1:07
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Balreddy Medipally<br>
<b><span style='font-weight:bold'>Cc:</span></b> Matt Graham;
drbd-user@lists.linbit.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [DRBD-user] Deleting
directories/files from drbd drive getting hung for some time.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Trebuchet MS"><span style='font-size:
12.0pt;font-family:"Trebuchet MS"'>Hi,&nbsp;<br clear=all>
</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=sans-serif><span style='font-size:12.0pt;
font-family:sans-serif'>Wild guess here: Would you be using INNODB engine for
your &gt;50gb tables, with --innodb-file-per-tables option set to 'true' in
/etc/my.cnf, and some &nbsp;high value for your buffers ? There are some creepy
bugs in MySQL that has no link with DRBD that would create such lockdown.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=sans-serif><span style='font-size:12.0pt;
font-family:sans-serif'>As a&nbsp;tangent&nbsp;question: are you able to copy a
file to the file system while you drop that table in MySQL ?&nbsp;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=sans-serif><span style='font-size:12.0pt;
font-family:sans-serif'>P.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=sans-serif><span style='font-size:12.0pt;
font-family:sans-serif'>&nbsp;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face=sans-serif><span
style='font-size:12.0pt;font-family:sans-serif'>--<br>
Pascal Charest,&nbsp;<br>
Cutting-edge technology consultant @ Les Laboratoires Phoenix<br>
<a href="http://www.labsphoenix.com" target="_blank">http://www.labsphoenix.com</a>
</span></font><br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Wed, Jul 27, 2011 at 12:07 AM, Balreddy Medipally &lt;<a
href="mailto:balreddy.m@imimobile.com">balreddy.m@imimobile.com</a>&gt; wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Matt,<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp;I couldn't found anything like &quot;sda:
Uncorrectable error&quot; in<br>
dmesg and I am sure that there is no faulty HDD in our servers.<br>
Actually we are using DRBD for MySQL high availability, so when dropping<br>
some big table like 50GB or bigger than that applications are not able<br>
to access MySQL DB time particular time.<br>
<br>
&nbsp;Below is my drbd.conf file.<br>
<br>
# please have a a look at the example configuration file in<br>
# /usr/share/doc/drbd/drbd.conf<br>
#<br>
resource drbd0 {<br>
protocol C;<br>
startup {<br>
become-primary-on both;<br>
}<br>
net {<br>
&nbsp; &nbsp; &nbsp; &nbsp;timeout 60;<br>
&nbsp; &nbsp; &nbsp; &nbsp;max-epoch-size &nbsp;8000;<br>
&nbsp; &nbsp; &nbsp; &nbsp;max-buffers &nbsp; &nbsp; 8000;<br>
&nbsp; &nbsp; &nbsp; &nbsp;unplug-watermark &nbsp; &nbsp; &nbsp; &nbsp;128;<br>
&nbsp; &nbsp; &nbsp; &nbsp;connect-int &nbsp; &nbsp; 10;<br>
&nbsp; &nbsp; &nbsp; &nbsp;ping-int &nbsp; &nbsp; &nbsp; &nbsp;10;<br>
&nbsp; &nbsp; &nbsp; &nbsp;sndbuf-size &nbsp; &nbsp; 1024k;<br>
&nbsp; &nbsp; &nbsp; &nbsp;ko-count &nbsp; &nbsp; &nbsp; &nbsp;180;<br>
&nbsp; &nbsp; &nbsp; &nbsp;ping-timeout &nbsp; &nbsp;5;<br>
&nbsp; &nbsp; &nbsp; &nbsp;allow-two-primaries;<br>
&nbsp; &nbsp; &nbsp; &nbsp;cram-hmac-alg sha256;<br>
&nbsp; &nbsp; &nbsp; &nbsp;shared-secret DRBDpassw0rd;<br>
&nbsp; &nbsp; &nbsp; &nbsp;after-sb-0pri discard-least-changes;<br>
&nbsp; &nbsp; &nbsp; &nbsp;after-sb-1pri violently-as0p;<br>
&nbsp; &nbsp; &nbsp; &nbsp;after-sb-2pri violently-as0p;<br>
&nbsp; &nbsp; &nbsp; &nbsp;rr-conflict violently;<br>
}<br>
syncer {<br>
&nbsp; &nbsp; &nbsp; &nbsp;rate 200M;<br>
&nbsp; &nbsp; &nbsp; &nbsp;al-extents 3389;<br>
}<br>
disk {<br>
&nbsp; &nbsp; &nbsp; &nbsp;no-disk-barrier;<br>
&nbsp; &nbsp; &nbsp; &nbsp;no-disk-flushes;<br>
&nbsp; &nbsp; &nbsp; &nbsp;no-md-flushes;<br>
&nbsp; &nbsp; &nbsp; &nbsp;on-io-error detach;<br>
}<br>
<br>
on DB-01 {<br>
&nbsp; &nbsp; &nbsp; &nbsp; device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /dev/drbd0;<br>
&nbsp; &nbsp; &nbsp; &nbsp; disk &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
/dev/cciss/c0d0p2;<br>
&nbsp; &nbsp; &nbsp; &nbsp; address &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ipv4 <a
href="http://192.168.169.3:7768" target="_blank">192.168.169.3:7768</a>;<br>
&nbsp; &nbsp; &nbsp; &nbsp; meta-disk &nbsp; &nbsp; &nbsp; &nbsp;internal;<br>
}<br>
on DB-02 {<br>
&nbsp; &nbsp; &nbsp; &nbsp; device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
/dev/drbd0;<br>
&nbsp; &nbsp; &nbsp; &nbsp; disk &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
/dev/cciss/c0d0p9;<br>
&nbsp; &nbsp; &nbsp; &nbsp; address &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ipv4 <a
href="http://192.168.169.4:7768" target="_blank">192.168.169.4:7768</a>;<br>
&nbsp; &nbsp; &nbsp; &nbsp; meta-disk &nbsp; &nbsp; &nbsp; &nbsp;internal;<br>
&nbsp; &nbsp; &nbsp; &nbsp;}<br>
}<br>
<br>
<br>
Thanks,<br>
Balreddy.<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:drbd-user-bounces@lists.linbit.com">drbd-user-bounces@lists.linbit.com</a><br>
[mailto:<a href="mailto:drbd-user-bounces@lists.linbit.com">drbd-user-bounces@lists.linbit.com</a>]
On Behalf Of Matt Graham<br>
Sent: Tuesday, July 26, 2011 10:01 PM<br>
To: <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
Subject: Re: [DRBD-user] Deleting directories/files from drbd drive<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>getting hung for some
time.<o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>From: &quot;Balreddy Medipally&quot; &lt;<a
href="mailto:balreddy.m@imimobile.com">balreddy.m@imimobile.com</a>&gt;<br>
&gt; We are using Protocol C in our drbd.conf file. &nbsp;[When we are]<br>
&gt; deleting directories/files from drbd drive, [it's hanging up] for<br>
&gt; some time. &nbsp;In this period of time it is not allowing us to do any<br>
&gt; operations on [the] drbd drive.<br>
<br>
The first thing to do is to check the output from dmesg on both nodes<br>
and make<br>
sure you don't see anything like &quot;sda: Uncorrectable error writing<br>
sector<br>
12345678&quot;. &nbsp;If you see this, it means one of your disks is dying<br>
horribly.<br>
This can cause delays while writing, since the kernel and disk will try<br>
to<br>
write to that sector several times.<br>
<br>
&gt; Please let us know if there is any tuning to be done in drbd level.<br>
<br>
It's impossible to tell, since we can't see your drbd.conf. &nbsp;Put that<br>
file on<br>
your webspace somewhere, and follow up with a link.<br>
<br>
--<br>
Matt G / Dances With Crows<br>
The Crow202 Blog: &nbsp;<a href="http://crow202.org/wordpress/" target="_blank">http://crow202.org/wordpress/</a><br>
There is no Darkness in Eternity/But only Light too dim for us to see<br>
<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><o:p></o:p></span></font></p>

</div>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>