This topic describes how to create a cloud disk by using a snapshot of a system disk or data disk in the ECS console. After you create a cloud disk, you can attach it to any ECS instance in the same zone of the same region. Note that a cloud disk created by a snapshot can only be used as a data disk.
We recommend that you create a cloud disk by using a snapshot in the following scenarios:
- If you need to obtain data from a snapshot, but you do not want to roll back a cloud disk.
- If your instance encounters a system disk failure, you can use an existing system disk snapshot to create a cloud disk. Then, you can attach the cloud disk as a data disk to a healthy ECS instance so that you can continue to read the data of the system disk.
- By default, a cloud disk created by using a snapshot uses the Pay-As-You-Go billing method, and can only be used as a data disk. However, you can change the billing method of the cloud disk. For more information, see What to do next.
- When you access a cloud disk created by a snapshot the first time, the performance is reduced because it takes some time for ECS to read data from OSS and write data to the cloud disk. Therefore, we recommend that you do not use the cloud disk until it has read from all data blocks. For more information, see What is OSS?
- Across all regions, the number of Pay-As-You-Go data disks that you can create cannot be more than five times the number of Pay-As-You-Go instances under your account. For more information, see Limits.
- You cannot merge multiple cloud disks by formatting them because they are independent of each other. Therefore, we recommend that you estimate the number and size of cloud disks required before you create them.
- We recommend that you do not use Logical Volume Manager (LVM) to create logical volumes for multiple cloud disks. This is because a snapshot can only back up data of a single cloud disk. If you use LVM, data discrepancies will occur when you roll back these cloud disks.
A system disk snapshot or a data disk snapshot is created and its ID is obtained. For more information, see Create a snapshot.
You can create a cloud disk through the ECS console or by calling CreateDisk. To create a cloud disk through the ECS console, follow these steps:
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the upper-right corner of the Disks page, click Create Disk.
- Select the target region and zone.
Note If you want to attach the cloud disk to an ECS instance, they must be in the same zone of the same region.
- Complete the following settings:
- Select a disk type: Ultra Disk, ESSD Cloud Disk, or SSD Cloud Disk.
- Click Create from snapshot, and then select a snapshot.
- Set the capacity of the cloud disk. Note that it must be greater than 20 GiB and less
than 32768 GiB.
- If you do not set the capacity of the cloud disk, the system automatically sets a capacity for the new cloud disk according to the cloud disk corresponding to the snapshot.
- If you set a capacity greater than the snapshot size, you must partition the cloud disk before you can use the full capacity.
- If the snapshot size is less than 2048 GiB and the cloud disk to be created is greater than 2048 GiB, you must ensure that the cloud disk corresponding to the snapshot uses GPT partitions (Globally Unique Identifier Partition Table). Otherwise, we recommend that you set the cloud disk size to less than 2048 GiB to avoid data loss that may occur in partitioning. For more information, see Partition and format data disk more than 2 TiB.
- Set the Quantity of cloud disks that you want to create.
- Read and confirm that you agree with the ECS Service Level Agreement by selecting the check box.
- Confirm your settings and the estimated cost displayed.
- Click Preview, and then click Create in the displayed dialog box.
After you complete the payment, go back to the Disks page and refresh the disk list. The new disk is displayed in the Unmounted state.
What to do next
After you create a cloud disk, you can:
- Attach the cloud disk.
- Change the billing method of the cloud disk from Pay-As-You-Go to Subscription.
You can also create a cloud disk by using a system disk snapshot or a data disk snapshot when you create an ECS instance. In this case, the cloud disk uses the same billing method as the ECS instance.