Updated on 2024-12-19 GMT+08:00

Configuring a Disaster Recovery Gateway

Scenarios

Before using a gateway and disaster recovery site servers for the first time, you need to configure the gateway.

Prerequisites

  • The recommended ECS specifications to deploy the gateway are 8 vCPUs and 16 GB memory. Only Linux is supported. Huawei Cloud EulerOS 2.0 and EulerOS 2.9\2.10 are recommended, or see Supported OSs.
  • The region, AZ, and VPC of the gateway ECS must be the same as those of the production site servers.
  • It is recommended that you deploy the disaster recovery gateway and proxy client in the same security group and only allow ECSs within the security group to communication with each other. For details, see Security Group Configuration Examples.
  • For security purposes, ensure that the AK/SK pair used for configuring the gateway belongs to the account that is using SDRS. Or, protected instances cannot be created.
  • In 24.6.0 or an earlier version, ensure that you have upgraded the SDRS software on the gateway and production site servers to 24.9.0 or later and reconfigured the gateway according to the "Procedure for 24.9.0 or Later" part in this section.

In the following example, sdrs_linux_amd64_24.6.0.20240627203949.tar.gz is the package (24.6.0) used to configure the gateway.

  1. Run the following command in the /opt/cloud/sdrs directory to configure the gateway:

    sh register_gateway.sh

    Figure 1 Executing the script
    1. In cross-AZ scenarios, configure the following parameters:
      Figure 2 Script execution example in the cross-AZ scenario
      Table 1 Parameters for configuring cross-AZ disaster recovery

      Parameter

      Description

      How to Obtain

      Example Value

      DR Scene

      Replication

      • 0: IDC-to-cloud
      • 1: Cross-AZ
      • 2: Cross-region
      • 3: IDC VMware-to-cloud

      1

      source platform type

      Type of the production site

      • 0: Huawei public cloud
      • 1: Huawei private cloud
      • 2: VMware platform

      0

      source project id

      Project ID of the production region

      Log in to the console, select the production region, and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      source region code

      Production region ID

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      cn-east-2

      source ecs endpoint

      ECS endpoint in the production region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      source evs endpoint

      EVS endpoint in the production region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      source iam ak

      Access key ID in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      RZSAMHULWKKE71N0XHUT

      source iam sk

      Secret access key in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      K7bXplAT0pEpy4SAiN2fHUwEtxvgmK3IqyhqnMTA

      target sdrs endpoint

      SDRS endpoint in the disaster recovery region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      sdrs.cn-east-2.myhuaweicloud.com

    2. In cross-region scenarios, configure the following parameters:
      Figure 3 Script execution example in the cross-region scenario
      Table 2 Parameters for configuring cross-region disaster recovery

      Parameter

      Description

      How to Obtain

      Example Value

      DR Scene

      Replication

      • 0: IDC-to-cloud
      • 1: Cross-AZ
      • 2: Cross-region
      • 3: IDC VMware-to-cloud

      2

      source platform type

      Type of the production site

      • 0: Huawei public cloud
      • 1: Huawei private cloud
      • 2: VMware platform

      0

      source project id

      Project ID of the production region

      Log in to the console and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      source region code

      ID of the current region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      cn-east-2

      source ecs endpoint

      ECS endpoint in the production region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      source evs endpoint

      EVS endpoint in the production region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      source iam ak

      Access key ID in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      source iam sk

      Secret access key in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      target sdrs endpoint

      SDRS endpoint in the disaster recovery region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      sdrs.cn-east-2.myhuaweicloud.com

      target platform type

      Type of the disaster recovery site

      • 0: Huawei public cloud
      • 1: Huawei private cloud

      0

      target project id

      Project ID of the disaster recovery region

      Log in to the console and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      target iam ak

      Access key ID in the disaster recovery region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      target iam sk

      Secret access key in the disaster recovery region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

    3. In IDC-to-cloud scenarios, configure the following parameters:
      Figure 4 Script execution example in the IDC-to-cloud scenario

      Table 3 Parameters for configuring IDC-to-cloud disaster recovery

      Parameter

      Description

      How to Obtain

      Example Value

      DR Scene

      Type

      • 0: IDC-to-cloud
      • 1: Cross-AZ
      • 2: Cross-region
      • 3: IDC VMware-to-cloud

      3

      source platform type

      Type of the production site

      • 0: Huawei public cloud
      • 1: Huawei private cloud
      • 2: VMware platform

      2

      source project id

      Project ID of the production region

      Log in to the console and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      source region code

      Production region ID

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      cn-east-2

      source ecs endpoint

      ECS endpoint in the production region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      source evs endpoint

      EVS endpoint in the production region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      source iam ak

      Access key ID in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      source iam sk

      Secret access key in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      target sdrs endpoint

      SDRS endpoint in the disaster recovery region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      sdrs.cn-east-2.myhuaweicloud.com

