vgscan(1M) — Series 800 Only
NAME
vgscan − scan all Physical Volumes looking for Logical Volume Groups
SYNOPSIS
/etc/vgscan [-p] [-v]
DESCRIPTION
vgscan allows recreation of the /etc/lvmtab and possibly the associated Logical Volume Group device files. This command should be run only in the event of a catastrophic error such as the deletion of file /etc/lvmtab or the mismatch of names of the Physical Volumes in file /etc/lvmtab to the actual Physical Volume path configuration. If file /etc/lvmtab exists, the information contained in the file is used to assist in rebuilding the file, but the existing file is updated with the new corrected configuration.
vgscan searches each Physical Volume connected to the system, looking for Logical Volumes. It then groups these Physical Volumes into Volume Groups by matching the Volume Group information as found on the Physical Volumes. vgscan then searches the /dev directory for all group device files with the LVM Major number. It then tries to match device files with Logical Volume information as found on the Physical Volumes. If matches occur, the Volume Group name is determined from the device file path, and file /etc/lvmtab is updated with the Volume Group name and the list of Physical Volume Paths containing that Volume Group. For each Volume Group where the device files cannot be matched, the list of Physical Volumes for each Volume Group is printed. The vgimport command should then be run on each set of Physical Volumes (see vgimport(1M)).
Options
vgscan recognizes the following options:
-p Preview the actions taken but do not update file /etc/lvmtab. This option is best used in conjunction with the -v option.
-v Prints verbose messages.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, vgscan behaves as if all internationalization variables are set to "C". See environ(5).
EXAMPLES
Scan all the Physical Volumes on the system:
vgscan -p -v
SEE ALSO
Hewlett-Packard Company — HP-UX Release 9.10: April 1995