IVM migrlpar command
Purpose
Moves active or inactive logical partitions from one physical system to another physical system. This command is operable only in an Integrated Virtualization Manager environment.
Syntax
To validate a migration
migrlpar [-o v -m <managed system> -t <managed system> --ip <target HMC/IVM IP address> [-u <target HMC/IVM user name>]] -p <partition name> |--id <partition ID>[-n <profile name>] [-f <input data file> | -i "<input data>"] [-w <wait time>] [-d <detail level>]
To migrate a logical partition
migrlpar [-o m -m <managed system> -t <managed system> --ip <target HMC/IVM IP address> [-u <target HMC/IVM user name>]] -p <partition name> |--id <partition ID>[-n <profile name>] [-f <input data file> | -i "<input data>"] [-w <wait time>] [-d <detail level>] [--async] [-v] | [ -redundantpgvios { 0 | 1 | 2 }]
To stop a migration
migrlpar [-o s -m <managed system> {-p <partition name> |--id <partition ID> } [--help]
To recover from a failed partition migration
migrlpar [-o r -m <managed system> [--ip <target HMC/IVM IP address>] [-u <target HMC/IVM user name>] ] {-p <partition name> |--id <partition ID> }[--force] [--help]
Description
The migrlpar command validates, starts, stops, and recovers a partition migration. The Integrated Virtualization Manager determines which type of migration to perform based on the state of the partition referenced in the command.
Flags
Flag name | Description |
---|---|
-o | The partition migration operation. Possible
values:
|
-m managed system | The name of the source managed system for the partition migration operation. The name may be the user-defined name for the managed system, or may be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system. |
-t managed system | The name of the target system for the partition migration operation. The name may be the user-defined name for the managed system, or may be in the form ttttmmm* ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system. The -t flag is required when using the -o m or -o v flags. |
--ip target HMC/IVM IP address | The IP address or hostname of the target system managing the Hardware Management Consoleor Integrated Virtualization Manager. |
-u target HMC/IVM user name | The user name to use on the Integrated Virtualization Manager that manages the target system or the HMC. If --ip flag is specified and -u flag is not specified, the user name on the source HMC or Integrated Virtualization Manager is used on the target HMC or Integrated Virtualization Manager. |
-p partition name | The name of the partition on which to perform the migration. For validating partitions, multiple partition names that are separated by a comma can be provided. |
--id partition ID | The ID of the partition on which to perform the migration. |
-n profile name | The name of the partition profile to be created for the migrated partition on the destination managed system. If this option is omitted when migrating a partition, then the last activated profile for the partition will be replaced with the current partition configuration on the destination managed system. This option is only valid when migrating a partition or validating a partition migration. Note: This option is only valid if you are migrating
to a system managed by the HMC. If you are migrating to a system
managed by the Integrated Virtualization Manager, the option
is not used.
|
-f input data file | The name of the file containing the input data
for the migrlpar command. The data given in the file specified
with the -f flag, or the data specified with -i, must
be in comma-separated (CSV) format. These switches can be used with
the migrate (-o m) and the validate (-o v) operations.
The following attributes are supported:
The data specified with
the virtual_scsi_mappings or virtual_fc_mappings attribute
consists of one or more source virtual SCSI or
virtual fibre channel adapters to destination Virtual I/O Server
logical partitions in the following format:
Attribute names
|
|
|
|
|
|
|
|
|
-i input data | The input data for the migrlpar command. The format of the filter data is attr_name1=value,attr_name2=value,... or attr_name1=value1,value2,... ,... |
-w wait time | The maximum time, in minutes, to wait for the operating system commands issued by the HMC or Integrated Virtualization Manager to the partition to be migrated to complete. |
-d detail level | The level of detail requested from the operating system commands issued by the HMC or Integrated Virtualization Manager to all partitions participating in the migration. Values range from 0 (none) to 5 (highest). |
--async | The command returns after the validation is completed. This flag does not wait for the migration to complete. This is only valid with the -o m flag. |
-v | Enables verbose mode for the partition migration operation. When verbose mode is enabled, detail messages and warning messages are displayed for a successful partition migration. Detail messages and warning messages are always displayed for a partition migration that fails, regardless of whether this option is specified. |
--force | Forces a recover operation to proceed when errors are encountered. This option is only valid when recovering from a failed partition migration and can be initiated from either the source VIOS logical partition or the destination managed system. If the operation is initiated from the destination managed system, only the destination managed system is recovered. |
reduntantpgvios {0 | 1 | 2} | Specifies whether to configure
the partition for redundancy on the target managed system. Possible
values follow:
|
--help | Displays the help text for this command and exit. |
Exit Status
This command has a return code of 0 on success.
Examples
- To validate a partition migration, type the following command:
migrlpar -o v -m migfspL1 --ip migivm2 -t migfspL2 --id 5 -i "shared_proc_pool_name=ProcPoolA"
- To perform a partition migration, type the following command:
migrlpar -o m -m migfspL1 --ip migivm2 -t migfspL2 --id 5 -i "source_msp_id=1, source_msp_ipaddr=9.3.252.192,dest_msp_id=1,dest_msp_ipaddr=9.3.126.77"
- To perform a partition migration for logical
partitions that use virtual fibre channel adapters, type the following
command:
migrlpar -o m -m migfspL1 --ip migivm2 -t migfspL2 --id 5 -i "virtual_fc_mappings=5/VIOS/1,6/VIOS3/3"
- To stop a partition migration, type the following command:
migrlpar -o s -m migfspL1 --id 5
- To recover from a failed partition migration, type the following
command:
migrlpar -o r -m migfspL1 --id 5