Scenarios
A Cloud Virtual Desktop (CVD) disk is an expandable storage device on the cloud. After you create a CVD disk, you can expand its size at any time to increase storage space without losing the existing data on the disk.
For Windows CVD instances, after a CVD disk is expanded, the system automatically allocates the newly added capacity to existing partitions. For Linux CVD instances, you need to manually expand the file system in the operating system. For specific operation steps, see Expanding the File System for a Linux CVD Instance. Must-Knows
CVD disks support only expansion and do not support reduction.
It is strongly recommended to back up important data before capacity expansion to prevent data loss caused by misoperations.
Only CVD disks attached to CVD instances in the normal lifecycle support expansion. CVD disks attached to isolated CVD instances cannot be expanded.
You cannot expand a CVD disk when its associated CVD instance is in one of the following statuses: Shut Down, Starting, Stopping, Rebooting, or Creating Custom Image.
Expanding a CVD Disk
2. Click the ID of the CVD instance for which you want to expand the disk.
3. Click Expand next to the system disk or data disk as needed.
4. In the Expand CVD Disk pop-up window, confirm the CVD instance information, current capacity, target capacity, and fee. Then, click Confirm to proceed.
5. After the expansion is complete, view the disk size on the CVD instance details page.
6. For a Windows CVD instance, log in to the CVD instance and verify the capacity after expansion in the operating system.
Expanding the File System for a Linux CVD Instance
After expanding a CVD disk in the CVD console for a Linux CVD instance, you need to manually expand the file system in the operating system. Refer to the following steps: 1. On the terminal of the Linux CVD instance, run the following command to switch to the administrator identity.
2. Run the following command to query the partition information of the CVD disk.
The following figure shows the returned result, indicating that the disk /dev/vda has a capacity of 100 GB and contains an MBR partition /dev/vda1 with a capacity of 50 GB.
3. Run the following command to identify the file system of the existing partition.
The following figure shows the returned result, indicating that the file system type for /dev/vda1 is ext4.
4. Run the following command to install the growpart tool.
apt-get install -y cloud-guest-utils
5. Run the following command to expand the partition /dev/vda1 using the growpart tool. In the command, /dev/vda and 1 must be separated by a space.
The following figure shows the returned result:
6. Run the following command to expand the ext4 file system.
The following figure shows the returned result:
7. Run the following command to view the expansion result.
The following figure shows the returned result, indicating that the expansion succeeds.
After successful expansion, check data integrity and observe whether services on the CVD instance are running normally.