All Products
Search
Document Center

Server Migration Center:Scale-in migration

Last Updated:Dec 10, 2025

To scale in disks for business changes or cost optimization, you can use Server Migration Center (SMC) to migrate an ECS instance to a custom image or a destination instance with smaller disks.

Migration limits

Currently, you cannot migrate ECS instances that are created from Alibaba Cloud Marketplace images. To use this feature, contact us to add your account to the whitelist.

Migration effects

Before you start the migration, note the following items. For more information, see the following table.

Affected items

Description

Migrated data directories

During the migration, you can adjust the partition structure of the destination disk, including configurations such as partition size, position order, transfer method, and logical volume management (LVM).

By default, all disks of the server are migrated:

  • If no mount target exists on a data disk, the data disk is not migrated.

  • If you do not need to migrate specific partition directories, you can select not to migrate them when you adjust the partition structure.

Intermediate instance

Do not interfere with the intermediate instance.

To prevent migration failure, do not stop, start, restart, or release the intermediate instance, or change its billing method during the migration. After the migration is complete, the intermediate instance is automatically released.

Note
  • During each migration, SMC creates a temporary pay-as-you-go intermediate instance named No_Delete_SMC_Transition_Instance in your destination Alibaba Cloud account to assist with the migration.

  • If you choose to migrate to a destination instance, that instance serves as the intermediate instance and is not automatically released.

For more information, see Migration principles.

IP address

The IP address changes after migration, which may cause service interruptions. We recommend that you perform the migration during off-peak hours. If your services involve IP address configurations, modify the domain name resolution and ICP filing information yourself after the migration.

Underlying hardware devices

The underlying hardware devices change after migration. This may invalidate some application licenses that are bound to hardware. Check your licenses.

Performance impact

The migration process consumes server resources, including CPU, memory, disk I/O, and network bandwidth.

Data consistency before and after migration

For information about data and system configuration changes that occur before and after migration, see Data consistency issues after migration.

Impact on related web applications after server migration

After you migrate a server to Alibaba Cloud ECS, several aspects of your environment change, including network topology, computing and storage resources, application security settings, costs, monitoring, compatibility, network latency and bandwidth, and backup, recovery, and O&M processes. You must also consider the following aspects:

Impact

Description

Network connectivity

After the server migration, the ECS instance will use a new virtual private cloud (VPC). Its network location and other configurations will change with the VPC migration. This ECS instance cannot directly communicate with the original network or other ECS instances in the VPC. To enable cross-account and cross-VPC communication, see VPC interconnection.

Security group

After the server migration, the ECS instance will use new security group rules to control inbound and outbound traffic. Changes in access rules may affect normal business access. If the destination account's security group does not have corresponding security group rules, you can quickly add them by exporting the rules from the security group associated with the original ECS instance and importing them into the destination security group. For more information, see Import and export security group rules.

SSL Certificate

If your website uses HTTPS, you need to apply for and install an SSL Certificate. You can apply for a free SSL Certificate from Alibaba Cloud. Deploy the SSL Certificate to the ECS instance. For more information, see Purchase and deploy an SSL certificate to an ECS instance.

Data migration

To migrate data from other servers to Alibaba Cloud, you can use methods such as FTP, SCP, or manual backup to OSS. For more information, see Transfer files to an ECS instance and Use ossutil to transfer data to an ECS instance.

Other configurations

Ensure that database connections, APIs, Server Load Balancer (SLB), and other settings point to the new domain name and ECS IP address.

Preparations

  • You have completed the required preparations before migration.

  • You have read the migration guide to learn about the SMC client, migration principles, billing, migration process, and feedback channels.

  • To prevent data loss, we recommend that you back up important data to an image, a snapshot, or a storage device other than the instance before the migration.

  • When you migrate a server across international regions, the migration speed may be slow because of unstable public network environments. We recommend that you evaluate the migration time and test the transmission speed. We recommend that you use a VPN Gateway, Express Connect circuit, or Smart Access Gateway to connect the source server to an Alibaba Cloud VPC and migrate the server over a private network.

  • If you can directly access a VPC in a specific Alibaba Cloud region from your data center, virtual machine environment, or cloud host, we recommend that you use the private network migration solution of SMC. This method is faster and more stable than public network migration and improves migration efficiency.

  • If you want to migrate a source server to an existing ECS instance:

    • The operating system of the destination instance must match the operating system of the source server. For example, if the source server runs a Linux operating system, the destination instance must also run a Linux operating system.

    • The number of data disks attached to the destination instance must be greater than or equal to the number of data disks on the source server. If the destination instance has an insufficient number of data disks, you must attach a data disk.

    • The capacity of the system disk and data disks on the destination instance must be greater than or equal to the used capacity of the system disk and data disks on the source server. If the destination instance has insufficient disk capacity, you must resize a disk.

