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.

CPanel and storage space

Discussion in 'Workarounds and Optimization' started by VapourMike, Oct 19, 2009.

  1. VapourMike

    VapourMike Member

    Joined:
    Jul 5, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South East UK
    Hi,

    Im running Cpanel/WHM on a server with a mere 5gb mount and a 50gb mount for /home. Now my main mount is down to 140mb free space and Im really wondering if and what I can clean/flush out of cpanel/whm on a regular basis?

    Ive done a few easyapache builds, do these keep logs? are there stats I can rotate or archive off? logs that can be archived? features I can uninstall/remove etc etc

    Any ideas on how I can free up a bit of disk space and hopefully streamline my server a bit more.

    Thank you in advanced
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In cPanel for that main account, find the icon titled Disk Space Usage. Using that you might find some things on the account itself to remove. If logging is enabled on the account you can free up some real space by turning that off.

    cPanel > Raw Access Logs icon > make your selection there.

    EA3 logs are found at /usr/local/cpanel/logs/easy/apache/ Not sure that'll help much though. EA3 also renames and backs up the apache directory. You'd find that/those located here: /usr/local/
    you may find apache.backup and apache.backup archive there. If alls well with your server's Apache setup, these could be killed.

    You might login as root and check space with something like this:

    this one displays free dsk space
    df -h

    this one displays disk usage
    du -h

    Maybe something useful in there somewhere. ;)
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Friendly Moderator Note

    Since this is a discussion about disk space optimization, I have moved this to the optimization forum.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I would also consider using "du" to check what directories within the root partition are consuming the most disk space (assuming the root partition is what is being asked about); a command such as the following may be a good start:
    Code:
    # du -ahx --max-depth=1 /
    To search deeper, simply change or append to the existing path, such as the following:
    Code:
    # du -ahx --max-depth=1 /test
    For additional options and CLI switches I recommend checking the man page:
    Code:
    # man du
     
  6. pacifich

    pacifich Member

    Joined:
    Dec 9, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1

    Nice tips, thanks for sharing your thoughts ... well done!
     
Loading...

Share This Page