lvmove.1m (2010 09)

l
lvmove(1M) lvmove(1M)
NAME
lvmove - move a logical volume within a volume group
SYNOPSIS
/usr/sbin/lvmove
[-A autobackup ][-p] -f lvmapfile lv_name
DESCRIPTION
The
lvmove command migrates a logical volume within a volume group.
The command is intended to balance an logical volume either within the existing set of physical volumes
or within a new set of physical volumes in the volume group.
The lvmapfile contains the list of destination disks to move the logical volume. The format of this file is
shown below:
destination_pv1
destination_pv2
.
.
destination_pvn
Each line contains a destination disk to move the data to.
If a destination disk is not already part of the volume group, it will be added using
vgextend (see
vgextend (1M)).
A sample lvmapfile is shown here:
/dev/disk/disk51
/dev/disk/disk52
/dev/disk/disk53
The volume group must be activated before running the lvmove command. If the lvmove command is
interrupted before it completes, the volume group is left in a consistent state, and can still be activated.
The migration can be continued by running the lvmove command with the same options and mapping
file (lvmapfile ).
Options and Arguments
The
lvmove command recognizes the following options and arguments:
lv_name The path name of the logical volume to be moved.
-A autobackup Set automatic backup for this invocation of this command. autobackup can have
one of the following values:
y Automatically back up configuration changes made to the logical volume. This
is the default.
After this command executes, the
vgcfgbackup command (see
vgcfgbackup (1M)) is executed for the volume group to which the logical
volume belongs.
n Do not back up configuration changes this time.
-f lvmapfile Specify the name of the file containing the destination disks.
-p Preview the actions to be taken but do not move any logical volume.
Shared Volume Group Considerations
For volume groups prior to version 2.1,
lvmove is not supported if the volume group is actived in shared
mode.
For volume groups version 2.1 (or higher),
lvmove can be performed on volume groups activated in
either shared, exclusive, or standalone mode. For shared volume groups version 2.1 (or higher) lvmove
can only be performed on the server node of a shared volume group.
When performed on a supported shared volume group, the
lvmpud daemon (see lvmpud (1M)) must be
running on all the nodes sharing the volume group.
When a node wants to share the volume group, the user should first do a
vgimport if physical volumes
were moved in or out of the volume group at the time the volume group was not activated on that node.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)