Configuring a Target Server
Scenarios
Before starting the migration, you need to configure a target server for receiving data migrated from the source server. You can clone the target server for service testing, and launch the target server after you verify that your services run properly on the target server.
Prerequisites
The migration is in the
stage and Ready status.
Procedure
- Log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
- In the navigation pane on the left, click Servers. Figure 1 Server list
- In the server list, locate the server to be migrated, and click Configure in the Target column. After locating the server, you can also choose More > Configure Target in the Operation column.Figure 2 Configure Migration
- On the Configure Basic Settings page, configure parameters as prompted.
Table 1 Basic settings Parameter
Option
Description
Migration Template
N/A
After you select a migration template, the system automatically sets Network, Migration Rate Limit, Migration Method, Continuous Synchronization, Partition Resizing, Region, and Project based on the template. The system automatically creates a default migration template for you. You can also create a migration template in advance. For details, see Creating a Migration Template.
Network Type
Public
An EIP must be bound to the target server.
Network Type is set to Public by default.
Private
You need to create required Direct Connect connections, VPN connections, VPC peering connections, and VPC subnets in advance. The private IP address of the target server will be used for migration.
Migration Rate Limit
N/A
You can set the rate limits as needed based on the bandwidth size of the source server and service requirements.
0 indicates that the migration rate is not limited.
NOTE:For a Linux migration, traffic limiting is implemented using Traffic Control (TC). If TC is not installed on the source server, the migration rate limit you configured here will not take effect during the migration.
Some Linux distributions do not support traffic limiting. For example, CentOS 8 and other distributions built based on CentOS 8 do not have the TC module preinstalled.
Migration Method
Linux block-level
Migration and synchronization are performed block by block. This method has high efficiency but poor compatibility.
Linux file-level
Migration and synchronization are performed file by file. This method has low efficiency but excellent compatibility.
Windows block-level
Migration and synchronization are performed block by block. For Windows servers, SMS only supports highly efficient block-level migration.
Continuous Synchronization
No
After the full replication, SMS will automatically launch the target server without synchronizing incremental data. To synchronize incremental data, click Sync in the Operation column.
Yes
After the full replication, SMS will periodically synchronize incremental data. To complete the migration, you need to manually launch the target server.
Partition Resizing
No
The disk partitions on the target server will be the same as those on the source server.
Yes
You can resize the disk partitions on the target server. For details, see resizing disk partitions.
1. Click Resize Partition on the right of option Yes. In the displayed dialog box, resize the disk partitions on the target server as needed.Figure 3 Resizing disk partitions (Windows)
Figure 4 Resizing disk partitions (Linux)
- You can choose whether to migrate a source partition and resize the corresponding target partition.
- For a Linux migration, you can exclude some physical or logical volumes from migration and resize the target volumes.
- In a Windows migration, the system and boot partitions are migrated by default.
- In a Windows migration, you can only increase the sizes of partitions.
- Partition Resizing is not available for migration of Linux servers using Btrfs.
- In a Linux migration, the system and swap partitions are migrated by default.
- You can choose to migrate all or none volume groups using the options for Migrate All Volume Groups.
- If you choose to migrate none of the logical volumes in a volume group, the system will not migrate their physical volumes by default.
- In a Linux block-level migration, you can only increase the size of a partition.
- In a Linux file-level migration, you can increase or decrease the size of a partition. The new partition size needs to be at least 1 GB larger than the used partition space. If the current partition size is not 1 GB larger than the used partition space, the disk partition size cannot be decreased. For details, see Rules for Resizing Volume Groups and Disk Partitions.
- If the total partition size after adjustment is larger than the disk size, expand the disk capacity to fit the partition size.
- If the total partition size after adjustment is much smaller than the disk size, you can decrease the disk size as needed.
2. Click Next: Configure Disks. After you confirm that the configurations are correct, click OK.
After you click OK, the setting of Partition Resizing cannot be changed to No. If you want to restore the original disk partition settings, locate the row that contains the server to be migrated, click More in the Operation column, and select Delete from the drop-down list. Then, restart the Agent installed on the source server, configure the target server again, and set Partition Resizing to No.
- Click Next: Configure Target in the lower right corner. Figure 5 Configure Target
- On the Configure Target page, set parameters as prompted.
Table 2 Parameters for configuring a target server Parameter
Sub-Parameter
Description
Region
N/A
- Select a region where you want to provision the target server.
- Consider your service requirements.
Project
N/A
- Select a project in the region from the drop-down list.
- You can select a project only after selecting a region.
Server
Use existing
Select an existing server based on the recommended target server specifications above the server list. For details, see Use existing.
Create during migration
Configure VPC, Subnet, Security Group, and parameters in Advanced Settings. For details, see Create during migration.
- Use existing A target server must meet requirements listed below. If no existing server meets the requirements, click Buy Now to create one that meets the requirements based on the recommended target server specifications. For details, see Purchasing an ECS.
Currently, the 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 recommended size.
- The target server must run the same OS as the source server, or there will be a server name conflict.
- The target server must have been configured with an EIP, VPN, or Direct Connect connection.
- The security group of the VPC that the target server is in must be correctly configured. It must be configured to allow access on TCP ports 8899, 8900, and 22 for Windows and on ports 8900 and 22 for Linux.
- It is recommended that the required ports be opened only to the source server.
- Open the required ports on the target server firewall.
For details, see How Do I Configure the Security Group Rules for Target Servers?
- Create during migration
- If you select Recommended for Server Template, the VPC, subnet, and security group will be automatically created. You can change the configurations as needed. The server name, AZ, specifications, system disk, data disk and EIP in advanced settings are automatically configured. You can modify the configurations as needed.Figure 6 Recommended
Figure 7 Advanced Settings
- Supported device types for data disks are Virtual Block Device (VBD) and Small Computer System Interface (SCSI). VBD is the default data disk device type. For details about disk device types, see Device Types and Usage Instructions.
- Data disks can be created as shared disks. For details about shared disks, see Shared EVS Disks and Usage Instructions.
- If you select an existing template, the VPC, subnet, security group, AZ, and disk will be configured based on the template. You can change the configuration as needed. For details, see Creating a Server Template.
If you set Server Template to Recommended, 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 migration, ports 8900 and 22 for Linux block-level migration, or port 22 for Linux file-level migration.
- Create a VPC and subnet.
- If you select Recommended for Server Template, the VPC, subnet, and security group will be automatically created. You can change the configurations as needed.
- Click Next: Confirm in the lower right corner. Figure 8 Confirming the configuration
- (Optional) Click Save as Server Template. In the displayed Create Server Template dialog box, enter the template name and click OK to save the target configuration as a template.
Save as Server Template is available only when you set Server Template to Recommended.
Figure 9 Create Server Template
- After you confirm that the configuration is correct, click Save. In the displayed dialog box, read the migration conditions and click Yes. If you want to start the migration immediately, click Save and Start. In the displayed dialog box, read the migration conditions and click Yes.Figure 10 Saving configuration
Figure 11 Saving configuration and starting migration
If
is displayed in the Migration Stage column, the target server has been configured.
Last Article: Viewing a Server Details
Next Article: Starting a Full Replication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.