Migration procedure

Note

If you want to migrate a Windows instance, you must compress the disk space before you import the migration source. Otherwise, you cannot reduce the disk capacity.

Step 1: Import the migration source

Use the console to automatically import the migration source (recommended)

Important
  • The source server, which is the source ECS instance, must be able to access the Internet.

  • The source server must be in the Running state, and the Cloud Assistant Agent status must be Normal. For more information, see View the status of Cloud Assistant Agent and handle exceptions.

  • If you use a RAM user to import the migration source, you must grant the following permissions to the RAM user:

    • The AliyunECSReadOnlyAccess permission, which grants read-only access to ECS.

    • The AliyunECSAssistantFullAccess permission, which grants full management access to Cloud Assistant.

  1. Go to the SMC console - Scale-in Migration.

  2. On the Scale-in Migration page, click Import Migration Source.

  3. Configure the parameters for the migration source and click Import.

    The import process takes approximately 3 to 10 minutes. Please wait for the process to complete.

    Parameter

    Description

    Migration Source Type

    Alibaba Cloud ECS Instance.

    Import Method

    Select Console Import.

    Authorize SMC to remotely connect to the source server from the console to automatically import the migration source. The Cloud Assistant feature is automatically called during the import process. Do not interrupt or exit the process.

    Region

    In the drop-down list, select the region where the server to be migrated resides.

    Instance

    You can search for and select the Alibaba Cloud ECS instances to be migrated in the specified region by instance ID/name or IP address. You can select multiple instances for batch import.

    Tag (Optional)

    Bind key-value pairs of tags to the migration task to facilitate querying and managing migration tasks. For more information, see Use tags to manage migration sources and migration tasks and Use tags for fine-grained permission management.

    A maximum of 20 tags can be bound to a migration task.

    Resource Group (Optional)

    To group and manage migration resources by dimensions such as business department or project, you can create resource groups.

  4. On the Scale-in Migration page of the SMC console, you can view the status of the migration source in the Real-time Migration Status column.

    • A status of Migration Source Online indicates a successful import.

    • If the status is not Migration Source Online, the import failed. Troubleshoot the issue using the following methods and then re-import the source.

      • You can troubleshoot the issue based on the error message in the console or by viewing the SMC client log file. The default installation directory of the SMC client is:

        • Windows server: C:\smc.

        • Linux server: /smc.

      • For common issues and solutions, see SMC FAQ and Troubleshoot errors.

Use a command to import the migration source

If the migration source is a physical machine, a virtual machine, or a server from another cloud platform, we recommend that you use the command line to import the migration source.

