The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/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:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. tutt

    tutt Well-Known Member
    PartnerNOC

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

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You have to kill or restart the processes that have them open to do that.
     
Loading...

Share This Page