Results 1 to 12 of 12

Thread: /usr 90% full

  1. #1
    Join Date
    Sep 2007
    Posts
    195

    /usr 90% full

    Hi guys,

    I have /usr partition in my server with 90% of disk space used and increse very fast.

    What I can delete in /usr to have more space free???

    Regards
    Formas

  2. #2
    Join Date
    Sep 2007
    Posts
    195
    Well

    I clear apache logs in /usr/local/apache/logs and now I have 40% of /usr free.

    Thanx

  3. #3
    Join Date
    Jun 2009
    Location
    Kochi,India
    Posts
    177
    run the command du -shc * in /usr and check if you can delete any more unwanted files.
    Ezeelogin -
    The ultimate multiple server administration software.
    *Parallel shell *rm -rf protection *SSH logging*automated password changes*encrypted storage*
    AdMod.com -Delivering innovative web hosting solutions

  4. #4
    Join Date
    Sep 2007
    Posts
    368

  5. #5
    You should also check /usr/local/apache/htdocs as you may have some unwanted tar files over there.
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

  6. #6
    Join Date
    Apr 2007
    Posts
    3,513
    We run this command alot, lists all the big files on your drive.
    find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
    - Buying up websites, side-projects and companies - PM Me! -

  7. #7
    Join Date
    Jul 2009
    Posts
    178
    check the apache logs this is where /usr gets full

    du -sch /usr/local/apache/logs/error_logs

    if more then truncate the file

  8. #8
    Join Date
    Jul 2009
    Posts
    240
    use newsyslog or logrotate on those log files to keep them in check and not eat up your drive space ..i just find it weird that they've use /usr for variable files like log files ..should dump it into /var

  9. #9
    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.

  10. #10
    Join Date
    Sep 2007
    Posts
    195
    Thanks guys

  11. #11
    Join Date
    May 2009
    Location
    Manchester, UK
    Posts
    6
    hi,

    you can try this also
    rm -rf /usr/local/apache/domlogs/*
    then
    service httpd restart

    this will clean your domlogs

  12. #12
    Join Date
    May 2009
    Posts
    31

    logrotate

    Hello,

    I would recommend you to use logrotate for apache error and access logs so that it wont eat up your disk space in future.

Similar Threads

  1. Hiring (Full Time / Full Salary) Senior Linux/cPanel Administrator
    By phpcoder in forum Employment / Job Offers
    Replies: 0
    Last Post: 06-11-2009, 03:06 PM
  2. Replies: 0
    Last Post: 02-14-2009, 06:51 AM
  3. Replies: 0
    Last Post: 02-15-2007, 02:35 PM
  4. Replies: 14
    Last Post: 01-09-2005, 07:02 AM
  5. GNAX full time salaried tech positions (2) with full benefits
    By sailor in forum Employment / Job Offers
    Replies: 1
    Last Post: 08-21-2004, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •