Skip to content

/tmp folder 100% full ( cPanel )

Category
Web Servers
Covers
cPanel
On this page

Issue:

Today, I found that /tmp was showing 100% full but, After deleting all files from /tmp it was still showing full. After google it, I found that there are some file which deleted from /tmp folder but still used by process used all space. Generally these files used by apache or mysql.

Use following command to check files

# lsof | grep /tmp
mysqld     3236     mysql    6u      REG      202,5         0       2373 /tmp/ibZzBzJ8 (deleted)
mysqld     3236     mysql    7u      REG      202,5         0       2378 /tmp/ibfoQY3a (deleted)
mysqld     3236     mysql   11u      REG      202,5         0       2393 /tmp/ibz2IDcI (deleted)
mysqld     3236     mysql  220u      REG      202,5 696842249        664 /tmp/ST1pexnQ (deleted)
mysqld     3236     mysql  224u      REG      202,5   1245184        683 /tmp/STfyPJQi (deleted)
mysqld     3236     mysql  288u      REG      202,5 226885632        748 /tmp/STF547ZN (deleted)

Solution:

Check the output of above command and restart services according to it. In my case restarting mysql fixed issue.

# service mysqld restart

or

# service httpd restart

After restarting services all deleted tmp files will be cleared.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top