Novalink LPM


Migration of LPAR from source system to destination power system during the LPAR is live (Running) is termed as LPM.

In case of Novalink there is a limitation where you shall only migrate your lpar between the Nova managed to Nova managed system

Limitation : LPM cannot be performed from Nova managed system to HMC managed system.

Migration in novalink can be done using "pvmctl" below is the usage

[neo@novax ~]$ pvmctl lpar migrate help
usage: pvmctl [help | --help] LogicalPartition migrate {--object-id | -i} <LogicalPartition field>=value {args}

optional arguments:
  --mgmt-usr MGMT_USR   The user ID to use on the target PowerVM management
                        platform.
  --timeout TIMEOUT     Maximum number of seconds for job to complete. If not
                        specified, will not timeout.
  --sys SYS             The name of the managed system to migrate to.
  --validate            Indication of whether to just validate the migration or
                        actually perform it. Default: False.

help arguments:
  help                  show this help message and exit
  --help                show this help message and exit

identifier arguments:
  --object-id id=value, -i id=value
                        Identifier used when querying for an object type. Specified as a name=value pair. Example: --object-id name=value

required arguments:
  --mgmt-svr MGMT_SVR   Required. The IP of the PowerVM management platform
                        managing the target host.


Where --mgmt-usr is the target admin user id you can provide neo
      --timeout exit the job after this much time
      --sys The destination system
      --validate validates before migration
      --object-id name is to value pair. You can provide lpar id or lpar name
      --mgmt-svr Destination nova partition ip address


Steps to perform LPM when NovaLink is managed


1. Exchanging the keys between two nova managed partitions

Source : novax.source.com (9.x.x.x)
Target : novay.target.com (9.y.y.y)
LPAR : machinex.source.com (9.x.x.x1)

On the source novax exchange the keys
[neo@novax ~]$ pvmctl sys add-auth-key --key "$(ssh neo@9.y.y.y pvmctl sys list-public-key)"

On the target novay exchange the keys
[neo@novay ~]$ pvmctl sys add-auth-key --key "$(ssh neo@9.x.x.x pvmctl sys list-public-key)"


Caution : If you don't exchange the keys you get the below error

Migration of logical partition machinex starting. This may take a while.
Migration of logical partition machinex failed.
The 'Migrate' operation failed. [PVMK0102021Z-2020] The migration process failed because of an unknown error on the destination system. Additional information:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
(Command returned 255. Additional messages:) Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).


2. After exchanging the keys validate the LPAR from source to target system

Below command will validate the LPM

[neo@novax ~]$ pvmctl vm migrate -i name=machinex --mgmt-svr 9.y.y.y --validate
Validating logical partition machinex migration...
Validation of logical partition machinex succeeded.
[neo@novax ~]$
[neo@novax ~]$ echo $?
0
[neo@novax ~]$


3. Migrate the live LPAR from source to target system


Below command will start the LPM and will migrate the partition to target system

[neo@novax ~]$ pvmctl vm migrate -i name=machinex --mgmt-svr 9.y.y.y
Migration of logical partition machinex starting. This may take a while.
Migration of logical partition machinex succeeded.
[neo@novax ~]$ echo $?
0
[neo@novax ~]$


Alternatively the validation command can also be performed using the below command

[neo@novax ~]$ pvmctl lpar migrate -i name=machinex --mgmt-svr 9.y.y.y --validate
[neo@novax ~]$ pvmctl logicalpartition migrate -i name=machinex --mgmt-svr 9.y.y.y --validate


Also to migrate the lpar below are the alternative command usage

[neo@novax ~]$ pvmctl lpar migrate -i name=machinex --mgmt-svr 9.y.y.y
[neo@novax ~]$ pvmctl logicalpartition migrate -i name=machinex --mgmt-svr 9.y.y.y


The partition named machinex is migrated to the target system and can be listed using the command "pvmctl lpar list".