This example shows how to migrate the ldg1 domain to a machine called system2. Before the migration operation starts, you must have configured the SSL certificates on both the source and target machines. See How to Configure SSL Certificates for Migration.
# ldm migrate-domain -c ldg1 system2Example 55 Migrating a Guest Domain
This example shows how to migrate the ldg1 domain to a machine called system2.
# ldm migrate-domain ldg1 system2 Target Password:
To perform this migration without being prompted for the target machine password, use the following command:
# ldm migrate-domain -p pfile ldg1 system2
The –p option takes a file name as an argument. The specified file contains the superuser password for the target machine. In this example, pfile contains the password for the target machine, system2.
Example 56 Migrating and Renaming a Guest DomainThis example shows how to rename a domain as part of the migration operation. The ldg-src domain on the source machine is renamed to ldg-tgt on the target machine (system2) as part of the migration. In addition, the ldm-admin user is used for authentication on the target machine.
# ldm migrate ldg-src ldm-admin@system2:ldg-tgt Target Password:Example 57 Migration Failure Message
This example shows the error message that you might see if the target machine does not support the latest migration functionality.
# ldm migrate ldg1 dt212-346 Target Password: The target machine is running an older version of the domain manager that does not support the latest migration functionality. Upgrading to the latest software will remove restrictions on a migrated domain that are in effect until it is rebooted. Consult the product documentation for a full description of these restrictions. The target machine is running an older version of the domain manager that is not compatible with the version running on the source machine. Domain Migration of LDom ldg1 failedExample 58 Obtaining the Migration Status for the Domain on the Target Machine
This example shows how to obtain the status on a migrated domain while a migration is in progress. In this example, the source machine is t5-sys-1.
# ldm list -o status ldg-tgt NAME ldg-tgt STATUS OPERATION PROGRESS SOURCE migration 55% t5-sys-1Example 59 Obtaining the Parseable Migration Status for the Domain on the Source Machine
This example shows how to obtain the parseable status on the domain being migrated while a migration is in progress. In this example, the target machine is system2.
# ldm list -o status -p ldg-src VERSION 1.6 DOMAIN|name=ldg-src| STATUS |op=migration|progress=42|error=no|target=system2