[BlueOnyx:04661] Re: Help with recent Installs (/var Full) (Mysqlquit)

Jeff Folk jefffolk at mac.com
Tue May 25 09:38:21 -05 2010


On May 25, 2010, at 9:07 AM, publictv at cox.net wrote:

> It took a bit of searching but I found it I think! In the /var/log/ 
> httpd/error_log.1. It says its 3.4gb which is about 90% of the /var  
> total alotted size! bellow is that directories contents....

Ouch! Looks like apache must have been having some problems, too. Good  
job finding that.

> How do I ether clean out, delete, or replace them as needed?
>
> I tried to be creative and read the last 50 lines using the method  
> you listed before for the mysql log ( /var/log/httpd/error_log.1)  
> but it said Permission denied,

The logs with the numbers after them are older logs that have been  
'rolled'. You must be root to view them, but there may be corruption  
or you tried to view the compressed log (.gz)? Notice that the system  
tried to compress the large error_log (error_log.1.gz is 0 K) but  
couldn't because there wasn't enough disk space.

At this point, since your current error_log looks okay (size wise),  
you can remove the older logs (as root):

rm -f /var/log/httpd/error_log.*

That will remove all the older error logs except the current one  
without asking for confirmation. Leave off the '-f' if you would feel  
more comfortable confirming every delete. Log rotate will then  
continue as designed with the ample disk space.

> Thanks for the help so far and that hopfuly to come althought I hope  
> not needed (lol)!

About time I was able to give back a little. Hopefully I was correct,  
but there are a lot of smarter people on this list that would have  
jumped in, I'm sure.  ;-D

>
> drwxr-xr-x  2 root root 4.0K May 25 04:13 .
> drwxr-xr-x 10 root root 4.0K May 25 04:13 ..
> -rw-r--r--  1 root root    0 May 25 04:13 access_log
> -rw-r--r--  1 root root 3.1K May 25 04:13 access_log.1.gz
> -rw-r--r--  1 root root  29K May 20 04:08 access_log.2.gz
> -rw-r--r--  1 root root  31K May 19 04:24 access_log.3.gz
> -rw-r--r--  1 root root  18K May 18 04:19 access_log.4.gz
> -rw-r--r--  1 root root    0 May 23 04:06 error_log
> -rw-r--r--  1 root root 3.4G May 25 08:41 error_log.1
> -rw-r--r--  1 root root    0 May 23 04:06 error_log.1.gz
> -rw-r--r--  1 root root  81K May 16 04:16 error_log.2.gz
> -rw-r--r--  1 root root  17K May  9 04:06 error_log.3.gz
> -rw-r--r--  1 root root  29K May 13 04:20 jk-runtime-status.22629
> -rw-r--r--  1 root root    1 May 13 04:20 jk-runtime-status.22629.lock
> -rw-r--r--  1 root root  29K May 13 19:38 jk-runtime-status.3206
> -rw-r--r--  1 root root    1 May 13 19:38 jk-runtime-status.3206.lock
> -rw-r--r--  1 root root  29K May 25 08:37 jk-runtime-status.9227
> -rw-r--r--  1 root root    1 May 22 15:12 jk-runtime-status.9227.lock
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list