All Products
Search
Document Center

Elastic Compute Service:Snapshot FAQ

Last Updated:Feb 28, 2024

This topic provides answers to some frequently asked questions about Elastic Compute Service (ECS) snapshots.

If I have activated OSS, are snapshots automatically saved to my existing OSS buckets?

No, snapshots are not automatically saved to your existing OSS buckets. Snapshots are stored independently from OSS buckets that you created. You do not need to create OSS buckets for snapshots.

Can I export a custom image that is created from a snapshot to an OSS bucket?

Yes, you can export a custom image to your OSS bucket for future download. For more information, see Export a custom image. However, you cannot directly export custom images to OSS buckets.

What are the differences between OSS resource plans and storage capacity units (SCUs)?

  • OSS resource plans: subscription resource plans, including storage plans and data transfer plans. For more information, see Overview.

  • SCUs: subscription resource plans that can be used to offset bills for multiple pay-as-you-go storage resources, such as disks, OSS buckets, Apsara File Storage NAS file systems, and snapshots. After you purchase an SCU, the SCU is automatically used to offset subsequent bills generated for pay-as-you-go snapshots. For more information, see Storage capacity units.

What billing method is used for snapshots?

Snapshot fees may include snapshot storage fees and data transfer fees for snapshot replication. By default, you are charged snapshot fees based on the pay-as-you-go billing method. SCUs can be used to offset the pay-as-you-go bills of snapshot storage fees. For more information, see Snapshots.

For information about the pricing of snapshots for different Alibaba Cloud regions, visit the Pricing tab on the Elastic Compute Service product page.

Where do I view the prices of snapshots for different Alibaba Cloud regions?

Snapshots are billed on a monthly basis. The price per GB for snapshot storage is the same as that for the OSS Standard storage class. For information about the pricing of snapshots for different Alibaba Cloud regions, visit the Elastic Compute Service product page, click the Pricing tab, and then scroll down to the Snapshot tab. In the Snapshot service fee details section, you can view region-specific snapshot prices.

How do I view snapshot bills?

You can go to User Center to view the bills and consumption details of your ECS resources. For more information, see View billing details.

What is the impact of overdue payments on snapshots?

The Snapshot service is deactivated after your payment becomes overdue. The duration that your payment remains overdue determines whether snapshots are retained. For more information, see the Impacts of overdue payments section in the "Snapshots" topic.

How do I reduce snapshot costs?

  • You can retain an appropriate number of snapshots, delete snapshots that are no longer needed, and cancel necessary snapshot policies to reduce snapshot costs. For more information, see Reduce snapshot fees.

  • We recommend that you purchase SCUs to offset snapshot storage fees.

Does the Snapshot service have a free quota?

Alibaba Cloud provides a free quota of 5 GB for snapshot storage. You are charged for snapshot storage that exceeds the quota. For information about snapshot billing, see Snapshots.

Am I charged for activating the Snapshot service?

No, you are not charged for activating the Snapshot service. After you create snapshots, you are charged for the amount of storage space consumed by the created snapshots.

Am I charged for using automatic snapshot policies?

No, you are not charged for using automatic snapshot policies. However, you are charged for the created snapshots regardless of whether the snapshots are automatically or manually created.

  • For more information about snapshot billing, see Snapshots.

  • For more information about automatic snapshots, see Overview.

Am I charged for using snapshot-consistent groups?

No, you are not charged for using snapshot-consistent groups. However, you are charged for snapshots in snapshot-consistent groups based on the amount of storage space that is consumed by the snapshots.

Are there differences or conflicts between automatic snapshots and manual snapshots?

Automatic and manual snapshots are data files that capture the point-in-time status of disks. However, automatic and manual snapshots have the following differences and limits:

  • Differences in delete operations

    • When you create a manual snapshot, you can select Permanently or specify Retention Period for the snapshot. If you specify Retention Period, the snapshot is automatically released when it expires.

    • An automatic snapshot is created and deleted based on the settings in an automatic snapshot policy.

  • Limits on creation

    • If a snapshot is being manually or automatically created for a disk at a point in time that is designated in the associated automatic snapshot policy, the system cannot create an automatic snapshot based on the policy. An automatic snapshot is created for the disk at the subsequent point in time that is designated in the automatic snapshot policy.

    • If an automatic snapshot is being created for a disk, you cannot create a manual snapshot for the disk. Wait until the automatic snapshot is created.

Can I create snapshots for local disks?

No, snapshots cannot be created for local disks. If you want to improve the availability of applications, we recommend that you implement data redundancy at the application layer or create deployment sets for instances.

I created a snapshot for an encrypted data disk and generated an image based on the snapshot. Why am I unable to share the image? How do I share the image?

To ensure data privacy, you cannot share custom images created from encrypted snapshots. We recommend that you use unencrypted snapshots to create custom images. This way, you can share the images with other users.

How do I view snapshot sizes?

Is the storage space released when I delete files from an ECS instance?

