This topic describes how to redeploy an Elastic Compute Service (ECS) instance equipped with local SSDs or HDDs in the ECS console. After an ECS instance is redeployed, the instance is migrated to a different physical machine.

Prerequisites

  • Operations described in this topic are applicable only to scenarios where system events occur on ECS instances equipped with local disks.
  • Before you redeploy an instance equipped with local disks, the following operations are performed:
    1. Connect to an ECS instance.

      For more information about connection methods, see Connection methods.

    2. Optional:(Optional) The read/write operations on the local disks are isolated at the application layer.
    3. If the instance runs a Linux operating system, the nofail parameter is added to the /etc/fstab file of the instance for all data disks.

      In this example, the nofail parameter is added for the /dev/vdd data disk:

      /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 Device value returned by the DescribeInstanceHistoryEvents operation.
      /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 local disk, which can be queried by using the blkid /dev/vdd1 command.
      barrier=0 The mount option used to disable barriers in the file system.
      nofail Indicates that the booting sequence of the ECS instance is not interrupted even if the local disk specified in the file system does not exist.

Background information

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 equipped with local SSDs or HDDs are re-initialized 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 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 a Linux instance that has data disks attached is redeployed, you can perform the following operations to re-synchronize data and restore business based on your needs:
  • If the instance has cloud data disks attached and is not configured to have the cloud data disks automatically attached on instance startup, you must connect to the instance after it is redeployed and run the following command to re-attach the cloud data disks:
    mount <Data disk partition> <Mount point>
  • If the instance has local data disks attached, you must partition and format the local data disks. For more information, see Partition and format a data disk on a Linux instance.