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.

DISKWARN / DISKCRITICAL Increase Disk Space

Discussion in 'General Discussion' started by msalmanzaib, Nov 5, 2014.

  1. msalmanzaib

    msalmanzaib Member

    Joined:
    Dec 20, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Dear Experts,

    Please help me instantly, I am using OVH dedicated server the default partition was 20GB while I have 2TB Disk. I am not advance server expert to reallocate this space. Now 20GB is almost full. Please help me so that I can increase default partition space without losing data. Current Disk Usage screenshot attached.
     

    Attached Files:

  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 :)

    I suggest consulting with your data center or a qualified system administrator if you prefer to repartition the drive. It's not generally recommended, and you may even want to consider setting up a new server with a new partition scheme, transferring the accounts over to it, and then shutting down the existing server. This would reduce the downtime for your websites.

    Thank you.
     
  3. msalmanzaib

    msalmanzaib Member

    Joined:
    Dec 20, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks for reply. Getting new server and moving sites will cost much more as ovh charge setup fees for earch server. I am looking for a solution within current server to increase disk space. Can Cpanel support team resolve this issue if I submit a ticket ? Some people said that a good server administrator can reallocate disk space without losing data and some minutes downtime which is acceptable.

    Please guide me in detail. I am a graduate student and not good in server administration.

    Thanks in advance.
     
  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
    Repartitioning a drive is not supported, and is not something our support team will complete for you. You could consult with a qualified system administrator to see what options are available to you, but you may want to review what is taking up that disk space first. The following document should help you determine where most of the usage is coming from:

    cPanel - Manage HD Space

    Thank you.
     
  5. msalmanzaib

    msalmanzaib Member

    Joined:
    Dec 20, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    He is output :

    root@server [~]# du -sh /var/*
    4.0K /var/account
    51M /var/cache
    172M /var/cpanel
    4.0K /var/cvs
    8.0K /var/db
    8.0K /var/empty
    4.0K /var/games
    287M /var/lib
    4.0K /var/local
    12K /var/lock
    5.8G /var/log
    0 /var/mail
    355M /var/named
    4.0K /var/nis
    4.0K /var/opt
    4.0K /var/preserve
    64K /var/profiles
    252K /var/run
    11M /var/spool
    53M /var/tmp
    4.0K /var/yp

    root@server [/var/log/audit]# du -h /var/log/
    4.0K /var/log/varnish
    4.0K /var/log/bandwidth/2013/Apr
    8.0K /var/log/bandwidth/2013
    128K /var/log/bandwidth/2014/May
    124K /var/log/bandwidth/2014/Sep
    28K /var/log/bandwidth/2014/Nov
    128K /var/log/bandwidth/2014/Aug
    128K /var/log/bandwidth/2014/Jul
    44K /var/log/bandwidth/2014/Apr
    128K /var/log/bandwidth/2014/Oct
    124K /var/log/bandwidth/2014/Jun
    836K /var/log/bandwidth/2014
    860K /var/log/bandwidth
    5.2G /var/log/nginx
    9.2M /var/log/sa
    4.0K /var/log/audit
    16K /var/log/dcpumon/boot.1413479401
    8.0K /var/log/dcpumon/boot.1413480001
    100K /var/log/dcpumon/2014/May
    124K /var/log/dcpumon/2014/Sep
    28K /var/log/dcpumon/2014/Nov
    128K /var/log/dcpumon/2014/Aug
    128K /var/log/dcpumon/2014/Jul
    128K /var/log/dcpumon/2014/Oct
    160K /var/log/dcpumon/2014/Jun
    800K /var/log/dcpumon/2014
    32K /var/log/dcpumon/boot.1413478502
    20K /var/log/dcpumon/boot.1413481201
    8.0K /var/log/dcpumon/boot.1413479701
    1.2M /var/log/dcpumon
    5.8G /var/log/


    Logs taking much space. 5.8G /var/log 5.2G /var/log/nginx
    How can I delete logs as its taking huge space and stop them further. I want to keep current server and no downtime for sites.

    Please let me know if anything else is unnecessary.

    Thanks alot.
     
    #5 msalmanzaib, Nov 6, 2014
    Last edited: Nov 6, 2014
  6. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    I take zero responsibility for the following:

    Usually logs can be deleted without any problem, thus you may be able to simply do this without any problem. The following assumes that nginx is a file, and not a directory:

    cd /var/log/
    > nginx

    Then afterward, to prevent this from recurring, if you have plenty of space in your home directory you might want to do this:

    mv /home/nginx

    ln -s /home/nginx /var/log/nginx

    But then again, I don't have nginx installed on my server, so please take the above with a grain of salt.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest reviewing the Nginx documentation to determine how to better rotate the logs. In the meantime, you should likely empty the log files instead of removing them. EX:

    Code:
    echo "" > /var/log/nginx/example.log
    Thank you.
     
  8. msalmanzaib

    msalmanzaib Member

    Joined:
    Dec 20, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I logged in via FTP port 22 as ROOT and deleted 5.2G /var/log/nginx now I have 5GB free space and getting no issue.

    It resolved my issue.

    Thank you.
     
Loading...
Similar Threads - DISKWARN DISKCRITICAL Increase
  1. Luis Mota
    Replies:
    6
    Views:
    405
  2. HammadSaud
    Replies:
    3
    Views:
    354

Share This Page