<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
@font-face
        {font-family:宋体}
@font-face
        {font-family:黑体}
@font-face
        {font-family:楷体_GB2312}
@font-face
        {font-family:"\@宋体"}
@font-face
        {font-family:"\@黑体"}
@font-face
        {font-family:"\@楷体_GB2312"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-indent:21.0pt;
        line-height:150%;
        text-autospace:none;
        font-size:10.5pt;
        font-family:"Times New Roman"}
h1
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:12.0pt;
        margin-left:21.6pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:-21.6pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:Arial}
h2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:12.0pt;
        margin-left:28.8pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:-28.8pt;
        page-break-after:avoid;
        font-size:12.0pt;
        font-family:Arial;
        font-weight:normal}
h3
        {margin-top:13.0pt;
        margin-right:0cm;
        margin-bottom:13.0pt;
        margin-left:36.0pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:-36.0pt;
        line-height:173%;
        page-break-after:avoid;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:normal}
p.MsoHeader, li.MsoHeader, div.MsoHeader
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        layout-grid-mode:char;
        font-size:9.0pt;
        font-family:Arial}
p.MsoFooter, li.MsoFooter, div.MsoFooter
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:Arial}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        text-indent:21.0pt;
        line-height:150%;
        text-autospace:none;
        font-size:9.0pt;
        font-family:宋体}
p.a, li.a, div.a
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:54.45pt;
        margin-bottom:.0001pt;
        text-align:center;
        text-indent:-18.45pt;
        font-size:9.0pt;
        font-family:Arial}
p.a0, li.a0, div.a0
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Arial}
p.a1, li.a1, div.a1
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:10.5pt;
        font-family:Arial;
        font-weight:bold}
p.a2, li.a2, div.a2
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:12.0pt;
        margin-left:54.45pt;
        text-align:center;
        text-indent:-18.45pt;
        font-size:9.0pt;
        font-family:Arial}
p.a3, li.a3, div.a3
        {margin-top:4.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:0cm;
        text-align:center;
        line-height:150%;
        page-break-after:avoid;
        text-autospace:none;
        font-size:10.5pt;
        font-family:"Times New Roman"}
p.a4, li.a4, div.a4
        {margin-top:15.0pt;
        margin-right:0cm;
        margin-bottom:15.0pt;
        margin-left:0cm;
        text-align:center;
        line-height:150%;
        text-autospace:none;
        font-size:18.0pt;
        font-family:Arial}
p.a5, li.a5, div.a5
        {margin:0cm;
        margin-bottom:.0001pt;
        line-height:150%;
        text-autospace:none;
        font-size:10.5pt;
        font-family:"Times New Roman"}
p.a6, li.a6, div.a6
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:150%;
        text-autospace:none;
        border:none;
        padding:0cm;
        font-size:9.0pt;
        font-family:Arial}
p.a7, li.a7, div.a7
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:18.0pt;
        line-height:150%;
        text-autospace:none;
        border:none;
        padding:0cm;
        font-size:9.0pt;
        font-family:Arial}
p.a8, li.a8, div.a8
        {margin:0cm;
        margin-bottom:.0001pt;
        text-indent:21.0pt;
        line-height:150%;
        text-autospace:none;
        font-size:10.5pt;
        font-family:Arial;
        color:blue;
        font-style:italic}
@page Section1
        {margin:72.0pt 126.65pt 72.0pt 126.65pt;
        layout-grid:15.6pt}
div.Section1
        {}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="">
<div class="Section1" style="layout-grid:15.6pt">
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Hi</span>,<span lang="EN-US"> I am using ocfs2 for test and find one issue, would
 someone give some help about it.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">The background is that we are using ocfs2 over iSCSI on Ubuntu 12.04, with kernel
 version 3.2.0-23. </span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Linux 3.2.0-23-generic x86_64 GNU/Linux</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">We changed the configuration file of iSCSI, initiatorname.iscsi file, so as to restart
 the iSCSI service with the command &quot;service open-iscsi restart&quot;.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">After the restart of iscsi service, the device that ocfs2 using is missed, and the
 log is written to kern.log as below: </span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:06 vmc-7 kernel: [45946.187897] sd 6:0:0:13: [sde] Attached SCSI disk</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:07 vmc-7 kernel: [45946.439225] (o2hb-692FC96E2F,2786,5):o2hb_bio_end_io:389
 ERROR: IO Error -19</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:07 vmc-7 kernel: [45946.439673] (o2hb-692FC96E2F,2786,5):o2hb_do_disk_heartbeat:1017
 ERROR: status = -19</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:07 vmc-7 kernel: [45947.117979] (o2hb-58592532BC,2804,2):o2hb_bio_end_io:389
 ERROR: IO Error -19</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:07 vmc-7 kernel: [45947.118413]</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">... ... .... ...</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"> (o2hb-58592532BC,2804,0):o2hb_bio_end_io:389 ERROR: IO Error -19</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Jun&nbsp; 5 09:10:53 vmc-7 kernel: [45993.143578] (o2hb-58592532BC,2804,0):o2hb_do_disk_heartbeat:1017
 ERROR: status = -19</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">The heartbeat timeout is 31 seconds configured as below.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"># O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">O2CB_HEARTBEAT_THRESHOLD=31</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">root@vmc-7:/sys/kernel/config/cluster/iPool/heartbeat# cat dead_threshold
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">31</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Why elapse more than 50 seconds, the server does not reset?</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">I review the code of kernel with version 3.2.2, and puzzled with heartbeat code as
 below, is it right that the loop does not break out so as the server does not reset.
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">static int o2hb_thread(void *data)</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">{</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"> ... ... ...</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"> while (!kthread_should_stop() &amp;&amp;</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !reg-&gt;hr_unclean_stop &amp;&amp; !reg-&gt;hr_aborted_start) {</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">&nbsp; }</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">}</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">In the function o2hb_do_disk_heartbeat(struct o2hb_region *reg), while
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">ret = o2hb_read_slots(reg, highest_node &#43; 1); error with 19, ENODEV, the device may
 be does not existed for the iSCSI service restart.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Is anything wrong with it?
</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US">Thanks.</span></span></span></font></p>
<p class="MsoPlainText" style="text-indent:18.0pt"><font size="1" face="宋体"><span style="font-size:9.0pt; line-height:150%"><span style="line-height:150%">  <span lang="EN-US"></span></span></span></font></p>
</div>
<span style="font-size:7.5pt; font-family:华文细黑; color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt; font-family:&quot;Arial&quot;,&quot;sans-serif&quot;; color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>