Example 9-2 shows how a domain, called ldg1, can be migrated to a machine called t5440-sys-2.
Example 9-2 Migrating a Guest Domain
# ldm migrate-domain ldg1 t5440-sys-2 Target Password:
# ldm migrate-domain -p pfile ldg1 t5440-sys-2
The -p option takes a file name as an argument. The specified file contains the superuser password for the target. In this example, pfile contains the password for the target, t5440-sys-2.
Example 9-3 shows that a domain can be renamed as part of the migration. In this example, ldg-src is the source domain, and it is renamed to ldg-tgt on the target machine (t5440-sys-2) as part of the migration. In addition, the user name (root) on the target machine is explicitly specified.
Example 9-3 Migrating and Renaming a Guest Domain
# ldm migrate ldg-src root@t5440-sys-2:ldg-tgt Target Password:
Example 9-4 shows a sample failure message if the target domain does not have migration support, that is, if you are running an Logical Domains version prior to Version 1.1.
Example 9-4 Migration Failure Message
# ldm migrate ldg1 t5440-sys-2 Target Password: Failed to establish connection with ldmd(1m) on target: t5440-sys-2 Check that the 'ldmd' service is enabled on the target machine and that the version supports Domain Migration. Check that the 'xmpp_enabled' and 'incoming_migration_enabled' properties of the 'ldmd' service on the target machine are set to 'true' using svccfg(1M).
Example 9-5 shows how to obtain status on a target domain while the migration is in progress. In this example, the source machine is t5440-sys-1.
Example 9-5 Obtaining Target Domain Status
# ldm list -o status ldg-tgt NAME ldg-tgt STATUS OPERATION PROGRESS SOURCE migration 55% t5440-sys-1
Example 9-6 shows how to obtain parseable status on the source domain while the migration is in progress. In this example, the target machine is t5440-sys-2.
Example 9-6 Obtaining Source Domain Parseable Status
# ldm list -o status -p ldg-src VERSION 1.3 DOMAIN|name=ldg-src| STATUS |op=migration|progress=42|error=no|target=t5440-sys-2