Operating System - HP-UX
1834227 Members
2856 Online
110066 Solutions
New Discussion

Getting msg: Warning: couldn't query physical volume

 
SOLVED
Go to solution

Getting msg: Warning: couldn't query physical volume

I'm in the process of setting up a server that was previously used at another account. When system reboots or I run a vgdisplay on vg00 I get the following warning: Could'nt query physical volume /dev/dsk/c1t5d0 and c1t8d0. These devices don't show under /dev/dsk. I evidently need to remove special files (rmsf), but not sure how. Please help
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Getting msg: Warning: couldn't query physical volume

Hi Glenn:

If you do 'strings /etc/lvmtab' you will undoubtedly see the missing devices. To clean this up, do:

# cp /etc/lvmtab /etc/lvmtab.old
# vgscan -av

Pay attention to the man pages for 'vgscan' with regard to alternate (pv) links and your boot disk.

Regards!

...JRF...

Santosh Nair_1
Honored Contributor

Re: Getting msg: Warning: couldn't query physical volume

You can use the rmsf command to remove the special files. Also, you might want to check the lvmtab file by doing a strings on the /etc/lvmtab file. Sounds like the system thinks that these disks are part of a VG that is still defined on the system. If the disks no longer exist, then you would have to get rid of the VGs associated with the disk using the vgexport command. Finally, you might have to clean up /etc/fstab to remove the any reference to the "bad" VG. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
harry d brown jr
Honored Contributor

Re: Getting msg: Warning: couldn't query physical volume

I believe you rename /etc/lvmtab, then run vgscan.
Live Free or Die
Stefan Farrelly
Honored Contributor

Re: Getting msg: Warning: couldn't query physical volume


Just do;

rmsf -a /dev/dsk/c1t5d0

Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor
Solution

Re: Getting msg: Warning: couldn't query physical volume

Hi (again) Glenn:

I should have said 'mv' as:

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

...JRF...
Carlos Fernandez Riera
Honored Contributor

Re: Getting msg: Warning: couldn't query physical volume


Well...

1- run insf -e, to recreate all special files, maybe you had delete it.

2- run strings /etc/lvmtab:

Each vg must contain at least 1 disk. Compare with ioscan -fnCdiks.

3- That disk could be old mirrored disk, so you must reduce all mirrored lvols and then reduce disk from vg. The -f flag must be used if disk is not plugged.

4- Also you can reboot , interact with IPL and boot hpux -lm. So you can export vg00 and reimport.




unsupported