新增硬盘
fdisk
fdisk -l
fdisk /dev/vdb
p
n
t
8e
w
fdisk -l
pvcreate /dev/vdb1
vgextend centos /dev/vdb1
lvextend -l +100%FREE /dev/mapper/centos-root
more /etc/fstab
xfs_growfs /dev/mapper/centos-root
df -TH
fdisk -l
fdisk /dev/vdb
p
n
t
8e
w
fdisk -l
pvcreate /dev/vdb1
vgextend centos /dev/vdb1
lvextend -l +100%FREE /dev/mapper/centos-root
more /etc/fstab
xfs_growfs /dev/mapper/centos-root
df -TH