You can expand a cloud disk to increase its storage space. This document describes how to expand a cloud disk via the console, and assign its expanded capacity to an existing file system.
1. Log in to the CVM console and click Cloud Block Storage on the left sidebar.
2. Select More > Expand on the right of the target cloud disk.
3. In the Expand Disk Capacity pop-up window, select the new capacity and click Next.
4. Click Adjust Now.
Rescanning the disk
Note:
This section uses a CVM instance with Windows Server 2012 R2 DataCenter 64-bit English installed as an example. Note that the steps may vary by operating system version.
in the lower-left corner, and select Computer Management.
3. Right-click Disk Management and select Rescan Disks.
4. After the scan is complete, check whether the data disk has the size after the expansion.
Extending file systems of an existing partition
Note:
This document takes extending file systems of the existing partition as an example, that is, assigning the expanded capacity to the existing E drive. For more information, see Extending Partitions and File Systems (Windows).
1. Right-click the blank space of the disk and select Extend Volume.
2. Follow the Extend Volume Wizard to extend the volume.
The new data disk capacity will be added to the original volume.
Expanding cloud disks via the console
1. Log in to the CVM console and click Cloud Block Storage on the left sidebar.
2. Select More > Expand on the right of the target cloud disk.
3. In the Expand Disk Capacity pop-up window, select the new capacity and click Next.
4. Click Adjust Now.
Extending a file system (Linux CVMs)
Note:
This section uses a Linux CVM instance with CentOS 7.8 installed as an example. Note that the steps may vary by operating system version.
This section takes extending file systems of the existing partition as an example, that is, assigning the expanded capacity to /dev/vdb. For more information, see Online Extending Partitions and File Systems.
1. Run the following command to extend the EXT file system.
resize2fs /dev/vdb
The returned result is as shown below:
2. Run the following command to view the result.
df -TH
If information similar to what is shown below is returned, the file system has been extended successfully.