Updated on 2023-10-17 GMT+08:00

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

  1. Expand the EVS disk capacity.

    1. Log in to HUAWEI CLOUD management console.
    2. Choose Service List > Computing > Elastic Cloud Server.
    3. In the ECS list, click the name of an ECS.
    4. Under the Disks tab, click next to the system disk name.
    5. Click the system disk ID to go to the system disk details page.
    6. In the upper right corner of the page, click Expand Capacity.
    7. Enter the capacity to be added based on the site requirements. For example: 100 GB and click Next.
    8. Confirm the configuration information and click Submit.

      The system disk capacity expansion is complete.

    9. Expand the data disk capacity by following step 1.a to 1.h.

  2. Expand partitions.

    1. Log in to the ECS as user root.
    2. Run the following commands to check the disk capacity after the expansion:

      lsblk

      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.

    3. In this example, system disk xvda has a partition xvda1. You need to run growpart to expand the partition.

      growpart /dev/xvda 1

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

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