Migrating On-premises Servers to Huawei Cloud
Scenario
This section describes how to use MgC to migrate on-premises servers to Huawei Cloud.
Preparations
- Prepare a Windows server for installing Edge in the source intranet environment. The Windows server must:
- Be able to access the Internet and the domain names of MgC and IoTDA. For details about the domain names to be accessed, see How Do I Configure WinRM on a Windows Source Server and Troubleshoot WinRM Connection Problems?
- Use PowerShell 3.0 or later.
- Have at least 4 CPUs and 8 GB of memory.
- Allow outbound traffic on 8883 if the server is in a security group.
- Disable any antivirus and protection software on the server. This type of software may stop Edge from executing migration commands, resulting in migration failures.
Do not install Edge on a source server to be migrated.
- High resource consumption: Edge consumes CPU and memory resources during collection and migration. If a large number of migration tasks are performed by Edge, services on the source server may be affected.
- Port occupation: Edge occupies some ports on the source server, which may affect services on the server.
- The Windows server where Edge is installed must be able to access source servers you want to migrate over the following ports:
- Windows: port 5985
- Linux: port 22
- WinRM must be enabled on Windows source servers, and these source servers must be able to access the server where Edge is installed. For more information, see How Do I Configure WinRM on a Windows Source Server and Troubleshoot WinRM Connection Problems?
- Prepare a Huawei account or an IAM user that can access MgC. For details, see Preparations.
- Create a migration project on the MgC console.
Precautions
Before creating a server migration workflow, read and understand the following precautions.
Item |
Precaution |
---|---|
Source download bandwidth |
Used to download the migration Agent to source servers.
|
Migration bandwidth |
|
CPU and memory |
|
OS compatibility |
For details about what OSs are supported, see Supported OSs. |
Server migration statements |
For details about the important statements you need to understand before the migration, see What Are the Important Statements of SMS? |
Notes and constraints |
For details about the notes and constraints for server migration, see Notes and Constraints. |
Billing |
For details about the fees that may be incurred during the migration, see Billing. |
Permissions configuration |
For details about the permissions the target account must have, see Permissions Management. |
Migration network and ports |
For details about the requirements for the migration network and ports, see How Do I Set Up a Secure Migration Network for Using SMS? |
Step 1: Download and Install Edge
Install Edge and connect it to MgC. For more information, see Installing Edge.
Step 2: Add Servers to MgC
- Sign in to the MgC console.
- In the navigation pane on the left, choose Research > Application Discovery. Select the prepared migration project in the upper left corner of the page.
- Click the Resources tab, and click Server in the Category column or the number in the Total Resources column.
- Click Add.
- In the displayed dialog box, configure parameters listed in Table 1 and click Confirm. The system automatically checks the credential status and starts collecting resource details.
Table 1 Parameters for adding a server Parameter
Description
Name
Enter a name.
Edge Device
Select the Edge device in the source environment.
Type
Select the OS type of the source server.
IP Address
Enter the IP address of the source server.
If the source server is in the same VPC as the Edge device, you can enter the private IP address of the server. Otherwise, you have to enter its public IP address.
Port
Enter the port on the source server that allows access from the Edge device.
- By default, port 5985 on Windows source servers must allow access from the Edge device. This port cannot be changed.
- By default, port 22 on Linux source servers must be opened to the Edge device. You can specify a different port if needed.
Credential
Select the server credential. If the credential has not been added to MgC, go to the Edge console and add the server credential to the Edge device and synchronize it to MgC.
- View the added server on the Servers tab page.
Step 3: Group Servers as an Application
You can group the added servers as an application to get sizing recommendations for target resources and execute the migration.
- On the Resources page, in the Servers list, select the servers to be grouped as an application and click Group as Application above the list.
- Select an application from the drop-down list. If no applications are available, click Create Application. In the displayed dialog box, enter an application name and description; select a business scenario, environment, and target region; and click Create. For more information, see Creating an Application
- Click OK. You can view the application name in the Application column of these servers.
(Optional) Step 4: Associate Source Servers with Existing Servers on Huawei Cloud
If you have servers on Huawei Cloud, you can associate source servers with these existing Huawei Cloud servers. These Huawei Cloud servers will be used to receive data migrated from their paired source servers. Then you can skip step 5 and go to Step 6: Create a Migration Workflow.
If you do not want to migrate data to these existing Huawei Cloud servers, skip the current step and go to Step 5: Create an Application Assessment.
Before associating an existing server on Huawei Cloud with a source server, make sure that the existing server meets the following requirements:
- Disks on the existing server can be formatted. During the migration, disks on the existing server will be formatted and re-partitioned based on the source disk settings for receiving data migrated from the source server.
- To migrate over the Internet, the existing server must be able to access the Internet.
- The existing server must be in the same region as the application that the source server is added to.
- In the navigation pane on the left, choose Design > Migration Solutions.
- Click View Resources in the Target Configuration card.
- On the displayed Server tab page, locate a source server and click Associate in the Target Association column.
- In the displayed dialog box, select the region of the application and select a project. Then, select an existing Huawei Cloud server and click Confirm.
After the association is complete, Associated is displayed in the Target Association column. You can click Details to view the specifications of the associated target server.
Step 5: Create an Application Assessment
Assessing an application can get recommendations for most suitable Huawei Cloud resources based on the specifications, performance, and business purpose data of the source resources added to the application, as well as your selected recommendation references, such as, cost or performance reference and ECS type references.
If your source servers have been associated with existing servers on Huawei Cloud, you can skip this step and create a migration workflow to migrate them.
- On the Migration Solutions page, click Assess in the Target Configuration card.
- In the Select Application drop-down list, select the application that contains the source servers to be assessed.
- In the Select Resources area, select the servers to be assessed.
- Configure an assessment policy based on Table 2.
Table 2 Settings used for computing target recommendations Parameter
Option
Description
Target Region
-
Select the region where you want to purchase resources on Huawei Cloud. You are advised to select a region close to your target users for lower network latency and quick access.
Assessment Policy
Match source configuration
MgC will recommend Huawei Cloud resources in the same or similar size as source resources.
For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?
Match business scenario
MgC recommends appropriate Huawei Cloud resources based on the business scenario of source resources and Huawei Cloud best practices.
For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?
Priority
High performance
MgC recommends target resources with optimal performance.
Low cost
MgC recommends the most cost-effective target resources that meet your demands.
Preferences
ECS Types
Select the expected ECS types.
System Disk
Select the system disk type you prefer.
Data Disk
Select the data disk type you prefer.
Sizing Criteria
Select the criteria that the system will follow for generating server recommendations.
For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?
- Click OK.
- In the application list on the Migration Solutions page, locate the applications and click View Target Configurations in the Operation column.
In the Target Configurations area, you can view the specifications of Huawei Cloud resources recommended based on the source resource specifications and your selected preferences. It also gives you the ability to estimate the cost of running on Huawei Cloud. In addition, you can modify the recommended target configurations.
Step 6: Create a Migration Workflow
Create a workflow to migrate the source servers to Huawei Cloud. For details, see Creating a Server Migration Workflow.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot