传统运维 - centos 扩容磁盘空间

2021-03-11
fdisk /dev/sda
n x x x x w
reboot

mkfs -t ext4 /dev/sda3
pvcreate /dev/sda3 -f
vgextend centos /dev/sda3
vgdisplay
lvextend -l 100%VG /dev/mapper/centos-root
xfs_growfs /dev/mapper/centos-root
parted /dev/sdb
print free
resizepart 1 100%
print free
quit

e2fsck -f /dev/sdb1
resize2fs /dev/sdb1

标题:传统运维 - centos 扩容磁盘空间
地址:https://blog.njqhome.com:8443/articles/2021/03/15/1633886708171.html