Ubuntu Server 18.04 LTS 扩容LVM磁盘

查看磁盘信息

df -h

查看物理分区、逻辑卷信息

fdisk -l

查看组卷信息

sudo vgdisplay
sudo lvdisplay
sudo pvdisplay

扩展lvm卷

sudo lvextend --extents +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

重新计算磁盘大小

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

再次查看磁盘信息

sudo df -h /

Leave a comment

Your email address will not be published. Required fields are marked *