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!

Disk space Critical in "/" and "/var/tmp"

Discussion in 'General Discussion' started by Rodrigo Gomes, Feb 13, 2017.

Tags:
  1. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    102
    Likes Received:
    26
    Trophy Points:
    28
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello,
    Often I'm getting two emails like the ones below:
    print1.png
    print2.png

    However, when I check the server I do not find anything abnormal.
    And I suspect it might be something creating a large file and erasing soon then, but I do not know how to check this out.

    Is there anything I can do to check this?
     
  2. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    102
    Likes Received:
    26
    Trophy Points:
    28
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Below are some Munin statistics (I marked with an arrow the exact moment I received the email):

    diskstats_utilization-day.png
    diskstats_throughput-day.png
    df-day.png
    diskstats_iops-day.png

    open_inodes-day.png

    Remembering that munin updates every 5 minutes, so the "disk usage" should not have noticed the problem.
     
    #2 Rodrigo Gomes, Feb 13, 2017
    Last edited: Feb 13, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,713
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You'd need to access the /var/tmp partition when the usage is actually high in order to use the "du" utility to determine what's taking up the space. Or, setup a cron job that checks the /var/tmp partition every few minutes and sends you the results until you are able to determine the source of the usage. Here's an example of a command to check the space:

    Code:
    du --max-depth=1 /var/tmp | sort -n | awk 'BEGIN {OFMT = "%.0f"} {print $1/1024,"MB", $2}'
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Rodrigo Gomes likes this.
  4. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    102
    Likes Received:
    26
    Trophy Points:
    28
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Thank you Michael!

    I'm going to run this script every minute and save it to a log file.
    I post here as soon as I find out what this is.
     
    cPanelMichael likes this.
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