Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-07-01 14:35:08
EBS volumes are scalable storage devices. You can expand the capacity of an existing EBS volume at any time to increase its storage space without affecting the data on the EBS volume. After you expand the capacity of an EBS volume in the EBS console, you need to allocate the expanded capacity to partitions. The partitions can be existing partitions or partitions that are newly created and formatted. Then, resize the file systems of the partitions, so that the expanded capacity can be recognized. For more information, see Resize partitions and file systems (Linux).
Note:
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. To prevent data loss caused by misoperations, we recommend that you create a snapshot to back up data before you expand the capacity of an EBS volume.
fdisk -l
For example, the operating system of the KEC instance is CentOS 6.5 and the EBS volumes use both MBR partitioning and GPT partitioning. The following figure shows the results. The following table describes the information extracted from the figure. |
EBS volume | Partition | Partition description |
---|---|---|---|
/dev/vda is the system disk with a capacity of 50 GB. | /dev/vda1 | MBR partition, with a capacity of 50 GB | |
/dev/vdb is the data disk with a capacity of 2,200 GB. | /dev/vdb1 | GPT partition, with a capacity of 200 GB |
For example, the operating system of the KEC instance is CentOS 7.6 and the data disks do not have partitions. The following figure shows the results. The following table describes the information extracted from the figure. |
EBS volume | Partition | Partition description |
---|---|---|---|
/dev/vda is the system disk with a capacity of 50 GB. | /dev/vda1 | MBR partition, with a capacity of 50 GB | |
/dev/vdb is the data disk with a capacity of 200 GB. | None | Raw disk, with no partitions | |
/dev/vdc is the data disk with a capacity of 2,500 GB. | None | Raw disk, with no partitions |
For example, the operating system of the KEC instance is CentOS 7.6 and the EBS volumes use both MBR partitioning and GPT partitioning. The following figure shows the results. The following table describes the information extracted from the figure. |
EBS volume | Partition | Partition description |
---|---|---|---|
/dev/vda is the system disk with a capacity of 50 GB. | /dev/vda1 | MBR partition, with a capacity of 50 GB | |
/dev/vdb is the data disk with a capacity of 200 GB. | /dev/vdb1 | MBR partition, with a capacity of 50 GB | |
/dev/vdc is the data disk with a capacity of 2,500 GB. | /dev/vdc1 | GPT partition, with a capacity of 50 GB |
For example, the operating system of the KEC instance is CentOS 8.2 and the EBS volumes use both MBR partitioning and GPT partitioning. The following figure shows the results. The following table describes the information extracted from the figure. | EBS volume | Partition | Partition description |
---|---|---|---|
/dev/vda is the system disk with a capacity of 70 GB. | /dev/vda1 | MBR partition, with a capacity of 50 GB | |
/dev/vdb is the data disk with a capacity of 100 GB. | /dev/vdb1 | MBR partition, with a capacity of 50 GB | |
/dev/vdc is the data disk with a capacity of 150 GB. | /dev/vdc1 | GPT partition, with a capacity of 50 GB |
Scenario | Partition type | Resizing method |
---|---|---|
A raw data disk has no partition but a file system. | None | Resize file systems on a raw disk |
An EBS volume uses MBR partitioning and has file systems. You want to allocate the expanded capacity of the EBS volume to existing MBR partitions. | MBR | Allocate the expanded capacity to existing MBR partitions |
An EBS volume uses MBR partitioning and has file systems. You want to allocate the expanded capacity of the EBS volume to newly created and formatted MBR partitions. | MBR | Allocate the expanded capacity to newly created and formatted MBR partitions |
An EBS volume uses GPT partitioning and has file systems. You want to allocate the expanded capacity of the EBS volume to existing GPT partitions. | GPT | Allocate the expanded capacity to existing GPT partitions |
An EBS volume uses GPT partitioning and has file systems. You want to allocate the expanded capacity of the EBS volume to newly created and formatted GPT partitions. | GPT | Allocate the expanded capacity to newly created and formatted GPT partitions |
Pure Mode