Moving And Reconfiguring Your Disks - HP -UX 11i Administrator's Manual

Logical volume management
Hide thumbs Also See for HP-UX 11i:
Table of Contents

Advertisement

By default, vgcfgbackup saves the configuration of a volume group to the file
volume_group_name.conf in the default directory /etc/lvmconf/. You can override this
default directory setting for volume group Version 2.x by configuring a new path in the
LVMP_CONF_PATH_NON_BOOT variable in the /etc/lvmrc file. For more information see
vgcfgbackup(1M)
NOTE:
After a cold installation of the HP-UX 1 1i v3 March 2010 release, the /etc/lvmrc file
will contain the LVMP_CONF_PATH_NON_BOOT variable definition as below:
LVMP_CONF_PATH_NON_BOOT=""
But if you have upgraded your system from earlier version to HP-UX 1 1i v3 March 2010, this
default definition will not exist. In such case, you can manually define the variable in /etc/lvmrc
to configure a new path.
You can also run vgcfgbackup at the command line, saving the backup file in any directory you
indicate. If you do, first run vgdisplay with the -v option to ensure that the all logical volumes
in the volume group are shown as available/syncd. If so, then run the following command:
# vgcfgbackup -f pathname/filename volume_group_name
If you use the -f option with vgcfgbackup to save the configuration file in a non-default location,
take note of and retain its location. For information on command options, see vgcfgbackup(1M).
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 73)
"Modifying Physical Volume Characteristics" (page 77)
"Disabling a Path to a Physical Volume" (page 87)
"Creating an Alternate Boot Disk" (page 88)
"Mirroring the Boot Disk" (page 90)
70
Administering LVM

Advertisement

Table of Contents
loading

Table of Contents