pvmove.1m (2010 09)
p
pvmove(1M) pvmove(1M)
NAME
pvmove - move allocated physical extents from one LVM physical volume to other physical volumes
SYNOPSIS
pvmove Options Supported on Volume Groups 1.0 and Higher
/usr/sbin/pvmove
[-A autobackup ][-p][-n lv_path ] source_pv_path
[ dest_pv_path
:de | dest_pv_path ... dest_pvg_name ...]
/usr/sbin/pvmove
[-A autobackup ][-p] source_pv_path[
:se1[
-se2]]
[ dest_pv_path
:de | dest_pv_path ... dest_pvg_name ...]
/usr/sbin/pvmove
[-A autobackup ][-p][
-e no_of_extents] source_pv_path [ dest_pv_path
:de
| dest_pv_path ... | dest_pvg_name ...
pvmove Options Supported on Volume Groups Version 2.0 and Higher
/usr/sbin/pvmove
[-A autobackup ][-p [-s]]
-a vg_name
/usr/sbin/pvmove
[-A autobackup ][-p [-s]]
-a lv_path ... [ pv_path ...
| dest_pvg_name ...]
/usr/sbin/pvmove
[-A autobackup ][-p [-s]]
-a -f pv_path ...
DESCRIPTION
The
pvmove command moves allocated physical extents and the data they contain from a source physical
volume, source_pv_path, to one or more other physical volumes in the same volume group.
The preview option (
-p) verifies whether or not the physical extents can be successfully relocated with
the specified arguments. It displays the source to destination movement details, but does not perform the
actual relocation of physical extents.
A range of allocated physical extents or any single physical extent can be moved by giving a range along
with the source physical volume path. Optionally, the destination physical volume and the starting loca-
tion on the destination physical volume can also be specified.
The
pvdisplay command (see pvdisplay (1M)) can be used to decide on the range of allocated physical
extents to be moved from the source physical volume or to identify the starting location on the destination
physical volume.
The
-e option can be used to move the last few physical extents from the source physical volume.
Note that the
-e and -a options are mutually exclusive. (See Auto-Rebalance Mode below for details on
the
-a option.)
The first extent of the physical volume can be moved to create more space for LVM’s metadata. On ver-
sion 1.0 volume groups, the
vgmodify command can use the extra space created by moving the first
extent to expand the metadata. To relocate the first extent, specify 0 after source_pv_path, delimited by a
colon (
:).
If a destination physical volume or physical volume group is not specified, all physical volumes in the
volume group are available as destination volumes for the transfer.
pvmove selects the proper physical
volumes to be used in order to preserve the allocation policies of the logical volume involved.
To limit the transfer to specific physical volumes, specify the name of each physical volume directly with a
dest_pv_path argument. Optionally, if physical volume groups are defined for the volume group, specify
the physical volumes indirectly with one or more dest_pvg_name arguments.
source_pv_path must not appear as a dest_pv_path .
If source_pv_path is a member of a dest_pvg_name, it is automatically excluded from being a destination
physical volume.
While moving one or more extents, src_pv_path can be part of dest_pv_path ; and src_pv_path is not
excluded if it is member of dest_pvg_name.
pvmove succeeds only if there is enough space on the destination physical volumes to hold all the allo-
cated extents of the source physical volume. If a range of extents is provided, pvmove succeeds only
when all the extents within the range provided can be relocated successfully. An error will be returned if
any extent within the range could not be relocated.
If you have installed HP MirrorDisk/UX on your system and source_pv_path is an "active spare" physical
volume within a mirrored logical volume, once all of the data has been moved to dest_pv_path , the
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1