Migrate ECS instances across or within accounts
Use Server Migration Center (SMC) to migrate ECS instances between accounts or across regions within the same account for business migration, insufficient resources in a region, cost optimization, or disaster recovery.
You can also use the ECS custom image copy and image sharing features to migrate ECS instances across accounts or within the same account.
Use cases
Supported migration scenarios:
-
Use case 1: Cross-account migration
Migrate ECS instances between different Alibaba Cloud accounts, whether same-region or cross-region.
-
Use case 2: Same-account migration
Migrate ECS instances within the same Alibaba Cloud account, whether cross-region or cross-zone.
-
If you do not have a destination ECS instance, convert the source server into a custom image, and then create a new ECS instance from the image.
-
If you have a destination ECS instance, you can migrate directly to it. The source and destination must have compatible storage, OS, and configurations.
-
-
Use case 3: Shrinking disks
ECS does not support shrinking system disks or data disks. To shrink a disk during migration, create a custom image or migrate to a destination instance with a smaller disk. Shrink a disk.
Important-
For Linux servers, you can change the disk size during migration only when block replication is disabled.
-
For Windows servers, you must shrink the disk before migrating.
-
Limitations
You cannot migrate ECS instances created from Alibaba Cloud Marketplace images. You can contact us to be added to the allowlist.
Migration impacts
Review the following impacts before you migrate.
|
Item |
Description |
|
Migrated data directories |
During the migration, SMC automatically generates a disk partition structure on the destination that closely matches the source server's structure. You can adjust the partition structure of the destination disk, including its partition size, order, transfer method, and LVM configurations. By default, all disks are migrated:
|
|
Intermediate instance |
Do not interfere with the intermediate instance. Do not stop, start, restart, or release the intermediate instance, or change its billing method during migration. The intermediate instance is automatically released after migration. Note
|
|
IP address |
The IP address changes after the migration, potentially causing service interruptions. Perform the migration during off-peak hours. If your services involve IP address configurations, you must update the domain name resolution and ICP filing after the migration.
|
|
Underlying hardware |
The underlying hardware changes after the migration. This may invalidate certain application licenses that are bound to specific hardware. Review your license agreements. |
|
Performance impact |
The migration process consumes server resources, including CPU, memory, disk I/O, and network bandwidth. |
|
Data consistency |
Prerequisites
Complete the pre-migration preparations for the server.
Read the migration guide to learn about the SMC client, how migration works, billing, the migration process, and feedback channels.
To prevent data loss, back up important data to an image, a snapshot, or an external storage device before migration.
If you need to migrate a server across international regions, migration can be slow due to unstable public networks. Estimate the migration time and test the transfer speed. We recommend that you connect the source server to an Alibaba Cloud VPC by using a service such as VPN Gateway, Express Connect, a leased line, or Smart Access Gateway to migrate over a private network.
If you can directly access a VPC in an Alibaba Cloud region from your on-premises data center, VM environment, or cloud host, we recommend using the SMC private network migration method. This method is faster and more stable than migrating over the public network.
If you need to migrate a source server to an existing Alibaba Cloud ECS instance, ensure the following:
If the source server runs Linux, the destination instance must also run a Linux distribution. If the source server runs Windows, the destination instance must also run Windows.
The number of data disks attached to the destination instance must be greater than or equal to that on the source server. If the destination instance does not have enough data disks, you must attach data disks.
The capacities of the system disk and data disks on the destination instance must be greater than or equal to those of the corresponding disks on the source server. If you plan to reduce the disk size of the source server, the capacity of the system disk and data disks on the destination instance must be greater than or equal to the used disk space on the source server. If a cloud disk on the destination instance has insufficient capacity, you must resize the cloud disks.
Migration
Step 2: Configure migration
Verify the migration result
Clean up resources
Migrate to an image
During the migration, SMC creates a temporary pay-as-you-go intermediate instance named No_Delete_SMC_Transition_Instance in your destination Alibaba Cloud account to facilitate the migration. The migration result determines whether you need to manually release the instance:
Successful migration: SMC automatically releases the intermediate instance. No manual cleanup is required.
Migration error: The intermediate instance is not released and continues to incur charges. To avoid unnecessary charges, you can release the instance in one of the following ways:
If you no longer need the migration task, click the migration source ID. In the Actions column for the migration task, click Cancel Migration Job to delete the migration task and automatically clean up the intermediate instance.
Manually release the intermediate instance.
Migrate to a destination instance
During the migration, SMC creates a temporary pay-as-you-go intermediate disk named SMC_Temp_Disk and attaches it to the destination instance to facilitate the migration. The migration result determines whether you need to manually release the intermediate disk:
Successful migration: SMC automatically releases the intermediate disk. No manual cleanup is required.
Migration error: The intermediate disk is not released and continues to incur charges. To avoid unnecessary charges, you can release the disk in one of the following ways:
If you no longer need the migration task, click the migration source ID. In the Actions column for the migration task, click Cancel Migration Job to delete the migration task and automatically clean up the intermediate disk.
Manually release the intermediate disk.
References
To migrate incremental data repeatedly, run incremental migrations at custom intervals after the initial full migration is complete. This process synchronizes incremental data from the source server to Alibaba Cloud, reducing business downtime and the final cutover time. For more information, see Incremental server migration.









icon next to the mount target.