No, the storage space is not released when you delete files from an ECS instance. When you delete files from an ECS instance, only delete tags are added to the headers of the files. The storage space on disks that is occupied by the files is not reduced.

Why is the size of a snapshot larger than the disk capacity that is displayed in the file system?

  • Problem description: After you delete files from an ECS instance and create a snapshot for the instance, the size of the snapshot may not be reduced or may be larger than the disk capacity that is displayed in the file system.

  • Cause: When a snapshot is being created, the system identifies empty blocks to reduce the size of the snapshot. However, specific empty blocks are occupied due to various processes, such as formatting the file system, deleting files, or writing data. In this case, the snapshot size may be larger than the disk capacity that is displayed in the file system. This issue may occur due to one of the following reasons:

    • File system metadata occupies disk space.

    • Logical Block Addressing (LBA) is used to split disks into blocks that have the same sizes. When the file system is initialized, data is written to a large number of blocks. The write operation also occupies disk space.

    • To reduce performance consumption, the file system only adds delete tags to the headers of files instead of deleting the data when you delete the files. The disk cannot detect the delete operation, and the system allocates the data blocks and copies the blocks to the snapshot. In this case, the size of the snapshot exceeds the disk capacity that is displayed in the file system.

    • Kernel-based Virtual Machine (KVM) virtio block and Xen block front modules do not support the TRIM command. The TRIM command informs a disk of which data blocks in the LBA range are no longer used and can be deleted. In this case, the disk cannot determine whether the data can be deleted.

What is the relationship between a file system and a disk or snapshot?

You can create a file system in a disk partition. The file system manages disk space. These management tasks are converted into I/O requests in the disk. The disk records the status of data blocks and copies data to OSS buckets. Snapshots are created in this process. The following figure shows the relationship between a file system and a snapshot.

image
Note

The preceding figure shows that if data is written to data blocks, the snapshot records the blocks regardless of whether the related files are deleted from the disk. In the file system, only tags are added to the headers of the files when you delete files, but the disk space used by the files is not released on the disk.

How do I prevent snapshots from being deleted by Alibaba Cloud?

  • Alibaba Cloud does not delete manual snapshots regardless of whether the corresponding disks or instances are released.

  • To prevent automatic snapshots from being deleted, you can set the Retention Period parameter to Until Deleted in the corresponding automatic snapshot policy. When the maximum number of automatic snapshots allowed for a disk is reached, the earliest snapshot is deleted when a new snapshot is created. For more information, see Modify an automatic snapshot policy. For information about the snapshot quota, see Limits.

How do I stop the billing of snapshots?

If you no longer need snapshots, you can delete them to prevent further charges.

  1. Delete all snapshots, including automatic snapshots, manual snapshots, and snapshot copies. For more information, see Delete a snapshot.

  2. After existing snapshots are deleted, check whether automatic snapshot policies are being applied. If automatic snapshot policies are being applied, delete the policies to ensure that no snapshots are automatically created. For more information, see Delete an automatic snapshot policy.

An automatic snapshot is created for a disk of an instance. Will the snapshot be deleted after the system disk of the instance is replaced, the instance expires, or the disk is released?

  • If you select Delete Automatic Snapshots While Releasing Disk for the automatic snapshot policy, automatic snapshots are deleted when the corresponding instance or disk is released.

  • If you do not select Delete Automatic Snapshots While Releasing Disk for the automatic snapshot policy, automatic snapshots are retained for the period of time specified in the automatic snapshot policy. You can modify the automatic snapshot policy. For more information, see Modify an automatic snapshot policy.

How do I delete snapshots that were used to create images and disks?

  • You can delete snapshots that were used to create disks. After a snapshot is deleted, you cannot perform operations that require the original snapshot data, such as re-initializing the system disk. For more information, see Re-initialize a system disk.

  • If you use a snapshot to create custom images, you must delete the custom images before you can delete the snapshot.

  • You can delete images that were used to create instances. After an image is deleted, you cannot perform operations that require the original snapshot data, such as re-initializing the system disk. For more information, see Re-initialize a system disk.

If I use an automatic snapshot to create a custom image or disk, does the automatic snapshot policy fail to be executed?

No, the automatic snapshot policy can be executed.

Can I configure multiple automatic snapshot policies for a disk?

No, you cannot configure multiple automatic snapshot policies for a disk. For more information, see Create an automatic snapshot policy.

If I set the Retention Period parameter to Until Deleted when I create an automatic snapshot policy, can I delete the snapshots created based on the policy?

Yes, you can delete snapshots created based on the policy. You can also modify the retention period of snapshots created based on the policy. For more information, see Modify an automatic snapshot policy.

How do I prevent data loss caused by accidental operations?

