pvmove.1m (2010 09)

p
pvmove(1M) pvmove(1M)
physical volumes are balanced with respect to space. This option can only be
used in conjunction with -a option.
-n lv_path Move only the physical extents allocated to the logical volume specified by
lv_path that are located on the source physical volume, specified by
source_pv_path.
-p Preview the source to destination physical extent movements, without per-
forming the actual relocation. Any intermediate operation on the volume
group under consideration after the preview operation may invalidate the pre-
view result.
-s Summary option. This option can only be used in conjunction with
-p and -a
options. This option displays a summary report for the requested auto re-
balance operation.
For Volume group version 2.0 and higher, when
-s option is used with -a
and -p option, pvmove displays only the summary report for the requested
automatic re-balance operation.
If the
-a and -p option are used without the
-s option, then both the sum-
mary report and source to destination movement details will be displayed.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If
LANG is not specified or is null, it defaults to "C" (see lang (5)).
If any internationalization variable contains an invalid setting, all internationalization variables default
to "C" (see environ (5)).
EXAMPLES
Display the physical extent movement details from
/dev/dsk/c1t0d0
to /dev/dsk/c3t0d0 without
an actual relocation of extents (preview mode):
pvmove -p /dev/dsk/c1t0d0 /dev/dsk/c3t0d0
Move physical extents from /dev/dsk/c1t0d0
to /dev/dsk/c2t0d0 and /dev/dsk/c3t0d0
:
pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t0d0 /dev/dsk/c3t0d0
If physical volumes /dev/dsk/c2t0d0
and /dev/dsk/c3t0d0 are the only ones that belong to phy-
sical volume group
PVG0, the same result can be achieved with the following command:
pvmove /dev/dsk/c1t0d0 PVG0
Move only the physical extents for logical volume /dev/vg01/lvol2
that are currently on
/dev/dsk/c1t0d0 to /dev/dsk/c2t0d0
:
pvmove -n /dev/vg01/lvol2 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
Relocate PE number 0 to any free extent with in the same physical volume:
pvmove /dev/dsk/c1t0d0:0 /dev/dsk/c1t0d0
Relocate PE number 0 from /dev/dsk/c1t0d0 to any free extent in the volume group:
pvmove /dev/dsk/c1t0d0:0
Move physical extents 25 to 100 from /dev/dsk/c1t0d0 to /dev/dsk/c2t0d0
:
pvmove /dev/dsk/c1t0d0:25-100 /dev/dsk/c2t0d0
Move physical extents 25 to 100 from /dev/dsk/c1t0d0 to /dev/dsk/c2t0d0 beginning from the
physical extent 102:
pvmove /dev/dsk/c1t0d0:25-100 /dev/dsk/c2t0d0:102
Relocate the last few physical extent from /dev/dsk/c1t0d0 to any free extents in the volume group:
pvmove -e 2 /dev/dsk/c1t0d0
Relocate any single physical extent (for example physical extent 5) from /dev/dsk/c1t0d0 to
/dev/dsk/c2t0d0:
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010