You can resize a system disk or a data disk offline based on your actual needs. After you restart the instance by using the console or by calling an API operation, the changes take effect.

Prerequisites

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) or Stopped (Stopped) state.

Background information

In offline mode, you can see that disks are resized only after you restart instances by using the console or by calling the RebootInstance operation. If an ECS instance is restarted from within the instance itself, the changes will not take effect. For more information, see Restart an instance.

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 offline:
  • For more information about capacity limits of resizing system disks and data disks, see Overview.
  • You can resize only basic disks, ultra disks, standard SSDs, and enhanced SSDs (ESSDs).
  • 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.
  • If an instance runs Windows Server 2003, only data disks of the instance can be resized. The system disk of the instance cannot be resized.

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.

Step2: Resize a single disk offline

  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. Set the Capacity after Resizing parameter. The value cannot be smaller than the current capacity.
  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.
  8. Restart the instance for the changes to take effect.
    Note You can see that the disk is resized only after you restart the instance by using the console or by calling the RebootInstance operation. If the ECS instance is restarted from within the instance itself, the changes will not take effect. For more information, see Restart an instance.

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.