Operating System - HP-UX
1823920 Members
3227 Online
109667 Solutions
New Discussion юеВ

Adding up LV sizes in a volume group

 
Donald C Nelson
Frequent Advisor

Adding up LV sizes in a volume group

I create this output from a "vgdisplay -v" to determine LV sizes but I would like to add these values up to get a total value.

vg01
100
100
100

vg02
100
100
100
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: Adding up LV sizes in a volume group


NO NEED TO:

vgdisplay -v | grep -e "^VG Name" -e "^Alloc PE"

live free or die
harry d brown jr
Live Free or Die
Donald C Nelson
Frequent Advisor

Re: Adding up LV sizes in a volume group

This will work fine