When you migrate a server from an on-premises data center or a static application environment to Alibaba Cloud for the first time, you must perform full data migration. You do not need to stop your current services before full data migration, but you must perform incremental data migration to migrate data generated after the full data migration was initiated.

Background information

Note The Cloud Migration tool is upgraded to Server Migration Center (SMC). Alibaba Cloud no longer provides version updates and technical support for the Cloud Migration tool. We recommend that you use SMC for a better cloud migration experience. SMC provides a variety of features such as full migration, incremental migration, batch migration, and VPC-connected migration. It also provides a web-based SMC console for interactive operations. For more information, see What is SMC?

Full data migration of a Windows server

Preparations

  1. Check and ensure that the Windows Volume Shadow Copy Service (VSS) is enabled.
  2. Check whether the qemu-guest-agent tool is installed. If this tool is already installed, uninstall it.

Procedure

  1. Download and install the Cloud Migration tool onto the server to be migrated.
    For more information, see the "Step 1: Download and install the Cloud Migration tool" section in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
  2. Configure the user_config.json file.

    The user_config.json file contains the following configuration items:

    • The AccessKey information of your Alibaba Cloud account.
    • The destination region of migration and the name of the destination image.
    • Optional. The size of the destination system disk and the specifications of the destination data disks.
    • The platform and architecture of the source system to be migrated.

    For information about how to configure these items, see the "Step 2: Configure the user_config.json file" section in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

  3. Optional:Configure the directories or files that do not need to be migrated.
    For more information, see the "Step 3: (Optional) Exclude files or directories from migration" section in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
  4. Run the main program of the Cloud Migration tool.

    Run go2aliyun_client.exe or go2aliyun_gui.exe as an administrator. If the main program is a GUI version, click Start to start the migration.

Full data migration of a Linux server

This section describes how to perform full data migration of a Linux CentOS 7.6 server. The migration procedures of other Linux servers are the same, with some variations in specific operation commands.

Preparations

  1. Run the following command to download the Cloud Migration tool to the server to be migrated:
    wget http://p2v-tools.oss-cn-hangzhou.aliyuncs.com/Alibaba_Cloud_Migration_Tool.zip
  2. Run the following command to decompress the Cloud Migration tool:
    unzip Alibaba_Cloud_Migration_Tool.zip
    unzip-tool
  3. Run the following command to view the Linux system architecture and decompress the Cloud Migration tool that applies to this architecture:
    uname -a 
    unzip <The Cloud Migration tool that applies to the system architecture of the Linux server to be migrated>

    The Linux system architecture used in this example is x86_64. The corresponding Cloud Migration tool is go2aliyun_client1.3.2.3_linux_x86_64.zip, as shown in the following figure.

    linux-architecture
  4. Run the following command to access the directory where the decompressed Cloud Migration tool is located:
    cd <The directory where the decompressed Cloud Migration tool is located>

    The command used in this example is cd go2aliyun_client1.3.2.3_linux_x86_64.

  5. Run the following command to check whether the Linux server meets the migration conditions:
    chmod +x . /Check/client_check
    . /Check/client_check --check

    If all check items are displayed as OK in the command output, the Linux server meets the migration conditions and you can start the migration.

Procedure

  1. Configure the user_config.json file.

    The user_config.json file contains the following configuration items:

    • The AccessKey information of your Alibaba Cloud account.
    • The destination region of migration and the name of the destination image.
    • Optional. The size of the destination system disk and the specifications of the destination data disks.
    • The platform and architecture of the source system to be migrated.

    For information about how to configure these items, see the "Step 2: Configure the user_config.json file" section in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

  2. Optional:Configure the directories or files that do not need to be migrated.
    For more information, see the "Step 3: (Optional) Exclude files or directories from migration" section in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
  3. Run the following commands as the root user to grant the execution permission to the main program of the Cloud Migration tool and run the program:
    chmod +x go2aliyun_client
    ./go2aliyun_client
    Wait until the Cloud Migration tool finishes running. When the Goto Aliyun Finished! message is displayed, the migration is complete. The following figure shows an example.linux_result