Operating System - HP-UX
1834939 Members
2124 Online
110071 Solutions
New Discussion

Re: Newbie disk space question

 
SOLVED
Go to solution
Jeff Thomas_1
Contributor

Newbie disk space question

Hi,

Could someone share the command with me to check to see how much disk space is available on a drive or cluster of drives? Thanks.
Thanks so much for helping a newbie!
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: Newbie disk space question

Hi Jeff:

For a particular volume group:

# vgdisplay -v /dev/vgXX

For all volume groups:

# vgdisplay -v

For a physical disk:

# pvdisplay /dev/dsk/cXtYdZ

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: Newbie disk space question

Hi Jeff,
There are several commands that apply.
For mounted filesystems, try bdf.

For volume groups, try vgdisplay -v
e.g. vgdisplay -v vg00


There is also a du command which might interest you.

man vgdisplay,pvdisplay,bdf,du for details.

The best way to learn is to simply use these commands.

Clay

If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Newbie disk space question

One more that comes to mind is diskinfo that can be used on unconfigured disks.
man diskinfo for those details.

Clay
If it ain't broke, I can fix that.
MANOJ SRIVASTAVA
Honored Contributor

Re: Newbie disk space question

for a volume group

vgdisplay /dev/vg01

and then multiply Free PE's with the PE Size , to get the total free space in that vg.

The same can be done with -v and then you can see it for individual disks.

Also for a the mounted partitions ,you know it is bdf or df .


Manoj Srivastava