Operating System - HP-UX
1820254 Members
2619 Online
109622 Solutions
New Discussion юеВ

How to check total disk space

 

How to check total disk space

Hi Friends,

Please tell me how to check total disk allocated,and how much free on system .

If possible tell me how to check on IBM, SUN, Digital system also.


Many thanks,
In advance.

Pratibha
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: How to check total disk space

You use "bdf" for file system space. For other, "raw" space (like for DB areas, where there is no file system), you can use vgdisplay/lvdisplay and do the math. The other OS systems will most likely have some version of "df", but I can't say for sure.


Pete

Pete
Fabio Ettore
Honored Contributor

Re: How to check total disk space

Hi,

vgdisplay, lvdisplay do indicate how much space is available on Physical Volumes and Logical Volumes respectively.
Then bdf is the command to see the occupied/available space for mounted filesystems.

Here a link for commands on other OS:

http://www.unixguide.net/unixguide.pdf

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Joachim Noffke
Occasional Advisor

Re: How to check total disk space

The command on Sun is "df -k".
Md.Shahabuddin
Advisor

Re: How to check total disk space

Hi Pratibha,

You can use bdf command to see the file system usage and availability in hpux, df -g command in AIX, df command in solaris.

And if u want to see the disk usage

step1: Go to that directory
step2: du -sk * |sort -n

This command will show you the usage of files and directories under that file system.
Emil Velez
Honored Contributor

Re: How to check total disk space


bdf and df (most other unixes)

shows file system space assuming that your disks are fully allocated to file systems.

In hpux you give a disk over to a volume group or vxvm disk group. You then allocate space from the volume or disk group into a logical volume or volume for a filesystem.

You can use vxdisk -o alldgs list
will show you what disks are being used for LVM or VXVM.

To check how much disk space is unallocated in a LVM volume group do a

vgdisplay -v

on the bottom it should list your disks and show you how much space is unallocated on those disks.

You can use vxprint to print out the space allocated in vxvm disk groups.

You can use sam on 11.23 or older and the system homepage disk tools to see a GUI view of this information.

Suraj K Sankari
Honored Contributor

Re: How to check total disk space

Hi,

1. Take a vgdisplay ├в v vg00
2. identify the disks /dev/dsk/Cxtxdx
3. pvdisplay ├в v /dev/dsk/Cxtxdx
4. claculate free pe with pe size
Suraj