Skip to contentSkip to conversation

Phantom Vol Grp

linux-lvm Kenny Gorman 2 participants 3 messages Sep 17, 2001

lore
Share & tools
lore
#0 lore raw

I can not delete a vol grp, but it doesn't show as there. When I try to create a new one with the same name, then it says it exists... how do I
'clean out' old references?

See below:

colobus:~ # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sdb1" of VG "oraredo1" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdb2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdc1" of VG "oraredo2" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdc2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdd1" of VG "redogrp3" [17.09 GB / 16.98 GB free]
pvscan -- ACTIVE PV "/dev/sdd2" of VG "sysgrp" [16.99 GB / 12.49 GB free]
pvscan -- total: 6 [68.26 GB] / in use: 4 [34.28 GB] / in no VG: 2 [33.98 GB]

colobus:~ # vgcreate indxgrp /dev/sdc2
vgcreate -- volume group directory or file already exists vgcreate -- please choose a different name

colobus:~ # vgremove indxgrp
vgremove -- ERROR: can't remove active volume group "indxgrp"

colobus:~ # vgchange -a n indxgrp
vgchange -- volume group "indxgrp" does not exist

colobus:~ # vgdisplay indxgrp
vgdisplay -- volume group "indxgrp" not found

-kg

#2 lore raw
In reply to AJ Lewis

Yes! That was it.

thanks!

-kg

Quoted 26 lines · AJ Lewis
Quoted 15 lines · Kenny Gorman

I can not delete a vol grp, but it doesn't show as there. When I try to create a new one with the same name, then it says it exists... how do I
'clean out' old references?

See below:

colobus:~ # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sdb1" of VG "oraredo1" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdb2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdc1" of VG "oraredo2" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdc2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdd1" of VG "redogrp3" [17.09 GB / 16.98 GB free]
pvscan -- ACTIVE PV "/dev/sdd2" of VG "sysgrp" [16.99 GB / 12.49 GB free]
pvscan -- total: 6 [68.26 GB] / in use: 4 [34.28 GB] / in no VG: 2 [33.98 GB]

Quoted 4 lines

colobus:~ # vgcreate indxgrp /dev/sdc2
vgcreate -- volume group directory or file already exists vgcreate -- please choose a different name

I believe this is referring to the /dev/indxgrp directory...look at that and if you know you don't need it, rm it.

#1 lore raw
In reply to Kenny Gorman
Quoted 19 lines · Kenny Gorman

I can not delete a vol grp, but it doesn't show as there. When I try to create a new one with the same name, then it says it exists... how do I
'clean out' old references?

See below:

colobus:~ # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sdb1" of VG "oraredo1" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdb2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdc1" of VG "oraredo2" [100 MB / 100 MB free]
pvscan -- inactive PV "/dev/sdc2" is in no VG [16.99 GB]
pvscan -- ACTIVE PV "/dev/sdd1" of VG "redogrp3" [17.09 GB / 16.98 GB
free]
pvscan -- ACTIVE PV "/dev/sdd2" of VG "sysgrp" [16.99 GB / 12.49 GB
free]
pvscan -- total: 6 [68.26 GB] / in use: 4 [34.28 GB] / in no VG: 2 [33.98 GB]

Quoted 3 lines

colobus:~ # vgcreate indxgrp /dev/sdc2
vgcreate -- volume group directory or file already exists vgcreate -- please choose a different name

I believe this is referring to the /dev/indxgrp directory...look at that and if you know you don't need it, rm it.

Signature · 11 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 60F3 160D C0D5 2C4B 751B  4FF9 6F67 E9BC 44CD DE95

-----Begin Obligatory Humorous Quote----------------------------------------
cthread. cthread_fork(). Fork, thread, fork!
-----End Obligatory Humorous Quote------------------------------------------