Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a problem with /dev/sda1 partition memory issue.

It takes about one week to be filled in 99% without reason. To fix it we just need to reboot server and memory usage back to about 35%.

Total space at this partition is 9.9G.

Please advise,


share|improve this question

migrated from Feb 25 '10 at 23:14

This question came from our site for professional and enthusiast programmers.

I think you're a little confused, /dev/sda1 is a partition on your hard drive, not RAM. Having said that, where is /dev/sda1 mounted, can you post the output of df -h in your question ? – Dave Cheney Feb 25 '10 at 23:16
up vote 2 down vote accepted

You have a file that is being deleted, but not closed by the process that created it. Before you do a reboot, do the following as root:

lsof | grep deleted

You should find some file that is being deleted, but because the process that created it hasn't closed it, the space is still being used.

share|improve this answer
+1: or /tmp is filling up and a init script empties it during startup. – Trevor Harrison Feb 26 '10 at 16:36

Once it has filled, can you, from /, run the command du -h --max-depth=1 This will give you a listing by directory of where the space is being used. Then can you go into the folder which is taking up the most space (/var at a guess) and then do the same. You should be able to figure out where the space is going. I presume this is going to be logs/mail- depending on what the server role is.

share|improve this answer

what's /dev/sda1 used for? If it's for /var or for '/' which holds /var, you might have logs overflowing, or mailboxes not being cleaned out

share|improve this answer
Its used for /, thanks – Marcin Feb 26 '10 at 11:48

We really need to see your partition table. But I conjure the reason that it's filling up is that you're writing tons of junk to /tmp and not cleaning it out, and /tmp is not on its own partition.

share|improve this answer

you should also try the ps aux to see which is the program who eat a lot of your memory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.