1748259 Members
3995 Online
108760 Solutions
New Discussion юеВ

Re: Missing disk space

 
SOLVED
Go to solution
Francis No├лl
Regular Advisor

Missing disk space

Hello all
I am facing a situation where with a file system where the disk space used by files is not the same as the total used space in the filesystem. Here is some output to illustrate this. ( I tried to format as best I could )

lhpdev1(/)# du -ks /cpa3
702813 /cpa3

lhpdev1(/)# df -k /cpa3
/cpa3 (/dev/vg40/lvcpa3) : 3010858 total allocated Kb
918085 free allocated Kb
2092773 used allocated Kb
69 % allocation used

Correct me if I'm wrong but it seems to me that 2 Gb are used, but I have only 700 Mb worth of files.

This filesystem houses some Oracle 9i databases and it is not an option to unmount it right now.

So where do I go from here ? I'd liek to know where the "missing" Gb went :)
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Missing disk space

Hi Francis,

If you have lsof installed, try to locate the open files, an application may still have files open while the files are removed.

# lsof /cpa3

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: Missing disk space

This is almost always a case of a file(s) having been deleted while an application still has it open. The bdf command will not report this space as free until the application ends and closes the file(s) in question.


Pete

Pete
Francis No├лl
Regular Advisor

Re: Missing disk space

Thank you for your answers

lsof shows a bunch of open files that are all attached to the same oracle process.

I'll have that database restarted later today to release the files.

Francis No├лl
Regular Advisor

Re: Missing disk space

Closed the database, the process that was holding on to the files exited, the space was freed on the filesystem.

All is good, thank you again for you quick and helpful input.