HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
Showing results for 
Search instead for 
Did you mean: 

Total VG's and Total Size All (GB)

Go to solution
Occasional Contributor

Total VG's and Total Size All (GB)



I know, we use #vgdisplay command to find the volume group information. Can you please tell the command to display the 


1. Total Numbe of VG's and

2. Total size All 


Thanks in advance



Honored Contributor

Re: Total VG's and Total Size All (GB)

There isnt really a single command, but you can use vgdisplay to get what you are looking for:


Total number of VG's:


# vgdisplay | grep "VG Name"| wc -l

 As far as total size, what are you looking for?

   -  Total allocated size?

   -  Total size used or available?


If you want total size you can use vgdisplay and grep out "Total PE".  Then you will need to know the PE size and then do the math.  Do this for each VG and again do the math.  This will get you the amount of space in MB used by the volume groups also accounting for any mirroring, etc.




(edited for poor wording on my part)


Was this helpful? Like this post by giving me a thumbs up below!
Occasional Contributor

Re: Total VG's and Total Size All (GB)

Thank you!