Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/tmp is full, but not!

Discussion in 'General Discussion' started by tutt, Sep 21, 2006.

  1. tutt

    tutt Well-Known Member
    PartnerNOC

    Joined:
    Apr 16, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    On 2 of my WHM servers now, I am seeing the /tmp partition fill up to 100% according to "df". However, when I take a look and use the "du" utility, I am seeing a tiny amount of space used. I even resized one of the partitions to over 4GB and it still fills up but shows no signs of actually being full. I can go through the files in it and see not one file over maybe 100K and a total of only 10 or 20 files. I AM using the /usr/tmpDSK securetmp script from cPanel. When I reboot the server, all is OK, but how can I see what is taking up the space???
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Two possibilities:

    1. The virtual partition created with securetmp is corrupt and you need to delete and recreate it

    2. Deleted files are still open in /tmp and will count against the disk space. You can check for those with:

    lsof | grep /tmp
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tutt

    tutt Well-Known Member
    PartnerNOC

    Joined:
    Apr 16, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    Is there a way to forcibly removed the open but deleted files?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You have to kill or restart the processes that have them open to do that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice