1827892 Members
1699 Online
109969 Solutions
New Discussion

Disk usage

 
P.V.Ramesh
Advisor

Disk usage

Hi

I have a 4 GB HDD and different filesystems like /, /stand,/home etc. All these filesystems consumed 2GB. How do i know how much free space available on disk using any command.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Disk usage

Use bdf:
$ bdf -l
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 204800 40330 154277 21% /
/dev/vg00/lvol1 127573 45019 69796 39% /stand
/dev/vg00/lvol9 1024000 481316 513435 48% /var
/dev/vg00/lvol8 1576960 802403 727215 52% /usr
/dev/vg00/lvol7 65536 5244 56561 8% /tmp
/dev/vg00/lvol6 1024000 282213 695460 29% /opt
/dev/vg00/lvol5 1024000 405126 580289 41% /home

It gives total, used and available for each file system.

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Disk usage

Hi:

'bdf' reports used and free space on mounted filesystems.

If you want to know allocated and free space on a *physical* disk, use:

# pvdisplay /dev/dsk/cXtYdZ

For a volume group (at large) use:

# vgdisplay /dev/vgXX

Regards!

...JRF...

Craig Rants
Honored Contributor

Re: Disk usage

I will ususally look at the vg info i.e.

vgdisplay vgXX | grep -i Free
vgdisplay vgXX | grep -i Size

take the results of each and multiply.

so you may see 500 and 4, when multiplied would give your 2000MB or 2GB.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Ravi_8
Honored Contributor

Re: Disk usage

Hi,

As per JRF, we can find the free disk space.
Another method is by using SAM.
try to create a dummy logical volume (lvol), it shows the total disk space remaining
never give up
Pete Randall
Outstanding Contributor

Re: Disk usage

I misinterpreted your question, you need vgdisplay and pvdisplay, like James and Craig suggested.

Pete

Pete
harry d brown jr
Honored Contributor

Re: Disk usage

You have about 120 posts that you haven't responded to:
http://forums.itrc.hp.com/cm/TopSolutions/1,,BR702248!1!questions,00.html

live free or die
harry
Live Free or Die