[root@szm ~]# vgdisplay

  --- Volume group ---
  VG Name               vg_szm
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               13.67 GiB
  PE Size               4.00 MiB
  Total PE              3499
  Alloc PE / Size       2000 / 7.81 GiB
  Free  PE / Size       1499 / 5.86 GiB----这里有空间,
  VG UUID               2r98Q2-bIGD-EXEZ-FmBy-JllD-EBRs-fnhEML
 
 
[root@szm ~]# vgextend vg_szm /dev/sda9(sda9为8e类型)
 
[root@szm ~]# pvcreate /dev/sda9
  Physical volume "/dev/sda9" successfully created
[root@szm ~]# vgextend vg_szm /dev/sda9
  Volume group "vg_szm" successfully extended
[root@szm ~]# vgdisplay
  --- Volume group ---
  VG Name               vg_szm
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               14.68 GiB
  PE Size               4.00 MiB
  Total PE              3757
  Alloc PE / Size       2000 / 7.81 GiB
  Free  PE / Size       1757 / 6.86 GiB----加了1G大小
  VG UUID               2r98Q2-bIGD-EXEZ-FmBy-JllD-EBRs-fnhEML
 
[root@szm ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg_szm/LogVol00
  VG Name                vg_szm
  LV UUID                6ZNZln-s1Ch-ohmL-pBi7-Fmfi-Wb9j-SUI331
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                7.81 GiB
  Current LE             2000
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
 
[root@szm ~]# lvextend -L 1G /dev/vg_szm/LogVol00
  New size given (256 extents) not larger than existing size (2000 extents)
  Run `lvextend --help' for more information.
 
[root@szm ~]# lvextend -L +1G /dev/vg_szm/LogVol00
  Extending logical volume LogVol00 to 8.81 GiB
  Logical volume LogVol00 successfully resized
 
[root@szm ~]# resize2fs /dev/vg_szm/LogVol00
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_szm/LogVol00 is mounted on /home; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/vg_szm/LogVol00 to 2310144 (4k) blocks.
The filesystem on /dev/vg_szm/LogVol00 is now 2310144 blocks long.
 
[root@szm ~]# df -h | grep home
                      8.7G  147M  8.1G   2% /home