Home » » /tmp 100% full

/tmp 100% full

Written By 1 on Wednesday, April 27, 2011 | 10:24 PM


/tmp 100% full

 Even though we have cleared the unwanted files but still /tmp is 100% full.

Here is why it happens.

If you delete files and they don’t go from df -h disk status then you’ve deleted files that are open by processes. You will have to restart whichever processes had those files were open in the first place, typically httpd or mysql.

lsof | grep /tmp

you will get the result as below(for example)

httpd 30070 nobody 1975u REG 7,0 0 11 /tmp/ZCUDMmgQDr (deleted)
httpd 30100 nobody 1975u REG 7,0 0 11 /tmp/ZCUDMmgQDr (deleted)
mysqld 7290 mysql 5u REG 7,0 1089 29 /tmp/ibYfnGNC (deleted)
mysqld 7290 mysql 6u REG 7,0 0 30 /tmp/ibgA9zfB (deleted)

kill httpd and mysql or whaterver process it shows that will fix the problem. I hope you all know the command to kill httpd or mysql.

killall -e -9 httpd or service httpd stop

Then restart apache(httpd)

0 Comment:

Post a Comment