Last updated：2021-07-01 14:35:38
If the storage space of an EBS volume, either a system disk or data disk, no longer meets your business requirements, you can expand the capacity of the EBS volume. If your KEC instance does not support the online capacity expansion of EBS volumes, you can use the offline capacity expansion feature. After you expand the capacity of an EBS volume offline, you must restart the KEC instance to which the EBS volume is attached. This will interrupt your business. Therefore, we recommend that you perform an offline capacity expansion during off-peak hours. This topic describes how to perform an offline capacity expansion on an EBS volume attached to a KEC instance whose operating system is Windows.
EBS volumes are scalable storage devices. You can expand the capacity of an existing EBS volume at any time to increase its storage space without affecting the data on the EBS volume.
After you expand the capacity of an EBS volume in the EBS console, you need to allocate the expanded capacity to partitions. The partitions can be existing partitions or partitions that are newly created and formatted. Then, resize the file systems of the partitions, so that the expanded capacity can be recognized. For more information, see Resize partitions and file systems (Windows).
The maximum capacity of an EBS volume that uses MBR partitioning is 2 TB. If the capacity exceeds this limit, the excess capacity cannot be used. You may need to expand the capacity of an EBS volume that uses MBR partitioning to more than 2 TB. In this case, we recommend that you create and attach a data disk that uses GPT partitioning and then copy the data to the new disk.
The following table describes the requirements that must be met before an offline capacity expansion is performed on an EBS volume attached to a KEC instance whose operating system is Windows.
|KEC instance||1. The KEC instance must be in the Running or Stopped state.
2. All types, including GPU types, of KEC instances support the offline capacity expansion of EBS volumes.
3. During the offline capacity expansion, the status of the KEC instance cannot be changed. For example, you cannot restart, shut down, or delete the KEC instance.
4. All KEC instances to which SSD volumes of EBS 3.0 or EHDD volumes can be attached support offline capacity expansion.
|EBS volume||1. The EBS volume for which you want to expand the capacity offline must be in the In use or To be mounted state.
2. The EBS volume must be an SSD volume of EBS 3.0 or an EHDD volume.
3. The EBS volume must use the NTFS.
4. The capacity after the expansion must be greater than the original capacity but cannot exceed the corresponding upper limit. For more information about the upper limits on capacity, see Overview.
|Operating system||Windows Server 2012 R2 Datacenter 64-bit Chinese version|
|System disk||Drive C: uses NTFS. You want to expand the capacity of the disk from 50 GB to 70 GB.|
|Data disk||Drive D: uses NTFS. You want to expand the capacity of the disk from 50 GB to 100 GB.|
Note: To prevent data loss caused by misoperations, we recommend that you create a snapshot to back up data before you expand the capacity of an EBS volume.
1. After the capacity expansion, if the KEC instance to which the EBS volume is attached is in the Running state, you must restart the KEC instance in the console. If the KEC instance is in the Stopped state, you must start the KEC instance in the console. You can view the expanded capacity of the EBS volume only after you restart the KEC instance in the console or by calling the corresponding API operation.
2. If you want to expand the capacity of a data disk in the To be mounted state, you can perform an offline capacity expansion in the EBS console. After that, attach the disk to a KEC instance. The expanded capacity will be immediately recognized.
3. After you expand the capacity of an EBS volume in the EBS console, the expanded capacity is not available for use yet. You must log in to the operating system of the KEC instance to which the EBS volume is attached, and allocate the expanded capacity by resizing partitions and file systems.
To resize partitions and file systems on the system disk, right-click the blank space in the Disk 0 section and select Extend Volume, as shown in the following figure.
Note: If you are resizing partitions and file systems on a data disk, right-click the blank space in the data disk section, for example, Disk 1.
Extend the volume by following the instructions in the Extend Volume Wizard window.
After you extend the volume, the expanded data disk space is automatically added to the EBS volume, as shown in the following figure.
The figure shows that the resizing succeeded. When you check the result, compare the result with the original capacity.
If you want to allocate the expanded capacity of an EBS volume to a new partition, perform the following steps:
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.