This topic describes how to redeploy an ECS instance that is equipped with local SSDs or HDDs through the ECS console. After an ECS instance is redeployed, the instance is migrated to a different physical machine.

Prerequisites

  • This topic is applicable only to resolving system events on ECS instances equipped with local disks.
  • Before you redeploy an instance, perform the following steps:
    1. Remotely connect to an ECS instance. For more information, see Overview.
    2. (Optional) Isolate the read/write operations of the local disk at the application layer.
    3. For Linux instances: Add the nofail parameter to all data disks in the /etc/fstab file of the ECS instance.

      Example: Add the nofail parameter to the data disk /dev/vdd:

      /dev/vdd /mnt/vdd ext4 defaults,barrier=0,nofail 0 0
      Parameter Description
      /dev/vdd The device name of the local disk, which is the value of the Device parameter returned by DescribeInstanceHistoryEvents.
      /mnt/vdd The mount point of the local disk, which can be queried by using the mount | grep "/dev/vdd" command.
      ext4 The file system type of the instance, which can be queried by using the blkid /dev/vdd1 command.
      barrier=0 The mount option to disable barriers in the file system.
      nofail Indicates that the booting sequence of the ECS instance will not be interrupted even if the local disk specified in the file system does not exist.

Background information

The system events that require local disks to be redeployed include Instance Redeployment Due to System Maintenance (SystemMaintenance.Redeploy) and Instance Redeployment Due to System Error (SystemFailure.Redeploy). For more information, see Overview of system events on ECS instances equipped with local disks.

Notice After an instance is redeployed, the instance is migrated to a different physical machine. The data disks of the instance using local SSDs or HDDs are reinitialized and the data on the local disks is cleared.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Events.
  3. On the Pending Events page, click the System Events tab. Find the System O&M tab. In the event list, find the ECS instance that has an Instance Redeployment Due to System Maintenance or Instance Redeployment Due to System Error event, and click Redeploy in the Actions column.
  4. In the Redeploy Instance dialog box, confirm the impact of redeployment and click Redeploy.

What to do next

After the instance is redeployed, you must resynchronize data to restore services as soon as possible.
  1. If a pay-as-you-go disk is attached to the ECS instance before you redeploy the instance, you must reattach data disks. For more information, see Attach a data disk.
  2. For Linux instances, you must format data disks. For more information, see Format a data disk for a Linux-based ECS instance.