Important
  • The source server must be able to access the Internet. If the source server has firewall restrictions, see What are the SMC service domain names? to obtain the SMC domain names and ports and add them to the firewall's whitelist.

  • If your source server cannot access the Internet or you want to use private network transmission to improve migration efficiency, see the private network migration solution.

  1. Go to the SMC console - Scale-in Migration.

  2. On the Scale-in Migration page, click Import Migration Source.

  3. Configure the parameters and copy the activation code command as prompted on the page.

    Parameter

    Description

    Migration Source Type

    Alibaba Cloud ECS Instance

    Import Method

    Select Command-line Import.

    Generate an activation code script command as needed and run it on the source server to import the migration source.

    Migration Source Quota

    The number of migration sources that can be activated by the activation code. The value ranges from 1 to 1,000. The default value is 200.

    Validity Period

    The validity period of the activation code. The value ranges from 1 to 90 days. The default value is 90 days.

    Activation Code

    The steps to generate an activation code are as follows:

    1. Click Generate.

    2. Based on the operating system of the source server, click the Linux Shell or Windows Powershell tab.

    3. Click Copy to copy the activation code command.

  4. Log on to the source server. Then, paste and run the copied command with administrator permissions to import the migration source.

    Linux source server

    1. Log on to the Linux server.

    2. Paste and run the copied command with administrator permissions to import the migration source.

      image.png

      When the command is run, a message similar to Import Source Server [s-bp18x8751kgz2oyh****] Successfully! is returned, which indicates that the migration source was successfully imported.

    Windows source server

    1. Log on to the Windows server.

    2. Open Windows PowerShell as an administrator.

    3. Paste and run the copied command to import the migration source.

      image.png

      When the command is run, a message similar to Import Source Server [s-bp19rlidl3mwuptc****] Successfully! is returned, which indicates that the migration source was successfully imported.

      If the command fails to run, see What do I do if I fail to import a Windows migration source using the command line?.
  5. On the Scale-in Migration page of the SMC console, you can view the status of the migration source in the Real-time Migration Status column.

    • A status of Migration Source Online indicates that the import was successful.

    • If the status is not Migration Source Online, the import failed. Troubleshoot the issue using the following methods and then re-import the source.

      • You can troubleshoot the issue based on the error message in the console or by viewing the SMC client log file. The default installation directory of the SMC client is:

        • Windows source server: C:\smc.

        • Linux source server: /smc.

      • For common issues and solutions, see SMC FAQ and Troubleshoot errors.

Import the migration source using the SMC client

Important
  • You must run the client on the source server. By default, the public access mode is enabled. If the source server has firewall restrictions, see What are the SMC service domain names? to obtain the SMC domain names and ports and add them to the firewall's whitelist.

  • If your source server cannot access the Internet or you want to use private network transmission to improve migration efficiency, see the private network migration solution.

  1. Go to the SMC console - Scale-in Migration.

  2. On the Scale-in Migration page, click Import Migration Source.

  3. On the Import Migration Source page, configure the following parameters.

    Parameter

    Description

    Migration Source Type

    Alibaba Cloud ECS Instance

    Import Method

    Select Client Import.

    You must manually download and install the SMC client on the source server.

    Import Instructions

    1. In the Import Instructions section, download, install, and activate the appropriate SMC client based on the operating system (Linux or Windows) and architecture (32-bit or 64-bit) of the source server.

    2. Click Generate Activation Code and copy the activation code information.

      You need to enter the activation code when you install the client.
  4. Import the migration source.

    Important

    Do not close the SMC client during the migration. If you do, the migration source loses its connection with the SMC console and the migration fails.

    Windows source server

    1. Use a remote connection tool that supports file transfer, such as WinSCP, to upload the SMC client to the Windows source server.

    2. On the Windows source server, use a decompression tool to decompress the SMC client package.

    3. Run the SMC client from the folder that matches your source system version.

      A prompt appears, requesting administrator permissions. Click OK.
      • GUI version: Double-click the go2aliyun_gui.exe application.

      • Command-line version: Double-click the go2aliyun_client.exe application.

    4. Obtain an activation code or an AccessKey pair.

      • (Recommended) In the Import Instructions section of the SMC console, click Generate Activation Code and copy the activation code.

      • Obtain an AccessKey pair: The AccessKey pair of an Alibaba Cloud account consists of an AccessKey ID and an AccessKey secret. If you have not created an AccessKey pair, create one first.

    5. Enter the activation code or AccessKey pair as prompted.

      • For the GUI version, in the Token Id/AK and Token Code/SK text boxes, enter the activation code or AccessKey pair, and then click Run. For more information, see the SMC client usage guide.

      • Command-line version: Enter the values for access_access_token_id and access_token_code, and press the Enter key.

      When a message similar to Import Source Server [s-bp18x8751kgz2oyh****] Successfully! is returned, the migration source has been successfully imported.

    Linux source server

    1. Use a remote connection tool that supports file transfer, such as WinSCP, to upload the SMC client to the Linux source server.

    2. Remotely connect to the Linux source server and decompress the SMC client package.

      This example uses the Linux 64-bit General-purpose Edition. If you use another version of the SMC client, replace the package name in the command with the actual downloaded file name.

      tar -zxvf go2aliyun_client.tar.gz
      Note

      The Linux 64-bit ARM Edition supports the g6r general-purpose and c6r compute-optimized instance families. For more information about instance families, see Enterprise-level Arm-based compute instance families.

    3. (Optional) You can filter and exclude files or directories that you do not want to migrate.

    4. Obtain an activation code or an AccessKey pair.

      • (Recommended) Obtain an activation code: In the Import Instructions section of the SMC console, click Generate Activation Code and copy the activation code.

      • Obtain an AccessKey pair: The AccessKey pair of an Alibaba Cloud account consists of an AccessKey ID and an AccessKey secret. If you have not created an AccessKey pair, create one first.

    5. In the SMC client folder, run the following commands to start the SMC client.

      cd go2aliyun_client_linux_x86_64
      sudo chmod +x go2aliyun_client
      sudo ./go2aliyun_client
    6. Enter the activation code or AccessKey pair as prompted. This example uses an activation code: adad

      After you enter the activation code or AccessKey pair, the following prompts may appear:

      • If no snapshot driver is installed on the source system, the SMC client displays the following prompt.

        Because block replication needs to be disabled for Linux server scale-in migration, enter no.

        Important

        If the snapshot driver fails to install, do not enable block replication when you create a migration task. Otherwise, the migration fails.

        123

      • Most mainstream source systems have rsync installed by default. If rsync is not installed, the SMC client prompts you to install it. Enter yes to automatically install rsync.安装rsync

      • If SELinux is enabled on the source system, the SMC client prompts you to disable it. Enter yes to automatically disable SELinux.关闭SELinux

      When a message similar to Import Source Server [s-bp11npxndknsycqj****] Successfully! is returned, the migration source is successfully imported.

      Note

      If the migration source fails to import, you can troubleshoot the issue based on the returned message. Then, run the following commands in sequence to exit the background program and re-import the migration source. For more information about common issues and solutions, see SMC FAQ and Troubleshoot errors.

      sudo ./go2aliyun_client --abort
      sudo ./go2aliyun_client
  5. On the Scale-in Migration page of the SMC console, you can view the status of the migration source in the Real-time Migration Status column.

    • The import is successful if the status is Migration Source Online.

    • If the status is not Migration Source Online, the import failed. Troubleshoot the issue using the following methods and then re-import the source.

      • You can troubleshoot the issue based on the error message in the console or by viewing the SMC client log file. The default installation directory of the SMC client is:

        • Windows source server: C:\smc.

        • Linux source server: /smc.

      • For common issues and solutions, see SMC FAQ and Troubleshoot errors.