You can create snapshots to back up data before you perform high-risk operations. For example, you can create snapshots if you want to modify critical system files, migrate instances from the classic network to a virtual private cloud (VPC), back up data, or restore an instance that is accidentally released. You can also create snapshots to recover from network attacks, change operating systems, or provide data support for a production environment. If an error occurs, you can use snapshots to roll back disks to reduce risks. For more information, see Create a snapshot for a disk and Roll back a disk by using a snapshot.

After I replace the system disk of an instance, can I use a snapshot of the original system disk to roll back the new system disk?

No, you cannot use a snapshot of the original system disk to roll back the new system disk.

I created Instance A in the China (Hangzhou) region and created snapshots for the data disks of Instance A. After Instance A expired and was released, I created Instance B in the China (Hangzhou) region. Can I use the data disk snapshots of Instance A to restore Instance A?

No, you cannot use the data disk snapshots of Instance A to restore Instance A after Instance A is released. If you want to use disk snapshots to restore an instance, make sure that the instance for which the snapshots are created is not released. To restore the data of Instance A, you can use the data disk snapshots of Instance A to create disks and then attach the disks to Instance B. For more information, see Create a disk from a snapshot and Attach a data disk.

Why am I unable to use snapshots of an instance to roll back the disks of the instance?

You can check the snapshots based on the returned error message. For information about the common issues and corresponding solutions, see FAQ.

What are the differences and connections between snapshots and images?

Snapshots and images are related as follows:

  • When you create a custom image from an ECS instance, ECS creates a snapshot for the system disk and each data disk on the instance. Then, all created snapshots constitute a custom image. For more information, see Create a custom image from an instance.

  • When you delete a custom image, you can specify whether to delete the snapshots contained in the image. When you delete a snapshot, ECS checks whether the snapshot is associated with an image. If the snapshot is associated with an image, delete the image before you delete the snapshot. For more information, see Delete a custom image and Delete a snapshot.

  • You can use a system disk snapshot to create a custom image. For more information, see Create a custom image from a snapshot.

The following table describes the differences between images and snapshots.

Item

Image

Snapshot

Nature

An image provides the software configuration and data that are required to create an ECS instance, such as an operating system, initialization data of applications, and pre-installed software.

A snapshot is a point-in-time backup of disk data.

Use scenario

  • Quickly deploy environments. You can use an image to create an ECS instance with a specific environment.

  • Batch deploy environments. You can create a custom image either from an ECS instance that is deployed with specific environments or from disk snapshots. Then, you can use the custom image to batch create multiple identical ECS instances.

  • Replace operating systems. You can use an image to replace the operating system (system disk) of an ECS instance.

  • Back up disk data on a regular basis. You can use automatic snapshot policies to automatically create snapshots of disks to back up disk data on a daily, weekly, or monthly basis.

  • Back up disk data contingently. Before you perform critical operations such as updating operating systems or resizing disks, you can create snapshots to back up disk data.

Feature

  • Images can be used to create ECS instances, but snapshots cannot.

  • An image can contain the data of only the system disk on an ECS instance or the data of both the system disk and data disks on an ECS instance.

  • An image can be used to replace the operating system (system disk) of an instance regardless of whether the image is associated with the instance.

  • Images can be copied and shared across regions or accounts. The image copies and shared images can be used to create identical ECS instances in the destination regions and accounts.

  • Snapshots can back up the data of system disks and data disks on ECS instances.

  • Snapshots can be used to restore data to disks on existing ECS instances.

  • Snapshots can be copied to back up disk data across regions.

How do I migrate snapshots from one Alibaba Cloud account to another account?

Snapshots cannot be migrated across Alibaba Cloud accounts. If you want to migrate a data disk snapshot from Account A to Account B, perform the following steps to create an image based on the snapshot and then share the image with Account B:

  1. Create an image from the original instance to which the data disk is attached. For more information, see Create a custom image from a snapshot.

  2. Share the image with Account B. For more information, see Share a custom image.

  3. Use the image to create a pay-as-you-go instance in Account B. For more information, see Create an ECS instance by using a custom image.

  4. Create a snapshot for a data disk of the new instance. For more information, see Create a snapshot for a disk.

  5. Release the new instance. For more information, see Release an instance.

Can I use a data disk snapshot to create a custom image?

No, you cannot use data disk snapshots to create custom images. You can use only system disk snapshots to create custom images.

Can I download or export snapshots to on-premises devices?

No, you cannot download or export snapshots to on-premises devices.

You can create custom images from snapshots and then export the images. Specific limits apply when you export custom images. Before you export the custom images created from snapshots, check whether the images meet the requirements that are described in the Limits section of the "Export a custom image" topic. For more information, see Create a custom image from a snapshot and Export a custom image.

You can also use the OOS template named ACS-ECS-BulkyCreateAndExportImage to create custom images based on one or more instances in the corresponding region and export the images to OSS buckets. Then, you can download the images in the OSS console.

Why does the "RequestId: xxx" error message appear when I delete a snapshot in a snapshot chain?

Your snapshot was used to create a custom image. Before you delete the snapshot, you must delete the custom image. For more information, see Delete a custom image.