Overview

Last updated:2021-07-01 14:37:12

As business rapidly grows, the capacity of an EBS volume may not meet the higher requirements brought by the growth of business and application data. In this case, you can expand the capacity of the EBS volume. EBS allows you to expand the capacity of an EBS volume in multiple ways.

Scenarios

Both system disks and data disks support capacity expansion. The following table describes the entries that allow you to expand the capacity of an EBS volume.

EBS volume type
Capacity expansion entry
System disk Expand the capacity in the KEC console
Expand the capacity in the EBS console
Data disk Expand the capacity in the EBS console
Expand the capacity by calling an API operation

Capacity expansion methods

The following table describes the methods that you can use to expand the capacity of an EBS volume. You can choose one of the methods based on their limits and the status of the EBS volume.

Capacity expansion method
Procedure
Limit
Online capacity expansion Expand the capacity of an EBS volume online (Linux)
Expand the capacity of an EBS volume online (Windows)
After you expand the capacity of an EBS volume by using this method, you do not need to restart the KEC instance to which the EBS volume is attached.
Before an online capacity expansion on a system disk or data disk, make sure that the KEC instance to which the EBS volume is attached is running. For more information about other limits, see the corresponding topics.
Offline capacity expansion Expand the capacity of an EBS volume offline (Linux)
Expand the capacity of an EBS volume offline (Windows)
After an offline capacity expansion, you must restart the KEC instance to which the EBS volume is attached. If the EBS volume is a data disk, you can also detach the data disk from the KEC instance, expand the capacity of the data disk, and then reattach the data disk to the KEC instance. In this case, you do not need to restart the KEC instance. However, the drive letter that is assigned by the operating system to the data disk will change. We recommend that you perform an offline capacity expansion on the data disk and restart the KEC instance.
You can perform an offline capacity expansion on a system disk or data disk no matter whether the KEC instance to which the disk is attached is running or closed. For more information about other limits, see the corresponding topics.
You can perform an offline capacity expansion on a data disk only when the data disk is in the In use or To be mounted state.

Note:
After you expand the capacity of an EBS volume in the EBS console, the expanded capacity is not available for use yet. You must log in to the KEC instance to which the EBS volume is attached and resize partitions and file systems, so that the KEC instance can recognize and use the expanded capacity.

Resize partitions and file systems

Log in to the KEC console and resize partitions and file systems. The following table describes the methods for resizing partitions and file systems in different scenarios.

File system before the capacity expansion
Capacity after the expansion
Method for resizing partitions and file systems
No file system < 2 TB Format a data disk (< 2 TB)
No file system ≥ 2 TB Format a data disk (≥ 2 TB)
With file systems < 2 TB Windows: Resize partitions and file systems (Windows)
Linux: Resize MBR partitions and file systems (Linux)
With file systems ≥ 2 TB GPT partitioning: Resize partitions and file systems (Windows) or Resize GPT partitions and file systems (Linux)
MBR partitioning: not supported
The maximum capacity of an EBS volume that uses MBR partitioning is 2 TB. If the capacity exceeds this limit, the excess capacity cannot be used. You may need to expand the capacity of an EBS volume that uses MBR partitioning to more than 2 TB. In this case, we recommend that you create and attach a data disk that uses GPT partitioning and then copy the data to the new disk.

Upper limits on capacity for EBS volumes

When you expand the capacity of an EBS volume, the capacity after the expansion must be greater than the original capacity but cannot exceed the corresponding upper limit.

Upper limits on capacity for system disks

When you expand the capacity of a system disk, the capacity after the expansion must be greater than the original capacity but no more than 500 GB. The following table describes the upper limits on capacity for different types of system disks.

System disk type
Upper limit on capacity (Unit: GB)
SSD volume of EBS 3.0 500
EHDD volume 500

Upper limits on capacity for data disks

When you expand the capacity of a data disk, the capacity after the expansion must be greater than the original capacity. The following table describes the upper limits on capacity for different types of data disks.

Data disk type
Upper limit on capacity (Unit: GB)
SSD volume of EBS 3.0 32,000 (The upper limit on capacity for online capacity expansion is 16,000 GB.)
EHDD volume 32,000 (The upper limit on capacity for online capacity expansion is 16,000 GB.)

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