You can migrate an Elastic Compute Service (ECS) instance from a shared host to a dedicated host. This allows you to flexibly deploy your business.

Prerequisites

  • The ECS instance that you want to migrate must meet the following requirements:
    • The ECS instance is stopped. This is because you can migrate an ECS instance only after you stop it. For more information, see Stop an instance.
      Notice If you stop an ECS instance, your business is interrupted. Proceed with caution.
    • The billing method of the ECS instance is pay-as-you-go. You cannot migrate subscription instances or preemptible instances. To migrate subscription instances, you must change the billing method to pay-as-you-go. For more information, see Change the billing method of an instance from subscription to pay-as-you-go.
  • The dedicated host must meet the following requirements:
    • The dedicated host and the ECS instance belong to the same account, region, and zone.
    • The available resources of the dedicated host meet the requirements of the ECS instance. For information about how to view the available resources of a dedicated host, see View the information of a dedicated host.
    • The dedicated host supports the instance family of the ECS instance. For more information, see Dedicated host types.
      Note You cannot migrate an ECS instance attached with a local SSD to a local SSD dedicated host.

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 a region.
  4. Optional:on the Instances page, find the dedicated host on which the ECS instance resides.
    1. In the upper-right corner of the page, click the display-config icon.
      config-icon
    2. Select Dedicated Host, and then click OK.
    3. In the Dedicated Host column, view the host on which the ECS instance resides.
      • If the ID and name of a dedicated host are displayed, the ECS instance is running on the dedicated host.
      • If - is displayed, the ECS instance is running on a shared host.
      host-column
  5. Select the ECS instance that you want to migrate. In the Actions column, choose More > Instance Settings > Modify Host Deployment.
    modify-ddh
  6. In the Modify Host Deployment dialog box, set the required parameters.
    Parameter Description
    Destination Host Select the dedicated host to which you want to migrate the ECS instance from the Destination Host drop-down list.
    Note If no dedicated host meets the requirements to host your ECS instance, the Destination Host drop-down list is empty.
    Target Instance Type You can change the instance type when you migrate the ECS instance. The supported instance types depend on the specifications of the dedicated host. Modify Host Deployment dialog box
    Associate with Host Select whether to associate the instance with the dedicated host.
    • Yes: The ECS instance is associated with the dedicated host. After the instance is stopped and computing resources are released, the instance is still deployed on the dedicated host when it is restarted. If the dedicated host has insufficient available resources, the instance fails to be restarted.
    • No: The ECS instance is not associated with the dedicated host. After the instance is stopped and the computing resources are released, the instance is still deployed on the dedicated host when it is restarted. If the dedicated host has no sufficient available resources, the system selects a dedicated host from the pool of dedicated hosts that allow automatic deployment.
    Hot Migration Valid value: Zero-downtime Migration. The ECS instance that you want to migrate must be in the Stopped state.
  7. Click OK.
    Refresh the Instances page to check whether the ID and name of the destination dedicated host are displayed in the Dedicated Host column. shared-2-ddh