HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 82 (of 110)
Chapter 13 LVM
October 29, 2013
By default the volume group will need to be de-activated.
(see man page vgcfgrestore 1(m) for additional options)
vgchange /dev/vg## -a n
vgcfgrestore -n /dev/vg00 /dev/rdsk/c#t#d#
strings /etc/lvmtab
If /etc/lvmtab does not reflect the change, use the vgscan command.
This allows the re-creation of the /etc/lvmtab and possibly the associated
volume group device files.
-p Preview the actions that would be taken but do not update
file /etc/lvmtab. This option is best used in conjunction
with the -v option.
-v Print verbose messages
To protect /etc/lvmtab , move the file.
If the vgscan command fails it can be moved back.
mv /etc/lvmtab /etc/lvmtab.old
vgscan -p -v
This will allow the preview of the results from vgscan, without
making the changes. If the information is correct continue without the -p
option.
vgscan -v
strings /etc/lvmtab
vgchange /dev/vg## -a y
vgdisplay -v /dev/vg##
2. PROBLEM – vgdisplay shows error after disk replacement
After replacing the system mirror root disk, the vgcfgrestore command worked
successfully, but now the vgdisplay command displays this error message:
Warning: Could not query physical volume
What is causing this problem?
RESOLUTION
The problem is that vgdisplay or pvdisplay reads the information