Expand the capacity of an EBS volume offline (Windows)

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.

Scenarios

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).

Note:
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.

Prerequisites

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.

Cloud product Limit
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 environment

Resource
Description
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.

Step 1: Create a snapshot

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. Log in to the EBS console.
  2. In the left navigation pane, click EBS.
  3. In the upper-left corner, select a region.
  4. On the EBS tab, find the EBS volume for which you want to expand the capacity and click Create Snapshot in the Operation column.
  5. In the dialog box that appears, enter a name and description for the snapshot and click OK. The snapshot is immediately created.
  6. In the left navigation pane, choose Snapshot > Snapshot List to view the creation process of the snapshot.
    After the progress reaches 100% and the status of the snapshot becomes Available, you can proceed to the next step.

Step 2: Expand the capacity of the EBS volume in the EBS console and restart or start the KEC instance

  1. Log in to the EBS console.
  2. On the EBS tab, find the EBS volume for which you want to expand the capacity and choose More > Capacity Expansion in the Operation column.
  3. In the Capacity Expansion dialog box, read the instructions and set the Capacity parameter.
    The capacity after the expansion must be greater than the original capacity.
  4. On the Confirm Order page, click Submit Order. Then, complete the payment.
  5. Restart or start the KEC instance to which the EBS volume is attached.

Note:
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.

Step 3: Rescan disks

  1. Log in to the KEC instance. For more information, see Connect to instances.
  2. On the Windows Server desktop, right-click the Start icon and select Disk Management.
    image.png
  3. In the Disk Management window, choose Action > Rescan Disks to view the unallocated disk capacity.
    Disk 0 is the system disk, and Disk 1 is a data disk.
    image.png

Step 4: Resize partitions and file systems on the system disk or a data disk

  1. 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.

    image.png

  2. 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.
    image.png
    The figure shows that the resizing succeeded. When you check the result, compare the result with the original capacity.

    • If the resizing succeeded, the business programs on the KEC instance can continue to run as expected.
    • If the resizing failed, use the snapshot to roll back the data.

Step 5: (Optional) Create a partition on a data disk

If you want to allocate the expanded capacity of an EBS volume to a new partition, perform the following steps:

  1. After you complete Step 3, right-click the blank space in the section of a disk on which you want to create a partition, and select Extend Volume. In this example, create a partition on Data disk 1, as shown in the following figure.
    image.png
  2. Extend the volume by following the instructions in the New Simple Volume Wizard window.
    After you complete the operations, a partition is created, as shown in the following figure.
    image.png

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