Snapshots are used to back up the data of disks at one or more points in time. Snapshots ensure service security and make application deployment more efficient.
- Snapshot 1 contains all the data on the disk at the point in time when the snapshot is created.
- Snapshot 2 contains only Data Blocks B1 and C1, whose data has changed since Snapshot 1. Data Blocks A and D are referenced from Snapshot 1.
- Snapshot 3 contains only Data Block B2 whose data has changed since Snapshot 2. Data Blocks A and D are referenced from Snapshot 1, and Data Block C1 is referenced from Snapshot 2.
- When you roll the disk back to the status of Snapshot 3, the Roll Back Disk feature copies Data Blocks A, B2, C1, and D to the disk.
- If you delete Snapshot 2, Data Block B1 is deleted, but Data Block C1 is retained because it is referenced by Snapshot 3. When you roll the disk back to the status of Snapshot 3, Data Block C1 can still be restored.
A snapshot chain contains all of the snapshots of a specific disk. Each disk has a snapshot chain. A disk and its snapshot chain have the same ID.
- Snapshot size: the size of storage space occupied by all snapshots in the snapshot
Note You are charged based on the snapshot size. You can use the snapshot chain to check the snapshot size of a disk.
- Snapshot quota: Each disk can have up to 256 manual snapshots and 1,000 automatic
snapshots. For more information, see the "Snapshot limits" section in Limits.
Note When the snapshot quota is reached, you must free up storage space to create more snapshots. For automatic snapshots, the system automatically deletes the earliest automatic snapshot to free up storage space. For manual snapshots, you must manually delete snapshots to free up storage space. For more information, see Apply or disable an automatic snapshot policy and Delete a snapshot.
- Node: Each node in the snapshot chain represents a snapshot of the source disk. Each snapshot chain can have up to 1,256 nodes, which is equal to the sum of quotas of manual snapshots and automatic snapshots.
- Alibaba Cloud ECS analyzes all data blocks in Snapshot S1, and deletes the data blocks that are not referenced by other snapshots in the snapshot chain.
- Alibaba Cloud ECS adds the data blocks of Snapshot S1 that are referenced by other
snapshots in the snapshot chain to Snapshot S2. The remaining snapshots in the snapshot
chain record the information of 10 data blocks:
- Six data blocks from Snapshot S0
- Two data blocks from Snapshot S1
- Two data blocks from Snapshot S2