After an instance snapshot is created, you can use the instance snapshot to roll back one or more disks in the event of system failures or accidental changes.

Prerequisites

Before you roll back a disk by using an instance snapshot, take note of the following items:
  • An instance snapshot is created. For more information, see Create snapshots for multiple disks together by creating an instance snapshot.
    Notice The rollback operation is irreversible. After a disk is rolled back, all data changes made from the time when the instance snapshot was created to the time when the disk is rolled back is lost. To avoid data loss caused by accidental changes, we recommend that you create an instance snapshot for the disk before you roll back the disk.
  • The instance is in the Stopped state. For more information, see Stop an instance.
    Notice If the billing method of an instances is pay-as-you-go and the network type of the instances 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 the disk is rolled back.
  • The disk is not released and remains attached to the instance.
  • The operating system of the system disk remains unchanged after the instance snapshot is created.
  • Snapshots of the disk are not deleted. If the snapshots of a disk are deleted after the instance snapshot is created, the disk cannot be rolled back. Only disks whose snapshots are not deleted can be rolled back.

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 a region.
  4. Click the Instance Snapshots tab.
  5. Find the instance snapshot and click Rollback instance in the Actions column.
  6. In the Rollback instance dialog box, select the disks that you want to roll back and perform the rollback.
    Rollback instance
    1. View the precautions about instance rollback.
    2. Optional:If you want to start the instance after the rollback, select Start the instance immediately after Rollback.
      If you select this option, the instance automatically starts after the rollback. If you do not select this option, you must manually start the instance after the rollback.
    3. In the Cloud disk snapshot section, select the disks that you want to roll back.
    4. Click OK Rollback.

Result

After the disks are rolled back, you can log on to the instance to check whether data on the disks is consistent with that of the snapshot.