Skip to contentSkip to conversation

live lock?

linux-lvm Ming Zhang 2 participants 3 messages Jun 30, 2005 – Jul 1, 2005

lore
Share & tools
lore

Ming Zhang

author
#0 lore raw

i now met a PV that can not add or remove from a VG. i now do not know if it belongs to vg1 at all.

[root@gs_lan root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sda3" of VG "vg1" [102.64 GB / 60.28 GB
free]
pvscan -- inactive PV "/dev/sdb1" of VG "vg1" [137.78 GB / 129.97 GB free]
pvscan -- total: 2 [240.44 GB] / in use: 2 [240.44 GB] / in no VG: 0 [0]

[root@gs_lan root]# vgreduce vg1 /dev/sdb1
vgreduce -- physical volume "/dev/sdb1" doesn't belong to volume group "vg1"

[root@gs_lan root]# vgcreate vg2 /dev/sdb1
vgcreate -- "/dev/sdb1" is not a new physical volume vgcreate -- physical volume "/dev/sdb1" already belongs to volume group "vg1"

Ming

#1 lore raw
Quoted 12 lines · Ming Zhang

i now met a PV that can not add or remove from a VG. i now do not know if it belongs to vg1 at all.

[root@gs_lan root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sda3" of VG "vg1" [102.64 GB / 60.28 GB
free]
pvscan -- inactive PV "/dev/sdb1" of VG "vg1" [137.78 GB / 129.97 GB free]
pvscan -- total: 2 [240.44 GB] / in use: 2 [240.44 GB] / in no VG: 0 [0]

Quoted 8 lines

[root@gs_lan root]# vgreduce vg1 /dev/sdb1
vgreduce -- physical volume "/dev/sdb1" doesn't belong to volume group "vg1"

[root@gs_lan root]# vgcreate vg2 /dev/sdb1
vgcreate -- "/dev/sdb1" is not a new physical volume vgcreate -- physical volume "/dev/sdb1" already belongs to volume group "vg1"

Looks like you managed to get two VGs with the name vg1 on your system. do a vgrename and see if you can access the inactive one. ('vgrename vg1 vg2')

Signature · 8 lines
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: [email protected]
One Main Street SE, Suite 209
Minneapolis, MN 55414
   
Current GPG fingerprint = D9F8 EDCE 4242 855F A03D  9B63 F50C 54A8 578C 8715
Grab the key at: http://people.redhat.com/alewis/gpg.html or one of the
many keyservers out there...
author
#2 lore raw
Quoted 5 lines · AJ Lewis

On Thu, Jun 30, 2005 at 05:42:27PM -0400, Ming Zhang wrote:

Looks like you managed to get two VGs with the name vg1 on your system. do a vgrename and see if you can access the inactive one. ('vgrename vg1 vg2')

seems i am pretty cool. :P

i dare not to do this because this one running oracle database now. no fix if not broken.

ming