<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
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:
<blockquote
cite="mid:33F90FC53D0A7848BFC5B88CBF7C4F9C5AC15C@dc-exc03.deg.aus"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1255">
<meta name="Generator" content="Microsoft Word 11 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
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-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]-->
<div class="Section1">
<p class="MsoNormal" style="margin-bottom: 12pt;"><font
face="Times New Roman" size="3"><span style="font-size:
12pt;">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 face="Courier New"
size="2"><span style="font-size: 10pt; font-family:
"Courier New";">RHEL 4 update 8
kernel 2.6.9-89.0.26.ELsmp</span></font> running <font
size="2"><span style="font-size: 10pt;">OCFS2 version </span></font><font
face="Courier New" size="2"><span style="font-size: 10pt;
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: 10pt;"><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)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 36pt;"><font
face="Courier New" size="2"><span style="font-size: 10pt;
font-family: "Courier New";"> # mount | grep
ocfs</span></font><font size="2"><span style="font-size:
10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)</span></font><font
size="2"><span style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">/dev/emcpowerq1 on /d00/cfs type ocfs2
(rw,_netdev,heartbeat=local)</span></font><font size="2"><span
style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">/dev/emcpowere1 on /d00/html type ocfs2
(rw,_netdev,heartbeat=local)</span></font><font size="2"><span
style="font-size: 10pt;"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font
face="Times New Roman" size="3"><span style="font-size:
12pt;"><br>
However, under cat /proc/fs/ocfs2 there are 3 device
entries <o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 36pt;"><font
face="Times New Roman" size="2"><span style="font-size:
10pt;">l</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">s
-l /proc/fs/ocfs2/</span></font><font size="2"><span
style="font-size: 10pt;"><br>
<br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">dr-xr-xr-x 2 root root 0 Jun 9 15:51
120_257</span></font><font size="2"><span
style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">dr-xr-xr-x 2 root root 0 Jun 9 15:51
120_65</span></font><font size="2"><span style="font-size:
10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">dr-xr-xr-x 2 root root 0 Jun 9 15:51
120_66</span></font><font size="2"><span style="font-size:
10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">-r--r--r-- 1 root root 0 Jun 9 15:51
nodename</span></font><font size="2"><span
style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">-r--r--r-- 1 root root 0 Jun 9 15:51
version</span></font><font size="2"><span
style="font-size: 10pt;"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font
face="Times New Roman" size="3"><span style="font-size:
12pt;"><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<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 36pt;"><font
face="Courier New" size="2"><span style="font-size: 10pt;
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: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">brw------- 1 root root 120, 65 Feb
2 08:16 emcpowere1</span></font><font size="2"><span
style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">brw------- 1 root root 120, 66 Feb
2 08:16 emcpowere2</span></font><font size="2"><span
style="font-size: 10pt;"><br>
</span></font><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier
New";">brw------- 1 root root 120, 257 Feb 2
08:16 emcpowerq1</span></font><font size="2"><span
style="font-size: 10pt;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><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</span></font><br>
</p>
</div>
</blockquote>
<br>
</body>
</html>