Help Center/ Server Migration Service/ Best Practices/ Migrating the System and Data Partitions of a Windows Server to the Separate Disks of a Huawei Cloud ECS
Updated on 2024-07-17 GMT+08:00

Migrating the System and Data Partitions of a Windows Server to the Separate Disks of a Huawei Cloud ECS

Overview

A Huawei Cloud ECS consists of one system disk and several data disks, as shown in Figure 1. An on-premises server may have the system partition and other partitions located on the same disk, as shown in Figure 2.

You can use SMS to easily migrate the system partition (volume C) of the on-premises server to the system disk of the ECS, and other partitions (volumes D and E) to the data disks of the ECS.

Figure 1 Disks on a Huawei Cloud ECS
Figure 2 Disks on an on-premises server

Procedure

  1. Obtain an AK/SK pair for the account you are migrating to. For details, see How Do I Create an AK/SK Pair for an Account?

    If you are migrating to the account of an IAM user, you need to obtain the required permissions and an AK/SK pair for the IAM user. For details, see How Do I Create an AK/SK Pair for an IAM User?

  2. Install the SMS Agent on the source server to be migrated. For details, see How Do I Install the Agent on Source Servers?
  3. Go to the Agent installation directory, for example, C:\SMS-Agent-PyX\config, and modify the configuration file disk.cfg as follows:
    [vol_mount_modify]
    D=2
    E=2

    D=2 and E=2 indicate that volumes D and E will be migrated to the second disk, a data disk on the ECS.

  4. Run the SMS Agent and enter the AK/SK pair obtained in 1.

    After the Agent has started, it reports source server details to SMS, so SMS can check whether the server can be migrated.

  5. Log in to the SMS console using the account you are migrating to. Choose Servers from the navigation pane and view the source server in the server list.
  6. Create and run a migration task for migrating the source server. For details, see Configuring the Target Server, Starting a Full Replication and Launching the Target Server.
    After the migration is complete, the target server has a system disk and a data disk which are separated from each other.

    After the migration is complete, the target server uses the same login credentials as the source server.

  7. (Optional) Synchronize incremental data from the source ECSs to the target ECSs by using the Sync option on the SMS console.