Operating System - HP-UX
1752725 Members
5723 Online
108789 Solutions
New Discussion

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

 
SOLVED
Go to solution
Sam1586
Occasional Contributor

Total VG's and Total Size All (GB)

Hi,

 

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

 

Sam

2 REPLIES 2
Robert_Jewell
Honored Contributor
Solution

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.

 

-Bob

 

(edited for poor wording on my part)

 

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

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

Thank you!