第一种方式:添加一块空硬盘进行扩容
fdisk -l,查询到是/dev/sdb,
创建PV
[root@localhost ~]# pvcreate /dev/sdb
Physical volume “/dev/sdb” successfully created.
扩展VG
[root@wls10306-01 ~]# vgextend rhel /dev/sdb
Volume group “rhel” successfully extended
扩展逻辑卷
[root@localhost ~]# lvextend -L +2G /dev/mapper/rhel-root
Rounding size to boundary between physical extents: 1.90 GiB.
Size of logical volume rhel/home changed from <8.37 GiB (2142 extents) to <10.27 GiB (2629 extents).
Logical volume rhel/home successfully resized.
EXT4或者EXT3文件系统,使用resi