LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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

Reply
 
Search this Thread
Old 08-12-2009, 04:39 AM   #1
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
wheres my disk space going?


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?
 
Old 08-12-2009, 05:53 AM   #2
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78

Rep: Reputation: 15
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
 
Old 08-12-2009, 08:51 AM   #3
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 08-13-2009, 01:38 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,264

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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.
 
Old 08-13-2009, 02:44 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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 02:51 AM.
 
Old 08-13-2009, 03:29 AM   #6
clint_silver
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
disk, space, usage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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 3 02-22-2013 12:57 PM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 12:33 PM
wheres the rest of the hdd space go? conandor Solaris / OpenSolaris 3 05-08-2008 06:52 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM


All times are GMT -5. The time now is 11:21 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration