HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
p
pvmove(1M) pvmove(1M)
-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.
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
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
SEE ALSO
pvdisplay(1M), vgcfgbackup(1M), intro(7), lvm(7).
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 197