Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2003
    Location
    South East UK
    Posts
    14

    Default CPanel and storage space

    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
    Vapournet.com

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    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. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Arrow Friendly Moderator Note

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

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Thumbs up

    Good point.

    I'll add some docs to the mix.
    DiskSpaceUsage < AllDocumentation/CpanelDocs < TWiki

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    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. #6
    Member
    Join Date
    Dec 2009
    Posts
    7

    Default

    Quote Originally Posted by Infopro View Post
    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.

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

Similar Threads & Tags
Similar threads

  1. CPanel and storage space
    By VapourMike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2009, 12:55 PM
  2. POP3 email using 2x disk storage space
    By ecscnet in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-30-2004, 09:43 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube