答案1
如果卷实际上是可扩展的,那么您可以使用以下命令,前提是您在最后一行中使用了 ext4。
#scan for disk-changes if those happened in a vm-environment by $host
echo 1 > /sys/block/sda/device/rescan
#install cloud-guest-utils which provide `growpart`
yum install cloud-utils-growpart
#extend partition to maximum available size
growpart /dev/sda 1
#extend ext4?
resize2fs /dev/sda1