Configuring the Target ECS
Scenarios
Before the migration, you need to configure the target ECS. The target ECS is used to receive data from the source server. You can clone the target ECS for service testing or launch the ECS.
Prerequisites
Target ECSs can only be configured if the migration is in the
state.
Procedure
- Log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
The SMS console is displayed.
- In the navigation pane on the left, choose Servers.
The server list is displayed.
- Locate the source server for which you want to configure the target server and click
in the Target ECS column. You can also locate the source server, click More in the Operation column, and select Set Target ECS from the drop-down list.Figure 1 Configuring the target ECS
- On the Preset Target ECS page, set parameters as prompted. Figure 2 Preset Target ECS
- Select a region for the target ECS.
By default, the region is the one set for the current migration project, but you can select another region if needed.
- Select a migration method in the Migration Method area.
- Linux block-level
Individual disk blocks are replicated and synchronized. This method has high synchronization efficiency but poor compatibility.
- Linux file-level
Replication and synchronization are done file by file. This mode is slower, but provides better compatibility.
- Windows block-level
Individual disk blocks are replicated and synchronized. Currently, for Windows servers, SMS only supports block-level migration, which has high migration and synchronization efficiency.
- Linux block-level
- Determine whether to adjust disk partitions on the target ECS.
- No: If you select this option, the disk partitions on the target ECS are the same as those on the source server.
- Yes: If you select this option, you can adjust the disk partitions on the target ECS. To do so, perform the following operations: 1. Click Adjust on the right of option Yes. On the displayed Adjust Disk Partitions dialog box, set the disk partitions on the target ECS as needed.Figure 3 Adjusting disk partitions (Windows)
Figure 4 Adjusting disk partitions (Linux)
- Disk partition adjustment allows you to determine whether to migrate data on the source partition and adjust the size of the corresponding partition on the target ECS.
- For the system and boot partitions on a source server running Windows, Migration is set to Yes by default.
- For Windows target ECSs, you can only increase the size of partitions.
- For the system and swap partitions on a Linux source server, Migration is set to Yes by default.
- For Linux Btrfs file systems, Migration is set to Yes by default.
- If you set Migration to No for all the logical volumes in the LVM, Migration is set to No for the corresponding physical volumes automatically.
- If you set Migration to Yes for at least one of the logical volumes in the LVM, Migration is set to Yes for the corresponding physical volumes automatically.
- In Linux file-level migration, you can increase and decrease a partition size, while in Linux block-level migration, you can only increase a partition size. Ensure that the new partition size is greater than the used partition space by 1 GB.
- If the new partition size is larger than the disk size, click Target Disk to expand the disk.
- If the new partition size is smaller than the disk size, click Target Disk to shrink the disk.
2. Click OK.
After you click OK, Adjust Disk Partitions cannot be set to No. If you want to restore the original disk partition settings, locate the row that contains the target ECS that you want to restore, click More in the Operation column, and select Delete This Server from the drop-down list. Then, restart the Agent installed on the source server and reconfigure the target ECS. Set Adjust Disk Partitions to No.
- Disk partition adjustment allows you to determine whether to migrate data on the source partition and adjust the size of the corresponding partition on the target ECS.
- Select a network type in the Network area.
- Internet (default)
If you select this option, an EIP must be bound to the target ECS.
- Direct Connect or VPN
If you select this option, you need to create a Direct Connect connection or VPN connection between the source server and the VPC subnet where the target ECS is located.
- Network Rate Limit Set the bandwidth limit as needed based on the bandwidth size of the source server.
- If the source server and target ECS are in the same VPC, Set Network to Direct Connect or VPN.
- By default, Network Rate Limit uses the default settings of the migration project. You can change it as needed.
- Internet (default)
- Decide whether to perform continuous synchronization after full replication is complete.
- No
If you select this option, after the full replication, SMS will not perform a continuous synchronization and automatically start the target ECS. To synchronize incremental data, click Synchronize in the Operation column.
- Yes
If you select this option, after the full replication, SMS will perform a continuous synchronization. To complete the migration, you need to manually launch the target ECS.
- No
- Select or create a target ECS.
- Use existing A target ECS must meet requirements listed below. If no existing server meets the requirements, click Buy Now to create one that meets requirements based on the recommended target server specifications. For details, see Purchasing an ECS.
Source servers can be migrated to pay-per-use or yearly/monthly ECSs. You can select ECSs of whichever billing mode is appropriate.
- A target server running Windows must have at least 2 GB of memory.
- The target server must have at least as many disks as the source server, and the size of each disk on the target server must be at least as large as the corresponding source server disk.
- The target server must have the same OS type as the source server, or there will be a server name conflict.
- The source servers must have network access to the target ECSs. There has to be EIPs, VPNs, or a private line available for the target ECSs.
- The security groups of the VPC that the target server is in must be correctly configured. They must be configured to allow access on TCP ports 8899, 8900, and 22 for Windows and on ports 8900 and 22 for Linux.
For details, see How Do I Configure the Security Group Rules for Target ECSs?
- Create during migration
- If no ECS template is selected, the VPC, NIC, and security group will be automatically created. You can change the specifications as required. The name, AZ, ECS specifications, system disk, and EIP in advanced settings are automatically configured. You can modify the configuration as needed.
- If you select an existing template to create the target ECS, the region, VPC, NIC, security group, AZ, and disks are configured by the template.
If you set Template to Recommended fully automatic preset, SMS will automatically:
- Create a VPC and subnet.
If the source IP address is 192.168.X.X, SMS creates a VPC and a subnet that both belong to network segment 192.168.0.0/16.
If the source IP address is 172.16.X.X, SMS creates a VPC and a subnet that both belong to network segment 172.16.0.0/12.
If the source IP address is 10.X.X.X, SMS creates a VPC and a subnet that both belong to network segment 10.0.0.0/8.
- Create a security group and enable ports based on the service requirements: ports 8899, 8900, and 22 for Windows ECSs and ports 8900 and 22 for Linux ECSs.
- Create a VPC and subnet.
- Use existing
- After setting the parameters, read and select Before migration, please read Migration Conditions, and click Save.
Click Migration Conditions to open and read the content carefully.
- Check whether
is displayed in the Migration Phase > Real-Time Status column. If it is, the target ECS has been configured.
- Select a region for the target ECS.
Last Article: Linux
Next Article: Starting Replication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.