超融合Ubuntu虚拟机扩容

超融合Ubuntu虚拟机扩容

步骤

运行以下命令查看实例的云盘情况

sudo fdisk -lu

运行以下命令扩容分区

sudo growpart /dev/vda 3

Increase the Physical Volume (pv) to max size

sudo pvresize /dev/vda3

Expand the Logical Volume (LV) to max size to match

sudo lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

Expand the filesystem itself

sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

结果

df -h

posted @ 2022-04-29 16:45  Pursue`  阅读(197)  评论(0编辑  收藏  举报