Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disk space

Jeff Hagstrom
Regular Advisor

Disk space

Is there a report or command that will show how much disk space is on the Machine? How much is being used? And how much is unallocated?
6 REPLIES
Ken Hubnik_2
Honored Contributor

Re: Disk space

bdf or you can use showfree
Vicente Sanchez_3
Respected Contributor

Re: Disk space

Hi Jeff,

bdf is the command you need.

Regards, Vicente.
MANOJ SRIVASTAVA
Honored Contributor

Re: Disk space

Hi Jeff


how much sapce and how much is unallocated ,

sam-->disks and file systems-->Volume Groups.
or you can run something like

vgdisplay | grep PE | grep -v PV | grep -v Mb

to know Total PE, Alloc PE and Free PE volume grouop wise.


there are some scripts which i collected from these forms only which u can use to get eh information too .



Manoj Srivastava
James R. Ferguson
Acclaimed Contributor

Re: Disk space

Hi Jeff:

Depending on what exactly you are looking for some combination of one or more of the following commands suffice:

# ioscan
# diskinfo
# pvdisplay
# vgdisplay
# lvdisplay
# bdf

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Disk space

Jeff,

Yes, bdf will take care of filesystem space, but, if you have raw logical volume space (like database space for example), you need to also look at vgdisplay -v.

Pete

Pete
S.K. Chan
Honored Contributor

Re: Disk space

Use ..
# bdf -l
to see the utilization of a configured and mounted filesystem space. It does not represent all available disk space.
Other commands and combination of commands are needed to determine the "unconfigured" disk space. For example ..
# ioscan -fnC disk
==> Take not of all disk paths.
# /etc/diskinfo /dev/rdsk/cXtXdX
==> Find out the capacity of a disk.
# strings /etc/lvmtab
==> Find out which disks are configured with LVM.
.. and so on ..