<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1255">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"Courier New \;";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Century Gothic";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Century Gothic";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Century Gothic";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.9pt 2.0cm 70.9pt 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[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]-->
</head>

<body bgcolor=white lang=EN-AU link=blue vlink=purple>

<div class=Section1>

<div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'>Thanks Sunil,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'>I’ll have to check that
next time if it occurs as the server only just got re-booted and issue has now
gone.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'>Regards<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'>Neil<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;
color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span lang=EN-US style='font-size:10.0pt;
font-family:Tahoma;color:windowtext'> Sunil Mushran [mailto:sunil.mushran@oracle.com]
<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, 17 June 2011 4:33 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Neil Campbell<br>
<b><span style='font-weight:bold'>Cc:</span></b> ocfs2-users@oss.oracle.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Ocfs2-users] Unable
to umount a filesystem - OCFS still thinks it has it mounted?þ</span></font><font
color=black><span lang=EN-US style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Check /proc/mounts. That's the kernels view of the
mounts.<br>
<br>
mount looks at /etc/mtab. And ocfs2 1.2 adds and removes<br>
entries /proc/fs/ocfs2 during mount/umount.<br>
<br>
Also, see if there are relevant errors in dmesg.<br>
<br>
On 06/16/2011 07:16 PM, Neil Campbell wrote: <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><!--[if gte mso 9]><xml>
 <u1:shapedefaults u2:ext="edit" spidmax="1029"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:shapelayout u4:ext="edit">
  <u3:idmap u4:ext="edit" data="1"/>
 </u3:shapelayout>
</xml><![endif]-->Hi all, <br>
<br>
Not sure what has happened but I am trying to remove a directory that I thought
was copied from an OCFS filesystem.<br>
<br>
When I try and remove it I get the typical Device or resource busy error.<br>
<br>
This is on </span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>RHEL 4 update 8
kernel&nbsp;2.6.9-89.0.26.ELsmp</span></font>&nbsp;&nbsp; running <font size=2><span
style='font-size:10.0pt'>OCFS2 version </span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>OCFS2
1.2.9 Mon Jan 17 07:38:31 EST 2011 (build 5e8325ec7f66b5189c65c7a8710fe8cb)<br>
</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font>Running lsof (as root) on the directory returns nothing.<br>
<br>
If I do a mount | grep ocfs I get the following (which is what I expect)<u5:p></u5:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;#
mount | grep ocfs</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)</span></font><font
size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>/dev/emcpowerq1 on /d00/cfs type ocfs2
(rw,_netdev,heartbeat=local)</span></font><font size=2><span style='font-size:
10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>/dev/emcpowere1 on /d00/html type ocfs2
(rw,_netdev,heartbeat=local)</span></font><o:p></o:p></p>

<u5:p></u5:p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><br>
However, under cat /proc/fs/ocfs2 there are 3 device entries <u5:p></u5:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=black
face="Times New Roman"><span style='font-size:10.0pt'>l</span></font><font
size=2 face="Courier New ;"><span style='font-size:10.0pt;font-family:"Courier New \;"'>s
-l /proc/fs/ocfs2/</span></font><font size=2><span style='font-size:10.0pt'><br>
<br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>dr-xr-xr-x&nbsp; 2 root root 0 Jun&nbsp; 9 15:51
120_257</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>dr-xr-xr-x&nbsp; 2 root root 0 Jun&nbsp; 9 15:51
120_65</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>dr-xr-xr-x&nbsp; 2 root root 0 Jun&nbsp; 9 15:51
120_66</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>-r--r--r--&nbsp; 1 root root 0 Jun&nbsp; 9 15:51
nodename</span></font><font size=2><span style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>-r--r--r--&nbsp; 1 root root 0 Jun&nbsp; 9 15:51
version</span></font><o:p></o:p></p>

<u5:p></u5:p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><br>
But on the other 3 servers in this cluster there are only 2<br>
<br>
If I look at /dev for those devices they are as follows<u5:p></u5:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[root@dc-c02b01-app01
log]# ls -l /dev | grep 120 | egrep '257|65|66'</span></font><font size=2><span
style='font-size:10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>brw-------&nbsp; 1 root root 120,&nbsp; 65
Feb&nbsp; 2 08:16 emcpowere1</span></font><font size=2><span style='font-size:
10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>brw-------&nbsp; 1 root root 120,&nbsp; 66
Feb&nbsp; 2 08:16 emcpowere2</span></font><font size=2><span style='font-size:
10.0pt'><br>
</span></font><font size=2 face="Courier New ;"><span style='font-size:10.0pt;
font-family:"Courier New \;"'>brw-------&nbsp; 1 root root 120, 257 Feb&nbsp; 2
08:16 emcpowerq1</span></font><o:p></o:p></p>

<u5:p></u5:p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
emcpowere2 should be umounted and doesn't show up when running mount, but it
seems OCFS still thinks it is mounted.<br>
<br>
So what can I do to release this ?<br>
<br>
Many thanks<br>
Neil<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>


<P><FONT size=2 face=Arial>
<HR>
</FONT><FONT size=2 face=Arial>Downer<BR>This message is for the named person's 
use only. It may contain confidential, proprietary or legally privileged 
information. No confidentiality or privilege is waived or lost by any 
mistransmission. If you receive this message in error, please immediately delete 
it and all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. Downer EDI and any of its subsidiaries each reserve the right to 
monitor all e-mail communications through its networks. Any views expressed in 
this message are those of the individual sender, except where the message states 
otherwise and the sender is authorized to state them to be the views of any such 
entity.</FONT><FONT size=2 face=Arial> 
<HR>
<BR>
<P></P></FONT>
</body>

</html>