Step 1: Expand Disk Capacity
Scenarios
When your EVS disk capacity is insufficient, you can expand the disk capacity on the console to prevent any data loss that may be caused by insufficient storage space.
Prerequisites
Ensure that the disk meets the following conditions:
- The status of a non-shared disk is In-use or Available.
- The status of a shared disk is Available. If the status is In-use, detach the disk from all of its servers before expanding the capacity.
- The disk has been backed up using CBR or snapshots. For details, see Backing Up EVS Disks and Creating an EVS Snapshot respectively.
If the disk status is In-use, ensure that the server meets the following conditions:
- The server status must be Running or Stopped.
- The server OS must meet the requirements described in Related Operations.
If the server OS does not meet the requirements, detach the disk and then expand the capacity. Otherwise, you may need to stop and start the server to see the additional space.
Constraints
- Disk capacity can be expanded, but cannot be reduced.
- The maximum capacity of a system disk is 1 TiB, and that of a data disk is 32 TiB. The minimum expansion increment is 1 GiB for both system disks and data disks.
Video Tutorial
Expanding the Capacity of a Single Disk
- Sign in to the EVS console.
- Click
in the upper left corner and select a region.
- Choose an entry to expand the capacity.
- To expand the disk on the ECS console (suitable for a disk that has been attached to an ECS):
- Choose Compute > Elastic Cloud Server to go to ECS list page.
- Click the name of the server where the desired disk is attached to go to the Summary page.
- Click the Disks tab, locate the disk you want to expand, and click Expand Capacity in the Operation column.
- To expand the disk on the EVS console:
- Choose Storage > Elastic Volume Service to go to the EVS console.
- Locate the disk you want to expand and click Expand Capacity in the Operation column.
- To expand the disk on the ECS console (suitable for a disk that has been attached to an ECS):
- On the Expand Capacity page, set New Capacity and click Next.
- In the displayed Note dialog box, read the note, and click Expand Capacity.
- On the Expand Capacity page, check the disk configuration.
- Click Submit to start expanding a pay-per-use disk. For a yearly/monthly disk, make the payment before you can continue.
- Click Previous to change the settings, if required.
- In the disk list, view the capacity of the target disk.
When the disk status changes from Expanding to In-use or Available, and the disk capacity increases, the disk has been expanded on the console.
When a disk is in the Expanding state, you cannot modify the specifications of the ECS where the disk is attached.
- (Optional) Skip this step if the disk status is In-use (attached to a server). Attach the disk to a server if the disk status is Available. For details, see Attaching an EVS Disk.
- After the disk has been expanded on the console, log in to the server and extend the partition and file system, because the previous steps only enlarge the disk space.
The operations vary depending on the server OS.
Expanding Capacities of Multiple Disks in a Batch
- Sign in to the EVS console.
- Click
in the upper left corner and select the desired region and project.
- Expand the service list and click
in the upper left corner to select a region.
- Choose Storage > Elastic Volume Service.
The Elastic Volume Service page is displayed.
- In the disk list, select the disks you want to expand their capacities.
- Click Expand Capacity above the disk list.
- In the Expand Capacity dialog box, click Confirm.
- On the displayed page, set a new capacity for all target disks.
- Click Next.
- In the displayed Note dialog box, read the note, select the checkbox, and click Expand Capacity.
- On the displayed page, check the expansion information.
- Click Expand Capacity to start the expansion.
- Click Previous to change the settings, if required.
- If there are yearly/monthly disks, make the payment before you can continue.
- In the disk list, view the capacity of the target disks.
When the disk statuses change from Expanding to In-use or Available, and the disk capacities increase, the expansion is successful.
When a disk is in the Expanding state, you cannot modify the specifications of the ECS where the disk is attached.
If the expansion fails, technical support personnel will contact you and help you handle this error. Do not perform any operations on the disk before the technical support personnel contact you. If you require that the error be handled as soon as possible, contact our technical support personnel. A disk will no longer be billed if its status changes to Expansion failed.
- (Optional) Skip this step if the disk status is In-use (attached to a server). Attach the disk to a server if the disk status is Available. For details, see Attaching an EVS Disk.
- After the disk has been expanded on the console, log in to the server and extend the partition and file system, because the previous steps only enlarge the disk space.
The operations vary depending on the server OS.
Checking Whether the OS Supports the Capacity Expansion of In-use Disks
Perform the following operations to check whether your server OS allows you to expand In-use disks:
- Check your server image. Certain public images and similar private images allow you to expand In-use disks. You do not need to stop and then start the servers after the expansion.
To view such images, click
in the upper left corner, and choose Compute > Image Management Service. On the Public Images tab, view the images of the ECS system disk image type.
- If your server OS is not in the image list, check whether it is included in Table 1.
If it is included in Table 1, you can expand capacity while the disk is in use and you do not need to stop and start the server after the expansion. Otherwise, you must detach the disk and then expand its capacity, or stop and start the server after the expansion.
Table 1 OSs that support the capacity expansion of In-use disks OS
Version
CentOS 8
8.0 64-bit or later
CentOS 7
7.2 64-bit or later
CentOS 6
6.5 64-bit or later
Debian
8.5.0 64-bit or later
Fedora
24 64-bit or later
SUSE 12
SUSE Linux Enterprise Server 12 64-bit or later
SUSE 11
SUSE Linux Enterprise Server 11 SP4 64-bit
OpenSUSE
42.1 64-bit or later
Oracle Linux Server release 7
7.2 64-bit or later
Oracle Linux Server release 6
6.7 64-bit or later
Ubuntu Server
14.04 64-bit or later
Red Hat Enterprise Linux 7
7.3 64bit
Red Hat Enterprise Linux 6
6.8 64bit
EulerOS
2.2 64-bit or later
Huawei Cloud EulerOS
1.1 or later
Windows Server 2016
Windows Server 2016 R2 Enterprise 64-bit
Windows Server 2012
Windows Server 2012 R2 Standard 64-bit
Windows Server 2008
Windows Server 2008 R2 Enterprise 64-bit
Related Links
- After expanding disk capacities on the console, you can use LVM to manage disk partitions with more flexibility. For details, see Using LVM to Manage EVS Disks.
- For more expansion FAQs, see Capacity Expansion.
- You can also expand disk capacities through API calls. For details, see Expanding the Capacity of an EVS Disk.
- If the capacity expansion fails, you can roll back data using a snapshot. For details, see Rolling Back Disk Data from a Snapshot.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot