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!

Two /tmp directories, both full. Please help

Discussion in 'Security' started by NTar, Jul 25, 2015.

  1. NTar

    NTar Member

    Joined:
    Apr 16, 2015
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Dear users,

    Today, I have received a warning from my server. Both /tmp directories are (almost) full. I've listed both locations below.

    Current Disk Usage

    /dev/mapper/vg_cpanel-lv_root
    tmpfs (1.9 GB space, 70M left, located in: /var/tmp)
    /dev/vda1
    /dev/mapper/vg_cpanel-lv_tmp (1.5 space, 0M left, located in: /tmp)

    I've configured a cronjob to clean tmpfs every 6 hours. However, I'm not sure if I can clean /dev/mapper/vg_cpanel-lv_tmp too. Any ideas? Thank you very much.

    Edit: p.s. I'm experience heavy issues with the server. Users cannot login to their website (e.g. Wordpress systems). This is critical.

    Edit 2: fingers crossed, I have cleaned /dev/mapper/vg_cpanel-lv_tmp. Let see if that works. It seems all user sessions are stored in this tmp.

    Edit 3: hell yeah, it works! :D All users can login to their website again.

    Main question for now: how does my server clean /dev/mapper/vg_cpanel-lv_tmp each 6 hours itself? This cronjob will obviously not work: 0 */4 * * * /usr/sbin/tmpwatch -am 12 /tmp > /dev/null 2>&1

    Edit 4: I've written this cronjob in order to make /tmp clean for files older than 3 days: find /tmp -mtime +3 -delete

    Or should I use -rm instead?
     
    #1 NTar, Jul 25, 2015
    Last edited: Jul 25, 2015
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Which files are using most of the disk space on your server under /tmp directory ? Have you installed eAccelerator OR nginx on your server ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I suggest reviewing that partition to see which type of files it holds. Are you sure it's not acting as your tmp directory?

    Thank you.
     
    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