-   Linux - Software (
-   -   Root Filesystem (/) appears almost Full (

raheel_com88 11-19-2012 11:10 PM

Root Filesystem (/) appears almost Full
Dear Viewers,

I have a Linux WCCP Server. It's / appears 25G/30G even nothing large is stored on it. The Largest firetory stored on it is of 1.9G. I can't figured it out. I thoroughly checked it using this command:

du -sh *

I even restart the server so many time to referesh its inodes but every step is useless.

Can anyone help me? Quick response will be highly appreciated.

Muhammad Raheel Arshad
Systems Engineer

chrism01 11-20-2012 01:01 AM

Well, this will measure by KB and sort numerically

du -s *|sort -k1 -n
then you need to go through the dirs, starting with the largest and figure out what's there.

You can use

df -h .
as you go to check that you're only looking at stuff on the '/' partition.

syg00 11-20-2012 02:12 AM

I find it better to reverse sort, and pipe it to head. Then just start working your way down the list.

rknichols 11-20-2012 10:09 AM

OK, by restarting the server you've eliminated the possibility of a large unlinked file held open by some process. One thing that remains is data hidden under an active mount point, the result, for example, of copying /home to a separate file system and then mounting that on /home without first removing the original content. Try this:

mkdir /tmp/tmproot
mount --bind / /tmp/tmproot
du -c --max-depth=2 /tmp/tmproot

If unwanted data shows up, you can delete it from /tmp/tmproot and free up that space in your root file system. Afterward, you can "umount /tmp/tmproot" and "rmdir /tmp/tmproot" and be back to normal (or, just reboot).

All times are GMT -5. The time now is 12:17 PM.