As your business grows, the current capacity of your data disks may not be able to meet your data storage needs. You can use the Resize Disk function to resize your data disks as necessary.

Note
  • We recommend that you manually create a snapshot to back up your data before resizing a data disk.
  • You can resize a data disk when the data disk is either in the Available status or in the In Use status.
  • If a snapshot is being created for a data disk, you cannot resize the data disk.
  • If you have renewed a Subscription ECS instance for configration downgrade (Renew for configuration downgrade) during its current billing cycle, you cannot resize the attached Subscription cloud disks, including its data or system disks.
  • You can resize data disks, but not file system.
  • You can resize data disks, but not system disks or local disks.
  • Resize the data disks that are attached to the instance only when the instance is in the  Running (Running) or  Stopped (Stopped)   status. The changes are applied when you restart the instance in the ECS console. This action stops your instance from working and interrupts your business. Hence, proceed with caution.

This example uses a data disk of the ultra cloud disk type and an ECS instance running 64-bit Windows Server 2008 R2 Enterprise Edition to show how to resize a data disk and extend the available capacity. In this example, the current disk capacity is 20 GiB, and we resize it to 24 GiB.

To resize a data disk, follow these steps:

Step 1. Resize a data disk in the ECS console

Step 2. Log on to the instance to enable the extended storage space

Step 1. Resize a data disk in the ECS console

To resize a data disk in the ECS console, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Block Storage > Cloud Disks.
    Note
    If the data disk you want to resize is attached to an instance, click Instances in the left-side navigation pane, find the instance, go to the Instance Details page, and then click. Instance Disks.
  3. Select a region.
  4. Find the disk to be resized, and in the Actions column, choose More > Resize Disk.
  5. On the Resize Disk page, set Capacity after resizing. In this example, 24 GiB. The capacity after resizing must be larger than the current capacity.
  6. When the cost is calculated, click. Confirm to resize.
    Note
    If your data disk is attached to an instance, restart the instance in the ECS console Restart an instance  to make the disk resize take effect.

Once the data disk resizing completes, you can do the following:

Step 2. Log on to the instance to enable the extended storage space

To resize a data disk within the instance, follow these steps:

  1. Connect to a Windows instance.
  2. On the Windows Server desktop, click the Server Manager icon .
  3. In the left-side navigation pane of Server Manager, choose Storage > Disk Management. In the disk management area, you can see the relationship between the new and the original data disk spaces. In this example, Disk 1  is the resized data disk. 

  4. Right click Disk 1, select Convert to Dynamic Disk, and follow the wizard to convert a basic disk to a dynamic disk. 

    Note
    Converting a basic disk into a dynamic disk unmounts the disk from the system.  Applications installed on the data disk, if any, are temporarily unavailable during the conversion process. The conversion process does not cause any data loss.

    After the conversion, the Disk 1 information shows in the Disk Manager as follows.



  5. Right click an empty area of the simple volume of Disk 1, and select Extend Volume.

  6. Follow the Extend Volume Wizard to extend the volume. When the wizard is complete, the new data disk space is automatically merged into the original volume and the Disk 1 information showed in the Disk Manager as follows. 

    Note
    On Windows Server 2003, the extended storage space is added to the data disk but it is displayed as a separate volume in Disk Manager. On Windows Server 2003, one separate volume is created for each expansion and is not merged into the original volume, which does not affect the availability of the extended storage space.

You have resized a data disk successfully and the extended storage space is ready for use.