<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<div><br></div><div>&nbsp;Sorry for delay.&nbsp;<br><br>&nbsp;Unfortunately this not going to work (tested by the way), once cluster directory (under /sys/kernel/config/cluster/) is created when we start o2ctb daemon, after that its not possible to handle any modify operation over that (write()) manually. Once you try you will get an error - Operation not permitted -- which is normal.</div><div><br></div><div>&nbsp;Researching a little bit more, I have seen that OCFS2 1.4 does not support modify nodes in a running cluster, then I check BugZilla to open a feature request, however someone already created years and years ago with no response.&nbsp;</div><div><br></div><div>&nbsp;Add a new node in a running cluster works fine, to remove or modify you have to stop the whole cluster/mount points though.</div><div><br></div><div>-- When run a new node command you will get:</div><div><br></div><div><div># Node node2 created</div></div><div><br></div><div>-- When run a modificatio!
 n command you will get:</div><div><br></div><div># OCFS - Not yet supported</div><div><br></div><div>&nbsp;At the moment we will have to use Amazon VPC once we will ensure that IP address will not change And whether any bug occurs, we can simply replace such NIC to another node and so on.</div><div><br></div><div>References:</div><div><br></div><div>OCFS BugZilla -&nbsp;<a href="https://oss.oracle.com/bugzilla/buglist.cgi?query_format=specific&amp;order=relevance+desc&amp;bug_status=__open__&amp;product=&amp;content=modify+node" style="font-size: 10pt; ">https://oss.oracle.com/bugzilla/buglist.cgi?query_format=specific&amp;order=relevance+desc&amp;bug_status=__open__&amp;product=&amp;content=modify+node</a></div><div>Mailing list thread - &nbsp;<a href="http://www.mail-archive.com/ocfs2-users@oss.oracle.com/msg00085.html" style="font-size: 10pt; ">http://www.mail-archive.com/ocfs2-users@oss.oracle.com/msg00085.html</a></div><div>&nbsp; &nbsp;Quote from OCFS developer --&nbs!
 p;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="background-color: rgb(255, 255, 255); "><font size="1">The o2cb cluster stack currently only allows adding new nodes</font></span></div><pre style="background-color: rgb(255, 255, 255); "><font face="Tahoma" size="1">dynamically. All other ops, modify/del, require the cluster to be down.</font></pre><div><br><br></div><div>&nbsp;Thank you very much for reply and I strongly believe that such clarification will help someone else with the same issue.<br><br>Heitor Lessa<br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: guozhonghua@h3c.com<br>To: heitor.lessa@hotmail.com<br>CC: ocfs2-users@oss.oracle.com<br>Subject: 答复: [Ocfs2-users] Renew IP address node came online again - Amazon EC2<br>Date: Mon, 25 Jun 2012 11:32:21 +0000<br><br>


