HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 81 (of 110)
Chapter 13 LVM
October 29, 2013
vgdisplay
Among the most common error messages is the following:
vgdisplay "Could not query physical volume"
Causes for this error message could be different. Here are some of them, as well as
suggested workarounds:
1. PROBLEM - vgdisplay error: can't query physical volume
RESOLUTION
vgdisplay error: can't query physical volume
The error message will include the device in question.
Use the information with the output of the ioscan command.
/sbin/ioscan -fnC disk
Is the device in the output of the command, reporting both the hardware path
and device file?
If not, there may be a possible hardware issue.
If the output of the ioscan reports the disk correctly, compare to the output
of the strings command to check /etc/lvmtab.
strings /etc/lvmtab
Does this reflect the device in the correct volume group ?
If not, check the device with the pvdisplay command. It will display
the status and characteristics of the physical volume.
pvdisplay /dev/dsk/c#t#d#
--- Physical volumes ---
PV Name /dev/dsk/c#t#d#
VG Name /dev/vg##
If the disk reports incorrectly, restore the information to the disk with the
vgcfgrestore command. Check the file /etc/lvmconf/vg##.conf for
accuracy, before restoring.
strings /etc/lvmconf/vg##.conf
If this reports accurately, restore the LVM configuration information to the
physical volume.