<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>dmesg | grep sr1 should show you all you need to know.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dan (there&#8217;s that word &#8220;should&#8221; again&lt;g&gt;)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> drbd-user-bounces@lists.linbit.com [mailto:drbd-user-bounces@lists.linbit.com] <b>On Behalf Of </b>Andrew Eross<br><b>Sent:</b> Friday, October 05, 2012 2:17 PM<br><b>To:</b> drbd-user@lists.linbit.com<br><b>Subject:</b> [DRBD-user] IO Error Logging<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>Hi guys,<o:p></o:p></p><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>I'm trying to debug a SSD drive that's the backing device for my secondary node.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>The primary/secondary are sync'd (protocol C) and everything goes fine until I get to testing fail-over, e.g.on the primary &quot;drbdadm secondary drbd-sr1&quot;, and on the secondary &quot;drbdadm primary drbd-sr1&quot;.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>When I do this the secondary locks up for about 5 minutes (SSH session drops) then it starts responding again and I see drbd has now dropped into diskless mode.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>I'm thinking there might be IO errors occurring with the underlying disk and perhaps drbd is automatically detaching it.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Right now I'm running badblocks on the backing device and seeing if it can find any problems.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>In the meantime I've been trying to figure out how to get more information about IO errors from drbd.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>My devices are configured with &quot;detach&quot; as recommended (<a href="http://www.drbd.org/users-guide/s-configure-io-error-behavior.html">http://www.drbd.org/users-guide/s-configure-io-error-behavior.html</a>), however, I'm not sure how to find out more information about when this event occurs.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Are there any debugging options I can enable that would help me see IO error details that caused a detach?&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Thanks!<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'>Andrew<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p></div></div></body></html>