ecs云盘扩容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
lsb_release -a | awk '{print $2}'| sed -n 3p
yum update yum install cloud-utils-growpart
apt update apt install -y cloud-guest-utils
blkid
growpart /dev/vda 3 (数字是要扩容器的分区)
---
xfs_growfs /dev/vdc
btrfs filesystem resize max /dev/vdc
resize2fs /dev/vda1
|