Operating System - HP-UX
1753485 Members
4302 Online
108794 Solutions
New Discussion юеВ

Showing free space in volume group

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

Re: Showing free space in volume group

Free MBin VGs.


for list in /dev/vg*
do
pesize=`vgdisplay /dev/vg00|awk '/PE Size/ {print $4}'`
pefree=`vgdisplay /dev/vg00|awk '/Free PE/ {print $3}'`
echo "$list $(( pesize * pefree )) MB"
done


Re: Showing free space in volume group

Hi Bill and Cedrick,

Thanks for the scripts. these are very help- and usefull. I specially like the bdf wrapper which does exactly what I need, great.

Thanks again,
Michiel

Re: Showing free space in volume group

Hi Bill and Cedrick,

Thanks for the scripts. these are very help- and usefull. I specially like the bdf wrapper which does exactly what I need, great.

Thanks again,
Michiel