Cross-AZ Migration
Introduction
This function enables you to migrate servers via incremental image backups, ideal for AZ decommissioning. Specifically, create a migration task by configuring the source server, target server, and migration parameters.
For small-scale or single-batch migrations (e.g., fewer than 30 servers), refer to One-Stop Cross-AZ ECS Migration.
Notes and Constraints
- A server can only be included in one migration task.
- A migration task can include a maximum of 100 servers.
- The name of the project or subproject associated with the collected resources must remain unchanged during migration. If the name is changed, you must collect the source server information again and create a new migration task.
For details, see Constraints.
Billing
During cross-AZ migrations of ECSs, you need to pay for ECS, Image Management Service (IMS), and Cloud Backup and Recovery (CBR) resources used during the migrations.
- CBR vaults
During a cross-AZ server migration, if no vault is configured for the source servers, MgC creates a vault 1.5 times the combined size of the source server disks to facilitate the migration. The vault will be automatically deleted after the migration is complete.
For details about CBR pricing, see CBR Billing.
- Images
During a cross-AZ server migration, full-device images are created for the source server to facilitate the migration.
For more details on IMS pricing, see IMS Billing.
- Target servers
During a cross-AZ server migration, you cannot specify an existing target server. Instead, the system automatically creates a pay-per-use target server. After the service cutover is complete, you can change the billing mode of the target server to yearly/monthly as required.
For the pricing details of pay-per-use ECSs, see Pay-per-Use Billing.
Procedure
Table 1 introduces the complete process of cross-AZ server migration.
| Step | Description |
|---|---|
| |
| Discover and collect source server resources through online discovery. | |
| Creating a cross-AZ server migration task. At this step, you will create a task template for configuration later. | |
| Select source resources, configure target servers, set parameters, and confirm settings. | |
| Start the migration task and check the migration status, stages, and steps. |
Preparations
Prepare resources by referring to Table 2 before creating a cross-AZ server migration task.
| Item | Requirement |
|---|---|
| Preparing accounts and permissions |
|
| Creating an application migration project | Create a project to separate and manage migration resources. For details, see Creating an Application Migration Project. |
Step 1: Collect Source Resources
- Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
- In the navigation pane, click Resource Survey.
- Under Online Discovery, click Cloud Discovery. Figure 1 Cloud discovery
- Set collection task parameters according to Table 3.
Table 3 Collection task parameters Item
Parameter
Description
Task Settings
Source Platform
Select Huawei Cloud.
Collection Method
Credential: In the drop-down list, select the AK/SK of the account to which the source server belongs. For details, see Managing Credentials. Alternatively, add one by performing the following steps:
- Click Create Credential and enter a name.
- Set Authentication Mode to AK/SK and enter the AK and SK of the source account.
- Click Save.
Agency: A cloud service agency is required to assign MgC the permissions required to access resources in your current account. For details about the agency permissions, see Agency Permissions.
If the Agency Status is Agency not created, click Create Agency. On the displayed page, click OK.
Region
Select the region where the source servers are located. You can select multiple regions.
Resource Type
Select Servers from the drop-down list.
Basic Info
Task Name
The default name format is <task type>-<current-time>. You can also specify a name.
Task Description (Optional)
Describe the task.
Application (Optional)
Select the application that you want to group the discovered resources into. This is recommended for the assessment and migration of a small number of resources. If no applications are available, perform the following steps to create one:
- Click Create Application. Enter an application name and description.
- Select Cross-AZ migration for Business Scenario.
- Set the environment as required.
- Select the region you want to migrate to.
- Click OK.
- Click Confirm. After the online discovery task is created, MgC starts discovering source resources.
- If the task succeeds, return to the Resource List page and check the list of discovered source resources and their details.
- If the task fails, click the task name to check the data source that fails to be collected. Hover over the collection status to check the failure cause.
Step 2: Create a Migration Task
- In the navigation pane, choose Server Migration > Cross-AZ.
- Click Create Migration Task.
- Use the default task name or create one. Enter the task description (optional).
- Click OK to complete the task creation.
- On the Select Source Resources page, select the source server's region from the Source Region drop-down list, then select its AZ. Figure 2 Selecting the source server's region and AZ
- Above the resource list, click Add.
- Select the source servers to be migrated together and click Confirm.
All servers in a migration task share the same settings (e.g., VPC, subnet, and security group). Verify your server selection before proceeding.
- Click Next. The Configure Target page is displayed.
- On the Configure Target page, select the target AZ. After the target AZ is selected, the system automatically configures target servers that match the specifications of their paired source servers.
If no matching server or disk specifications are available in the target AZ, automatic target configuration will fail. To fix this issue, you can:
- Manually configure target servers.
- Remove these source servers from the list.
- (Optional) Manually configure target servers. Before proceeding with this operation, carefully assess any associated risks. It is also essential to ensure that the chosen specifications meet your system requirements and compatibility standards.
- In the list of servers to be migrated, click Configure Target in the Operation column.
- In the Target Specifications area, select the target server specifications as required.
- In the Target Disks area, select a storage type and size for each target server disk.
- Click Confirm. Manual will appear in the Target column.
- Confirm that all source servers have their targets configured, and click Next to open the Configure Migration Settings page.
- Configure migration settings based on Table 4.
Table 4 Migration settings Area
Parameter
Description
Network Settings
Retain Source Network Settings
This option is selected by default. The VPC and subnet settings of the source servers will be retained after the migration, but their IP addresses will not.
Migration Settings
Create Target Immediately
This option is selected by default. After the migration is started, the system will create backups and images for the source servers, and immediately use those images to create target servers.
Stop Target After Creation
- If this option is selected, target servers will be stopped after being created.
- If this option is not selected, target servers will be started after being created.
Stop Source Before Incremental Backup
- If this option is selected, the source servers will be stopped before they are incrementally backed up. This ensures data consistency as high as possible.
- If this option is not selected, the source servers will remain started when they are incrementally backed up.
Create System Disk Image
- If this option is selected, the system will create system disk images for source servers. These images can be used to reinstall the OS for the paired target servers.
- If this option is not selected, no system disk images will be created.
Advanced Settings
Delete Intermediate Resources
If this function is enabled, intermediate resources generated during the migration, such as backups, snapshots, and images, will be deleted after the service cutover is complete.
Retain Primary NIC IP Address
This option can be selected only if both Stop Target After Creation and Stop Source Before Incremental Backup are selected.
If this option is selected, the private and public IP addresses bound to the primary NICs on source servers will be retained on target servers, and random private IP addresses will be allocated to source servers. If a rollback is needed, it has to be performed manually.
Send SMN Notifications
Determine whether to get SMN notifications about the migration. You can configure Topic, Language, and Trigger Condition.
Before enabling this function, create an SMN topic and subscribe to it. For details, see Publishing a Template Message.
NOTE:You can only choose an SMN topic in the default IAM project of the region where you currently use MgC.
To enable this function, you need to authorize MgC when the system prompts you.
Select one or more trigger conditions.
- Migration succeeded: A notification will be sent if all resources in the migration task are migrated.
- Migration failed: A notification will be sent if any resource in the migration task fails to be migrated.
- Manual checkpoint: A notification will be sent if all resources in the migration task are waiting for manual confirmation.
- Click Next to open the Confirm page.
- On the Confirm page, check the resource and migration settings carefully to ensure that they meet your requirements. To update the settings, click Previous to return to the corresponding stage for modification.
- In the Quota Verification area, the system will check whether the resource quotas in the target region meet the request. If no, increase the quota and verify again. Ensure that all check items meet the quota requirements.
- On the Confirm page, verify that the resource and migration settings are correct and that all quotas meet the requirements. Then, click Finish. The Start Migration Task dialog box is displayed. The migration task has been created. Determine whether to start the migration immediately.
- If you want to start the migration immediately, click Confirm to run the task.
- If you want to save the migration settings without starting the migration, click Cancel. The task status will change to To be started. To run the task, click Run in the Operation column to manually start the migration.
Step 4: Track the Migration Task
- Checking the resource status: Click a resource name. On the Resource Details page displayed on the right, you can review the basic information, migration status, and migration progress of the resource.
- Confirming steps: Some resources require manual confirmation. In this case, click Confirm in the Migration Status column or in the Operation column to continue the migration.
To check the migration phases and steps included in a migration task, click View Task Template in the upper right corner of the task details page.
Related Operations
You can perform the following operations on a migration task:
Task Sources and Management
In cloud computing environments, you can use cross-AZ migration of ECS or MgC to deploy highly available services. Previously, migration tasks created in ECS and MgC were displayed and managed separately. You had to switch between the two consoles to check task status, and migration tasks from different sources could not be managed in a unified view.
To address the issue, MgC now provides a unified view of ECS cross-AZ migration tasks. The task list displays the task source (ECS or MgC), differentiates source-specific operations (for example, hiding actions that are not supported for ECS-created tasks), and includes source and target AZ information. This allows you to view and manage migration tasks from ECS and MgC in a single interface, improving operational efficiency and usability.
- Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
- In the navigation pane, choose Server Migration > Cross-AZ. The Cross-AZ Migration page is displayed.
- In the Source column of the task list, check whether the migration task has been created in ECS or MgC. Table 5 lists the operations supported by tasks from different sources.
Table 5 Migration task management Source
Related Operations
Migration Center (MgC)
See Reconfiguring a Task and Deleting Resources from a Migration Task.
Elastic Cloud Server (ECS)
Viewing task details: In the migration task list, click a task name. On the Migration Task Details page, you can view the source and target regions and AZs, migration steps, and migration status for the resources involved in the migration task.
Canceling a migration: You can cancel a migration task when it is in the Waiting, Running, or Failed state. However, running resources that entered the migration execution stage cannot be canceled. Canceled migration tasks cannot be recovered. Exercise caution when performing this operation. After a migration task is cancelled, if you still want to migrate the resources, go to the ECS console and create a new migration task.
In the migration task list, locate the task and choose in the Operation column. Alternatively, on the Migration Task Details page, locate the resource and click Cancel in the Operation column. When the task status changes to Cancelled, the task is successfully canceled.
Deleting a task: You can delete a task when it is in the Succeeded, Cancelled, or Deletion failed state.
In the migration task list, locate the task and choose in the Operation column. Alternatively, on the Migration Task Details page, locate the resource and click Delete in the Operation column. When the task disappears from the task list, the task is successfully deleted.
What is your overall rating for this page?
Thank 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