Dans certains cas, il est nécessaire de libérer un peu d'espace sur un disque, notamment pour transformer le VG en 'BIG VG'.
Pour cela, il faut utiliser la commande 'migratelp' dont la syntaxe est la suivante :
# migratelp nom_lv/num_lp hdisk_cible
Les noms des LVs présents sur le disque sont donnés par 'lspv -l nom_hdisk' :
# lspv -l hdiskpower46
hdiskpower46:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv02pc_data_arc 1914 1914 383..383..382..383..383 /tsm/data_arch
# lslv -m lv02pc_data_arc |grep hdiskpower46
LP PP1 PV1 PP2 PV2 PP3 PV3
5718 1895 hdiskpower46
La commande à lancer pour déplacer un LP du disque hdiskpower4- à hdiskpower52 est :
# migratelp lv02pc_data_arc/5718 hdiskpower52
La syntaxe officielle IBM AIXV6.1 est donnée ci-dessous :
migratelp Command
Purpose
Moves allocated logical partition from one physical partition to another physical partition on a different physical volume.
Syntax
migratelp LVname/LPartnumber[ /Copynumber ] DestPV[/PPartNumber]
Description
The migratelp moves the specified logical partition LPartnumber of the logical volume LVname to the DestPV physical volume.
If the destination physical partition PPartNumber is specified it will be used, otherwise a destination partition is
selected using the intra region policy of the logical volume. By default the first mirror copy of the logical partition in
question is migrated. A value of 1, 2 or 3 can be specified for Copynumber to migrate a particular mirror copy.
Notes:
1 You must consider the partition usage, reported by lvmstat, on the other active concurrent nodes in case of a
concurrent volume group.
2 Strictness and upper bound settings are not enforced when using migratelp.
3 Running this command on an active, firmware-assisted, dump logical volume temporarily changes the location of the dump
device to /dev/sysdumpnull. After you have successfully migrated the logical volume, this command calls the following
command to set the firmware-assisted, dump logical volume to the original logical volume.
sysdumpdev -P
The migratelp command fails to migrate partitions of striped logical volumes.
Security
To use migratelp, you must have root user authority.
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run
privileged operations. For more information about authorizations and privileges, see Privileged Command Database in
Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the
getcmdattr subcommand.
Examples
1 To move the first logical partitions of logical volume lv00 to hdisk1, type:
migratelp lv00/1 hdisk1
2 To move second mirror copy of the third logical partitions of logical volume hd2 to hdisk5, type:
migratelp hd2/3/2 hdisk5
3 To move third mirror copy of the 25th logical partitions of logical volume testlv to 100th partition of hdisk7, type:
migratelp testlv/25/3 hdisk7/100
Files
/usr/sbin
Directory where the migratelp resides.
Related Information
The lslv command, and lvmstat command.