HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)

Make sure backups of the root volume group are on the root file system, in case these are required
during recovery.
To run vgcfgrestore, the physical volume must be detached. If all the data on the physical
volume is mirrored and the mirror copies are current and available, you can temporarily detach
the physical volume using pvchange, perform the vgcfgrestore, and reattach the physical
volume. For example, to restore volume group configuration data for /dev/disk/disk5, a disk
in the volume group /dev/vgsales, enter the following commands:
# pvchange -a n /dev/disk/disk5
# vgcfgrestore -n /dev/vgsales /dev/rdisk/disk5
# pvchange -a y /dev/disk/disk5
If the physical volume is not mirrored or the mirror copies are not current and available, you must
deactivate the volume group with vgchange, perform the vgcfgrestore, and activate the
volume group as follows:
# vgchange -a n /dev/vgsales
# vgcfgrestore -n /dev/vgsales /dev/rdisk/disk5
# vgchange -a y /dev/vgsales
These examples restore the LVM configuration to the disk from the default backup location in /etc/
lvmconf/vgsales.conf.
For information on command options, see vgcfgrestore(1M).
Moving and Reconfiguring Your Disks
This section addresses the following topics:
“Moving Disks Within a System” (page 71)
“Moving Disks Between Systems” (page 72)
“Moving Data to a Different Physical Volume” (page 72)
“Modifying Physical Volume Characteristics” (page 77)
“Disabling a Path to a Physical Volume” (page 86)
“Creating an Alternate Boot Disk” (page 87)
“Mirroring the Boot Disk” (page 89)
“Mirroring the Boot Disk on HP 9000 Servers” (page 89)
“Mirroring the Boot Disk on HP Integrity Servers” (page 91)
You might need to do the following tasks:
Move the disks in a volume group to different hardware locations on a system.
Move entire volume groups of disks from one system to another.
CAUTION: Moving a disk that is part of your root volume group is not recommended. For more
information, see Configuring HP-UX for Peripherals.
The /etc/lvmtab and /etc/lvmtab_p files contain information about the mapping of LVM
disks on a system to volume groups; that is, volume group names and lists of the physical volumes
included in volume groups. When you do either of the previous tasks, these configuration files must
be changed to reflect the new hardware locations and device files for the disks. However, you
cannot edit these files directly because they are not text files. Instead, you must use vgexport
and vgimport to reconfigure the volume groups, which records configuration changes in the LVM
configuration files.
70 Administering LVM