Expand cloud computer disks
When the disk space on a cloud computer is insufficient, expand the capacity of a system disk or a data disk in the console. If a data disk has unallocated space, extend its existing partition in the operating system. Capacity expansion in the console and partition extension in the operating system are separate operations. This topic describes the applicable scenarios, limits, and procedures for both.
Expand disk capacity
Background information
Disks
By default, Enterprise Office and General Office cloud computers from Elastic Desktop Service (EDS) use ultra disks. Enterprise Graphics, Graphics, and High-Frequency Office cloud computers use ESSDs. The performance level (PL) of a disk is consistent with the PL specified in the cloud computer template. For more information about disk types and their differences, see Disk types. To upgrade the PL of a disk, see Change the performance level of an ESSD.
Capacity change limitations
The following limits apply to disk expansion:
You can only expand a disk. Scaling down a disk is not supported. We recommend that you plan your storage space carefully.
When you set the new capacity, you can only increase the size in 10 GiB increments. The maximum capacity for a system disk is 500 GiB, and the maximum capacity for a data disk is 2,040 GiB.
Billing
When you expand a disk, you are charged for the additional capacity. The billing method is the same as that for purchasing a disk. For more information, see Billable items.
For subscription cloud computers, you are charged a prorated fee for the difference between the new and old capacity for the remainder of the subscription period.
For pay-as-you-go cloud computers, the expansion takes effect immediately, and you are subsequently billed for the new total capacity.
Prerequisites
The cloud computer is in the Running or Stopped state.
Disk expansion may fail. To prevent data loss, you must back up your data before you expand a disk. We recommend that you create a snapshot for the cloud computer. For details, see Use snapshots (public preview).
Expand disk for a single cloud computer
Log on to the EDS enterprise console.
In the left-side navigation pane, choose Resources > Cloud Computers.
In the top navigation bar, select a region.
On the Cloud Computers page, find the target cloud computer. In the Actions column, click More and select Scale Up.
In the Scale Up panel, follow the steps that correspond to the billing method of the cloud computer.
Subscription
In the Target Disk Size section, set the target capacity for the system disk and data disk, and then click Confirm.
In the confirmation dialog box, click OK.
On the Pay page, click Subscribe and complete the payment as prompted.
Pay-as-you-go
Set the target capacity for the system disk and data disk, and then click Change.
In the confirmation dialog box, click OK.
During the disk expansion process, the status of the cloud computer on the Cloud Computers page is Restoring. When the status of the cloud computer changes from Restoring to its state before the expansion (Running or Stopped), the expansion is complete.
Expand disk for multiple cloud computers
In the left-side navigation pane, choose Resources > Cloud Computers.
In the top navigation bar, select a region.
On the Cloud Computers page, select the cloud computers whose disks you want to expand. At the bottom of the page, click .
In the Scale Up panel, on the Specify Disk Size tab, select a billing method. Then, from the list of cloud computers that use that billing method, select the ones you want to expand and click Next.
NoteYou can expand disks for multiple cloud computers at the same time only if they share the same billing method. If you selected computers with different billing methods, you must process them in separate batches for each method.
On the Confirm Disk Size tab, choose one of the following options, and then click Confirm.
Uniform expansion: To expand the disks of all selected cloud computers to the same capacity, set the target capacity in the Specify Disk Size section.
Individual expansion: To set a different capacity for each cloud computer, specify the new capacity for each one in the table.
In the confirmation dialog box, click OK.
(Conditional) If the selected cloud computers are subscription-based, on the Pay page, click Subscribe and complete the payment as prompted.
Partition a data disk (drive D) from the system disk
Expand the system disk and then shrink drive C
Use this method if you want to keep a single disk and allocate part of the system disk as drive D. Shrinking drive C creates a new partition and does not extend an existing data disk partition.
Expand the system disk of the cloud computer in the console as described in the preceding sections of this topic. For example, change the system disk capacity from 80 GiB to 160 GiB.
Connect to the cloud computer, right-click This PC, select Manage, and then choose Disk Management in the left-side navigation pane.
Right-click drive C, select Shrink Volume, and then enter the amount of space to shrink.
Right-click the unallocated space that appears after the shrink operation, select New Simple Volume, and then complete the wizard to create drive D.
Extend a data disk partition
You can use unallocated disk capacity to extend an existing data disk partition or create a new one. This section describes how to extend an existing data disk partition.
Background
When you create a cloud computer template from a custom image, if the data disk capacity that you specify for the template is larger than the data disk capacity of the source image, any cloud computer created from this template initially has a data disk that matches the size of the source image's data disk. The extra capacity is unallocated and unusable until you extend the data disk partition.
For example:
Cloud computer template A (created from custom image B): has a 150 GiB system disk and a 150 GiB data disk.
Custom image B: has an 80 GiB system disk and a 70 GiB data disk.
When you create a cloud computer from cloud computer template A, it initially has a 150 GiB system disk and a 70 GiB data disk, with 80 GiB of unallocated space. You can follow the steps in this section to use this unallocated space.
Procedure
Extending a data disk partition does not typically cause data loss. However, to prevent accidental data loss, create a snapshot to back up your data disk. For more information, see Use snapshots (public preview).
Windows cloud computers
Connect to the cloud computer. For more information, see Getting Started.
On the cloud computer, right-click the Start menu and select Disk Management.
In the Disk Management window, right-click the data disk to extend and select Extend Volume.
The data disk corresponds to Disk 1, which contains the existing D: partition and the unallocated space. The size of the D: partition matches the data disk size of the custom image, while the unallocated space represents the extra capacity from the cloud computer template.
Follow the wizard to complete the extension.
After the operation is complete, the system automatically adds the new capacity to the original volume.
Linux cloud computers
Connect to the cloud computer. For more information, see Getting Started.
On the cloud computer, open the Terminal application.
In the command window, run the following command to switch to the root user.
sudo suCheck the current disk information.
Run the following command to view disk and partition information.
fdisk -luRun the following command to check the file system type of the existing partition.
df -Th
Extend the data disk partition.
Install the growpart utility.
Update the software sources.
apt-get updateInstall cloud-guest-utils.
apt-get install -y cloud-guest-utils
Run the following command to extend the partition.
growpart /dev/vdb 1NoteA space is required between
/dev/vdband1.
Extend the file system of the data disk partition.
resize2fs /dev/vdb1Verify the result.
fdisk -l