In the following example, sdrs_xxxx_24.9.0.xxxx.tar.gz is the package (24.9.0) used to configure the gateway.

  1. Run the following command in the /opt/cloud/sdrs directory to configure the gateway:

    sh register_gateway.sh

    Figure 5 Executing the script

    1. In cross-AZ scenarios, configure the following parameters:
      Figure 6 Script execution example in the cross-AZ scenario

      Table 4 Parameters for configuring cross-AZ disaster recovery

      Parameter

      Description

      How to Obtain

      Example Value

      DR Scene

      Replication

      • 0: IDC-to-cloud
      • 1: Cross-AZ
      • 2: Cross-region
      • 3: IDC VMware-to-cloud

      1

      source platform type

      Type of the production site

      • 0: Huawei public cloud
      • 1: Huawei private cloud

      0

      source project id

      Project ID of the production region

      Log in to the console and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      source ecs endpoint

      ECS endpoint in the production region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      source evs endpoint

      EVS endpoint in the production region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      source iam ak

      Access key ID in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      RZSAMHULWKKE71N0XHUT

      source iam sk

      Secret access key in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      K7bXplAT0pEpy4SAiN2fHUwEtxvgmK3IqyhqnMTA

      target sdrs endpoint

      SDRS endpoint in the disaster recovery region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      sdrs.cn-east-2.myhuaweicloud.com

    2. In cross-region scenarios, configure the following parameters:
      Figure 7 Script execution example in the cross-region scenario

      Table 5 Parameters for configuring cross-region disaster recovery

      Parameter

      Description

      How to Obtain

      Example Value

      DR Scene

      Replication

      • 0: IDC-to-cloud
      • 1: Cross-AZ
      • 2: Cross-region
      • 3: IDC VMware-to-cloud

      2

      source platform type

      Type of the production site

      • 0: Huawei public cloud
      • 1: Huawei private cloud

      0

      source project id

      Project ID of the production region

      Log in to the console, select the production region, and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      source ecs endpoint

      ECS endpoint in the production region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      source evs endpoint

      EVS endpoint in the production region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      source iam ak

      Access key ID in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      source iam sk

      Secret access key in the production region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      target sdrs endpoint

      SDRS endpoint in the disaster recovery region

      Obtain the SDRS endpoint by referring to SDRS Endpoints.

      sdrs.cn-east-2.myhuaweicloud.com

      target platform type

      Type of the disaster recovery site

      • 0: Huawei public cloud
      • 1: Huawei private cloud

      0

      target project id

      Project ID of the disaster recovery region

      Log in to the console, select the disaster recovery region, and choose My Credentials > API Credentials to view the project ID.

      51af777371904892a49a0c3e3e53de44

      target ecs endpoint

      ECS endpoint in the disaster recovery region

      Obtain the ECS endpoint by referring to ECS Endpoints.

      -

      target evs endpoint

      EVS endpoint in the disaster recovery region

      Obtain the EVS endpoint by referring to EVS Endpoints.

      -

      target iam ak

      Access key ID in the disaster recovery region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

      target iam sk

      Secret access key in the disaster recovery region

      Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

      -

    3. In IDC-to-cloud scenarios, configure the following parameters:
      • V2C scenario
        Figure 8 Script execution example in the IDC-to-cloud scenario (V2C)

        Table 6 Parameters for configuring IDC-to-cloud disaster recovery

        Parameter

        Description

        How to Obtain

        Example Value

        DR Scene

        Type

        • 0: IDC-to-cloud
        • 1: Cross-AZ
        • 2: Cross-region
        • 3: IDC VMware-to-cloud

        3

        source platform type

        Type of the production site

        • 0: VMware platform

        0

        target sdrs endpoint

        SDRS endpoint in the disaster recovery region

        Obtain the SDRS endpoint by referring to SDRS Endpoints.

        sdrs.cn-east-2.myhuaweicloud.com

        target platform type

        Type of the disaster recovery site

        • 0: Huawei public cloud
        • 1: Huawei private cloud

        0

        target project id

        Project ID of the disaster recovery region

        Log in to the console, select the disaster recovery region, and choose My Credentials > API Credentials to view the project ID.

        51af777371904892a49a0c3e3e53de44

        target ecs endpoint

        ECS endpoint in the disaster recovery region

        Obtain the ECS endpoint by referring to ECS Endpoints.

        -

        target evs endpoint

        EVS endpoint in the disaster recovery region

        Obtain the EVS endpoint by referring to EVS Endpoints.

        -

        target iam ak

        Access key ID in the disaster recovery region

        Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

        -

        target iam sk

        Secret access key in the disaster recovery region

        Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

        -

      • H2C scenario
        Figure 9 Script execution example in the IDC-to-cloud scenario (H2C)

        Table 7 Parameters for configuring IDC-to-cloud disaster recovery (H2C)

        Parameter

        Description

        How to Obtain

        Example Value

        DR Scene

        Replication

        • 0: IDC-to-cloud
        • 1: Cross-AZ
        • 2: Cross-region
        • 3: IDC VMware-to-cloud

        0

        source platform type

        Type of the production site

        • 0: Huawei public cloud
        • 1: Huawei private cloud

        0

        source project id

        Project ID of the production region

        Log in to the console, select the production region, and choose My Credentials > API Credentials to view the project ID.

        51af777371904892a49a0c3e3e53de44

        source ecs endpoint

        ECS endpoint in the production region

        Obtain the ECS endpoint by referring to ECS Endpoints.

        -

        source evs endpoint

        EVS endpoint in the production region

        Obtain the EVS endpoint by referring to EVS Endpoints.

        -

        source iam ak

        Access key ID in the production region

        Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

        -

        source iam sk

        Secret access key in the production region

        -

        target sdrs endpoint

        SDRS endpoint in the disaster recovery region

        Obtain the SDRS endpoint by referring to SDRS Endpoints.

        sdrs.cn-east-2.myhuaweicloud.com

        target platform type

        Type of the disaster recovery site

        • 0: Huawei public cloud
        • 1: Huawei private cloud

        0

        target project id

        Project ID of the disaster recovery region

        Log in to the console, select the disaster recovery region, and choose My Credentials > API Credentials to view the project ID.

        51af777371904892a49a0c3e3e53de44

        target ecs endpoint

        ECS endpoint in the disaster recovery region

        Obtain the ECS endpoint by referring to ECS Endpoints.

        -

        target evs endpoint

        EVS endpoint in the disaster recovery region

        Obtain the EVS endpoint by referring to EVS Endpoints.

        -

        target iam ak

        Access key ID in the disaster recovery region

        Obtain AK/SK by referring to How Do I Obtain an Access Key (AK/SK)?

        -

        target iam sk

        Secret access key in the disaster recovery region

        -