Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ive done many many finds, du etc etc and i cannot locate a 4GB file on the root partition ir anything that adds up to 4GB. As this machine mounts a lot ( as terabytes) of data, so random finds for files over 500M isnt appropriate.
I also went through each directory that isnt on the root partition manually and still couldnt find anything that got over 10M. Overall adding up the directories in the filesystem, minus /proc doesnt equal anywhere near 4gig, more like a couple hundred meg.
The only place where a 4gig file is referenced is in /proc. and that file isnt actually on the filesystem.
Reboot is out of the question
im stumped.
Suggestions?
Last edited by dxangel; 08-26-2009 at 10:29 AM.
Reason: because people dont read it the first time :/
Ive done many many finds, du etc etc and i cannot locate a 4GB file on the root partition ir anything that adds up to 4GB. As this machine mounts a lot ( as terabytes) of data, so random finds for files over 500M isnt possible.
I also went through each directory that isnt on the root partition manually and still couldnt find anything that got over 10M. Overall adding up the directories in the filesystem, minus /proc doesnt equal anywhere near 4gig, more like a couple hundred meg.
The only place where a 4gig file is referenced is in /proc. and that file isnt actually on the filesystem.
Reboot is out of the question
im stumped.
Suggestions?
try this
Code:
find / -type f -printf '%k %u %p \n' | perl -nae 'print if $F[0] > 50000'
This will search for any files that are bigger then 50000kb (roughly 50mb)
you can alway send the command output to a file for further analysis.
Code:
find / -type f -printf '%k %u %p \n' | perl -nae 'print if $F[0] > 50000' > out_file
It takes a very careful read of this thread to even try to guess what question is being asked. I doubt most experts who might be helpful at finding the answer will guess the question.
I think the question is what is taking up all the space on
/dev/cciss/c0d0p3
The OP has listed all the subdirectories of / (including /proc) which are not located on /dev/cciss/c0d0p3. Other subdirectories of / are located on /dev/cciss/c0d0p3 and somewhere in there is some use of space that the OP doesn't understand (if I'm correctly guessing the question).
Edit:
Quote:
Originally Posted by centosboy
start off with the /var directory
Some content was lost when GrapefruiTgirl removed the flames, so please notice that /var is one of the directories listed by the OP as not being physically included in the filesystem that has the unexplained use of space.
It takes a very careful read of this thread to even try to guess what question is being asked. I doubt most experts who might be helpful at finding the answer will guess the question.
I think the question is what is taking up all the space on
/dev/cciss/c0d0p3
The OP has listed all the subdirectories of / (including /proc) which are not located on /dev/cciss/c0d0p3. Other subdirectories of / are located on /dev/cciss/c0d0p3 and somewhere in there is some use of space that the OP doesn't understand (if I'm correctly guessing the question).
That is correct, yes. However everything that is on /dev/cciss/c0d0p3 does not add up to 4GB.
However everything that is on /dev/cciss/c0d0p3 does not add up to 4GB.
I think df is telling you that what is actually on /dev/cciss/c0d0p3 does add up to 4GB and that is excluding anything (including /proc and /var etc.) that is mounted as subdirectories in or below /
I assume there is some tool that will go through every subdirectory from a specific path (initially /) and for each recursively add up all the used space below that subdirectory and will skip all soft links, all hard links and all directory entries to which other file systems have been mounted (in other words skip everything that is really somewhere else).
I don't happen to know what tool that is, but if you asked more nicely, I expect one of the experts would tell you. With such a tool, you ought to be able to figure out where that 4GB is hiding.
But I also don't know how you look for more obscure uses of disk space. For example, I think that if you open a file and then delete it, it will no longer appear in the directory it was in but it will still exist on disk, taking up space, until you close it. Experts may know how you find out whether a lot of space is tied up that way and/or know what other ways there are to tie up disk space without showing up in directories.
I think df is telling you that what is actually on /dev/cciss/c0d0p3 does add up to 4GB and that is excluding anything (including /proc and /var etc.) that is mounted as subdirectories in or below /
I assume there is some tool that will go through every subdirectory from a specific path (initially /) and for each recursively add up all the used space below that subdirectory and will skip all soft links, all hard links and all directory entries to which other file systems have been mounted (in other words skip everything that is really somewhere else).
I don't happen to know what tool that is, but if you asked more nicely, I expect one of the experts would tell you. With such a tool, you ought to be able to figure out where that 4GB is hiding.
But I also don't know how you look for more obscure uses of disk space. For example, I think that if you open a file and then delete it, it will no longer appear in the directory it was in but it will still exist on disk, taking up space, until you close it. Experts may know how you find out whether a lot of space is tied up that way and/or know what other ways there are to tie up disk space without showing up in directories.
Yes, I have examined the directories on /dev/cciss/c0d0p3 using du -h which examines and adds up all space used in the manner that you describe.
Ive also examined the system using lsof.
Im going to sum up this issue, in case my original post is too hard to understand.
the root partition is 6meg away from filling up.
the machine is partitioned out so things like /var /tmp are not on the same filesystem as / ( see OP )
the device is /dev/cciss/c0d0p3
du -h on the directories on c0d0p3
boot/ bin/ initrd/ media/ mnt/ lib
lib64/ misc/ root/ srv/ etc/ mnt/ sbin/
show no more than a couple of hundred meg used.
lsof shows nothing is writing to the device
There is also a kcore file of 4.8GB
Reboots are out of the question.
Im not going to sit here and beg for crumbs from 'experts' - i am seriously interested in what people might think it is. I am still working on the issue myself. IMHO i think this may be an issue with a process taking out a R/W file descriptor, then unlinking it.
I don't know the real solution to your problem. But, as far as I can see, you are not running a find on it since it has lot of other file systems mounted on it. Why not run find with -xdev (-mount) option? Du has a similar option (-x). Hope this helps.
1) Did you use lsof as root? Much of the info is missing if you aren't root.
2) What does "writing" matter. Even opening a file for read can keep tie up the disk space of that file even if something else deletes the file. You want to know if large files or large numbers of files are open that would be physically located in that filesystem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.