1.分区,
  查看磁盘使用:fdisk -l

对磁盘分区:fdisk /dev/sdb

2.创建pv

pvcreate /dev/sdb1

查看pv: pvdisplay

3.查看vg
 
vgdisplay
  --- Volume group ---
  VG Name               VolGroup00

4.扩容vg
  vgextend VolGroup00 /dev/sdb1
  Volume group "VolGroup00" successfully extended

5.检查vg

6.查看lv

7.扩容lv

8.查看lv

9.扩容磁盘空间

扩容分区:resize2fs /dev/mapper/lv_root

xfs扩容分区:xfs_growfs /dev/mapper/lv_root

查看: df -h

完成

05-28 09:49