In Alibaba Cloud, you can resize the disk volume of a system disk or a data disk at any time.

Scenarios

You can resize the volume of a disk to meet the needs of different scenarios, including the need to:

Procedures for disk resizing

The following table describes the process of how to resize a cloud disk based on its current status.

Cloud disk status Cloud disk that is not attached or partitioned Cloud disk that is attached but is not partitioned Cloud disk that is attached and partitioned
Resizing procedure
  1. Use the ECS console or call the API action ResizeDisk to resize the cloud disk.
  2. Use the ECS console or call the API action AttachDisk to attach the cloud disk.
  3. Partition and format the cloud disk:
  1. Use the ECS console or call the API action ResizeDisk to resize the cloud disk.
  2. Use the ECS console or call the API action RebootInstance to restart the instance.
  3. Partition and format the cloud disk:
  1. Use the ECS console or call the API action ResizeDisk to resize the cloud disk.
  2. Use the ECS console or call the API action RebootInstance to restart the instance.
  3. Extend the partitions of the attached system disk or data disk:

Limits of resizing a system disk

When you resize a system disk, the new size of the system disk must be greater than its current size, but must be less than or equal to 500 GiB. The following table describes the limits of system disk resizing for different images.

Image Limit of system disk resizing (GiB)
Linux (excluding CoreOS) + FreeBSD [max{20, current size of the system disk}, 500]
CoreOS [max{30, current size of the system disk}, 500]
Windows [max{40, current size of the system disk}, 500]

For example, if the system disk size of a CentOS instance is 35 GiB, it must be greater than 35 GiB and must be less than or equal to 500 GiB after being resized.

Upper limit of data disk resizing

After being resized, the new size of the data disk must be greater than its current size. The following table describes the upper limit of data disk resizing for different cloud disk.

Cloud disk type Current size (GiB) Upper limit of data disk resizing (GiB)
Basic Cloud Disk < 2,000 2,000
SSD Cloud Disk, Ultra Disk, or ESSD Cloud Disk < 2,048 2,048
SSD Cloud Disk, Ultra Disk, or ESSD Cloud Disk ≥ 2,048 N/A