Centos7 扩展LVM根分区

1、新建分区:

fdisk /dev/sda

查看当前分区:

 

新建分区:(一直回车,保持默认)

 

新建完成(/dev/sda3

 

修改分区类型为8e

 

输入“w”保存配置

2、扩展LVM:

partprobe                          #  通知系统分区表的变化

pvcreate /dev/sda3

vgextend centos /dev/sda3

lvextend -L 300GB /dev/centos/root     # 扩展到300G

xfs_growfs /dev/centos/root           # 同步文件系统,文件格式为xfs

参考文章: https://blog.csdn.net/solaraceboy/article/details/78539233

原文地址:https://www.cnblogs.com/gongxr/p/12552506.html