<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=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Pascal,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I can’t reproduce the error because the condition that it issues is very especially. The Master host is in the “not real dead” status. ( I doubt it is Linux’s panic). The TCP stack maybe is bad in Master host. Now I don’t want to avoid it because I can’t reproduce it. I only want to succeed to switch form Master to Slave so that my service can be supplied normally. But I can’t right to switch because of the 10 minutes delay of Drbd.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I run “drbdsetup 0 show” on my host, it shows as following,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>disk {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> size 0s _is_default; # bytes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> on-io-error detach;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> fencing dont-care _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> max-bio-bvecs 0 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>net {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> timeout 60 _is_default; # 1/10 seconds<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> max-epoch-size 2048 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> max-buffers 2048 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> unplug-watermark 128 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> connect-int 10 _is_default; # seconds<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> ping-int 10 _is_default; # seconds<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> sndbuf-size 0 _is_default; # bytes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> rcvbuf-size 0 _is_default; # bytes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> ko-count 0 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> allow-two-primaries;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> after-sb-0pri discard-least-changes;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> after-sb-1pri discard-secondary;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> after-sb-2pri disconnect _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> rr-conflict disconnect _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> ping-timeout 5 _is_default; # 1/10 seconds<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>syncer {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> rate 102400k; # bytes/second<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> after -1 _is_default;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> al-extents 257;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>protocol C;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>_this_host {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> device minor 0;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> disk "/dev/cciss/c0d0p7";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> meta-disk internal;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> address ipv4 172.17.5.152:7900;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>_remote_host {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> address ipv4 172.17.5.151:7900;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In the list , there is “timeout 60 _is_default; # 1/10 seconds”.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> Simon<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span style='font-size:10.0pt;font-family:宋体'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体'> Pascal BERTON [mailto:pascal.berton3@free.fr] <br></span><b><span style='font-size:10.0pt;font-family:宋体'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体'> 2012</span><span style='font-size:10.0pt;font-family:宋体'>年<span lang=EN-US>8</span>月<span lang=EN-US>21</span>日 星期二<span lang=EN-US> 4:58<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> 'simon'; drbd-user@lists.linbit.com<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> RE: [DRBD-user] Drbd : PingAsk timeout, about 10 mins.<o:p></o:p></span></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:11.0pt;color:#1F497D'>Hi Simon !<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Sorry for the delay, return day to work, busy day...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Eeh yup, if the former master is down, that’s effectively a fairly good reason for having a down replication network… </span><span lang=EN-US style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> Just to better understand your specific context, could you please let me know what “cat /proc/drbd” does report, especially during this blackout period of 10 minutes if you may reproduce it, and also “drbdsetup 0 show” and “crm configure show”, just to have the big picture of your configuration.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Pascal.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> simon [mailto:litao5@hisense.com] <br><b>Envoyé :</b> lundi 20 août 2012 03:05<br><b>À :</b> 'Pascal BERTON'; drbd-user@lists.linbit.com<br><b>Objet :</b> RE: [DRBD-user] Drbd : PingAsk timeout, about 10 mins.<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hi Pasical,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks your reply. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Yes, the network was bad. Master host was dead so that Slave host took over its work and mount the drbd partition on Slave host. When mounting , the timeout issued. But the default timeout of network of drdb is 6 senconds (it can be set in drbd.conf). But it failed to take effect. why?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Do you have a good idea to make it switch from Master to Slave immediately in the network anomaly? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> Simon <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>