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.
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, choose
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, choose .
- 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 Restart an instance 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, Step 2. 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 (x id="1"/>) 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 Windows _ Format a data disk.
- If it is formatted and partitioned, Step 2. 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, choose . 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.