删除现有的外挂文件夹,将其容量,扩充进现有LV中。
Step 1:
移除现有文件夹
umount /dev/VolGroup00/iscsi00
Step 2:
删除现有lv和vg
[root@CRM ~]# lvremove /dev/exdisk/exdisk1
Do you really want to remove active logical volume exdisk/exdisk1? [y/n]: y
Logical volume "exdisk1" successfully removed
[root@CRM ~]# vgremove exdisk
Volume group "exdisk" successfully removed
Step 3:
扩充vg和lv
[root@CRM ~]# vgextend cl /dev/sdb1
Volume group "cl" successfully extended
[root@CRM ~]# lvextend -l 100%FREE /dev/cl/root
Size of logical volume cl/root changed from <15.95 GiB (4082 extents) to <50.0 0 GiB (12799 extents).
Logical volume cl/root successfully resized.
Step 4:
扩容XFS
[root@CRM ~]# xfs_growfs /dev/cl/root
meta-data=/dev/mapper/cl-root isize=512 agcount=4, agsize=1044992 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=4179968, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 4179968 to 13106176