Linux - GeneralThis 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.
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.
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.