All Products
Search
Document Center

Elastic Compute Service:Roll back disks by using a snapshot-consistent group

Last Updated:Mar 14, 2024

If system faults such as hardware or software issues occur or if data loss or exceptions are caused by accidental operations, you can use a snapshot-consistent group to roll back one or more disks to restore data and ensure data durability and business continuity. This topic describes how to use a snapshot-consistent group to roll back disks.

Prerequisites

Before you use a snapshot-consistent group to roll back disks on an Elastic Compute Service (ECS) instance, make sure that the following requirements are met:

  • A snapshot-consistent group is created. For more information, see Create a snapshot-consistent group.

    Important

    The rollback operation cannot be reversed. If data changes were made to the disk from the time the snapshot-consistent group was created until the disk is rolled back, all these data changes are lost. To prevent data loss caused by accidental operations, we recommend that you create a snapshot-consistent group to back up disk data before you roll back disks.

  • The instance to which the disks to be rolled back are attached is in the Stopped state. If the instance is not in the Stopped state, stop the instance. For more information, see Stop an instance.

    Important

    If the billing method of an instance is pay-as-you-go and the network type of the instance is VPC, you must enable the standard mode for the instance when you stop the instance. If you enable the economical mode for the instance, you may not be able to start the instance after its disk is rolled back.

  • The disks that correspond to the snapshots contained in the snapshot-consistent group have not been released or detached or do not have snapshots being created.

  • The operating system of the instance has not been replaced since the snapshot-consistent group was created.

  • The snapshots of the disks have not been deleted from the snapshot-consistent group. If the snapshot of a disk has been deleted from the snapshot-consistent group, the disk cannot be rolled back by using the snapshot-consistent group. The snapshot-consistent group can be used to roll back only other disks whose snapshots are contained in the group.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Storage & Snapshots > Snapshots.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Click the Snapshot-consistent Groups tab.

  5. Find the snapshot-consistent group that you want to use and click Roll Back in the Actions column.

  6. In the Roll Back dialog box, perform the following operations.

    1. View the usage notes.

    2. In the Disk Snapshot section, select the snapshots of the disks that you want to roll back.

    3. Click Confirm.

      After the selected disks are rolled back, the Rolled back message appears.

Result

After disks are rolled back, you can log on to their associated instances to check whether the disk data has been reverted to the state it was in when the snapshots were created.

References

You can use a snapshot of a disk to roll back the disk. For more information, see Roll back a disk by using a snapshot.