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.

diminishing hdd space

Discussion in 'General Discussion' started by filth, Sep 30, 2006.

  1. filth

    filth Active Member

    Joined:
    Jun 18, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    I currently have /dev/hda2 running at 89% full and want to purge unrequired files.

    Having issued the following command du -sh * I receive the following output:-

    local and share seem to be taking up the greatest space local contains :-

    In apache the main bulk of the files are the logs are these safely removable or are they used to create the logs for the accounts.

    Also what other files could I look at safely deleting in this partition to free up some space.

    Thank you for any help

    Peter
     
  2. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    /usr/local/apache/logs has apache's logs
    /usr/local/apache/domlogs has apache logs for user domains
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    So, would it be OK to trim down some of Apache's logs without affecting user domain stats?

    I notice, for me, that /usr/local/apache/logs contains some moderately large files - error_log is ~130MB and suexec_log is ~200MB.

    On a related matter, does anyone know if the contents (some or all) of /var/cache/yum/base/headers and /var/cache/yum/base/packages can be safely removed?
     
  4. Codeguy

    Codeguy Member
    PartnerNOC

    Joined:
    May 30, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    You can safely remove the yum cache stuff with yum clean all. Note that if you remove the header information yum will need to download it again the next time it does an update. I would recommend just cleaning out the left over packages by running the following.

    yum clean packages

    The packages should take up much more space than the headers and they are pretty much just taking up space after the package has been installed and aren't needed anymore.
     
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Thanks very much Codeguy!

    I'll have a go at running yum clean packages and see what difference that makes.
     
  6. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Nice - yum clean packages dropped '/' usage from 73% to 59%.

    I'll have to see if I can tell yum not to cache packages.
     
Loading...

Share This Page