1、新建分区:

fdisk /dev/sda

 

查看当前分区:

 Centos7 扩展LVM根分区

 

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

 Centos7 扩展LVM根分区

 

新建完成(/dev/sda3

 Centos7 扩展LVM根分区

 

修改分区类型为8e

 Centos7 扩展LVM根分区

输入“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

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2021-06-02
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案