LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 08-12-2009, 05:39 AM   #1
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3
Thanked: 0
wheres my disk space going?


[Log in to get rid of this advertisement]
Ive an oracle install on rh 4 (I think its 4, not in front of it, on another site).

/u01 has the oracle binaries, 20gb volume. If as root I cd to /u01 and a du -sk, I can see total directories total 14gb. If I do a df -k, /u01 has 19gb used. Wheres the other 5gb?
Wherever its gone its increasing usage a few mb every few minutes. Ive cleared down many gb, Ive no tracing, loggin or auditing. Can there be something memory related eating that disk that wouldnt show up in a du search?

From /u01 as root I also did
ls -lR >> file1 ,
waited 30 minutes,
ls -lR >> file2

diff file1 file2 >> diffs
showed nothing, few small log files oracle related but nothing to show whats eating the space.

Anyone?
clint_silver is offline  
Tag This Post , ,
Reply With Quote
Old 08-12-2009, 06:53 AM   #2
junust
LQ Newbie
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9
Posts: 29
Thanked: 0
Hi, do you realise, that, when do you do du -k from directory position you will see directory containing data size, but when you just do df -h or -k /something, you'll see just the volume(partition)size of course it will be more data, then just du -h or -k from directory state
junust is offline     Reply With Quote
Old 08-12-2009, 09:51 AM   #3
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3
Thanked: 0

Original Poster
Quote:
Originally Posted by junust View Post
Hi, do you realise, that, when do you do du -k from directory position you will see directory containing data size, but when you just do df -h or -k /something, you'll see just the volume(partition)size of course it will be more data, then just du -h or -k from directory state
not sure I totally follow

logon as root
cd /u01
du -sk *

dir1 = 5gb
dir2 = 5gb
dir3 = 4gb

= total 14gb

now do

df -k
u01 vol =20gb used = 19.5bg free= .5gb

what are you saying there?
clint_silver is offline     Reply With Quote
Old 08-13-2009, 02:38 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,419
Thanked: 325
See post #4: http://www.linuxforums.org/forum/mis...reporting.html
Quote:
It's quite simple really: du and df are two quite different programs, and as such they do different things.

du collects recursive disk usage on a certain directory, and therefore gives the result you expect.

df, however, only gives information an entire filesystems. It doesn't care the slightest about certain subdirectories inside a filesystem. In more technical terms, df is just a front-end to the statfs syscall.

Quote:
Originally Posted by The manpage for df
With no arguments, df reports the space used and available on all cur-
rently mounted filesystems (of all types). Otherwise, df reports on
the filesystem containing each argument file.
As you can see from that, if you call df with a directory as the argument, it will report information about the filesystem that the given directory resides on, not about the directory itself.
chrism01 is offline     Reply With Quote
Old 08-13-2009, 03:44 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 8.04 (upgraded from 6.06), Ubuntu Netbook Remix 9.04
Posts: 2,741
Thanked: 87
You might have files that are deleted but still 'in use' by an application. See http://www.linuxquestions.org/questi...rom-du-632127/

Last edited by Wim Sturkenboom; 08-13-2009 at 03:51 AM..
Wim Sturkenboom is offline     Reply With Quote
Old 08-13-2009, 04:29 AM   #6
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3
Thanked: 0

Original Poster
Quote:
Originally Posted by Wim Sturkenboom View Post
You might have files that are deleted but still 'in use' by an application. See http://www.linuxquestions.org/questi...rom-du-632127/
I agree with both, ie, something could have been deleted but for the life I cant think what, there are no logs or traces going to /u01, all datafiles for the oracle database are located elsewhere, this is something that started 3-4 days ago, and last night suddenly cleared itself out. Noone else on the box except me.

If it was something temporary memory related where a process on the box used a chnk of disk space for memory, but Ive never heard of this in 15 years in oracle where oracle used disk space on /u01 to do this. This box has been in use for last 2 years and this is first instance of it. All very strange. Thanks for suggestions.
clint_silver is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 2 09-22-2008 02:02 AM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 01:33 PM
wheres the rest of the hdd space go? conandor Solaris / OpenSolaris 3 05-08-2008 07:52 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 07:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration