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.

Configure Disk Usage Warning with Cpanel DNSOnly

Discussion in 'General Discussion' started by noox, Sep 21, 2015.

  1. noox

    noox Active Member

    Joined:
    Mar 19, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I have a second server with DNSOnly. I also use it for offsite backup.

    About a year ago it warned because of 83% disk usage on the /home partition. So I reduced the backup size.

    But starting with 8th of August this year it warnes me at 77%. I cannot change this in WHM because the configuration is not included in DNSOnly.

    How can I change this setting? Is there a configuration file?

    Thanks!
     
  2. 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 :)

    You can modify the following values in the /var/cpanel/cpanel.config file:

    system_diskusage_critical_percent=
    system_diskusage_warn_percent=

    Ensure you restart cPanel after making changes to these values.

    Thank you.
     
  3. noox

    noox Active Member

    Joined:
    Mar 19, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks!

    Something is a bit strange: It was already configured to 82.xx (can't remember the last digits). And "df" also says 83% usage of /dev/sda2 (/home).

    But the DISKWARN mail says 78.81%

    df:
    Code:
    Filesystem  1K-blocks  Used Available Use% Mounted on
    /dev/sda2      477091244 376039016  77183712  83% /home
    The total space is 477091244 1k blocks. That's 454.99 GB - same value as in the mail.

    df values in GB:

    Used: 358.6 GB (78.81%)
    Available: 73.6 GB (16.18%)
    There are about 23 GB missing. I just read this is system reserved.
    Interesting, that it says 83%. Maybe it adds the 5% system reserved space?

    Values from the DISKWARN mail:
    Used: 358.62 GB (78.81%)
    Available: 96.37 GB (21.18%)

    So CPanel uses the value like df does to configure and detect disk space warning. But then it shows the values in the mails without the system reserved space. Last year in November I also got disk space warn mails, but with a different layout and it started with 83%.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The following internal case should address this issue:

    Fixed case CPANEL-158: Disk Usage warning templates calculated the disk usage incorrectly.

    It's included with cPanel version 11.52, which is currently only available in the "Edge" build tier. Version 11.52 is expected to make it's way to the "Current" build tier in the near future.

    Thank you.
     
  5. noox

    noox Active Member

    Joined:
    Mar 19, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks for the help and clarification!
     
Loading...

Share This Page