Operating System - HP-UX
1827082 Members
1587 Online
109713 Solutions
New Discussion

hpux 10.20--need to remove old disk ref from vg00

 
SOLVED
Go to solution
Bob Brown_1
Frequent Advisor

hpux 10.20--need to remove old disk ref from vg00

I've got a system running 10.20. It has a reference to an old disk (/dev/dsk/c2t5d0) in vg00...I get errors whenever I go vgdispay on it (warning: couldn't query physical volume ...).

This disk is not on my system..the dev file has been removed. Apparently there was no data on it.

How do I tell vg00 to forget about that volume.

It's preventing me from running ignite recovery.

thanks!

-Bob
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: hpux 10.20--need to remove old disk ref from vg00

Hi Bob,

Try

vgreduce -f /dev/vg00

it's supposed to remove missing PVs from the volume group. You don't specify any disk devices.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Uday_S_Ankolekar
Honored Contributor
Solution

Re: hpux 10.20--need to remove old disk ref from vg00

It might be reading it from lvmtab file
Chack if strings /etc/lvmtab shows that disk.
Create new lvmtab by vgscan command..
Take a backup of existing lvmtab file before you run vgscan

vgscan -av to recreate

-USA..


Good Luck..
Sridhar Bhaskarla
Honored Contributor

Re: hpux 10.20--need to remove old disk ref from vg00

Hi Bob,

Try make sure all the logical volumes under vg00 do not have any references to the old disk. Try 'lvdisplay -v /dev/vg00/lvolx' for all the logical volumes and ensure that all of them show as current. Once it is confirmed do 'vgreduce -f vg00'. That should get you rid of it.

If you found any logical volumes that are mirrored to this disk, then it may be a long process. Run lvdisplay with -k option and find out the key corresponding to the stale extents. Then run lvreduce with -k option. Once all the logical volumes are cleared, then you can run vgreduce -f vg00.

Don't run vgscan.

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

Re: hpux 10.20--need to remove old disk ref from vg00

If you are absolutley sure that disk was unused the ndo
# vgreduce -f /dev/vg00