Adjusting Disk Configuration

Last updated: 2019-08-08 11:00:07

PDF

Cloud disk is an expandable storage device on cloud. When a cloud disk is created, you can expand its capacity at any time to increase its storage space without losing any data on it. To expand and use the expanded capacity, you need to expand both the physical cloud disk and the file system on it to identify the newly available space.

If the maximum capacity of a cloud disk (4 TB) cannot meet your needs, you can use RAID to create a logically large space across multiple physical disks. For more information, please see Configure RAID Group of Cloud Disk.

Prerequisites

  • For postpaid CVMs, you can only change the configuration when both the system disk and data disk are cloud disks.
  • You can only expand the server system disks of cloud disks by reinstalling OS.
  • For a cloud disk not mounted on a CVM, you can expand its capacity directly. If it has been mounted on a CVM, you need to shut down the CVM first before the expansion, or unmount the cloud disk before the expansion, and remount it on the original CVM after the expansion.
  • After disk expansion, you need to manually modify the file system configuration to make use of the newly expanded capacity. For more information, please see Expanding Linux File System and Expanding Windows File System.
  • To ensure user data security, the disk capacity can only be expanded but cannot be reduced.

Expanding Elastic Cloud Disk

Expanding an Elastic Cloud Disk via the Console

1) Log in to the CVM Console.

2) Click Cloud Block Storage in the navigation pane.

3) Only the cloud disk in the status of Unmounted and Support Mounting/Unmounting can be expanded (i.e., the elastic cloud disk in the status of Unmounted). Click More -> Expand to select the desired size (it must be larger than or equal to the current size), and complete the payment to finish the capacity expansion of physical disks.

Expanding Elastic Cloud Disk via API

For more information, please see API ResizeCbsStorage.

Expanding Non-elastic Cloud Disk

Expanding Non-elastic Cloud Disk via the Console

1) Log in to the CVM Console.

2) Click Cloud Virtual Machine in the navigation pane.

3) Only the instance which is in the status of Shutdown and whose system disk and data disk are cloud disks can be expanded. Click More -> CVM Settings -> Adjust Cloud Disk and select the new required size (it must be larger than or equal to the current size), and complete payment to finish the capacity expansion of physical disk.

For a running instance, you need to perform Instance Shutdown before expansion. Please ensure that both system disk and data disk are cloud disks before doing so.

Expanding Non-elastic Cloud Disk via API

Please see API ResizeInstance and API ResizeInstanceHour.