<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>So by default, the hb is supposed to stop on umount.<br>
<br>
Do:<br>
# find /sys/kernel/config/cluster/<CLUSTERNAME>/heartbeat/*
-type d | xargs basename<br>
77D95EF51C0149D2823674FCC162CF8B<br>
<br>
This will list the active heartbeats.<br>
<br>
For each hb, do:<br>
# ocfs2_hb_ctl -I -u 77D95EF51C0149D2823674FCC162CF8B<br>
77D95EF51C0149D2823674FCC162CF8B: 1 refs<br>
<br>
Notice the references. > 0 is active heartbeat.<br>
<br>
If you are sure there are no mounts and "ls /dlm" also has not
entries,<br>
then hb failed to stop for some reason.<br>
<br>
To stop, do:<br>
# ocfs2_hb_ctl -K -u 77D95EF51C0149D2823674FCC162CF8B<br>
<br>
It could be that this is failing. What do you see?<br>
<br>
I remember we had a problem in this in tools 1.4.1. But that was<br>
fixed in 1.4.2.<br>
<br>
Sunil</tt>
<br>
<br>
On 06/25/2011 06:03 PM, Shave, Chris wrote:
<blockquote
cite="mid:BFA20343BF6D3543B0120BB9DD2FE4E00C30621C76@AUMEL11XM01.mercer.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.6058" name="GENERATOR">
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1029" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">Hi,</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">I have an issue with shutting
down o2cb & offlining the cluster, the heartbeat is
staying active & is blocking any attempts to shut it
down, despite there being zero ocfs2 filesystems mounted.</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">This is what I see, even
happens if using force-offline option:</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">[root]# /etc/init.d/o2cb
force-offline clustername<br>
Stopping O2CB cluster clustername Failed<br>
Unable to stop cluster as heartbeat region still active</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">I have no ocfs2 filesystems
curently mounted on either node (2 node cluster)</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">[root]# mount | grep ocfs<br>
[root]#<br>
</font></span></div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">Versions of ocfs2 as below:</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">[root]# rpm -qa | grep ocfs<br>
ocfs2-tools-1.4.4-1.el5.x86_64<br>
ocfs2-tools-devel-1.4.4-1.el5.x86_64<br>
ocfs2console-1.4.4-1.el5.x86_64<br>
ocfs2-2.6.18-128.el5-1.4.4-1.el5.x86_64<br>
ocfs2-tools-debuginfo-1.4.4-1.el5.x86_64<br>
</font></span></div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">Redhat Linux kernel version:
2.6.18-128.el5</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">A collegue of mine stated that
he usually disables all ocfs2 from the startup scripts,
comments out the filesystems in /etc/fstab & reboots, is
there another option to get the heartbeat offline or is this
an ocfs2 or Linux bug I am encountering here??</font></span></div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"></span> </div>
<div><span class="108384900-26062011"><font size="2"
color="#0000ff" face="Arial">Cheers,</font></span></div>
<div><span class="108384900-26062011"><!-- Converted from text/rtf format --><br>
<p><span lang="en-au"><b><font size="1" face="Verdana">Christopher
Shave</font></b><font size="1" face="Verdana">, Global
UNIX/Linux Projects Team<br>
</font><b><font size="1" face="Verdana">Marsh &
McLennan Companies</font></b><br>
<font size="1" face="Verdana">Global Technology
Infrastructure (MGTI) | Centralised Operations<br>
555 Lonsdale Street, Level 5, Melbourne, VIC 3000,
Australia<br>
+61 3 9623 5488 | Mobile +61 0402 885 057 | </font></span><a
moz-do-not-send="true"
href="mailto:chris.shave@mercer.com"><span lang="en-au"><u><font
size="1" color="#0057a6" face="Verdana">chris.shave@mercer.com</font></u></span></a><span
lang="en-au"><br>
</span><a moz-do-not-send="true" href="http://www.mmc.com/"><span
lang="en-au"><u><font size="1" color="#0057a6"
face="Verdana">www.mmc.com</font></u></span></a><span
lang="en-au"><br>
</span></p>
</span><span class="108384900-26062011">
</span></div>
<div><font size="2" color="#0000ff" face="Arial"></font></div>
</blockquote>
<br>
</body>
</html>