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.

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,146
    Likes Received:
    34
    Trophy Points:
    48
    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 ?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page