VGDISPLAY

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

VGDISPLAY

Post by a24uall »

root@server007 [~]# vgdisplay
--- Volume group ---
VG Name vg_server007
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 119.51 GiB
PE Size 4.00 MiB
Total PE 30594
Alloc PE / Size 30594 / 119.51 GiB
Free PE / Size 0 / 0
VG UUID qqsNcv-0FPR-UN10-dQ93-Eg5U-EGrS-rE50J1
Arun
WebhostingDevelopment.com
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Re: VGDISPLAY

Post by a24uall »

Below indicates that in LVM there is a total of 128Gb of HDD ( 53.7 + 19 + 55.6 = 128.3 GB )
root@serverhost [~]# fdisk -l | grep Disk
Disk /dev/sda: 128.8 GB, 128849018880 bytes
Disk /dev/mapper/vg_serverhost-lv_root: 53.7 GB, 53687091200 bytes
Disk /dev/mapper/vg_serverhost-lv_swap: 19.0 GB, 19025362944 bytes
Disk /dev/mapper/vg_serverhost-lv_home: 55.6 GB, 55608082432 bytes
root@serverhost [~]#
Below command says that the disk space that can be used is 119.51 GB.
root@serverhost [~]# vgdisplay | grep "VG Size"
VG Size 119.51 GiB
root@serverhost [~]#

Below command says there is 10GB of free space that can be used to extend the LVM

Code: Select all

root@serverhost [/]# vgdisplay | grep "Free  PE / Size"
  Free  PE / Size       320 / 10.00 GB
root@serverhost [/]# 
Arun
WebhostingDevelopment.com
Post Reply

Return to “LVM Commands”