Operating System - HP-UX
1826332 Members
3534 Online
109692 Solutions
New Discussion

Re: How to get rid of problem volume group

 
SOLVED
Go to solution
Richard Ray
Advisor

How to get rid of problem volume group

I have a volume groug on a server running 10.20 I want to delete. When I use SAM to delete the logical volume I got

vgcfgbackup: /etc/lvmtab is out of date with the running kernel: Kernel indicates 2 disks for "/dev/vg02"; /etc/lvmtab has 1 disks. Cannot proceed with backup.

Can you advise how to proceed?
4 REPLIES 4
Coolmar
Esteemed Contributor

Re: How to get rid of problem volume group

Looks like you have to get remove any logical volumes from the volume group; then remove the physical volumes (disks) from the volume group; then remove the volume group.
OR...from the command line just vgexport -v /dev/vg02
Sandman!
Honored Contributor
Solution

Re: How to get rid of problem volume group

Either remove all the lvols that reside on the unknown disk and then forcibly reduce the PV. lvols that have LEs on ??? PEs are the erroneous ones and you have to lvremove(1M) them before running "vgreduce -f".

Another option is to vgexport / vgimport the VG and thereafter run "vgreduce -f".
Richard Ray
Advisor

Re: How to get rid of problem volume group

Used vgexport to get rid of volume and reuse disk.

Thanks
Sp4admin
Trusted Contributor

Re: How to get rid of problem volume group

Hi,

Looks like you need to remove all the logial volumes first from the volume groups. Then vgreduce

sp,