HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)
12. Add a line to /stand/bootconf for the new boot disk using vi or another text editor as
follows:
# vi /stand/bootconf
l /dev/disk/disk2_p2
Where the literal “l” (lower case L) represents LVM.
3.5 Migrating a Volume Group to New Disks: vgmove
Beginning with September 2009 Update, LVM provides a new vgmove command to migrate data
in a volume group from an old set of disks to a new set of disks.
The vgmove operation moves data in a volume group from old storage to new storage while
adhering to these conditions:
• During migration, the volume group is online with no downtime to customer applications.
• The volume group device special file (DSF) is not changed. From an application perspective,
the volume group remains unchanged.
• The extent allocation policies used by the logical volumes stay honored.
• The migration succeeds even if the number of destination physical volumes is different from
the number of original physical volumes.
• High availability and recoverability are not compromised at any time during the data migration.
To migrate a volume group, you provide a file containing the mapping of source (old) to destination
(new) disks, one line per source disk, in the following format:
source_pv_1 destination_pv_1_1 destination_pv_1_2 ....
source_pv_2 destination_pv_2_1 destination_pv_2_2 ....
....
source_pv_n destination_pv_n_1 destination_pv_n_2 ....
This diskmap file can be manually created or generated with the -i option in vgmove, by simply
providing a list of destination disks to which to migrate the volume group. Once the diskmap file
is created, you can review and edit it as needed, then run vgmove again to perform the actual
migration.
The vgmove syntax is:
/usr/sbin/vgmove [-A autobackup] [-p] -f diskmapfile vg_name
/usr/sbin/vgmove [-A autobackup] [-p] -i diskfile -f diskmapfile vg_name
where:
-A autobackup Sets automatic backup during this operation.
-p Provides a preview of the operation without actually migrating the data.
-f diskmapfile Specifies the file containing the mapping of source (old) to destination (new)
disks
-i diskfile Provides a list of destination disks to generate a diskmapfile that will
contain the mapping of source to destination disks. When this option is
used, no actual data is migrated.
vg_name Specifies the name of the volume group whose data is to be migrated.
3.5.1 Example of Migrating a Volume Group to New Disks
In this example, the volume group to be migrated is called /dev/vg00 and currently resides in
old disk /dev/disk/disk1. The new disks to migrate the data to are /dev/disk/disk10 and
/dev/disk/disk11.
98 Administering LVM