Operating System - HP-UX
1846630 Members
1977 Online
110256 Solutions
New Discussion

How to see the "raw" file system free space,available and total disk space.

 
M.sureshkumar
Regular Advisor

How to see the "raw" file system free space,available and total disk space.

Hi All,

I had created 5 raw file system in hp-unix server i.e each raw file system has 250MB space. I want to see each raw file system free disk space.which coomand can i use to see free space in raw file system.In vxfs or hfs,we can use "bdf" command, it displays total disk spsce,free disk space and available disk space.so which command can i use to see free,available and total disk space in "RAW" file system.

Regards,
Sureshkumar.
5 REPLIES 5
yuli_3
Advisor

Re: How to see the "raw" file system free space,available and total disk space.

maybe u can use "lvdisplay" or "vgdisplay"
Mohanasundaram_1
Honored Contributor

Re: How to see the "raw" file system free space,available and total disk space.

Hi Suresh,

I don't think you can do that from OS level. Maybe your database utilities can provide you this detail. I am not aware.

This is because, OS does not understand what is written on the raw space by the RDBMS. It is entirely managed by the RDBMS.

lvdisplay only gives information about the total extents assigned to that LV. It does not indicate the data space.

Hope this helps.

With regards,
Mohan.
Attitude, Not aptitude, determines your altitude
Trond Haugen
Honored Contributor

Re: How to see the "raw" file system free space,available and total disk space.

Mohan is right. The only "raw" volume HP-UX knows about is swap. All other volumes without a filesystem are "free".
If you have some application (Database ?) using that raw volume, IT is the only "thing" that can know about the disk usage.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Bill Hassell
Honored Contributor

Re: How to see the "raw" file system free space,available and total disk space.

There is no such thing as a "raw filesystem" and bdf (du, ll, etc) only report on files and directories. Your application (Informix, Sybase, etc) has been given specific logical volumes and 100% of the space inside this volume is used by the application. There are no files or directories, just numbers that point to chunks of data. So each raw disk is by definition "full".

You cannot reduce any raw volume without destroying the entire contents. You must ask the database administrator to determine how much space inside the volume is used, but keep in mind that values are probably scattered all over the volume. The only way to reduce a raw volume for an application is to export all the data into a set of files using the database, then restore the data into a new raw volume.


Bill Hassell, sysadmin
Basheer_2
Trusted Contributor

Re: How to see the "raw" file system free space,available and total disk space.

Hi Suresh,

If you are using raw vols for databases, each database has its own command (and related tables) that will show how much allocated, free, and used.

for eg: in informix
onstat -d will show you the results

Thanks
Basheer