uname -a
command to check the kernel version.
If the kernel version is earlier than 3.6.0, see Extending MBR Partitions and File Systems (Smaller than 2 TB).Resource | Description |
Operating system | CentOS 8.0 64-bit |
Cloud disk (system disk) | /dev/vda: Uses the MBR partition and the EXT4 file system, and expands from 50 GB to 60 GB online in the console. |
Resource | Description |
Operating system | Windows Server 2012 R2 IDC 64-bit Chinese |
Cloud disk (system disk) | C drive: Uses the MBR partition and the NTFS file system, and expands from 50 GB to 100 GB online in the console. |
fdisk -l
dev/vda
contains a 50 GB MBR partition /dev/vda1
.
df -TH
/dev/vda1
file system type is EXT4.
yum install -y cloud-utils-growpart
apt-get install -y cloud-guest-utils
/dev/vda1
partition. In the command, you need to separate /dev/vda
and 1
by space.growpart /dev/vda 1
resize2fs /dev/vda1
df -TH
Was this page helpful?