When you extend a cloud disk, only the storage capacity is extended. The file systems are not extended. After the cloud disk has been extended, you must manually format the extended storage capacity.

Prerequisites

  1. You have created snapshots to back up data.

    To prevent data loss caused by misoperations, we recommend that you create a snapshot to back up your data before you resize file systems. If you have not created a snapshot, see Create a snapshot.

  2. The cloud disk has been extended in the ECS console or by calling the API operation.
  3. The cloud disk has been attached to the instance and the instance is in the Running state.
  4. The data disk has been formatted. For more information, see Format a Windows disk.

Background information

This topic is only applicable only when the data disk in the In use state and the instance is in the Running state.

Extend partitions of a system disk

The file systems of the system disk are not extended after a system disk has been extended in the ECS console. You must connect to the instance to extend file systems. For this example, the 64-bit Windows Server 2012 R2 is used. The system disk is extended from 50 GiB to 72 GiB and the NTFS file system is used.

  1. Remotely connect to the Windows instance.
  2. On the Windows Server desktop, right-click the Start icon and select Disk Management.
  3. Choose Action > Refresh or Action > Rescan Disks.
  4. View the allocated capacity in the Disk Management section. For this example, Disk 0 is the target system disk.
  5. Right-click the blank space in the Disk 0 section and select Extend Volume....
  6. Extend the volume as instructed in Extend Volume Wizard.
    The new space is automatically added to the original volume, as shown in the following figure.

Extended partitions of a data disk

The file systems of the data disk are not extended after a data disk is extended in the ECS console. You must connect to the instance to extend file systems. For this example, the 64-bit Windows Server 2012 R2 is used. The system disk is extended from 80 GiB to 120 GiB and the NTFS file system is used.

  1. Remotely connect to the Windows instance.
  2. On the Windows Server desktop, right-click the Start icon and select Disk Management.
  3. Choose Action > Refresh or Action > Rescan Disks.
  4. View the allocated capacity in the Disk Management section. For this example, Disk 1 is the target data disk.
  5. Extend Disk 1.
    • To extend an existing partition, perform the following operations:
      1. Right-click the blank space in the Disk 1 section and select Extend Volume....
      2. Extend the volume as instructed in Extend Volume Wizard.

        The new space is automatically added to the original volume.

    • To extend a new partition, perform the following operations:
      1. Right-click the blank space in the Disk 1 section and select New Simple Volume....
      2. Extend the volume as instructed in New Simple Volume Wizard.

        A new partition is created.