Disk/dev/xvdc:21.5GB,21474836480bytes
255heads,63sectors/track,2610cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Diskidentifier:0x00000000

[root@localhosthtml]#pvcreate/dev/xvdc
Physicalvolume"/dev/xvdc"successfullycreated
[root@localhosthtml]#vgdisplay
---Volumegroup---
VGNameVolGroup
SystemID
Formatlvm2
MetadataAreas2
MetadataSequenceNo5
VGAcce***ead/write
VGStatusresizable
MAXLV0
CurLV2
OpenLV2
MaxPV0
CurPV2
ActPV2
VGSize27.50GiB
PESize4.00MiB
TotalPE7041
AllocPE/Size7041/27.50GiB
FreePE/Size0/0
VGUUIDmgjhDB-BF22-hhA8-ltxd-fslP-xI0y-Q0C6ZH
[root@localhosthtml]#vgextendVolGroup/dev/xvdc
Volumegroup"VolGroup"successfullyextended

[root@localhosthtml]#vgdisplay
---Volumegroup---
VGNameVolGroup
SystemID
Formatlvm2
MetadataAreas3
MetadataSequenceNo6
VGAcce***ead/write
VGStatusresizable
MAXLV0
CurLV2
OpenLV2
MaxPV0
CurPV3
ActPV3
VGSize47.50GiB
PESize4.00MiB
TotalPE12160
AllocPE/Size7041/27.50GiB
FreePE/Size5119/20.00GiB
VGUUIDmgjhDB-BF22-hhA8-ltxd-fslP-xI0y-Q0C6ZH
[root@localhosthtml]#lvextend-l+5119/dev/mapper/VolGroup-lv_root
Extendinglogicalvolumelv_rootto45.53GiB
Logicalvolumelv_rootsuccessfullyresized
[root@localhosthtml]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/VolGroup-lv_root
26G24G769M97%/
tmpfs497M0497M0%/dev/shm
/dev/xvda1485M32M429M7%/boot
[root@localhosthtml]#resize2fs/dev/mapper/VolGroup-lv_root
resize2fs1.41.12(17-May-2010)
Filesystemat/dev/mapper/VolGroup-lv_rootismountedon/;on-lineresizingrequired
olddesc_blocks=2,new_desc_blocks=3
Performinganon-lineresizeof/dev/mapper/VolGroup-lv_rootto11935744(4k)blocks.
Thefilesystemon/dev/mapper/VolGroup-lv_rootisnow11935744blockslong.

[root@localhosthtml]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/VolGroup-lv_root
45G24G20G55%/
tmpfs497M0497M0%/dev/shm
/dev/xvda1485M32M429M7%/boot
[root@localhosthtml]#df
Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/mapper/VolGroup-lv_root
47002548242417282038722455%/
tmpfs50824005082400%/dev/shm
/dev/xvda1495844319434383017%/boot
150062015006200100%/home/iamyou/iso/d2


[root@localhosthtml]#vgdisplay
---Volumegroup---
VGNameVolGroup
SystemID
Formatlvm2
MetadataAreas3
MetadataSequenceNo7
VGAcce***ead/write
VGStatusresizable
MAXLV0
CurLV2
OpenLV2
MaxPV0
CurPV3
ActPV3
VGSize47.50GiB
PESize4.00MiB
TotalPE12160
AllocPE/Size12160/47.50GiB
FreePE/Size0/0
VGUUIDmgjhDB-BF22-hhA8-ltxd-fslP-xI0y-Q0C6ZH

[root@localhosthtml]#lvdisplay
---Logicalvolume---
LVPath/dev/VolGroup/lv_root
LVNamelv_root
VGNameVolGroup
LVUUIDtWVTIT-JFOG-SdLZ-sYU2-0fNv-VtMV-kjlkq6
LVWriteAcce***ead/write
LVCreationhost,timelocalhost.localdomain,2013-07-1116:25:45+0800
LVStatusavailable
#open1
LVSize45.53GiB
CurrentLE11656
Segments3
Allocationinherit
Readaheadsectorsauto
-currentlysetto256
Blockdevice253:0

---Logicalvolume---
LVPath/dev/VolGroup/lv_swap
LVNamelv_swap
VGNameVolGroup
LVUUIDksYpr3-cmif-8srx-iphm-ormy-nwyy-edPD15
LVWriteAcce***ead/write
LVCreationhost,timelocalhost.localdomain,2013-07-1116:25:48+0800
LVStatusavailable
#open1
LVSize1.97GiB
CurrentLE504
Segments1
Allocationinherit
Readaheadsectorsauto
-currentlysetto256
Blockdevice253:1

[root@localhosthtml]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/VolGroup-lv_root
45G24G20G55%/
tmpfs497M0497M0%/dev/shm
/dev/xvda1485M32M429M7%/boot
[root@localhosthtml]#df-k
Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/mapper/VolGroup-lv_root
47002548242417442038720855%/
tmpfs50824005082400%/dev/shm
/dev/xvda1495844319434383017%/boot