Step 2: Configure the migration

  1. In the Actions column of the target migration source, click Start Migration.

  2. Configure the required parameters and click Start Migration. In the pop-up window, read the notes on scale-in migration and select I Have Read And Understood The Notes to create the migration task.

    1. Configure basic parameters.

      Parameter

      Description

      Destination Type (Required)

      You can select a target type based on your migration scenario:

      ECS Image

      Convert the existing source server into a custom ECS image, and then use the custom image to create a new ECS instance to complete the migration.

      The following table describes the configuration items.

      • Destination Region: The Alibaba Cloud region to which you want to migrate the source server. This parameter is required. For more information about regions, see Regions and zones.

      • Image Name Prefix: The custom name of the image after migration.

      ECS Instance

      Directly migrate the source server to a purchased ECS instance. The storage, operating system, and other configurations of the source server and the purchased ECS instance must be compatible.

      Important

      When you migrate to a destination instance, the operating system of the destination instance is replaced first. The automatic snapshots of the system disk are cleared and cannot be recovered. To retain automatic snapshots for future use or data security, you can disable automatic snapshot release with disk before the migration.

      The following table describes the configuration items.

      • Destination Region: The destination region is the Alibaba Cloud region to which you want to migrate your source server. This parameter is required. For more information about regions, see Regions and zones.

      • Destination Instance: Select an ECS instance as the destination instance.

      Automatic Incremental Synchronization

      Specifies whether to automatically synchronize incremental data from the source server to Alibaba Cloud for the migration task. By default, automatic incremental synchronization is disabled.

      • If you enable this switch, you must set the following configuration items:

        • Synchronization Repetition Frequency: The interval at which the incremental migration task is periodically and automatically executed.

        • Maximum Image Retention Count: The maximum number of images that are retained by default for the incremental migration task.

        The migration task is automatically executed periodically, and incremental data is synchronized to Alibaba Cloud. For more information about the best practices for incremental migration, see Incremental server migration.

      • If you disable this switch, the migration task is executed only once.

      Enable Migration Template

      This parameter is available only when Target Type is set to ECS Image.

      A migration template is used to preset the parameters of a migration task. When you start the migration, the template parameters are automatically filled. For more information about how to set a migration template, see Set a migration template.

      Network Mode

      Select the network used to transfer migration data to the intermediate instance. By default, the Internet is used for transmission. The intermediate instance is created in the selected VPC and vSwitch, and a public IP address is automatically assigned.

      Public Network Transmission (Default)

      Migration data is transmitted to the intermediate instance over the Internet. If you use this mode, the source server must be able to access the Internet. Specify a VPC and a vSwitch as needed.

      • Specify a VPC and a vSwitch: The migration task creates an intermediate instance in the VPC and vSwitch that you specify.

      • Do not specify a VPC and a vSwitch: The migration task creates an intermediate instance in a new VPC and vSwitch that are automatically created by the system.

      Private Network Transmission

      Migration data is transmitted to the intermediate instance over the VPC internal network. If you use this mode, you must connect the source server to an Alibaba Cloud VPC and specify a VPC and a vSwitch.

      Note

      If you can directly access a VPC in a specific Alibaba Cloud region from a data center, a virtual machine environment, or a cloud host, we recommend that you use this method for migration. Using internal network transmission provides faster and more stable data transmission than using the public network, which improves migration efficiency. You can use a VPN Gateway, an Express Connect circuit, a physical Express Connect circuit, or a Smart Access Gateway to connect the source server to a cloud VPC. For more information, see Connect a VPC to a data center, an office terminal, or another cloud.

      Destination Instance IPv4 Private Address

      This parameter is available only when Target Type is set to ECS Instance.

      • Keep Unchanged: By default, the migration IP address of the destination instance is used and does not change.

      • Manually Specify: Allows you to enter an address within the available IP address range of the vSwitch where the destination instance is located. When the IP address of the migration source is in the CIDR block of the vSwitch, you can change the IP address of the destination instance to the IP address of the migration source.

        • When the CIDR block of the destination instance is the same as that of the migration source: Directly enter the private IP address of the migration source.

        • When the CIDR block of the destination instance is different from that of the migration source: You need to first change the VPC of the destination instance to make the CIDR block of the destination instance the same as that of the migration source, and then enter the private IP address of the migration source.

    2. Adjust the disk partition structure as required.

      Parameter

      Description

      Adjust Disk Partition Structure

      Adjust Disk Partition Structure is enabled by default. This feature is supported only by SMC client V2.8.0 and later. For more information about the SMC client, see SMC client usage guide.

      Linux system

      image

      Block replication is disabled by default. You can modify the disk size and partition size to configure scale-in migration.

      • The disk size must be greater than the actual used capacity of the source disk.

        For example, if the source disk size is 60 GiB and the actual used space is 30 GiB, the disk size must be greater than 30 GiB.
      • The disk size must be greater than the sum of the partition sizes.

        For example, if the disk size is 40 GiB, the sum of the partition sizes must be less than 40 GiB.

      For more information about other parameters, see Description of disk partition structure parameters.

      Windows system

      Block replication is enabled by default and cannot be modified. The custom disk size must be greater than the sum of the partition sizes.

      Important

      Make sure that you have compressed the disk space for this migration source before importing it. Otherwise, you cannot reduce the capacity.

      image

      For more information about other parameters, see Description of disk partition structure parameters.

      The following table describes the parameters of the disk partition structure.

      Configure disks

      By default, the destination disk partition structure is the same as the source disk.

      • System Disk: The size of the system disk of the Alibaba Cloud server after migration, in GiB. The size of the system disk ranges from 20 to 2,048.

        The capacity of the system disk after migration must be greater than the actual used space of the source system disk. For example, if the source system disk size is 400 GiB and the actual used space is 100 GiB, the system disk size after migration must be greater than 100 GiB.

        Note

        The default value is the size of the source system disk.

      • Data Disk <N>: The size of the data disk of the Alibaba Cloud server after migration, in GiB. The size of the data disk ranges from 1 to 32,768.

        • The variable <N> indicates the number of the data disk. If you migrate to a destination instance, N is the data disk ID.

        • The value of the data disk must be greater than the actual used size of the source data disk.

        • If no mount target exists under Data Disk or all mount targets are set not to be migrated, the data disk is not migrated.

      • LVM: LVM cannot be enabled for scale-in migration.

        Logical Volume Manager (LVM) is a mechanism for managing disk partitions in Linux systems. LVM is more flexible than normal disk partitioning and can dynamically adjust disk space.

      Configure mount targets

      • Migrate or not: You can choose whether to migrate different data disks based on your business needs.

      • Enable block replication: Using block replication can effectively improve the stability of migration transmission speed and ensure consistency with the source partition structure, but the partition size cannot be modified. SMC determines whether to support block replication based on the status of the source disk partition.

        • If the migration source is a Windows operating system, block replication is enabled by default and cannot be disabled.

        • If the migration source is a Linux operating system, block replication is disabled by default and cannot be modified.

        • If LVM is enabled on the disk and the partition size is not an integer multiple of 4 MiB, block replication does not take effect, and file replication is used for data transmission.

      • Set partition size: When block replication is not enabled, you can set the partition size as needed, but the sum of the partition sizes cannot be greater than the size of the disk to which they belong.

      Note

      If the disk sizes of the destination instance do not match the source disks, the task cannot be created. In this case, the system automatically adjusts the mount target positions to meet the disk size requirements. If the requirements still cannot be met after adjusting the mount targets, troubleshoot the issue based on the prompt message.

      You can also manually drag the mount target positions to meet the disk size requirements. However, you cannot drag boot partitions or system partitions. The procedure is as follows:

      1. Hover the mouse over the image icon in front of the mount target.

      2. Use the mouse to drag the mount target to another disk.

    3. (Optional) You can click More Configurations to set parameters such as migration drill, transmission throttling, compression ratio, tags, and licenses.

      Parameter

      Description

      Task Name

      The name of the migration task.

      Task Description

      Enter a description for the migration task.

      Migration Drill

      The migration drill feature helps you fully understand the feasibility and risks of a migration task before the actual migration. It also provides information such as the data volume, migration speed, and total migration duration, and offers repair suggestions to reduce potential problems and losses during the actual migration. A certain fee is incurred for pay-as-you-go resources during the migration drill. By default, Migration Drill is enabled.

      Warning

      If the target type is ECS Instance, snapshots are created for all disks of the destination ECS instance during the migration drill. If the drill is abnormal or the execution method is Drill Only, the snapshots are automatically rolled back after the migration drill is complete. The destination ECS instance is unavailable during the migration drill, and data will be lost. Make sure that no important data exists on the destination ECS instance.

      For more information, see Configure a migration drill.

      Execution Method

      Select an execution method based on whether Migration Drill is enabled:

      If Migration Drill is enabled

      • Drill Only: Only a migration drill task is created. After the migration drill is complete, to migrate the server, you must manually start the server migration task.

      • Drill And Migrate: After the migration drill is complete, if there are no drill items with a status of Critical, the system automatically starts the server migration task. By default, Drill And Migrate is selected.

      If Migration Drill is not enabled

      • Migrate Now: Start the migration immediately after creating the migration task. By default, Migrate Now is selected.

      • Schedule Migration: After the migration task is created, the migration task is automatically started at the set time.

        The earliest scheduled execution time can be set to 10 minutes after the current time.
      • Create Only: Only a migration task is created. You need to manually start the migration task by clicking Start Task in the Actions column.

      Transmission Throttling

      Transmission throttling limits the actual network transmission speed, in Mbps. If Compression Ratio is set to a value greater than 0, the actual network transmission speed (the transmission speed of compressed data) is less than the speed displayed in Real-time Migration Status.

      Compression Ratio

      Set the compression ratio based on your actual needs.

      • In an environment with limited bandwidth, using a high compression ratio can improve data transmission speed.

      • In a high-bandwidth environment, we recommend that you do not compress the transmitted data to reduce the consumption of CPU resources on the migration source.

      The value ranges from 0 to 10. The default value is 7. A value of 0 indicates that the data is not compressed for transmission.

      Checksum Verification

      This feature is disabled by default. If you enable it, data consistency verification is enhanced, but the transmission speed may be reduced.

      Enable SSL Encrypted Transmission

      This feature is enabled by default. Using SSL encrypted transmission for migration data can improve data security and ensure data integrity.

      License Type

      • Alibaba Cloud (default): Currently, only Microsoft Windows Server licenses are provided. After migration, when you create an ECS instance from an image in the Hong Kong (China) or other regions outside China, a license fee is charged for the image, and the image is automatically activated. The specific fee is subject to the information displayed when you create the instance.

      • Bring Your Own License: Bring Your Own License (BYOL) migration to the cloud currently includes Microsoft, Red Hat Enterprise Linux, and SUSE Linux Enterprise Server. After migration, no license fee is charged when you create an ECS instance from the image. Please use your own license for activation.

        Note

        If you have created an ECS instance, Alibaba Cloud supports quickly purchasing software licenses such as Red Hat Enterprise Linux and SUSE Linux Enterprise Server for the specified ECS instance. For more information, see Purchase a software license for an ECS instance (invitational preview).

      Tag

      Attach tag key-values to a migration task to facilitate querying and managing the task. For more information, see Use tags to manage migration sources and migration tasks and Implement fine-grained permission management using tags.

      Note

      A maximum of 20 tags can be bound to a migration task.

      Intermediate Instance Type

      This parameter is available only when Target Type is set to ECS Image.

      • Select an intermediate instance type: After you select a specific instance type, the system selects that instance type to create the intermediate instance. If the instance type is out of stock, the migration task fails to be created.

      • Do not select an intermediate instance type: The system selects instance types to create the intermediate instance.

      Important

      To prevent migration errors, do not stop, start, restart, or release the intermediate instance during the migration process. After the migration is complete, the instance is automatically released.

      Report Diagnostic Logs

      Automatically upload SMC client logs to the SMC server for error diagnosis and analysis, which facilitates problem locating when a migration error occurs. This feature is enabled by default.

      SMC client logs are generally saved in the /smc/go2aliyun_client*/Logs directory under the installation directory.

  3. On the Server Migration page, you can view the real-time migration status.

    If you enabled migration drill, SMC first performs the migration drill. The transmission time is affected by factors such as data volume and network bandwidth. Wait for the migration task to complete.

    image

    Note
    • Speed: The amount of uncompressed migration data transmitted per second. If the Compression Ratio is set to a value greater than 0 when creating the migration task, the displayed speed will be higher than the actual network transmission speed of the compressed data.

    • Remaining Synchronization Time: The estimated time until the synchronization is complete, calculated as (Total data volume - Transmitted data volume) / Synchronization speed.

    • If the transmission speed is too low for your plan, you can temporarily increase the fixed bandwidth of the source and destination servers. For more information, see Evaluate the migration time and test the transmission speed.

    To subscribe to migration error events, or to modify or pause a migration, perform the following operations:

    • To prevent the migration process from being blocked by migration task errors, you can subscribe to SMC migration task error event notifications in Cloud Monitor. This lets you receive timely email notifications.

    • When the migration task status is Synchronizing, you can also perform the following operations:

      • To edit a migration task, in the Actions column, click Modify Migration to modify parameters such as transmission throttling, compression ratio, and Checksum verification.

      • To pause a migration task, click Pause Migration in the Actions column.

  4. (Optional) View migration details.

    In the Migration Source ID/Name column, click the ID of the target migration source to view its details.

