Help Center/ Migration Center/ Best Practices/ Storage Migration/ Logging In to the ECS Using CloudShell to Check Migration Management Node Logs
Updated on 2025-12-02 GMT+08:00

Logging In to the ECS Using CloudShell to Check Migration Management Node Logs

If a migration task is abnormal, you can log in to the ECS of the migration cluster to check the run logs of the migration management node. In this way, you can analyze the cause of the failure according to the error or warning information. This section describes how to log in to an ECS using CloudShell. Obtain the permission to open ports before preceding.

Prerequisites

You have created a cluster.

You have obtained the key pair bound to the cluster. For details, see Binding a Key Pair to an ECS.

Procedure

  1. Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
  2. In the navigation pane on the left, choose Other > Migration Clusters.
  3. In the cluster list, locate a migration cluster and click Manage in the Operation column.
  4. Obtains the instance ID.

  5. Click on the left. In the service list, choose Compute > Elastic Cloud Server.
  6. Click the ECS mentioned in 4 to check its details.
  7. Choose Security Groups > Manage Rule.
  8. Click Fast-Add Rule. On the displayed page, select the ports to be opened, such as port 22, port 80, and port 443. For details, see Adding a Security Group Rule.

    Table 1

    Parameter

    Description

    Remote Login and Ping

    SSH (22) must be selected. Select other ports as required.

    Source

    Used to match the source of an external request.

    IP address: You can specify multiple IP addresses separated by commas (,). Each IP address represents a different security group rule.
    • Single IP address: IP address/mask

      Example IPv4 address: 192.168.10.10/32

      Example IPv6 address: 2002:50::44/128

    • IP address range in CIDR notation: IP address/mask

      Example IPv4 address range: 192.168.52.0/24

      Example IPv6 address range: 2407:c080:802:469::/64

    • Any IP addresses

      0.0.0.0/0 represents all IPv4 addresses.

      ::/0 represents all IPv6 addresses.

  9. Save the configurations, go back to the ECS console, and click Remote Login in the upper-right corner.

  10. In the displayed Logging In to a Linux ECS dialog box, click CloudShell-based Login (Default Port: 22).
  11. Go to the page for remotely connecting to the server. Set Certificate-based for Auth-Type and upload the key pair.

  12. Click Connect.

    If the message Welcome to Huawei Cloud Service is displayed, you have logged in to the ECS.

    Figure 1 Operation result

  13. Perform the following operations to check the logs.

    • Node Types and Deployment - Management Nodes Run the following commands to go to the log folder and check run logs.
      cd /opt/cloud/oms-task-management/logs/oms-task-management-service
      cat run.log
    • Nodes can be migrated to a custom node pool. Run the following commands to go to the log folder and check run logs.
      cd /opt/cloud/agent/logs/execution-service
      cat run.log

Helpful Links

To check the file directory, see Connecting to the File Directory Through SFTP.