After expanding a cloud disk, you need to either assign its expanded capacity to an existing partition, or format it into an independent new partition.
- If you expand a cloud disk that is mounted to a running CVM, you need to Rescan Disk to recognize the disk capacity after expansion.
- If you expand a cloud disk that is unmounted or mounted to an inactive CVM, the disk capacity after expansion will be automatically recognized.
- Extending the file system may affect the existing data. We strongly recommend you to manually create a snapshot to back up your data before the operation.
- To extend the file system, you need to restart the instance or rescan the disk, which will lead to business interruption for a certain period. We recommend that you choose an appropriate time for this operation.
- After extending the file system, we strongly recommend you to rescan disks to recognize the capacity. If you Refresh the system or do other operations, the expanded capacity may not be recognized.
- You have expanded the cloud disk capacity.
- You have mounted the cloud disk to a Windows CVM and created a file system.
- You have logged in to the Windows CVM on which you want to extend partitions and the file system.
This document describes how to expand a disk mounted to a CVM on Windows Server 2012 R2. The expansion may slightly vary with operating systems, so this document is for reference only.
Rescan the disk
- Right click , and select Computer Management.
- In the left sidebar of the Computer Management window, select Storage -> Disk Management.
- Right click Disk Management, and select Rescan Disks, as shown below:
- After the scan is complete, check whether the data disk has the size after the expansion. (In this example, the scan shows that the cloud disk is expanded from 10GB to 50GB).
- Right click any white area of the disk space. Select Extend Volume.
- Follow the Extend Volume Wizard to extend the volume.
The new data disk capacity will be added to the original volume.
Extending Linux file systems