If system faults occur, such as hardware or software issues, 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 based on the instance to back up disk data. For more information, see Create a snapshot-consistent group.
ImportantThe rollback operation cannot be reversed. If changes are made to data on the disk from the time the snapshot-consistent group was created until the disk is rolled back, all 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.
ImportantIf an instance uses the pay-as-you-go billing method and resides in a VPC, you must enable the standard mode when you stop the instance. If you enable the economical mode for the instance, you may be unable to start the instance after you roll back its disks.
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
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Click the Snapshot-consistent Groups tab.
Find the snapshot-consistent group that you want to use and click Roll Back in the Actions column.
In the Roll Back dialog box, perform the following operations:
View the notes.
In the Disk Snapshot section, select the snapshots of the disks that you want to roll back.
Select Start Instance After Disk Rollback based on your business requirements.
Click Confirm.
After the selected disks are rolled back, the Rolled back message is displayed.
After disks are rolled back, you can log on to the associated instances to check whether the disk data is reverted to the state 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.