Verify the migration result

  • A Real-time Migration Status of Completed indicates a successful migration.

    • If the Target Type for the migration is ECS Image:

      After a successful migration, an Alibaba Cloud custom image is generated. Scroll to the right to find the Migration Deliverable column and click View Report to view the image detection results.

      Manually verify the migration result (recommended)

      In the Actions column, click Create Instance. You are redirected to the ECS console to create an ECS instance. The custom image is selected by default. For more information, see Create an instance from a custom image. The default system disk type and capacity may differ from those of the source disk. You can adjust these settings as needed.

      image

      Automatically verify the migration result

      Note

      To use this feature, you must install the Cloud Assistant plugin on the instance. The instance must run a supported operating system version. For more information, see Install Cloud Assistant Agent.

      This feature uses the ACS-SMC-CreateAndVerifyInstance OOS template provided by Alibaba Cloud to automatically verify that an ECS instance can be created from the generated image and start normally.

      1. In the Actions column, click Verify Migration Result.

        image

      2. In the pop-up dialog box, review the verification process and click Verify Now.

        You can also click Customize Verification Script Parameters to manually configure verification parameters.

      3. You can view the verification result in the Verify Migration Result column.

        • Verification Passed: The migration was successful. Click Details for more information.

        • Verification Not Completed: This status indicates that the migration is abnormal. Click View Reason to determine the cause of the error and troubleshoot the issue.

        You can also click ... in the Actions column and select Go To OOS To View Historical Verifications to view the execution history of the OOS template.

    • If the Target Type for the migration is ECS Instance, you can click View Destination Instance in the Actions column to view the destination ECS instance.

  • If the migration drill status is image.png, the migration drill failed.

    Review the drill report, resolve all Critical drill items, and then retry the migration drill. For more information, see Configure a migration drill.

  • The migration task failed if the Real-time Migration Status is Error.

    In this case, you must troubleshoot the problem and retry the migration:

    1. In the Actions column, click Troubleshoot Error and resolve the issue based on the error code and error message. For more information, see SMC FAQ and Troubleshoot errors.

    2. After fixing the problem, click Retry Migration in the Actions column to resume the migration from where it left off.

      Important

      If the intermediate instance was released, you must start the migration again. For more information, see What do I do if I accidentally release an intermediate instance?.

