Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    28

    Default diminishing hdd space

    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:-

    16K aquota.user
    122M bin
    80K doc
    12K etc
    24K games
    71M include
    104K kerberos
    735M lib
    7.4M libexec
    1.6G local
    16K lost+found
    560K man
    28K quota.user
    25M sbin
    735M share
    284M src
    4.0K tmp
    0 usr
    27M X11R6
    local and share seem to be taking up the greatest space local contains :-

    635M apache
    108K bandmin
    13M bin
    744M cpanel
    756K cpanel-rollback
    16K etc
    32M frontpage
    8.0K games
    7.6M imap-2004g
    1.9M include
    92M lib
    1.4M libexec
    36K man
    268K rkhunter
    8.0K sbin
    104K share
    612K src
    0 ssl
    9.3M tt2
    24M Zend
    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. #2
    Member nettigritty's Avatar
    Join Date
    Jan 2004
    Location
    Bangalore, India
    Posts
    196

    Default

    /usr/local/apache/logs has apache's logs
    /usr/local/apache/domlogs has apache logs for user domains

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by nettigritty
    /usr/local/apache/logs has apache's logs
    /usr/local/apache/domlogs has apache logs for user domains
    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. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    May 2006
    Posts
    11

    Cool

    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. #5
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Thanks very much Codeguy!

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

  6. #6
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Nice - yum clean packages dropped '/' usage from 73% to 59%.

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

Similar Threads & Tags
Similar threads

  1. How setup cpanel on HDD without system HDD
    By divuso in forum New User Questions
    Replies: 2
    Last Post: 07-03-2009, 06:48 PM
  2. Freen up soma hdd space on CPanel?
    By labahost in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 11-24-2007, 03:10 AM
  3. Accounts transferrinng from old HDD to new HDD.
    By DrYurich in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-09-2006, 08:13 AM
  4. Wrong Partions on HDD - reconfigure HDD space
    By KimBO in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-27-2005, 10:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube