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.
- 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
To resize a data disk in the ECS console, follow these steps:
- Log on to the ECS console.
- In the left-side navigation pane, select 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.
- Select a region.
- Find the disk to be resized, and in the Actions column, select .
- 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.
- 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 to make the disk resize take effect.
Once the data disk resizing completes, you can do the following:
- If the data disk is attached to an instance, log on to the instance to enable the extended storage space.
- If the data disk is not attached to an instance, attach the disk to an instance in the console first, and then proceed depending on the data disk:
- If it is not formatted or partitioned, format and mount the data disk. For more information, see format a data disk for Windows instances.
- If it is formatted and partitioned, log on to the instance to enable the extended storage space.
Step 2. Log on to the instance to enable the extended storage space
To resize a data disk within the instance, follow these steps:
- Connect to a Windows instance.
- On the Windows Server desktop, click the Server Manager icon .
- In the left-side navigation pane of Server Manager, select . 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.
- 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.
- Right click an empty area of the simple volume of Disk 1, and select Extend Volume.
- 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.