<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Ocfs2-users] How do I remove old devices</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Thanks for this info Sunil,</FONT>
</P>

<P><FONT SIZE=2>But I run on Redhat AS 4 and bvi is not available immediately.</FONT>
<BR><FONT SIZE=2>I tried to use the source, but the one available on <A HREF="http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz" TARGET="_blank">http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz</A> seem to have a problem:</FONT></P>

<P><FONT SIZE=2>When I run the gunzip command as told on the installation page of the web site:</FONT>
</P>

<P><FONT SIZE=2>[root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xvf</FONT>
<BR><FONT SIZE=2>gunzip: bvi-1.3.2.src.tar.gz: not in gzip format</FONT>
<BR><FONT SIZE=2>tar: Old option `f' requires an argument.</FONT>
<BR><FONT SIZE=2>Try `tar --help' for more information.</FONT>
<BR><FONT SIZE=2>[root@erasme ~]#</FONT>
<BR><FONT SIZE=2>[root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz</FONT>
<BR><FONT SIZE=2>gunzip: bvi-1.3.2.src.tar.gz: not in gzip format</FONT>
</P>

<P><FONT SIZE=2>So I am stuck.&nbsp; :-(</FONT>
</P>

<P><FONT SIZE=2>Any other idea welcomed.&nbsp; An other binary editor (could not find any on redhat)? An other solution?</FONT>
</P>

<P><FONT SIZE=2>Thanks in advance,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR><FONT SIZE=2>Philippe Andries </FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Sunil Mushran [<A HREF="mailto:Sunil.Mushran@oracle.com">mailto:Sunil.Mushran@oracle.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: jeudi 28 septembre 2006 19:22</FONT>
<BR><FONT SIZE=2>To: Philippe Andries</FONT>
<BR><FONT SIZE=2>Cc: 'ocfs2-users@oss.oracle.com'</FONT>
<BR><FONT SIZE=2>Subject: Re: [Ocfs2-users] How do I remove old devices</FONT>
</P>
<BR>

<P><FONT SIZE=2>ocfs2console just scans the partitions in /proc/partitions and looks for the superblock on the 3rd block.</FONT>
</P>

<P><FONT SIZE=2>Easiest would be to use bvi (or any binary editor), search for the signature OCFSV2, and change it.</FONT>
</P>

<P><FONT SIZE=2># bvi -s 10240 /dev/sda1</FONT>
<BR><FONT SIZE=2>/OCFSV2</FONT>
</P>

<P><FONT SIZE=2>Philippe Andries wrote:</FONT>
<BR><FONT SIZE=2>&gt; Hi,</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; How do I remove 'ghost device' shown in ocfs2console</FONT>
<BR><FONT SIZE=2>&gt; I did a mistake while setting it my system formatting not to be</FONT>
<BR><FONT SIZE=2>&gt; formatted partition. </FONT>
<BR><FONT SIZE=2>&gt; But now after formating the correct one, and having my devices mounted </FONT>
<BR><FONT SIZE=2>&gt; and runnning, the old formated device are still shown in the windows </FONT>
<BR><FONT SIZE=2>&gt; of my console</FONT>
<BR><FONT SIZE=2>&gt; How can I removed them?</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; Thanks in adavance for your assistance,</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Philippe Andries</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; ----------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>&gt; --</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; Ocfs2-users mailing list</FONT>
<BR><FONT SIZE=2>&gt; Ocfs2-users@oss.oracle.com </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://oss.oracle.com/mailman/listinfo/ocfs2-users" TARGET="_blank">http://oss.oracle.com/mailman/listinfo/ocfs2-users</A></FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp; </FONT>
</P>

</BODY>
</HTML>