What to do next

After a successful migration, perform the following operations to ensure that your business runs as expected:

Clean up resources

Migrate to an ECS 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. This instance assists with the migration. You must decide whether to manually clean it up based on the migration outcome:

  • Successful migration: The intermediate instance is automatically released. You do not need to manually clean it up.

  • Migration error: The intermediate instance continues to exist with the migration task and incurs fees. You can release it in one of the following ways to avoid unnecessary charges:

    • If you no longer need the migration task, click the migration source ID, and in the Actions column for the task, click Cancel Migration Job to delete the migration task and clean up the intermediate instance.

    • Manually release the intermediate instance.

Migrate to an ECS instance

During the migration, SMC creates a temporary pay-as-you-go intermediate disk named SMC_Temp_Disk for the destination instance. This disk assists with the migration. You must decide whether to manually clean up the intermediate disk based on the migration outcome:

  • Successful migration: The intermediate disk is automatically released. You do not need to manually clean it up.

  • Migration error: The intermediate disk continues to exist with the migration task and incurs fees. You can release it in one of the following ways to avoid unnecessary charges:

    • To delete a migration task and automatically clean up its intermediate disk, click the migration source ID, and then in the Actions column for the task, click Cancel Migration Job.

    • Manually release the intermediate disk.

References

  • To migrate incremental data multiple times, you can perform multiple incremental migrations at custom intervals after the initial full migration is complete. This process synchronizes the incremental data from the source server to Alibaba Cloud, which reduces business downtime and the final cutover time. For more information, see Incremental server migration.

  • For common issues and solutions, see FAQ and Troubleshooting.

