Hi, How do I remove 'ghost device' shown in ocfs2console I did a mistake while setting it my system formatting not to be formatted partition. But now after formating the correct one, and having my devices mounted and runnning, the old formated device are still shown in the windows of my console How can I removed them? Thanks in adavance for your assistance, Philippe Andries -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20060928/b8b6fe26/attachment.html
ocfs2console just scans the partitions in /proc/partitions and looks for the superblock on the 3rd block. Easiest would be to use bvi (or any binary editor), search for the signature OCFSV2, and change it. # bvi -s 10240 /dev/sda1 /OCFSV2 Philippe Andries wrote:> Hi, > > How do I remove 'ghost device' shown in ocfs2console > I did a mistake while setting it my system formatting not to be > formatted partition. > But now after formating the correct one, and having my devices mounted > and runnning, the old formated device are still shown in the windows > of my console > How can I removed them? > > Thanks in adavance for your assistance, > > > Philippe Andries > > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users >
Thanks for this info Sunil, But I run on Redhat AS 4 and bvi is not available immediately. I tried to use the source, but the one available on http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz seem to have a problem: When I run the gunzip command as told on the installation page of the web site: [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xvf gunzip: bvi-1.3.2.src.tar.gz: not in gzip format tar: Old option `f' requires an argument. Try `tar --help' for more information. [root@erasme ~]# [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz gunzip: bvi-1.3.2.src.tar.gz: not in gzip format So I am stuck. :-( Any other idea welcomed. An other binary editor (could not find any on redhat)? An other solution? Thanks in advance, Philippe Andries -----Original Message----- From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] Sent: jeudi 28 septembre 2006 19:22 To: Philippe Andries Cc: 'ocfs2-users@oss.oracle.com' Subject: Re: [Ocfs2-users] How do I remove old devices ocfs2console just scans the partitions in /proc/partitions and looks for the superblock on the 3rd block. Easiest would be to use bvi (or any binary editor), search for the signature OCFSV2, and change it. # bvi -s 10240 /dev/sda1 /OCFSV2 Philippe Andries wrote:> Hi, > > How do I remove 'ghost device' shown in ocfs2console > I did a mistake while setting it my system formatting not to be > formatted partition. > But now after formating the correct one, and having my devices mounted > and runnning, the old formated device are still shown in the windows > of my console > How can I removed them? > > Thanks in adavance for your assistance, > > > Philippe Andries > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20060929/c7cdb661/attachment.html
Thanks Tao, But [root@erasme ~]# wget http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz --11:02:29-- http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz => `bvi-1.3.2.src.tar.gz' Resolving prdownloads.sourceforge.net... 66.35.250.217 Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 12,828 34.51K/s 11:02:30 (34.43 KB/s) - `bvi-1.3.2.src.tar.gz' saved [12828] [root@erasme ~]# tar zxvf bvi-1.3.2.src.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xv gunzip: bvi-1.3.2.src.tar.gz: not in gzip format [root@erasme ~]# I believe the file has a problem. Philippe Andries -----Original Message----- From: tao.ma [mailto:tao.ma@oracle.com] Sent: vendredi 29 septembre 2006 10:58 To: Philippe Andries Cc: 'ocfs2-users@oss.oracle.com' Subject: Re: [Ocfs2-users] How do I remove old devices Please use: gunzip -c bvi-1.3.2.src.tar.gz | tar xv or tar zxvf bvi-1.3.2.src.tar.gz Philippe Andries wrote:> > Thanks for this info Sunil, > > But I run on Redhat AS 4 and bvi is not available immediately. I tried > to use the source, but the one available on > http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz seem to > have a problem: > > When I run the gunzip command as told on the installation page of the > web site: > > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xvf > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > tar: Old option `f' requires an argument. > Try `tar --help' for more information. > [root@erasme ~]# > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > > So I am stuck. :-( > > Any other idea welcomed. An other binary editor (could not find any > on redhat)? An other solution? > > Thanks in advance, > > Philippe Andries > > > -----Original Message----- > From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] > Sent: jeudi 28 septembre 2006 19:22 > To: Philippe Andries > Cc: 'ocfs2-users@oss.oracle.com' > Subject: Re: [Ocfs2-users] How do I remove old devices > > > ocfs2console just scans the partitions in /proc/partitions and looks > for the superblock on the 3rd block. > > Easiest would be to use bvi (or any binary editor), search for the > signature OCFSV2, and change it. > > # bvi -s 10240 /dev/sda1 > /OCFSV2 > > Philippe Andries wrote: > > Hi, > > > > How do I remove 'ghost device' shown in ocfs2console > > I did a mistake while setting it my system formatting not to be > > formatted partition. But now after formating the correct one, and > > having my devices mounted and runnning, the old formated device are > > still shown in the windows of my console > > How can I removed them? > > > > Thanks in adavance for your assistance, > > > > > > Philippe Andries > > > > > > -------------------------------------------------------------------- > > -- > > -- > > > > _______________________________________________ > > Ocfs2-users mailing list > > Ocfs2-users@oss.oracle.com > > http://oss.oracle.com/mailman/listinfo/ocfs2-users > > > >----------------------------------------------------------------------- >- > >_______________________________________________ >Ocfs2-users mailing list >Ocfs2-users@oss.oracle.com >http://oss.oracle.com/mailman/listinfo/ocfs2-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20060929/81b3d652/attachment.html
Philippe Andries wrote: <snip>> [root@erasme ~]# tar zxvf bvi-1.3.2.src.tar.gz > > gzip: stdin: not in gzip format > tar: Child returned status 1 > tar: Error exit delayed from previous errors > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xv > > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > [root@erasme ~]# > > I believe the file has a problem. > > > Philippe AndriesCheck what type of file you have: # wget -q http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz # file bvi/bvi-1.3.2.src.tar.gz bvi-1.3.2.src.tar.gz: HTML document text In my case I got the page for choosing download server on Sourceforge. ///Regards, -- | _/ _/_/_/ _/ _/ _/_/_/ | Jens Carlberg | _/ _/ _/_/ _/ _/ | UNIT, Link?pings universitet | _/ _/_/ _/ _/_/ _/ | Tel: +46 13 281758 | _/_/ _/_/_/ _/ _/ _/_/_/ | Fax: +46 13 284400 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3319 bytes Desc: S/MIME Cryptographic Signature Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20060929/2c122d33/smime-0001.bin
Dear all, just to close this case and clarify: I installed and used bvi, but still the ghosts device were always coming back. Very strange. So I decided to reinstall completely my servers. And understand. 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) That force me to use HP multipath software (cpq_cciss-2.6.12-6.rhel4.i686 for the info) Multipath software use the following disk Disk /dev/cciss/c0d1: 145.6 GB, 145675714560 bytes 2 heads, 4 sectors/track, 35565360 cylinders Units = cylinders of 8 * 512 = 4096 bytes Device Boot Start End Blocks Id System /dev/cciss/c0d1p1 1 488282 1953126 83 Linux /dev/cciss/c0d1p2 488283 35565344 140308248 83 Linux Disk /dev/cciss/c1d0: 145.6 GB, 145675714560 bytes 2 heads, 4 sectors/track, 35565360 cylinders Units = cylinders of 8 * 512 = 4096 bytes Device Boot Start End Blocks Id System /dev/cciss/c1d0p1 1 488282 1953126 83 Linux /dev/cciss/c1d0p2 488283 35565344 140308248 83 Linux to create multipath devices. /dev/md0 /dev/cciss/c0d1p1 and /dev/cciss/c1d0p1 /dev/md1 /dev/cciss/c0d1p2 and /dev/cciss/c1d0p2 Even if I format and mount only the /dev/mdx devices, ocfs2 recognize and list them all [root@erasme installed]# mounted.ocfs2 -d Device FS UUID Label /dev/cciss/c0d1p1 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs /dev/cciss/c0d1p2 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb /dev/cciss/c1d0p1 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs /dev/cciss/c1d0p2 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb /dev/md0 ocfs2 26d4fc43-fe0f-435a-b7be-b6b9c37e18ee oraclecrs /dev/md1 ocfs2 df0e801c-2501-44ae-9cb4-38a67325762a oracledb My 4 ghosts included. So there was no bug. Thanks anyway for your assistance Philippe Andries -----Original Message----- From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] Sent: vendredi 29 septembre 2006 18:45 To: Philippe Andries Cc: 'ocfs2-users@oss.oracle.com' Subject: Re: [Ocfs2-users] How do I remove old devices Because that is a html doc. Click on the link and then select a mirror. http://bvi.sourceforge.net/download.html You could get the bin rpm too. Philippe Andries wrote:> > Thanks Tao, > > But > > [root@erasme ~]# wget > http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz > --11:02:29-- http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz > => `bvi-1.3.2.src.tar.gz' > Resolving prdownloads.sourceforge.net... 66.35.250.217 > Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: unspecified [text/html] > > [ <=> ] 12,828 34.51K/s > > 11:02:30 (34.43 KB/s) - `bvi-1.3.2.src.tar.gz' saved [12828] > > [root@erasme ~]# tar zxvf bvi-1.3.2.src.tar.gz > > gzip: stdin: not in gzip format > tar: Child returned status 1 > tar: Error exit delayed from previous errors > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xv > > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > [root@erasme ~]# > > I believe the file has a problem. > > > Philippe Andries > > -----Original Message----- > From: tao.ma [mailto:tao.ma@oracle.com] > Sent: vendredi 29 septembre 2006 10:58 > To: Philippe Andries > Cc: 'ocfs2-users@oss.oracle.com' > Subject: Re: [Ocfs2-users] How do I remove old devices > > > Please use: > gunzip -c bvi-1.3.2.src.tar.gz | tar xv > or tar zxvf bvi-1.3.2.src.tar.gz > > Philippe Andries wrote: > > > > > Thanks for this info Sunil, > > > > But I run on Redhat AS 4 and bvi is not available immediately. I > > tried to use the source, but the one available on > > http://prdownloads.sourceforge.net/bvi/bvi-1.3.2.src.tar.gz seem to > > have a problem: > > > > When I run the gunzip command as told on the installation page of > > the web site: > > > > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz | tar xvf > > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > > tar: Old option `f' requires an argument. > > Try `tar --help' for more information. > > [root@erasme ~]# > > [root@erasme ~]# gunzip -c bvi-1.3.2.src.tar.gz > > gunzip: bvi-1.3.2.src.tar.gz: not in gzip format > > > > So I am stuck. :-( > > > > Any other idea welcomed. An other binary editor (could not find any > > on redhat)? An other solution? > > > > Thanks in advance, > > > > Philippe Andries > > > > > > -----Original Message----- > > From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] > > Sent: jeudi 28 septembre 2006 19:22 > > To: Philippe Andries > > Cc: 'ocfs2-users@oss.oracle.com' > > Subject: Re: [Ocfs2-users] How do I remove old devices > > > > > > ocfs2console just scans the partitions in /proc/partitions and looks > > for the superblock on the 3rd block. > > > > Easiest would be to use bvi (or any binary editor), search for the > > signature OCFSV2, and change it. > > > > # bvi -s 10240 /dev/sda1 > > /OCFSV2 > > > > Philippe Andries wrote: > > > Hi, > > > > > > How do I remove 'ghost device' shown in ocfs2console > > > I did a mistake while setting it my system formatting not to be > > > formatted partition. But now after formating the correct one, and > > > having my devices mounted and runnning, the old formated device > > > are still shown in the windows of my console How can I removed > > > them? > > > > > > Thanks in adavance for your assistance, > > > > > > > > > Philippe Andries > > > > > > > > > ------------------------------------------------------------------ > > > -- > > > -- > > > -- > > > > > > _______________________________________________ > > > Ocfs2-users mailing list > > > Ocfs2-users@oss.oracle.com > > > http://oss.oracle.com/mailman/listinfo/ocfs2-users > > > > > > >--------------------------------------------------------------------- > >-- > >- > > > >_______________________________________________ > >Ocfs2-users mailing list > >Ocfs2-users@oss.oracle.com > >http://oss.oracle.com/mailman/listinfo/ocfs2-users > > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20061011/3361afa2/attachment.html