1,查看磁盘分区,确保lvm中有可用的磁盘空间

     #fdisk -l

2. 查看vg,存在剩余空间

     # vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 9.97 GB
PE Size 32.00 MB
Total PE 319
Alloc PE / Size 319 / 9.97 GB
Free PE / Size 292 /  9.13G
VG UUID o8XLQS-jxb8-ZKid-sYxF-y97T-1M1S-AKBdz3

3. 由于vg中存在剩余空间,所以直接扩展lv即可

查看 / 分区的lv信息

#mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)

....................

扩展

#lvextend -l +292 /dev/VolGroup00/LogVol00  <扩展剩下的全部PE,最大利用>

# umount /
umount: /: device is busy
umount: /: device is busy

4. 执行文件系统检查:
# e2fsck -f /dev/VolGroup00/LogVol00

............

Do you really want to continue (y/n)? yes

............

5. 执行resize2fs
# resize2fs /dev/VolGroup00/LogVol00

6. 重新查看lv信息和mount的信息
# lvdisplay

#mount

#df -h