Operating System - HP-UX
1837053 Members
2558 Online
110111 Solutions
New Discussion

Re: Possibly forgot a vgreduce on a VG. Errors on vgdisplay.

 
Joe Profaizer
Super Advisor

Possibly forgot a vgreduce on a VG. Errors on vgdisplay.

Even though the device files exist, how do I now get them out of my lvdisplay and vgdisplay output. The entries for these devices also exist in my /etc/lvmtab.
The LUNS for these device have been deleted also.

Thanks,

..Joe


lvdisplay -v /dev/vgdvl/lvol2|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c12t0d4":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d4":
The specified path does not correspond to physical volume attached to
this volume group
2 REPLIES 2
Deshpande Prashant
Honored Contributor

Re: Possibly forgot a vgreduce on a VG. Errors on vgdisplay.

Hi
Try
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -av

Thanks.
Prashant.
Take it as it comes.
Sridhar Bhaskarla
Honored Contributor

Re: Possibly forgot a vgreduce on a VG. Errors on vgdisplay.

Do a vgreduce -f volume_group to get rid of the physical volumes that are non-existing.

I am hoping that there are no logical volumes residing on the disks. If so, you need to reduce the logical volumes from the non-exising disks. Do an lvdisplay -v -k and note the -k (PV KEY) value for those logical volumes. Then use lvreduce -k PV_KEY lvolx for the logical volumes on the missing disks.

Once you are done, then you can use vgreduce -f command to get rid of those disks.

And then do a vgchange -a y to refresh.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try