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.

55% capacity, how to shrink?

Discussion in 'Data Protection' started by bls24, Jun 7, 2008.

  1. bls24

    bls24 Well-Known Member

    Joined:
    May 12, 2007
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Disk /dev/sda3 (/usr) is presently at 55% (was at 50% this morning), I am wondering how I can get rid of anything I don't need from here to free up space?
     
  2. elliotcooper

    elliotcooper Well-Known Member
    PartnerNOC

    Joined:
    May 18, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    The most likely culprit that is causing you to lose so much disk space under /usr are you apache logs. They are located at:

    /usr/local/apache/logs/
    /usr/local/apache/domlogs/

    However, if you delete them then you will lose all webstat information. The best way to keep on top these files is to get WHM to remove the raw log files once it processes the logs each night. You do this at:

    WHM -> Tweak Settings -> Stats and Logs -> "Delete each domain's access logs after stats run"

    If you set this then whm will only retain the processed information and not the bulky raw log files.

    You should see the size of the /usr partition reduce tomorrow after the stat run tonight
     
  3. bls24

    bls24 Well-Known Member

    Joined:
    May 12, 2007
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    "Delete each domain's access logs after stats run" was already checked.

    I ran:
    cd /usr/
    du -all |sort -n

    And these are my biggest files which I do not think I need:
    13860 ./share/mysql-test/suite
    18280 ./local/apache.backup_archive/20080607.1212877615/libexec/libphp5.so
    18324 ./local/apache.backup_archive/20080607.1212877615/apache.backup/libexec/libphp5.so
    18324 ./local/apache.backup/libexec/libphp5.so
    18324 ./local/apache_bak/libexec/libphp5.so
    18340 ./local/apache.backup_archive/20080607.1212877615/libexec
    18384 ./local/apache.backup_archive/20080607.1212877615/apache.backup/libexec
    18384 ./local/apache.backup/libexec
    18384 ./local/apache_bak/libexec
    27120 ./local/apache.backup
    27120 ./local/apache.backup_archive/20080607.1212877615/apache.backup
    54188 ./local/apache.backup_archive/20080607.1212877615
    54192 ./local/apache.backup_archive
    83848 ./local/apache_bak/domlogs/myusername/myusernamecom
    83848 ./local/apache_bak/domlogs/myusername.com
    86172 ./local/apache_bak/domlogs/myusername
    99620 ./local/apache/domlogs/myusername/myusername.com
    99620 ./local/apache/domlogs/myusername.com
    102180 ./local/apache/domlogs/myusername
    181832 ./local/apache_bak/domlogs
    190848 ./local/apache_bak/logs/suexec_log
    196336 ./local/apache_bak/logs
    214276 ./local/apache/logs/suexec_log
    216396 ./local/apache/domlogs
    220092 ./local/apache/logs
    406676 ./local/apache_bak this is a backup file, right?


    Assuming these are all just backups / log files, how can I get rid of them?
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    check how much the mailing list archives are using?

    The location is :- /usr/local/cpanel/3rdparty/mailman/archives

    You can create symlink for this archives to any other location for example create a symlink for archives in /home/archives.
     
  5. bls24

    bls24 Well-Known Member

    Joined:
    May 12, 2007
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    I've never had any mailing lists set up.. what command would I run to check the size of that folder?
     
  6. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Yes sure..you can use below command to see the size of that particular folder..

    First command:
    cd /usr/local/cpanel/3rdparty/mailman/archives

    Second command:
    du -hs *
     
  7. bls24

    bls24 Well-Known Member

    Joined:
    May 12, 2007
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Thank you, here's my results:

    16K private
    4.0K public


    Doesn't look too big.
    Any chance I (safely) could delete those backups I posted above?
     
Loading...

Share This Page