Alibaba cloud online disk expansion


System environment

CentOS 7 kernel 3.10

View current system kernel

uname -u

Kernel version greater than 3.6

Install disk tools

yum install cloud-utils-growpart
yum install xfsprogs

Capacity expansion process

Fdisk - L // view the current disk capacity
DF - H // check the drive letter that needs to be expanded to the disk
Growpart / dev / VDA 1 // expand disk 
//If an error occurs
Unexpected output in sfdisk -- version [sfdisk, from util Linux 2.23.2]
// LANG=en_US.UTF-8
Resize2fs / dev / vda1 // command of resizing file system

This work adoptsCC agreement, reprint must indicate the author and the link to this article