FAQ

How do I compress a Windows disk?

This example shows how to compress a data disk on a Windows Server 2016 operating system. Perform the operations based on your actual environment.

Important

To prevent data loss, we recommend that you back up important data to an image, a snapshot, or a storage device other than the instance before you perform this operation.

  1. Remotely connect to the server that you want to migrate.

  2. On the Windows Server desktop, right-click the 开始图标 icon, and then click Disk Management.

  3. In the Disk Management dialog box, choose Action > Rescan Disks to view the disk partitions and capacity.

    As shown in the following figure, Disk 0 (C drive) is the system disk, and Disk 1 (D drive) is the data disk.

    image

  4. Right-click the target partition, and then click Shrink Volume.

    image

  5. In the Shrink D dialog box, set the Amount Of Space To Shrink In MB, and then click Shrink.

    Note
    • Enter the Amount of Space to Shrink in MB: The size of the unallocated space that will be created by shrinking the partition. By default, the maximum available shrink size is displayed. You can modify this value as needed.

    • Total Size After Shrink In MB: The capacity of the original partition (the D drive in this example) after it is shrunk.

    Enter The Amount Of Space To Shrink In MB + Total Size After Shrink In MB = Total Size Before Shrink In MB. For example, 200000 MB + 107070 MB = 307070 MB.

    image

    After compression, Disk 1 has 200000 MB (195.31 GB) of Unallocated capacity.