 
|
|
 |
|  |
|
|
 |

07-26-09, 23:07
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
What is eating my HDD space ?
hi there,
Could anyone help me understand what is eating my HDD space ? I'm clearing the cache and logs created by my websites, yet free space is constantly going down the hill.
There is hardly any space used by my websites, IS it that I need to clear the OS logs ? where do I find them ? any idea how to clear them ? any cron ?
thanks in advance for your kind help !
|

07-27-09, 06:48
|
|
Moderator
|
|
Join Date: Mar 2009
Posts: 493
|
|
I have had a look at your VPS space usage, I see there is 2.8 GB being used by error logs.
Let me know if you want me to get the error log file emptied to free up space.
|

07-27-09, 22:51
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
> Let me know if you want me to get the error log file emptied to free up space.
----> hi Amelia, thank u so much for looking into my system. Is it possible that you could tell me the folder where these error logs lie ? so that I could delete these myself ? Thus, I won't need you follow up with you again to do this task in future.
thanks again !
|

07-28-09, 03:57
|
|
Moderator
|
|
Join Date: Mar 2009
Posts: 493
|
|
The error logs are inside : /usr/local/apache/logs
If you are unsure how to do this please let us know, no problems at all. Make sure you do not delete the file just empty the file contents.
Let me know if you need any help with it.
|

07-28-09, 04:55
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
yea, I just took a look, its over 3 gigs, its horrible !
what if I delete this file and touch the filename again ?
I can do vi
any advise ?
|

07-28-09, 05:02
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
hi there,
I just ran the below commands, found them at google and understand what these do:
echo " "> /usr/local/apache/logs/error_log
echo " "> /var/log/httpd/log/access_log
server looks ok, hope I didn't screw up anything.
another relevant good stuff I found is as below:
cat /dev/null > /usr/local/apache/logs/access_log
cat /dev/null > /usr/local/apache/logs/error_log
cat /dev/null > /usr/local/apache/logs/suphp_log
rm -rf /usr/local/apache/logs/*.gz
any comments ?
|

07-28-09, 05:34
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
I thought this was a forum in english !
|

07-28-09, 08:00
|
|
Moderator
|
|
Join Date: Mar 2009
Posts: 493
|
|
Quote:
Originally Posted by AURORAIN
hi there,
I just ran the below commands, found them at google and understand what these do:
echo " "> /usr/local/apache/logs/error_log
echo " "> /var/log/httpd/log/access_log
server looks ok, hope I didn't screw up anything.
another relevant good stuff I found is as below:
cat /dev/null > /usr/local/apache/logs/access_log
cat /dev/null > /usr/local/apache/logs/error_log
cat /dev/null > /usr/local/apache/logs/suphp_log
rm -rf /usr/local/apache/logs/*.gz
any comments ?
|
Looks like you have done it
We recommend using the "echo" command to empty the log files. the .gz files however can be removed with the rm -rf command. You should not delete the logs files though.
Let me know if you need any thing else.
|

07-29-09, 08:16
|
|
Administrator
|
|
Join Date: Jul 2007
Posts: 85
|
|
Thanks Amelia, we will also use the same command to empty our VPS's log files Thanx
|

07-30-09, 07:49
|
|
Moderator
|
|
Join Date: Mar 2009
Posts: 493
|
|
Quote:
Originally Posted by james
Thanks Amelia, we will also use the same command to empty our VPS's log files Thanx
|
You're most welcome 
|

08-13-09, 01:51
|
|
BOD Member
|
|
Join Date: Apr 2009
Posts: 12
|
|
Quote:
Originally Posted by Amelia
The error logs are inside : /usr/local/apache/logs
If you are unsure how to do this please let us know, no problems at all. Make sure you do not delete the file just empty the file contents.
Let me know if you need any help with it.
|
I'm clearing logs here in this folder apart from all the cache and stuff in my websites, could you see what is still eating my HDD space in this VPS ?
|

08-13-09, 05:48
|
|
Moderator
|
|
Join Date: Mar 2009
Posts: 493
|
|
Quote:
Originally Posted by AURORAIN
I'm clearing logs here in this folder apart from all the cache and stuff in my websites, could you see what is still eating my HDD space in this VPS ?
|
I see the Disk Usage is now 15 GB (9.5G - home, 4.2G -usr)
And if you need a more detailed usage information, please initiate a Live Chat session from our website or open up a ticket with our VPS Department 
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 01:13.
Powered by vBulletin® Version 3.6.4 Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

Copyright © 1999-2012, BODHost Ltd. All rights reserved.
|