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 Usage High

Discussion in 'General Discussion' started by php-dawg, Mar 12, 2007.

  1. php-dawg

    php-dawg Active Member

    Joined:
    Jul 9, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA
    On one of our servers, the disk usage is showing 70GB out of 80GB, but the user's quota in WHM is showing that the users are only using 28GB. I have cleared out the old log files, where would the rest of the usage be coming from?
     
  2. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    The Server Status Information should tell you with one of the drives having a red light. Otherwise just go and click on "Show Current Disk Usage" in WHM.
     
  3. php-dawg

    php-dawg Active Member

    Joined:
    Jul 9, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA
    I know which ones are high, I can't figure out where the space is getting used. As I stated, only 28GB are in user files, the log files are using only about 2GB. Does cpanel's updates end up stored on the server and never erased over time? Is that where a lot of the space could be going to?
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Run this command at the prompt and see which partition is full:
    df -Th
    If the partition is /home then run
    /usr/bin/du -Sha
     
    #4 AndyReed, Mar 13, 2007
    Last edited: Mar 13, 2007
  5. HostMerit

    HostMerit Well-Known Member

    Joined:
    Oct 24, 2004
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Jersey, USA
    cPanel Access Level:
    DataCenter Provider
    rm -rf /var/log/*.1
    rm -rf /var/log/*.1.gz
    rm -rf /var/log/*.2
    rm -rf /var/log/*.2.gz
    rm -rf /var/log/*.3
    rm -rf /var/log/*.3.gz
    rm -rf /var/log/*.4
    rm -rf /var/log/*.4.gz


    Also my cpbackup has been spiraling lately, check any and all /home or /home2 directories like cptmp cpbackuptmp, anything with prefix 'cp' has probably filled the drive in a loop.

    Use those above too, will remove old archived logs. Save a gig or 3.
     
  6. yamaharr1

    yamaharr1 Well-Known Member

    Joined:
    Jun 22, 2007
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    What does this do once you run it?
     
    #6 yamaharr1, Mar 13, 2008
    Last edited: Mar 13, 2008
Loading...

Share This Page