<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2>maybe you could do a while loop with checking "mii-diag -s" 
which will return exit code 2 if link level heartbeat is not yet established. I 
would raise an ubuntu bug on that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2>And, ocfs2 could have a sencond initial heartbeat/retry 
timeout, since it has not joined the cluster yet, no need to panic 
early.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2>Gruss</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=830071223-07122006><FONT face=Arial 
color=#0000ff size=2>Bernd</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ocfs2-users-bounces@oss.oracle.com 
[mailto:ocfs2-users-bounces@oss.oracle.com] <B>On Behalf Of 
</B>Alexei_Roudnev<BR><B>Sent:</B> Thursday, December 07, 2006 11:00 
PM<BR><B>To:</B> Yuval Baruch<BR><B>Cc:</B> Sunil Mushran; 
ocfs2-users@oss.oracle.com; nir.grava@yahoo.co.uk<BR><B>Subject:</B> Re: 
[Ocfs2-users] DMesg error on startup ...<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Ok, it is not about 'ended'.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What happen, more likely:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- Linux runs network service. It enables interfaces 
(btw, some interfaces comes by Hot PlugIn daemon after in, 
asyncronously)</FONT></DIV>
<DIV><FONT face=Arial size=2>- ifconfig reports interface UP. In reality, 
ethernet is in spanning-tree negotiation mode (so it cant send/receive packets 
next 30 seconds)</FONT></DIV>
<DIV><FONT face=Arial size=2>- network service exists with 0 return code 
(because it did everything). So system proceed with next service(s)</FONT></DIV>
<DIV><FONT face=Arial size=2>- it starts o2cb in 2 - 5 seconds after 
it.</FONT></DIV>
<DIV><FONT face=Arial size=2>- so, next 20 - 30 seconds o2cb cant communicate 
(because switch did not finish spanning tree negotiation yet - it have 30 or 40 
second shold time)</FONT></DIV>
<DIV><FONT face=Arial size=2>and so&nbsp; it fail.</FONT></DIV>
<DIV><FONT face=Arial size=2>- when you run it in the very end, it can 
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>So, </FONT></DIV>
<DIV><FONT face=Arial size=2>(1) fix switch config</FONT></DIV>
<DIV><FONT face=Arial size=2>OR</FONT></DIV>
<DIV><FONT face=Arial size=2>(2) add 'wait when ping will work' into the network 
script (or better add one more service which do it)</FONT></DIV>
<DIV><FONT face=Arial size=2>OR</FONT></DIV>
<DIV><FONT face=Arial size=2>(3) add sleep 40 into the o2cb </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>No one oif these methods is not 
bypass.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For 'order', see skeleton file in /etc/init.d . But 
order is corerct out of the box (at leat, relating to the network - it is not 
correct if you use iSCSI for example).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=yuval.baruch@gmail.com href="mailto:yuval.baruch@gmail.com">Yuval 
  Baruch</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=Alexei_Roudnev@exigengroup.com 
  href="mailto:Alexei_Roudnev@exigengroup.com">Alexei_Roudnev</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=Sunil.Mushran@oracle.com 
  href="mailto:Sunil.Mushran@oracle.com">Sunil Mushran</A> ; <A 
  title=ocfs2-users@oss.oracle.com 
  href="mailto:ocfs2-users@oss.oracle.com">ocfs2-users@oss.oracle.com</A> ; <A 
  title=nir.grava@yahoo.co.uk 
  href="mailto:nir.grava@yahoo.co.uk">nir.grava@yahoo.co.uk</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 07, 2006 1:05 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Ocfs2-users] DMesg error on 
  startup ...</DIV>
  <DIV><BR></DIV>
  <DIV>thanks for you offer, but this like the addition of "mount -a" in the 
  rc.local are ways to bypass the problem.</DIV>
  <DIV>Is there a way to prevent a init service with lower preference to start 
  before the init service with higher prefernce ended? like s25ocfs2 will start 
  only after s24o2cb will end ...<BR><BR>&nbsp;</DIV>
  <DIV><SPAN class=gmail_quote>On 12/7/06, <B 
  class=gmail_sendername>Alexei_Roudnev</B> &lt;<A 
  href="mailto:Alexei_Roudnev@exigengroup.com">Alexei_Roudnev@exigengroup.com</A>&gt; 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV bgcolor="#ffffff">
    <DIV><FONT size=2>Add 'sleep 20'&nbsp;into the beginning of ocfs2 start 
    sequence?</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>Btw, check that your network ports are in 
    fast-spanning-tree mode (don't wait 30 seconds when connected). On the 
    Ethernet switch. </FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV><SPAN class=e id=q_10f5dfd84763bbbd_1>
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A 
      title=yuval.baruch@gmail.com 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:yuval.baruch@gmail.com" target=_blank>Yuval Baruch</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=Sunil.Mushran@oracle.com 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:Sunil.Mushran@oracle.com" target=_blank>Sunil Mushran</A> 
      </DIV>
      <DIV style="FONT: 10pt arial"><B>Cc:</B> <A 
      title=ocfs2-users@oss.oracle.com 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:ocfs2-users@oss.oracle.com" 
      target=_blank>ocfs2-users@oss.oracle.com</A> ; <A 
      title=nir.grava@yahoo.co.uk 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:nir.grava@yahoo.co.uk" 
      target=_blank>nir.grava@yahoo.co.uk</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 07, 2006 
      7:43 AM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Ocfs2-users] DMesg 
      error on startup ...</DIV>
      <DIV><BR>&nbsp;</DIV>
      <DIV>I wasn't exact about the previous mail.</DIV>
      <DIV>The real problem is that o2cb does not complete his startup before 
      the ocfs2 start his.</DIV>
      <DIV>the order is as you mentioned s24o2cb -&gt; s25ocfs2.</DIV>
      <DIV>The problem is as I wrote before: some of te FS are mounted and other 
      doesn't, it depends on how fast the o2cb starts.</DIV>
      <DIV>So is there any way fixing this problem ( other than adding " mount 
      -a" to the rc.local ) ?&nbsp;<BR><BR>&nbsp;</DIV>
      <DIV><SPAN class=gmail_quote>On 12/7/06, <B class=gmail_sendername>Yuval 
      Baruch</B> &lt;<A onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:yuval.baruch@gmail.com" target=_blank>yuval.baruch@gmail.com 
      </A>&gt; wrote:</SPAN> 
      <BLOCKQUOTE class=gmail_quote 
      style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
        <DIV>Hi,</DIV>
        <DIV>I am encountring with the same problem, I double checked and the 
        startup order is as u mentioned, i.e. S10network -&gt; S24o2cb, but 
        still some ocfs2 FS tries (and failes)&nbsp;to mount before the network 
        comes up.</DIV>
        <DIV>Other FS which tries to mount after the network comes up succeed, 
        the FS which succeed to mount change from boot to boot ( depends on how 
        long it takes to the network to comes up ).</DIV>
        <DIV>Is there any way to resolve this problem other then adding "mount 
        -a" to the rc.local ?</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>10x<BR><BR>&nbsp;</DIV>
        <DIV><SPAN>
        <DIV><SPAN class=gmail_quote>On 11/7/06, <B class=gmail_sendername>Sunil 
        Mushran</B> &lt;<A 
        onclick="return top.js.OpenExtLink(window,event,this)" 
        href="mailto:Sunil.Mushran@oracle.com" 
        target=_blank>Sunil.Mushran@oracle.com </A>&gt; wrote:</SPAN> 
        <BLOCKQUOTE class=gmail_quote 
        style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The 
          startup order should be... ==&gt; network, o2cb, 
          ocfs2.<BR><BR>Sébastien CRAMATTE wrote:<BR>&gt; Hi<BR>&gt;<BR>&gt; 
          When my system boot I've got this error in dmesg :<BR>&gt;<BR>&gt; 
          mount.ocfs2: Unable to access cluster service Cannot initialize 
          cluster<BR>&gt;<BR>&gt; ----------<BR>&gt; Mounting local 
          filesystems...<BR>&gt; kjournald starting.&nbsp;&nbsp;Commit interval 
          5 seconds <BR>&gt; EXT3 FS on hda2, internal journal<BR>&gt; EXT3-fs: 
          mounted filesystem with ordered data mode.<BR>&gt; kjournald 
          starting.&nbsp;&nbsp;Commit interval 5 seconds<BR>&gt; EXT3 FS on 
          hda3, internal journal<BR>&gt; EXT3-fs: mounted filesystem with 
          ordered data mode. <BR>&gt; mount.ocfs2: Unable to access cluster 
          service Cannot initialize cluster<BR>&gt; /dev/hda2 on /home type ext3 
          (rw,errors=remount-ro)<BR>&gt; /dev/hda3 on /var type ext3 
          (rw,errors=remount-ro)<BR>&gt; Cleaning /tmp /var/run /var/lock. 
          <BR>&gt; Setting up networking...done.<BR>&gt; Setting up IP spoofing 
          protection: rp_filter.<BR>&gt; Configuring network interfaces...Set tx 
          off on eth0 [OK]<BR>&gt; Set tx off on eth1 [OK]<BR>&gt; done.<BR>&gt; 
          --------<BR>&gt;<BR>&gt; I've got this line in my 
          /etc/fstab<BR>&gt;<BR>&gt; 
          /dev/drbd0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/cluster&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ocfs2&nbsp;&nbsp; 
          _netdev,datavolume,nointr<BR>&gt; 0&nbsp;&nbsp; 0<BR>&gt;<BR>&gt; So 
          it's logical that try to mount it ...&nbsp;&nbsp;I've tried to 
          put&nbsp;&nbsp;"noauto" <BR>&gt; parameter and efectively I haven't 
          got anymore the error&nbsp;&nbsp;but the FS is<BR>&gt; not mounted 
          automatically by&nbsp;&nbsp;ocfs2&nbsp;&nbsp;rc.d script ...<BR>&gt; 
          How can I avoid this error&nbsp;&nbsp;on bootup ?<BR>&gt;<BR>&gt; 
          Regards<BR>&gt; <BR>&gt;<BR>&gt;<BR>&gt; 
          _______________________________________________<BR>&gt; Ocfs2-users 
          mailing list<BR>&gt; <A 
          onclick="return top.js.OpenExtLink(window,event,this)" 
          href="mailto:Ocfs2-users@oss.oracle.com" 
          target=_blank>Ocfs2-users@oss.oracle.com</A><BR>&gt; <A 
          onclick="return top.js.OpenExtLink(window,event,this)" 
          href="http://oss.oracle.com/mailman/listinfo/ocfs2-users" 
          target=_blank>http://oss.oracle.com/mailman/listinfo/ocfs2-users 
          </A><BR>&gt;<BR><BR>_______________________________________________<BR>Ocfs2-users 
          mailing list<BR><A 
          onclick="return top.js.OpenExtLink(window,event,this)" 
          href="mailto:Ocfs2-users@oss.oracle.com" 
          target=_blank>Ocfs2-users@oss.oracle.com </A><BR><A 
          onclick="return top.js.OpenExtLink(window,event,this)" 
          href="http://oss.oracle.com/mailman/listinfo/ocfs2-users" 
          target=_blank>http://oss.oracle.com/mailman/listinfo/ocfs2-users</A><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV><BR></SPAN></DIV>
      <P>
      <HR>
      <SPAN class=q>
      <P></P>_______________________________________________<BR>Ocfs2-users 
      mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:Ocfs2-users@oss.oracle.com" 
      target=_blank>Ocfs2-users@oss.oracle.com </A><BR><A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="http://oss.oracle.com/mailman/listinfo/ocfs2-users" 
      target=_blank>http://oss.oracle.com/mailman/listinfo/ocfs2-users</A><BR></SPAN>
      <P></P>
      <P></P></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>