<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
.ExternalClass h1
{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;font-weight:bold;}
.ExternalClass h2
{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;}
.ExternalClass h3
{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;}
.ExternalClass p.ecxMsoHeader, .ExternalClass li.ecxMsoHeader, .ExternalClass div.ecxMsoHeader
{margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;layout-grid-mode:char;font-size:9.0pt;font-family:Arial;}
.ExternalClass p.ecxMsoFooter, .ExternalClass li.ecxMsoFooter, .ExternalClass div.ecxMsoFooter
{margin-bottom:.0001pt;font-size:9.0pt;font-family:Arial;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman";}
.ExternalClass p.ecxa, .ExternalClass li.ecxa, .ExternalClass div.ecxa
{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;}
.ExternalClass p.ecxa0, .ExternalClass li.ecxa0, .ExternalClass div.ecxa0
{margin-bottom:.0001pt;font-size:10.5pt;font-family:Arial;}
.ExternalClass p.ecxa1, .ExternalClass li.ecxa1, .ExternalClass div.ecxa1
{margin-bottom:.0001pt;text-align:center;font-size:10.5pt;font-family:Arial;font-weight:bold;}
.ExternalClass p.ecxa2, .ExternalClass li.ecxa2, .ExternalClass div.ecxa2
{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;}
.ExternalClass p.ecxa3, .ExternalClass li.ecxa3, .ExternalClass div.ecxa3
{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";}
.ExternalClass p.ecxa4, .ExternalClass li.ecxa4, .ExternalClass div.ecxa4
{margin-right:0cm;margin-bottom:15.0pt;margin-left:0cm;text-align:center;font-size:18.0pt;font-family:Arial;}
.ExternalClass p.ecxa5, .ExternalClass li.ecxa5, .ExternalClass div.ecxa5
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
.ExternalClass p.ecxa6, .ExternalClass li.ecxa6, .ExternalClass div.ecxa6
{margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;border:none;padding:0cm;font-size:9.0pt;font-family:Arial;}
.ExternalClass p.ecxa7, .ExternalClass li.ecxa7, .ExternalClass div.ecxa7
{margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;text-indent:18.0pt;border:none;padding:0cm;font-size:9.0pt;font-family:Arial;}
.ExternalClass p.ecxa8, .ExternalClass li.ecxa8, .ExternalClass div.ecxa8
{margin-bottom:.0001pt;text-indent:21.0pt;font-size:12.0pt;font-family:Arial;color:blue;font-style:italic;}
.ExternalClass span.ecxEmailStyle31
{font-family:Arial;color:navy;}
@page Section1
{;}
.ExternalClass div.ecxSection1
{;}
.ExternalClass ol
{margin-bottom:0cm;}
.ExternalClass ul
{margin-bottom:0cm;}

--></style>


<div class="ecxSection1">
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Hi,
</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">You can remove the directory of the node, and add it again with o2cb_ctl command;
</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">For example, Please refer to the man o2cb_ctl for details:
</span></font></p>
<p class="ecxMsoNormal" style="line-height:150%;layout-grid-mode:char;text-autospace:none">
<font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;line-height:150%;font-family:Arial">o2cb_ctl -C -i -n node2 -t node -a number= -a ip_address=New_IP -a ip_port=New_port -a cluster=r0</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">At the same time, the cluster configure file should be changed according the new IP address and the new port of the node.</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<p class="ecxMsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
<div>
<div class="ecxMsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="ecxMsoNormal"><b><font size="2" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;font-weight:bold">发件人<span lang="EN-US">:</span></span></font></b><font size="2" face="宋体"><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> ocfs2-users-bounces@oss.oracle.com
 [mailto:ocfs2-users-bounces@oss.oracle.com] </span></font><b><font size="2" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;font-weight:bold">代表
</span></font></b><font size="2" face="宋体"><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun">Heitor Lessa<br>
</span></font><b><font size="2" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;font-weight:bold">发送时间<span lang="EN-US">:</span></span></font></b><font size="2" face="宋体"><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> 2012<span lang="EN-US"><span lang="EN-US">年6</span></span><span lang="EN-US"><span lang="EN-US">月22</span></span><span lang="EN-US"><span lang="EN-US">日</span></span>
 19:55<br>
</span></font><b><font size="2" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;font-weight:bold">收件人<span lang="EN-US">:</span></span></font></b><font size="2" face="宋体"><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> ocfs2-users@oss.oracle.com<br>
</span></font><b><font size="2" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;font-weight:bold">主题<span lang="EN-US">:</span></span></font></b><font size="2" face="宋体"><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> [Ocfs2-users]
 Renew IP address node came online again - Amazon EC2</span></font><span lang="EN-US"></span></p>
</div>
<p class="ecxMsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">&nbsp;</span></font></p>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">Hi,</span></font></p>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">I was looking for why one of the nodes could not mount OCFS again, then I found this path:</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">/sys/kernel/config/cluster/r0/node/<br>
<br>
Which I have folders related to my servers, then I noticed that node1 (which is working with OCFS2) did not update node2 IP address.</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;The file I am talking about is:</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">/sys/kernel/config/cluster/r0/node/raid2/ipv4_address<br>
<br>
Example:</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">root@node1:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">10.227.43.31</span></font></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">root@node22:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">10.54.19</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">.4</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">The question is: How could I update it in order to get it working again Without Restart ocfs service?</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;Cluster.conf - Updated with new IP address</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;OCFS2 Version - 1.4<br>
&nbsp;OS - Ubuntu Lucid</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>
</div>
<div>
<p class="ecxMsoNormal" style="margin-bottom:12.0pt"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">&nbsp;Thank you very much.<br>
<br>
</span></font></p>
</div>
</div>
</div>
<span style="font-size:7.5pt;font-family:\00534e\006587\007ec6\009ed1;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></div></div>                                               </div></body>
</html>