Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding the ttoal disk space in server

Status
Not open for further replies.

sirron

Programmer
Mar 11, 2004
139
US
Is there a wat to find the total disk space on an AIX
box?
I know I can use the command (DF) that shows disk space on
each mount point.
Is there a way to get the total?
 
hi

You can also do lsvg VGNAME on each volume group
and look at total PPS and used PPs

 
Following up DSMARWAY, you'll need to multiply the PP Size by the Total PP's to get the total size for the VG. Add up all vg's on the disk to get the total for a disk.

 
vi list.disks

lspv | awk '{print $1}' > list

while read list
do
lspv -L $list | grep "TOTAL PPs"|awk '{print $4,$5}'
done <list

:wq

chmod 755 list.disks
./list.disks

should do it


--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top