Expanding EVS Disk Capacity (Without LVM)
This section describes how to expand the capacity of an EVS disk that does not have an LVM logical volume. In the following example, a 100-GB system disk and a 470-GB data disk are mounted to an ECS, and the system and data disks are expanded to 200 GB and 940 GB, respectively.
Procedure
- Expand the EVS disk capacity.
- Log in to HUAWEI CLOUD management console.
- Choose Service List > Computing > Elastic Cloud Server.
- In the ECS list, click the name of an ECS.
- Under the Disks tab, click next to the system disk name.
- Click the system disk ID to go to the system disk details page.
- In the upper right corner of the page, click Expand Capacity.
- Enter the capacity to be added based on the site requirements. For example: 100 GB and click Next.
- Confirm the configuration information and click Submit.
The system disk capacity expansion is complete.
- Expand the data disk capacity by following step 1.a to 1.h.
- Expand partitions.
- Log in to the ECS as user root.
- Run the following commands to check the disk capacity after the expansion:
df -Th
If information similar to the following is displayed, the disk capacity has been expanded to 200 GB and 940 GB, but the mounted directory and /hana/data directory are not expanded. Expand partitions and file systems of the expanded EVS disks.
- In this example, system disk xvda has a partition xvda1. You need to run growpart to expand the partition.
growpart /dev/xvda 1
- Run the following command to check whether the xvda1 partition of the system disk has been expanded to 200 GB. The data disk has no partition. You do not need to run growpart. The default size is 940 GB.
fdisk -l
- Run the following command to expand the capacity of the file system:
- Run the resize2fs command to expand the ext2, ext3, or ext4 file systems.
- Run the xfs_growfs command to expand the xfs file system.
In this example, run the following commands:
resize2fs /dev/xvda1
xfs_growfs /hana/data
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