Server Migration Center (SMC) allows you to migrate servers to Elastic Compute Service (ECS) instances. After you purchase an ECS instance, you can migrate your source server to an ECS instance. This topic describes how to migrate a server to an ECS instance.
- The migration preparations are complete. For more information, see Before you begin.
- An ECS instance is created. Make sure that the instance has no data or the data of
the instance has been backed up by using images, snapshots, or other resources.
Note After the migration is complete, all original data on the ECS instance is deleted. If the ECS instance contains important data, we recommend that you select ECS Image as the destination image type, and then create an ECS instance by using a custom image.
- The information of the server is imported to the SMC console. For more information,
see Step 1: Import the information of a migration source.
Note Make sure that the SMC client is running during migration. If data transfer is interrupted, you can restart the client and the migration task to resume the migration.
- The operating system of the ECS instance is the same as that of the server.
- The number of data disks attached to the ECS instance is greater than or equal to that of the data disks attached to the server. Otherwise, you must attach more data disks to the ECS instance. For more information, see Attach a data disk.
- The size of the system disks and data disks attached to the ECS instance is greater than or equal to that of the system disks and data disks attached to the server. Otherwise, you must scale up the data disks and system disks. For more information, see Overview.
(Optional) Step 1: Exclude dynamic data directories
To ensure stable migration, we recommend that you exclude dynamic data directories, such as data directories of large databases. Then, you can stop the services that are running on the server and start the migration task. Skip this step if you do not need to exclude dynamic data directories.
To exclude dynamic data directories, perform the following steps. You do not need to stop services that are running on the server.
- Log on to the source server.
- Configure the SMC client and exclude dynamic data directories.For more information, see Exclude files or directories from migration.
Step 2: Create and start a migration task
- Log on to the SMC console.
- In the left-side navigation pane, click Migration Sources.
- Find the source server from which you want to migrate data. Click Create Migration Task in the Actions column.
- On the Create Migration Task page, set the required parameters.Set the following parameters to configure the ECS instance. For information about other parameters, see Step 2: Create and start a migration task.
The migration task immediately starts after it is created. Then, the migration task enters the Finished or InError state.
- Target Image Type: Select ECS Instance.
- Target Instance: Select an ECS instance based on your needs. After you select an ECS instance, the disk information of the instance is displayed.
- Tag and Network (Optional): By default, the value of the Network Type parameter is the VPC that the ECS instance resides.
- If the migration task enters the Finished state, the task is completed and you can view the ECS instance.
- If the migration task enters the InError state, the task failed. You can check the logs to troubleshoot the failure. Then, restart the migration task. For information about common errors and solutions, see SMC FAQ.