Operating System - HP-UX
1827756 Members
2863 Online
109969 Solutions
New Discussion

OS do not display proper disk size usage

 
Ravinder Singh_3
Occasional Contributor

OS do not display proper disk size usage

Hi,

We have a mount point /dv/u06 which displays inaccurate information on the disk size usage.

I get

bdf |grep u06
/dev/vg03/dvu06 15728640 713024 14898312 5% /dv/u06

It shows only about 700Mb used and the same I also obtain with du -ks command.

However, on the mount point I have about 5.7 GB of files ie

ls -l /dv/u06/app/retailideas/data/ritest

-rw-r----- 1 oracle9i oinstall 13852672 Jul 26 11:01 CONTROL_01_ritest.ctl
-rw-r----- 1 oracle9i oinstall 20979712 Jul 26 11:01 DRSYS_01_ritest.dbf
-rw-r----- 1 oracle9i oinstall 20979712 Jul 26 11:01 DRSYS_02_ritest.dbf
-rw-r----- 1 oracle9i oinstall 104858624 Jul 26 09:31 REDO_01_ritest.log
-rw-r----- 1 oracle9i oinstall 524296192 Jul 26 11:01 SYSTEM_01_ritest.dbf
-rw-r----- 1 oracle9i oinstall 1073750016 Jul 26 10:44 TEMP_02_ritest.dbf
-rw-r----- 1 oracle9i oinstall 1073750016 Jul 26 10:44 TEMP_03_ritest.dbf
-rw-r----- 1 oracle9i oinstall 1073750016 Jul 26 10:44 TEMP_04_ritest.dbf
-rw-r----- 1 oracle9i oinstall 1073750016 Jul 26 10:44 TEMP_05_ritest.dbf
-rw-r----- 1 oracle9i oinstall 1073750016 Jul 26 10:44 TEMP_06_ritest.dbf
-rw-r----- 1 oracle9i oinstall 20979712 Jul 26 11:01 XDB_01_ritest.dbf
-rw-r----- 1 oracle9i oinstall 20979712 Jul 26 11:01 XDB_02_ritest.dbf

Just wondering why the discrepancy... All replies are appreciated... Thanks

4 REPLIES 4
Sajeesh O.K
Advisor

Re: OS do not display proper disk size usage

Hi

Make sure this path is not a sperate file system.
bdf | grep u06

Regards
Sajeesh
Bharat Katkar
Honored Contributor

Re: OS do not display proper disk size usage

HI,
See the link below. It discusses about the diffrences in BDF and DU output.

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x308b402f24d5d61190050090279cd0f9%2C00.html&admit=716493758+1091002093695+28353475

That should help.
Regards,
You need to know a lot to actually know how little you know
Ravinder Singh_3
Occasional Contributor

Re: OS do not display proper disk size usage

Hi Bharat,

There is no discrepancy between du and bdf.
Just that a manual count as shown above will tell there are about 5.7 GB already used...

I even tried to umount and mount but no success...

Rgds,
Ravin
Fred Ruffet
Honored Contributor

Re: OS do not display proper disk size usage

Hi !

To make it simple :
Your "problem" comes from Oracle's tempfile.

When you say Oracle it must create a tempfile of 1GB, it doesn't. It creates a file in wich it only puts the needed data, and that will grow to a maximum of 1GB.

What Oracle doesn't want is that when it will need those 1GB, it will be able to take it. So it preallocates the space. So you may have a file that has a size of 200MB, but with 1GB preallocated.

du or bdf shows you the real size. ls shows you the preallocated.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)