<!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>
<P><FONT SIZE=2>Dear all, just to close this case and clarify:</FONT>
</P>
<P><FONT SIZE=2>I installed and used bvi, but still the ghosts device were always coming back.</FONT>
<BR><FONT SIZE=2>Very strange. So I decided to reinstall completely my servers. And understand.</FONT>
</P>
<P><FONT SIZE=2>I have a RAC made of 2 servers and a disk array. The connection between the servers and the disk array use a multi scsi device (2 port for each connection for safety)</FONT></P>
<P><FONT SIZE=2>That force me to use HP multipath software (cpq_cciss-2.6.12-6.rhel4.i686 for the info)</FONT>
</P>
<P><FONT SIZE=2>Multipath software use the following disk </FONT>
</P>
<P><FONT SIZE=2>Disk /dev/cciss/c0d1: 145.6 GB, 145675714560 bytes</FONT>
<BR><FONT SIZE=2>2 heads, 4 sectors/track, 35565360 cylinders</FONT>
<BR><FONT SIZE=2>Units = cylinders of 8 * 512 = 4096 bytes</FONT>
</P>
<P><FONT SIZE=2> Device Boot Start End Blocks Id System</FONT>
<BR><FONT SIZE=2>/dev/cciss/c0d1p1 1 488282 1953126 83 Linux</FONT>
<BR><FONT SIZE=2>/dev/cciss/c0d1p2 488283 35565344 140308248 83 Linux</FONT>
</P>
<P><FONT SIZE=2>Disk /dev/cciss/c1d0: 145.6 GB, 145675714560 bytes</FONT>
<BR><FONT SIZE=2>2 heads, 4 sectors/track, 35565360 cylinders</FONT>
<BR><FONT SIZE=2>Units = cylinders of 8 * 512 = 4096 bytes</FONT>
</P>
<P><FONT SIZE=2> Device Boot Start End Blocks Id System</FONT>
<BR><FONT SIZE=2>/dev/cciss/c1d0p1 1 488282 1953126 83 Linux</FONT>
<BR><FONT SIZE=2>/dev/cciss/c1d0p2 488283 35565344 140308248 83 Linux</FONT>
</P>
<P><FONT SIZE=2>to create multipath devices.</FONT>
</P>
<P><FONT SIZE=2>/dev/md0 /dev/cciss/c0d1p1 and /dev/cciss/c1d0p1</FONT>
<BR><FONT SIZE=2>/dev/md1 /dev/cciss/c0d1p2 and /dev/cciss/c1d0p2</FONT>
</P>
<P><FONT SIZE=2>Even if I format and mount only the /dev/mdx devices, ocfs2 recognize and list them all</FONT>
</P>
<P><FONT SIZE=2>[root@erasme installed]# mounted.ocfs2 -d</FONT>
<BR><FONT SIZE=2>Device FS UUID Label</FONT>
<BR><FONT SIZE=2>/dev/cciss/c0d1p1 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs</FONT>
<BR><FONT SIZE=2>/dev/cciss/c0d1p2 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb</FONT>
<BR><FONT SIZE=2>/dev/cciss/c1d0p1 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs</FONT>
<BR><FONT SIZE=2>/dev/cciss/c1d0p2 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb</FONT>
<BR><FONT SIZE=2>/dev/md0 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs</FONT>
<BR><FONT SIZE=2>/dev/md1 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb</FONT>
</P>
<P><FONT SIZE=2>My 4 ghosts included.</FONT>
</P>
<P><FONT SIZE=2>So there was no bug.</FONT>
<BR><FONT SIZE=2>Thanks anyway for your assistance</FONT>
</P>
<P><FONT SIZE=2>Philippe Andries</FONT>
</P>
<BR>
<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: vendredi 29 septembre 2006 18:45</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>Because that is a html doc. Click on the link and then select a mirror. <A HREF="http://bvi.sourceforge.net/download.html" TARGET="_blank">http://bvi.sourceforge.net/download.html</A></FONT>
</P>
<P><FONT SIZE=2>You could get the bin rpm too.</FONT>
</P>
<P><FONT SIZE=2>Philippe Andries wrote:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Thanks Tao,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> But</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> [root@erasme ~]# wget</FONT>
<BR><FONT SIZE=2>> <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></FONT>
<BR><FONT SIZE=2>> --11:02:29-- <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></FONT>
<BR><FONT SIZE=2>> => `bvi-1.3.2.src.tar.gz'</FONT>
<BR><FONT SIZE=2>> Resolving prdownloads.sourceforge.net... 66.35.250.217</FONT>
<BR><FONT SIZE=2>> Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected.</FONT>
<BR><FONT SIZE=2>> HTTP request sent, awaiting response... 200 OK</FONT>
<BR><FONT SIZE=2>> Length: unspecified [text/html]</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> [ <=> ] 12,828 34.51K/s</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> 11:02:30 (34.43 KB/s) - `bvi-1.3.2.src.tar.gz' saved [12828]</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> [root@erasme ~]# tar zxvf bvi-1.3.2.src.tar.gz</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> gzip: stdin: not in gzip format</FONT>
<BR><FONT SIZE=2>> tar: Child returned status 1</FONT>
<BR><FONT SIZE=2>> tar: Error exit delayed from previous errors</FONT>
<BR><FONT SIZE=2>> [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xv</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> gunzip: bvi-1.3.2.src.tar.gz: not in gzip format</FONT>
<BR><FONT SIZE=2>> [root@erasme ~]#</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> I believe the file has a problem.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Philippe Andries</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: tao.ma [<A HREF="mailto:tao.ma@oracle.com">mailto:tao.ma@oracle.com</A>]</FONT>
<BR><FONT SIZE=2>> Sent: vendredi 29 septembre 2006 10:58</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>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Please use:</FONT>
<BR><FONT SIZE=2>> gunzip -c bvi-1.3.2.src.tar.gz | tar xv</FONT>
<BR><FONT SIZE=2>> or tar zxvf bvi-1.3.2.src.tar.gz</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Philippe Andries wrote:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Thanks for this info Sunil,</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > But I run on Redhat AS 4 and bvi is not available immediately. I </FONT>
<BR><FONT SIZE=2>> > tried to use the source, but the one available on </FONT>
<BR><FONT SIZE=2>> > <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 </FONT>
<BR><FONT SIZE=2>> > have a problem:</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > When I run the gunzip command as told on the installation page of </FONT>
<BR><FONT SIZE=2>> > the web site:</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><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>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > So I am stuck. :-(</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Any other idea welcomed. An other binary editor (could not find any </FONT>
<BR><FONT SIZE=2>> > on redhat)? An other solution?</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Thanks in advance,</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Philippe Andries</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><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>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > ocfs2console just scans the partitions in /proc/partitions and looks </FONT>
<BR><FONT SIZE=2>> > for the superblock on the 3rd block.</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Easiest would be to use bvi (or any binary editor), search for the </FONT>
<BR><FONT SIZE=2>> > signature OCFSV2, and change it.</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > # bvi -s 10240 /dev/sda1</FONT>
<BR><FONT SIZE=2>> > /OCFSV2</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > Philippe Andries wrote:</FONT>
<BR><FONT SIZE=2>> > > Hi,</FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > > How do I remove 'ghost device' shown in ocfs2console</FONT>
<BR><FONT SIZE=2>> > > I did a mistake while setting it my system formatting not to be </FONT>
<BR><FONT SIZE=2>> > > formatted partition. But now after formating the correct one, and </FONT>
<BR><FONT SIZE=2>> > > having my devices mounted and runnning, the old formated device </FONT>
<BR><FONT SIZE=2>> > > are still shown in the windows of my console How can I removed </FONT>
<BR><FONT SIZE=2>> > > them?</FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > > Thanks in adavance for your assistance,</FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > > Philippe Andries</FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > > ------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> > > --</FONT>
<BR><FONT SIZE=2>> > > --</FONT>
<BR><FONT SIZE=2>> > > --</FONT>
<BR><FONT SIZE=2>> > ></FONT>
<BR><FONT SIZE=2>> > > _______________________________________________</FONT>
<BR><FONT SIZE=2>> > > Ocfs2-users mailing list</FONT>
<BR><FONT SIZE=2>> > > Ocfs2-users@oss.oracle.com </FONT>
<BR><FONT SIZE=2>> > > <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>> > > </FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> >---------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> >--</FONT>
<BR><FONT SIZE=2>> >-</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> >_______________________________________________</FONT>
<BR><FONT SIZE=2>> >Ocfs2-users mailing list</FONT>
<BR><FONT SIZE=2>> >Ocfs2-users@oss.oracle.com </FONT>
<BR><FONT SIZE=2>> ><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>> ></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> ----------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> --</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Ocfs2-users mailing list</FONT>
<BR><FONT SIZE=2>> Ocfs2-users@oss.oracle.com </FONT>
<BR><FONT SIZE=2>> <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>> </FONT>
</P>
</BODY>
</HTML>