Migrate an ECS instance to a DDH

更新时间:
复制 MD 格式

You can migrate an ECS instance from a shared host to a dedicated host (DDH) to gain deployment flexibility and exclusive access to the host's physical resources.

Prerequisites

  • The ECS instance that you want to migrate must meet the following requirements:

    • Only stopped instances can be migrated. Ensure that the ECS instance is in the stopped state. For more information, see Stop an instance.

      Warning

      Stopping an instance interrupts your business workloads. Proceed with caution.

    • The instance must use the pay-as-you-go billing method and cannot be a preemptible instance. A subscription instance must first be converted to a pay-as-you-go instance. For more information, see Convert a subscription instance to a pay-as-you-go instance.

  • The destination DDH must meet the following requirements:

    • The DDH must be in the same account, region, and availability zone as the ECS instance.
    • The DDH must have sufficient available resources for the ECS instance. For information about how to view the available resources of a DDH, see View and export DDH information.
    • The required instance families are supported. For more information, see Specifications.

      Note
      • ECS instances of local instance types cannot be migrated to DDHs with local SSDs.

      • A DDH with a custom specification can be migrated only to another DDH with a custom specification.

Billing

After you migrate an ECS instance from a shared host to a DDH, you are no longer charged for the instance's compute resources (vCPUs and memory). These costs are included in the DDH fees. For more information, see Billing of ECS resources on DDHs.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group of the resource that you want to manage. Region

  4. Find the ECS instance that you want to migrate. Then, in the Actions column, choose image.png > Instance Settings > Modify Host Deployment.

  5. In the Change Host dialog box, configure the following parameters.

    Parameter

    Description

    Destination host

    Select the DDH to which you want to migrate the ECS instance.

    Note

    If no DDHs in your account meet the migration requirements, this list is empty.

    Target instance type

    You can change the instance type during the migration. The available instance types are determined by the destination DDH.

    Associate with host

    Select whether to pin the ECS instance to the destination DDH.

    • Yes: Pins the instance to the destination DDH. When a pinned instance is stopped, it can be restarted only on this DDH. If this DDH has insufficient available resources, the instance fails to start.

    • No: Does not pin the instance to the destination DDH. When a non-pinned instance is stopped, the system first attempts to restart it on this DDH. If the DDH has insufficient resources, the system automatically places the instance on another suitable DDH that allows automatic deployment.

    Migration method

    Select Stop and Migrate. This method requires the ECS instance to be in the stopped state.

  6. Click OK.

    Refresh the Instance page to check whether the ID and name of the destination dedicated host are displayed in the Dedicated Host column.

    image.png