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

Before you resize a disk, make sure that your resources meet the following requirements:
  • The disk to be resized is in the In Use (In Use) state, and the instance to which the disk is attached is in the Running (Running) state.
  • Check whether the instance to which the disk is attached meets the following conditions. If not, see Resize disks offline (Linux).
    • The instance is I/O optimized.
    • The instance does not run Windows Server 2003.
    • If you are using a Windows instance that was created before March 30, 2019, the version of the Red Hat VirtIO SICI driver must be later than 58011. For more information, see Update the Red Hat VirtIO driver of Windows ECS instances.

Background information

Note If a data disk adopts the MBR partition format, you cannot resize the data disk to more than 2 TiB. If you want to resize a data disk to 2 TiB while the MBR partition format is used, we recommend that you create and attach another data disk. Format a GPT partition and copy the data in the MBR partition to the GPT partition.
The following limits apply when you resize disks online:
  • For more information about capacity limits of resizing system disks and data disks, see Overview.
  • You cannot resize a disk for which a snapshot is being created.
  • You can resize ultra disks, standard SSDs, and enhanced SSDs (ESSDs) online.
  • After you renew a subscription instance and downgrade its configurations, you cannot resize the subscription disks attached to the instance during the remainder of the current billing cycle.
  • You cannot shrink an resized disk by means such as rolling it back.
  • For Windows instances, you can extend only NTFS file systems.

Step 1: Create a normal snapshot

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Storage & Snapshots > Disks.
  3. In the top navigation bar, select a region.
  4. Select a disk category, and then click Create Snapshot in the Actions column.
  5. In the dialog box that appears, complete the following operations:
    1. Enter a snapshot name in the Snapshot Name field.
    2. Binds one or more tags to the snapshot.
    3. Click OK.
  6. In the Storage & Snapshots > Snapshots view the snapshot task.

Step 2: Resize a single disk online

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Storage & Snapshots > Disks.
  3. In the top navigation bar, select a region.
  4. Find the disk to be resized and choose More > Resize Disk in the Actions column.
  5. Select Resize Online and set the Capacity after Resizing parameter.
  6. Confirm the fee, read and select ECS Service Terms and Product Terms of Service, and then click Resize.
  7. Read the notes and complete the payment.
    Note If you do not select Resize Online or the ECS instance does not meet the requirements of Resize Online, use the console or call the RebootInstance operation to restart the instance for the changes to take effect. For more information, see Restart an instance and RebootInstance.

Step 3: 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.

Step 4: 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.