vgmove.1m (2010 09)
v
vgmove(1M) vgmove(1M)
NAME
vgmove - move data from an old set of disks in a volume group to a new set of disks
SYNOPSIS
/usr/sbin/vgmove
[-A autobackup ][-p] -f diskmapfile vg_name
/usr/sbin/vgmove
[-A autobackup ][-p] -i
diskfile -f diskmapfile vg_name
DESCRIPTION
The
vgmove command migrates data from the existing set of disks in a volume group to a new set of
disks. After the command completes successfully, the new set of disks will belong to the same volume
group. The command is intended to migrate data on a volume group from old storage to new storage. The
diskmapfile specifies the list of source disks to move data from, and the list of destination disks to move
data to. The user may choose to list only a subset of the existing physical volumes in the volume group
that need to be migrated to a new set of disks. The format of the diskmapfile file is shown below:
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 ....
If a destination disk is not already part of the volume group, it will be added using
vgextend; see
vgextend (1M). Upon successful completion of
vgmove, the source disk will be automatically removed
from the volume group using vgreduce; see vgreduce (1M).
After successful migration, the destination disks are added to the LVM configuration files; namely,
/etc/lvmtab or /etc/lvmtab_p. The source disks along with their alternate links are removed
from the LVM configuration files.
A sample diskmapfile is shown below:
/dev/disk/disk1 /dev/disk/disk51 /dev/disk/disk52
/dev/disk/disk2 /dev/disk/disk51
/dev/disk/disk3 /dev/disk/disk53
The diskmapfile can be manually created, or it can be automatically generated using the
-i diskfile and
-f diskmapfile options. The argument diskfile contains a list of destination disks, one per line such as
the sample file below:
/dev/disk/disk51
/dev/disk/disk52
/dev/disk/disk53
When the
-i option is given, vgmove reads a list of destination disks from diskfile, generates the source
to destination mapping, and saves it to diskmapfile .
The volume group must be activated before running the
vgmove command. If the vgmove command is
interrupted before it completes, the volume group is in the same state it was at the beginning of the
vgmove command. The migration can be continued by running the vgmove command with the same
options and disk mapping file.
Options and Arguments
The
vgmove command recognizes the following options and arguments:
vg_name The path name of the volume group.
-A autobackup Set automatic backup for this invocation of vgmove. autobackup can have
one of the following values:
y Automatically back up configuration changes made to the volume group.
This is the default.
After this command executes, the
vgcfgbackup command is executed
for the volume group; see vgcfgbackup (1M).
n Do not back up configuration changes this time.
-f diskmapfile Specify the name of the file containing the source to destination disk mapping.
If the -i option is also given, vgmove will generate the disk mapping and
save it to this filename. (Note that if the diskmapfile already exists, the file
will be overwritten). Otherwise, vgmove will perform the data migration
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1