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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-12-2009, 04:39 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2009
Posts: 3
Rep:
|
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?
|
|
|
|
08-12-2009, 05:53 AM
|
#2
|
|
Member
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78
Rep:
|
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
|
|
|
|
08-12-2009, 08:51 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2009
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by junust
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?
|
|
|
|
08-13-2009, 01:38 AM
|
#4
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,963
|
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.
|
|
|
|
|
08-13-2009, 02:44 AM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
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.
|
|
|
|
08-13-2009, 03:29 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2009
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by Wim Sturkenboom
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:27 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|