[prev in list] [next in list] [prev in thread] [next in thread]
List: ocfs2-users
Subject: Re: [Ocfs2-users] DMesg error on startup ...
From: "Alexei_Roudnev" <Alexei_Roudnev () exigengroup ! com>
Date: 2006-12-08 7:59:15
Message-ID: 029701c71a9e$c199b720$6401a8c0 () alexh
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
It dont work - even when interface reports that port is up, switch still keeps it \
blocked (if it is not in fast mode). The only _redundant_ method is to ping default \
router, OR to use fast-stp mode (which is right method) OR to set up 40 seconds \
delay.
----- Original Message -----
From: Eckenfels. Bernd
To: ocfs2-users@oss.oracle.com
Sent: Thursday, December 07, 2006 3:14 PM
Subject: RE: [Ocfs2-users] DMesg error on startup ...
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.
And, ocfs2 could have a sencond initial heartbeat/retry timeout, since it has not \
joined the cluster yet, no need to panic early.
Gruss
Bernd
------------------------------------------------------------------------------
From: ocfs2-users-bounces@oss.oracle.com \
[mailto:ocfs2-users-bounces@oss.oracle.com] On Behalf Of Alexei_Roudnev Sent: \
Thursday, December 07, 2006 11:00 PM To: Yuval Baruch
Cc: Sunil Mushran; ocfs2-users@oss.oracle.com; nir.grava@yahoo.co.uk
Subject: Re: [Ocfs2-users] DMesg error on startup ...
Ok, it is not about 'ended'.
What happen, more likely:
- Linux runs network service. It enables interfaces (btw, some interfaces comes by \
Hot PlugIn daemon after in, asyncronously)
- ifconfig reports interface UP. In reality, ethernet is in spanning-tree \
negotiation mode (so it cant send/receive packets next 30 seconds)
- network service exists with 0 return code (because it did everything). So system \
proceed with next service(s)
- it starts o2cb in 2 - 5 seconds after it.
- 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)
and so it fail.
- when you run it in the very end, it can work.
So,
(1) fix switch config
OR
(2) add 'wait when ping will work' into the network script (or better add one more \
service which do it) OR
(3) add sleep 40 into the o2cb
No one oif these methods is not bypass.
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).
----- Original Message -----
From: Yuval Baruch
To: Alexei_Roudnev
Cc: Sunil Mushran ; ocfs2-users@oss.oracle.com ; nir.grava@yahoo.co.uk
Sent: Thursday, December 07, 2006 1:05 PM
Subject: Re: [Ocfs2-users] DMesg error on startup ...
thanks for you offer, but this like the addition of "mount -a" in the rc.local \
are ways to bypass the problem. 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 ...
On 12/7/06, Alexei_Roudnev <Alexei_Roudnev@exigengroup.com> wrote:
Add 'sleep 20' into the beginning of ocfs2 start sequence?
Btw, check that your network ports are in fast-spanning-tree mode (don't wait \
30 seconds when connected). On the Ethernet switch.
----- Original Message -----
From: Yuval Baruch
To: Sunil Mushran
Cc: ocfs2-users@oss.oracle.com ; nir.grava@yahoo.co.uk
Sent: Thursday, December 07, 2006 7:43 AM
Subject: Re: [Ocfs2-users] DMesg error on startup ...
I wasn't exact about the previous mail.
The real problem is that o2cb does not complete his startup before the ocfs2 \
start his. the order is as you mentioned s24o2cb -> s25ocfs2.
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.
So is there any way fixing this problem ( other than adding " mount -a" to \
the rc.local ) ?
On 12/7/06, Yuval Baruch <yuval.baruch@gmail.com > wrote:
Hi,
I am encountring with the same problem, I double checked and the startup \
order is as u mentioned, i.e. S10network -> S24o2cb, but still some ocfs2 FS tries \
(and failes) to mount before the network comes up.
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 ).
Is there any way to resolve this problem other then adding "mount -a" to \
the rc.local ?
10x
On 11/7/06, Sunil Mushran <Sunil.Mushran@oracle.com > wrote:
The startup order should be... ==> network, o2cb, ocfs2.
Sébastien CRAMATTE wrote:
> Hi
>
> When my system boot I've got this error in dmesg :
>
> mount.ocfs2: Unable to access cluster service Cannot initialize cluster
>
> ----------
> Mounting local filesystems...
> kjournald starting. Commit interval 5 seconds
> EXT3 FS on hda2, internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> kjournald starting. Commit interval 5 seconds
> EXT3 FS on hda3, internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> mount.ocfs2: Unable to access cluster service Cannot initialize cluster
> /dev/hda2 on /home type ext3 (rw,errors=remount-ro)
> /dev/hda3 on /var type ext3 (rw,errors=remount-ro)
> Cleaning /tmp /var/run /var/lock.
> Setting up networking...done.
> Setting up IP spoofing protection: rp_filter.
> Configuring network interfaces...Set tx off on eth0 [OK]
> Set tx off on eth1 [OK]
> done.
> --------
>
> I've got this line in my /etc/fstab
>
> /dev/drbd0 /cluster ocfs2 _netdev,datavolume,nointr
> 0 0
>
> So it's logical that try to mount it ... I've tried to put "noauto"
> parameter and efectively I haven't got anymore the error but the FS is
> not mounted automatically by ocfs2 rc.d script ...
> How can I avoid this error on bootup ?
>
> Regards
>
>
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users@oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>
_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
------------------------------------------------------------------------
_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
------------------------------------------------------------------------------
_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
[Attachment #5 (unknown)]
<!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.2800.1561" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>It dont work - even when interface reports that port is up,
switch still keeps it blocked (if it is not in fast mode). The only _redundant_
method is to ping default router, OR to use fast-stp mode (which is right
method) OR to set up 40 seconds delay.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=B.Eckenfels@seeburger.de
href="mailto:B.Eckenfels@seeburger.de">Eckenfels. Bernd</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=ocfs2-users@oss.oracle.com
href="mailto:ocfs2-users@oss.oracle.com">ocfs2-users@oss.oracle.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 07, 2006 3:14
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Ocfs2-users] DMesg error on
startup ...</DIV>
<DIV><BR></DIV>
<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> </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> </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> <A
href="mailto:ocfs2-users-bounces@oss.oracle.com">ocfs2-users-bounces@oss.oracle.com</A> \
[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> </DIV>
<DIV><FONT face=Arial size=2>What happen, more likely:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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 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> </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> </DIV>
<DIV><FONT face=Arial size=2>No one oif these methods is not
bypass.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </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> </DIV>
<DIV><SPAN class=gmail_quote>On 12/7/06, <B
class=gmail_sendername>Alexei_Roudnev</B> <<A
href="mailto:Alexei_Roudnev@exigengroup.com">Alexei_Roudnev@exigengroup.com</A>> \
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' into the beginning of ocfs2 start
sequence?</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </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> </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 -> 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 ) ? <BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 12/7/06, <B class=gmail_sendername>Yuval
Baruch</B> <<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:yuval.baruch@gmail.com"
target=_blank>yuval.baruch@gmail.com </A>> 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 -> S24o2cb, but
still some ocfs2 FS tries (and failes) 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> </DIV>
<DIV>10x<BR><BR> </DIV>
<DIV><SPAN>
<DIV><SPAN class=gmail_quote>On 11/7/06, <B
class=gmail_sendername>Sunil Mushran</B> <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Sunil.Mushran@oracle.com"
target=_blank>Sunil.Mushran@oracle.com </A>> 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... ==> network, o2cb,
ocfs2.<BR><BR>Sébastien CRAMATTE wrote:<BR>> Hi<BR>><BR>>
When my system boot I've got this error in dmesg :<BR>><BR>>
mount.ocfs2: Unable to access cluster service Cannot initialize
cluster<BR>><BR>> ----------<BR>> Mounting local
filesystems...<BR>> kjournald starting. Commit
interval 5 seconds <BR>> EXT3 FS on hda2, internal
journal<BR>> EXT3-fs: mounted filesystem with ordered data
mode.<BR>> kjournald starting. Commit interval 5
seconds<BR>> EXT3 FS on hda3, internal journal<BR>> EXT3-fs:
mounted filesystem with ordered data mode. <BR>> mount.ocfs2:
Unable to access cluster service Cannot initialize cluster<BR>>
/dev/hda2 on /home type ext3 (rw,errors=remount-ro)<BR>>
/dev/hda3 on /var type ext3 (rw,errors=remount-ro)<BR>> Cleaning
/tmp /var/run /var/lock. <BR>> Setting up
networking...done.<BR>> Setting up IP spoofing protection:
rp_filter.<BR>> Configuring network interfaces...Set tx off on
eth0 [OK]<BR>> Set tx off on eth1 [OK]<BR>> done.<BR>>
--------<BR>><BR>> I've got this line in my
/etc/fstab<BR>><BR>>
/dev/drbd0 /cluster ocfs2 \
_netdev,datavolume,nointr<BR>> 0 0<BR>><BR>> So
it's logical that try to mount it ... I've tried to
put "noauto" <BR>> parameter and efectively I haven't
got anymore the error but the FS is<BR>> not mounted
automatically by ocfs2 rc.d script ...<BR>>
How can I avoid this error on bootup ?<BR>><BR>>
Regards<BR>> <BR>><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>><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>
<P>
<HR>
<P></P>_______________________________________________<BR>Ocfs2-users mailing
list<BR>Ocfs2-users@oss.oracle.com<BR>http://oss.oracle.com/mailman/listinfo/ocfs2-users<BR></BLOCKQUOTE></BODY></HTML>
_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic