centos7 lvm添加硬盘后扩展磁盘空间

df -h

pvdisplay

vgdisplay

fdisk -l 查看新加卷
在新磁盘创建物理卷
pvcreate /dev/sdb
将新磁盘添加到物理卷组
vgextend rootvg /dev/sdb
扩容lvm
lvextend -L +2000G /dev/mapper/rootvg-rootlv
使扩容生效
xfs_growfs  /dev/mapper/rootvg-rootlv

 

refer link: https://www.huaweicloud.com/articles/bb03bda7156ff72077e827364e3719c5.html

https://blog.csdn.net/yanchaohui1030/article/details/99838525

上一篇:记录一次Linux下磁盘格式化、挂载的操作过程、swap扩容过程


下一篇:OS: Redhat8.4 installed in true computer