虚拟机扩容

/ 网络技术 / 0 条评论 / 771浏览
虚拟机扩容
https://blog.csdn.net/u012599988/article/details/86535278

关机添加一块新硬盘
ls /dev/sd*

pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
vgs
lvs
vgextend centos /dev/sdb
lvextend -L +20G /dev/mapper/centos-root #附加空间
xfs_growfs /dev/mapper/centos-root #重新读取大小
df -h