HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 94 (of 110)
Chapter 13 LVM
October 29, 2013
Recreate the lvmtab with the vgscan command.
The vgscan command allows the re-creation of the /etc/lvmtab file and
possibly the associated volume group device files.
mv /etc/lvmtab /etc/lvmtab.old
/usr/sbin/vgscan -p -v
-p Preview the actions that would be taken but do not update
file /etc/lvmtab. This option is best used in conjunction
-v Print verbose messages
Since vgscan searches each disk on the system in the order of where
they are configured, when vgscan reconstructs /etc/lvmtab file, the
order of disks in the file could be different than it was before. The
following will happen:
The designated primary and alternate link might not be the same
as it was configured before.
Alternate links will be added to the /etc/lvmtab file even if
they might not be configured in the volume group initially.
The boot information might be incorrect due to different order of
disks in the new /etc/lvmtab file.
In order to correct the above problems, do the following:
Use vgchange with -a option to activate all volume groups.
Use lvlnboot with -R option to correct boot information on disk.
Use vgreduce to reduce any alternate links that were added to the
/etc/lvmtab file by vgscan, but they were not needed.
If the original primary path of a disks become an alternate path
after /etc/lvmtab file is reconstructed, the order can be easily
reverted by using vgreduce to remove the primary path and use
vgextend to add the path back again.
If /etc/lvmtab is destroyed, do not use vgscan to re-construct
/etc/lvmtab if the system is heavily loaded by an application.
Otherwise, vgscan will create an incomplete /etc/lvmtab due to a known