Operating System - HP-UX
1850321 Members
2667 Online
104054 Solutions
New Discussion

have 2 VG's with the same PV. The magically appeared Vg has no LV's

 
SOLVED
Go to solution
Donald Kok
Respected Contributor

have 2 VG's with the same PV. The magically appeared Vg has no LV's

Somehow, I have 2 VG's with the same PV. The magically appeared VG has no LV's. The new VG cannot be removed cause it is in use. The originaly vg is vglod. The new vg is vg01.

I send along the output from :
strings lvmtab
ll /dev/vg*
vgdisplay

I also find that there is a vg02 which I cannot find on my system.
My systems are 100% Murphy Compliant. Guaranteed!!!
3 REPLIES 3
Andreas Voss
Honored Contributor

Re: have 2 VG's with the same PV. The magically appeared Vg has no LV's

Hi,

you could do a: vgscan -pv
to see any difference.
If the vgscan output matches what you expected you could rename /etc/lvmtab to ie. /etc/lvmtab.old and run vgscan -a to rebuild /etc/lvmtab

Regards
John Palmer
Honored Contributor
Solution

Re: have 2 VG's with the same PV. The magically appeared Vg has no LV's

Hi,

vg01 and vglod are in fact the same volume group. They have the same minor number and lvmtab contains the same pair of disk names.

vg01 just doesn't have the device files for the logical volumes.

To fix it, I would recommend the following:-

1. Remove the device files for vg01
rm -r /dev/vg01
2. Reconstruct /etc/lvmtab to remove the
entries for vg01 and vg02
mv /etc/lvmtab /etc/lvmtab.old
vgscan -a

All should then be well.

Regards,
John
Darrel Louis
Honored Contributor

Re: have 2 VG's with the same PV. The magically appeared Vg has no LV's

The reason why you can't remove it is because the VG's has the same minor number.
Did you manually create vg01??

What is the output of vgscan -pv, andreas suggested giving you?

Also check the /etc/lvmconf directory.
What does pvdisplay on the two disks display?