Portal Home > Knowledgebase > Articles Database > /tmp directory still full after reboot!


/tmp directory still full after reboot!




Posted by VPSRun, 12-25-2009, 02:03 PM
Hello all, First of all, let me start by saying happy holidays to all of you! Secondly, I'm having an issue with my /tmp directory. I have a Quad Core server, with 8GB RAM and a 1TB HD. Lately, the /tmp directory has been filling up rapidly and it keeps getting to 100% even after I do a reboot of the server. How can I get this resolved? Once again, thanks again.

Posted by GigeWeb, 12-25-2009, 02:11 PM
If you have SSH access to the server may want to look at this: http://www.webhostingtalk.com/showthread.php?t=539002

Posted by VPSRun, 12-25-2009, 02:17 PM
Already looked there and tried everything. Still 100% full though.

Posted by markhard, 12-25-2009, 04:22 PM
what is the content of /tmp that make it full?

Posted by Avalon Systems, 12-25-2009, 04:25 PM
As an SU user.) cd /tmp rm -rf * If after running that your /tmp is still full (du -ha /tmp), then there's something quite odd going on, as that command should completely empty it.

Posted by OpenInternet-Vince, 12-25-2009, 04:29 PM
Ummmm.. that's not exactly the best way of cleaning up the /tmp ...

Posted by Avalon Systems, 12-25-2009, 04:34 PM
If you want to completely clear out the /tmp partition, it works perfectly fine, does what it says on the tin. Granted, this doesn't take into account files such as mysql.sock (which I personally keep outside of /tmp - along with anything even mildly important, anything in /tmp in my opinion should be capable of being removed at a moment's notice).

Posted by OpenInternet-Vince, 12-25-2009, 05:04 PM
Well, doesn't cpanel uses /tmp for the mysql sock by default? By the sound of the OP, he/she is definitely a newbie at system administration. newbie + rm -rf = BAD IDEA

Posted by net, 12-25-2009, 06:49 PM
Moved > Hosting Security and Technology .

Posted by markhard, 12-26-2009, 07:15 AM
you have to check the content of /tmp first before deleting files. in cpanel server most of the time is a php session files. you can sort the old session files and delete it.

Posted by inspiron, 12-26-2009, 08:31 AM
Either make it bigger or clear some files out of it if /tmp partition is full.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Language: