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.

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:
    82
    Likes Received:
    21
    Trophy Points:
    8
    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:
    82
    Likes Received:
    21
    Trophy Points:
    8
    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:
    36,995
    Likes Received:
    1,275
    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.
     
    Rodrigo Gomes likes this.
  4. Rodrigo Gomes

    Rodrigo Gomes Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    82
    Likes Received:
    21
    Trophy Points:
    8
    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