Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2004
    Posts
    24

    Default Drive cleanup?

    The hard drive on my server is starting to get full:
    Drive Critical: /dev/sda3 (/usr) is 92% full

    Is there any automated process that I can use to clean up the system?
    If not any suggestions of what directories I can clean out without having an impact on my server?

    Thanks,
    John

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

    Root Administrator

    Lightbulb

    This thread and others like it on these forums might be useful to you.

    http://forums.cpanel.net/f5/i-get-ro...ce-121197.html

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    Check the apache logs and cpanel logs that are in /usr, that is where the space is usually consumed.

  4. #4
    Member
    Join Date
    Apr 2009
    Posts
    230

    Default

    Few tips to clear out some space in the /usr partition.

    =================================
    1. Restart the httpd service. This might free a little space some times.

    2. Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside.

    3. Same can be done for the files in cPanel logs (/usr/local/cpanel/logs) as well .

    4. Domlogs – Get into the /usr/local/apache/domlogs/ directory. Run the following command :-

    # ls -al -SR | head -10 —> It will list 10 files in the decreasing order according to their size

    If the domlog file is too large for a domain then it is possible that awstats is not running . Check whether cpanellogd is running on the server using pstree . If not, restart it .
    Else, it is possible that awstats for only that particular domain is not updating. Get into the directory /usr/local/cpanel/base and check if any file as ‘awstats.domainname.com.conf’ exists. If yes , delete that file.

    Now, run /scripts/runweblogs for that user. It will update the awstats and automatically clear the domlogs file thereafter. Do not delete the domlogs file itself.

    5. Remove old and unwanted backups of ‘apache’ that might have been taken long ago. Also, check for any other duplicate folders that can be removed safely.

    6. Remove core files, if any . Normally, some core files (like core.1234) might be present in /usr/local/cpanel/whostmgr/docroot . Check for these and remove them.
    ================================

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 08-05-2010, 06:26 PM
  2. New hard drive installed by host, but not sure which drive to mount.
    By vaughnt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-27-2007, 01:12 PM
  3. Hard drive not displaying right space after drive change...
    By darkshadow604 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-26-2006, 11:03 PM
  4. Replies: 19
    Last Post: 12-08-2005, 07:26 PM
  5. Can you run swap on hard drive 2 or should it be on the boot drive?
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-04-2004, 12:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube