1、新增加了一块200G大小的磁盘/dev/sdb

2、pvcreate /dev/sdb

3、pvdisplay查看添加成功的/dev/sdb的大小为200G

4、vgextend centos /dev/sdb其中centos为VG Name

5、lvextend -l +51199 /dev/centos/root

6、步骤5中的51199是pvdisplay查看得到的Free PE,现在已经被使用了不会再是51199了

7、resize2fs /dev/centos/root命令报错了,这就是centos7和centos6细微的差别了

8、Centos7使用命令xfs_growf衡痕贤伎s/dev/centos/root磁盘容量由41G变成了241G,扩容成功
