Operation
SysDisk Expand

System Disk Expand

When the image you select is a system image and the instance created is of the virtual machine type, after performing disk expansion, you need to enter the instance to perform relevant configurations. If the instance is of the container type, there is no need for relevant configurations. The configuration method is as follows:

1.Expand Rules

TypeDisk Capacity Limit
SSD Cloud Disk500GB

2. Expand Steps

2.1 Expand through Instance Operation

  1. Open the Instance list page
  2. Find the instance for which the disk capacity needs to be expanded
  3. Click the last option and find "Expand Disk"
  4. Enter the value of the target capacity and confirm it
  5. If the instance is of the container type, the system supports automatic disk expand; if the instance is of the virtual machine type, after performing the disk expand operation, you need to enter the host to perform relevant configurations.
Check if the expansion is done
Linux
df -TH
Windows
 "This PC" -> check if the size of drive C is the same as that shown in the console

If the file system has not been fully expanded, the In-system expand steps need to be executed.

  • Step 1:Install growpart

The growpart is already installed by default in the images supported by Cloud-init. For other versions, you need to install it by yourself. The installation process is as follows:

CentOS:

yum install -y epel-release
yum install -y cloud-utils

Ubuntu:

sudo apt-get install cloud-initramfs-growroot
  • Step 2:Expand the partition table
LANG=en_US.UTF-8
growpart /dev/vda 1

For CentOS 6 and Debian 8, there may be a situation where the kernel and the toolchain do not support hot reloading of the partition table. In case of such a situation, after expanding the partition table, the operating system needs to be restarted once.

  • Step 3:Expand the file system
resize2fs /dev/vda1 (ext4 file system)
xfs_growfs /dev/vda1 (xfs file system) or xfs_growfs /
  • Step 4:Confirmation

Check if the expand is completed:

    df -TH
Copyright © 2025 RunC.AI All rights reserved.