/tmp running out of inodes

2008-12-18 Thread Tankko
For the second time in 2 weeks my server has gone down due to running out of inodes in /tmp. The first time it did this /tmp was filled with files, so that made sense. I delete all the files from /tmp and all was well for a few weeks. Just this morning it did it again (keep in mind

Re: /tmp running out of inodes

2008-12-18 Thread Kirk Strauser
On Thursday 18 December 2008 10:54:33 Tankko wrote: On a side question...what the the best policy for deleting files from /tmp? Seems like a lot of apps are happy to leave files in /tmp. What kind of files are you seeing in /tmp? I have files in mine from July, but only about 7,000 files

Re: /tmp running out of inodes

2008-12-18 Thread Dan Nelson
In the last episode (Dec 18), Tankko said: For the second time in 2 weeks my server has gone down due to running out of inodes in /tmp. The first time it did this /tmp was filled with files, so that made sense. I delete all the files from /tmp and all was well for a few weeks. Just

Re: /tmp running out of inodes

2008-12-18 Thread Daniel Bye
On Thu, Dec 18, 2008 at 08:54:33AM -0800, Tankko wrote: On a side question...what the the best policy for deleting files from /tmp? Seems like a lot of apps are happy to leave files in /tmp. Is clean up commonly done as a cron job? What about files like mysql.sock= which are important. I

Re: /tmp running out of inodes

2008-12-18 Thread Tankko
As Kirk has already said, you need to figure why this is happening in the first place, but there is a periodic job which can help keep /tmp tidy for you. It is in /etc/periodic/daily/110.clean-tmps and can be enabled with this in /etc/periodic.conf: daily_clean_tmps_enable=YES You can