FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 05-03-2011, 08:12 AM
Laurent CREPET
 
Default since CentOS 5.6 upgrade, squid crashes

On Tue, 3 May 2011 09:46:05 +0200
Laurent CREPET <lct@megrapet.fr> wrote:

> I will look at the latest RPMs to check differences on /etc/logrotate.d/squid.

Packages:
squid-2.6.STABLE21-6.el5
logrotate-3.7.4-9.el5_5.2

In /var/log/squid/cache.log:
> 2011/05/03 04:02:12| storeDirWriteCleanLogs: Starting...
> 2011/05/03 04:02:12| WARNING: Closing open FD 15
> 2011/05/03 04:02:12| commSetEvents: epoll_ctl(EPOLL_CTL_DEL): failed on fd=15: (1) Operation not permitted
> 2011/05/03 04:02:12| 65536 entries written so far.
> 2011/05/03 04:02:12| 131072 entries written so far.
> 2011/05/03 04:02:12| 196608 entries written so far.
> 2011/05/03 04:02:12| 262144 entries written so far.
> 2011/05/03 04:02:12| 327680 entries written so far.
> 2011/05/03 04:02:12| 393216 entries written so far.
> 2011/05/03 04:02:12| 458752 entries written so far.
> 2011/05/03 04:02:12| 524288 entries written so far.
> 2011/05/03 04:02:12| 589824 entries written so far.
> 2011/05/03 04:02:13| 655360 entries written so far.
> 2011/05/03 04:02:13| 720896 entries written so far.
> 2011/05/03 04:02:13| 786432 entries written so far.
> 2011/05/03 04:02:13| 851968 entries written so far.
> 2011/05/03 04:02:13| 917504 entries written so far.
> 2011/05/03 04:02:13| 983040 entries written so far.
> 2011/05/03 04:02:13| 1048576 entries written so far.
> 2011/05/03 04:02:13| 1114112 entries written so far.
> 2011/05/03 04:02:13| 1179648 entries written so far.
> 2011/05/03 04:02:14| Finished. Wrote 1236584 entries.
> 2011/05/03 04:02:14| Took 1.3 seconds (964362.7 entries/sec).
> FATAL: logfileWrite: /var/log/squid/store.log: (11) Resource temporarily unavailable
>
> Squid Cache (Version 2.6.STABLE21): Terminated abnormally.
> CPU Usage: 174.999 seconds = 102.121 user + 72.878 sys
> Maximum Resident Size: 901712 KB
> Page faults with physical i/o: 2
> Memory usage for squid via mallinfo():
> total space in arena: 218616 KB
> Ordinary blocks: 213843 KB 241 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 4972 KB 3 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 4772 KB
> Total in use: 218815 KB 98%
> Total free: 4772 KB 2%
> 2011/05/03 04:02:17| Starting Squid Cache version 2.6.STABLE21 for x86_64-redhat-linux-gnu...
> 2011/05/03 04:02:17| Process ID 29401
> 2011/05/03 04:02:17| With 1024 file descriptors available
> 2011/05/03 04:02:17| Using epoll for the IO loop
> 2011/05/03 04:02:17| DNS Socket created at 0.0.0.0, port 42081, FD 6

Squid is restarted by logrotate, but crashes.

> 2011/05/03 04:02:17| Target number of buckets: 393877
> 2011/05/03 04:02:17| Using 524288 Store buckets
> 2011/05/03 04:02:17| Max Mem size: 8192 KB
> 2011/05/03 04:02:17| Max Swap size: 102400000 KB
> 2011/05/03 09:32:33| Starting Squid Cache version 2.6.STABLE21 for x86_64-redhat-linux-gnu...
> 2011/05/03 09:32:33| Process ID 6173
> 2011/05/03 09:32:33| With 1024 file descriptors available
> 2011/05/03 09:32:33| Using epoll for the IO loop
> 2011/05/03 09:32:33| DNS Socket created at 0.0.0.0, port 57536, FD 6

Laurent.
--
Laurent CREPET <lct@megrapet.fr>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-03-2011, 08:20 AM
Laurent CREPET
 
Default since CentOS 5.6 upgrade, squid crashes

On Tue, 3 May 2011 09:46:05 +0200
Laurent CREPET <lct@megrapet.fr> wrote:

> I will look at the latest RPMs to check differences on /etc/logrotate.d/squid.

I'm suprised... it seems that both packages have not been modified for a while.

> [root@stargate ~]# ls -latr /var/log/yum.log*
> -rw-r--r-- 1 root root 11559 Dec 30 2009 /var/log/yum.log.2
> -rw------- 1 root root 27610 Dec 23 11:27 /var/log/yum.log.1
> -rw------- 1 root root 11234 May 1 08:45 /var/log/yum.log
> [root@stargate ~]#
> [root@stargate ~]# egrep -i "squid|logrotate" !$
> egrep -i "squid|logrotate" /var/log/yum.log*
> /var/log/yum.log.1:May 28 16:19:29 Updated: 7:squid-2.6.STABLE21-6.el5.x86_64
> /var/log/yum.log.1:Oct 15 13:07:31 Updated: logrotate-3.7.4-9.el5_5.1.x86_64
> /var/log/yum.log.1:Nov 08 09:26:57 Updated: logrotate-3.7.4-9.el5_5.2.x86_64
> /var/log/yum.log.2ec 06 13:14:54 Installed: 7:squid-2.6.STABLE21-3.el5.x86_64

> [root@stargate ~]# grep -i centos-release /var/log/yum.log*
> /var/log/yum.log:Apr 18 15:27:25 Updated: centos-release-notes-5.6-0.x86_64
> /var/log/yum.log:Apr 18 15:27:25 Updated: 10:centos-release-5-6.el5.centos.1.x86_64
> /var/log/yum.log.1:May 28 16:19:13 Updated: centos-release-notes-5.5-0.x86_64
> /var/log/yum.log.1:May 28 16:19:13 Updated: 10:centos-release-5-5.el5.centos.x86_64

Any ideas ?

Laurent.

--
Laurent CREPET <lct@megrapet.fr>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-03-2011, 09:26 AM
John Doe
 
Default since CentOS 5.6 upgrade, squid crashes

From: Laurent CREPET <lct@megrapet.fr>

> Any ideas ?

Different setup here (compiled latest squid 2.7.STABLE9).
Main difference I can see with the rpm's rotatelog is that
we use delaycompress...

JD
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-03-2011, 01:48 PM
Johnny Hughes
 
Default since CentOS 5.6 upgrade, squid crashes

On 05/03/2011 03:20 AM, Laurent CREPET wrote:
> On Tue, 3 May 2011 09:46:05 +0200
> Laurent CREPET <lct@megrapet.fr> wrote:
>
>> I will look at the latest RPMs to check differences on /etc/logrotate.d/squid.
>
> I'm suprised... it seems that both packages have not been modified for a while.
>
>> [root@stargate ~]# ls -latr /var/log/yum.log*
>> -rw-r--r-- 1 root root 11559 Dec 30 2009 /var/log/yum.log.2
>> -rw------- 1 root root 27610 Dec 23 11:27 /var/log/yum.log.1
>> -rw------- 1 root root 11234 May 1 08:45 /var/log/yum.log
>> [root@stargate ~]#
>> [root@stargate ~]# egrep -i "squid|logrotate" !$
>> egrep -i "squid|logrotate" /var/log/yum.log*
>> /var/log/yum.log.1:May 28 16:19:29 Updated: 7:squid-2.6.STABLE21-6.el5.x86_64
>> /var/log/yum.log.1:Oct 15 13:07:31 Updated: logrotate-3.7.4-9.el5_5.1.x86_64
>> /var/log/yum.log.1:Nov 08 09:26:57 Updated: logrotate-3.7.4-9.el5_5.2.x86_64
>> /var/log/yum.log.2ec 06 13:14:54 Installed: 7:squid-2.6.STABLE21-3.el5.x86_64
>
>> [root@stargate ~]# grep -i centos-release /var/log/yum.log*
>> /var/log/yum.log:Apr 18 15:27:25 Updated: centos-release-notes-5.6-0.x86_64
>> /var/log/yum.log:Apr 18 15:27:25 Updated: 10:centos-release-5-6.el5.centos.1.x86_64
>> /var/log/yum.log.1:May 28 16:19:13 Updated: centos-release-notes-5.5-0.x86_64
>> /var/log/yum.log.1:May 28 16:19:13 Updated: 10:centos-release-5-5.el5.centos.x86_64
>
> Any ideas ?

I do not see anything listed in the upsteam bugzilla concerning squid
and EL5.6 ... anyone else have this issue?

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 07:12 AM
Laurent CREPET
 
Default since CentOS 5.6 upgrade, squid crashes

On Tue, 03 May 2011 08:48:46 -0500
Johnny Hughes <johnny@centos.org> wrote:
> I do not see anything listed in the upsteam bugzilla concerning squid
> and EL5.6 ... anyone else have this issue?

I also checked... nothing related to squid crash after upgrading to 5.6.

squid logs are rotated on a weekly basis, so it seems that squid crashes once a week here.

In the "default" setup, squid is accessing directly to its log files. As a workaround, I can probably switch to syslog, so squid would be tolerant to logrotate (and not concerned about).

Laurent.

--
Laurent CREPET <lct@megrapet.fr>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 10:48 AM
Laurent CREPET
 
Default since CentOS 5.6 upgrade, squid crashes

On Tue, 3 May 2011 02:26:33 -0700 (PDT)
John Doe <jdmls@yahoo.com> wrote:

> From: Laurent CREPET <lct@megrapet.fr>
>
> > Any ideas ?
>
> Different setup here (compiled latest squid 2.7.STABLE9).
> Main difference I can see with the rpm's rotatelog is that
> we use delaycompress...
>
> JD
>

I would prefer not to compile anything. From squid web site, I found references to packages available here:
http://people.redhat.com/jskala/squid/

And this guy takes the SRPM from Fedora:
http://www.howtoforge.com/anonymous-proxy-using-squid-3-centos-5.x

However, since:
- my settings have not been modified recently
- logrorate and squid packages have not been updated by CentOS 5.6 (see below)
...an issue with glibc ?

> [root@stargate ~]# egrep "centos-release|glibc|squid|logrotate" /var/log/yum.log*
> /var/log/yum.log:Apr 18 15:27:25 Updated: centos-release-notes-5.6-0.x86_64
> /var/log/yum.log:Apr 18 15:27:25 Updated: 10:centos-release-5-6.el5.centos.1.x86_64
> /var/log/yum.log:Apr 18 15:27:34 Updated: glibc-common-2.5-58.el5_6.2.x86_64
> /var/log/yum.log:Apr 18 15:27:46 Updated: glibc-2.5-58.el5_6.2.x86_64
> /var/log/yum.log:Apr 18 15:27:47 Updated: glibc-2.5-58.el5_6.2.i686
> /var/log/yum.log:Apr 28 09:35:49 Updated: glibc-common-2.5-58.el5_6.3.x86_64
> /var/log/yum.log:Apr 28 09:35:59 Updated: glibc-2.5-58.el5_6.3.x86_64
> /var/log/yum.log:Apr 28 09:36:00 Updated: glibc-2.5-58.el5_6.3.i686
> /var/log/yum.log.1:Jan 21 15:25:52 Updated: glibc-common-2.5-42.el5_4.3.x86_64
> /var/log/yum.log.1:Jan 21 15:25:57 Updated: glibc-2.5-42.el5_4.3.x86_64
> /var/log/yum.log.1:Jan 21 15:26:06 Updated: glibc-2.5-42.el5_4.3.i686
> /var/log/yum.log.1:May 28 16:19:13 Updated: glibc-common-2.5-49.x86_64
> /var/log/yum.log.1:May 28 16:19:13 Updated: centos-release-notes-5.5-0.x86_64
> /var/log/yum.log.1:May 28 16:19:13 Updated: 10:centos-release-5-5.el5.centos.x86_64
> /var/log/yum.log.1:May 28 16:19:18 Updated: glibc-2.5-49.i686
> /var/log/yum.log.1:May 28 16:19:21 Updated: glibc-2.5-49.x86_64
> /var/log/yum.log.1:May 28 16:19:29 Updated: 7:squid-2.6.STABLE21-6.el5.x86_64
> /var/log/yum.log.1:Jun 18 14:34:20 Updated: glibc-common-2.5-49.el5_5.2.x86_64
> /var/log/yum.log.1:Jun 18 14:34:29 Updated: glibc-2.5-49.el5_5.2.x86_64
> /var/log/yum.log.1:Jun 18 14:34:30 Updated: glibc-2.5-49.el5_5.2.i686
> /var/log/yum.log.1:Aug 10 15:21:21 Updated: glibc-common-2.5-49.el5_5.4.x86_64
> /var/log/yum.log.1:Aug 10 15:21:28 Updated: glibc-2.5-49.el5_5.4.x86_64
> /var/log/yum.log.1:Aug 10 15:21:44 Updated: glibc-2.5-49.el5_5.4.i686
> /var/log/yum.log.1:Oct 15 13:07:25 Updated: glibc-common-2.5-49.el5_5.5.x86_64
> /var/log/yum.log.1:Oct 15 13:07:29 Updated: glibc-2.5-49.el5_5.5.x86_64
> /var/log/yum.log.1:Oct 15 13:07:30 Updated: glibc-2.5-49.el5_5.5.i686
> /var/log/yum.log.1:Oct 15 13:07:31 Updated: logrotate-3.7.4-9.el5_5.1.x86_64
> /var/log/yum.log.1:Nov 02 14:03:17 Updated: glibc-common-2.5-49.el5_5.7.x86_64
> /var/log/yum.log.1:Nov 02 14:03:27 Updated: glibc-2.5-49.el5_5.7.x86_64
> /var/log/yum.log.1:Nov 02 14:03:40 Updated: glibc-2.5-49.el5_5.7.i686
> /var/log/yum.log.1:Nov 08 09:26:57 Updated: logrotate-3.7.4-9.el5_5.2.x86_64
> /var/log/yum.log.2ec 06 13:14:54 Installed: 7:squid-2.6.STABLE21-3.el5.x86_64
> /var/log/yum.log.2ec 18 06:27:14 Updated: glibc-common-2.5-42.el5_4.2.x86_64
> /var/log/yum.log.2ec 18 06:27:22 Updated: glibc-2.5-42.el5_4.2.x86_64
> /var/log/yum.log.2ec 18 06:27:31 Updated: glibc-2.5-42.el5_4.2.i686

Laurent.
--
Laurent CREPET <lct@megrapet.fr>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 11:35 AM
Philippe Naudin
 
Default since CentOS 5.6 upgrade, squid crashes

Le mer 04 mai 2011 12:48:39 CEST, Laurent CREPET a écrit:

> [...]
> However, since:
> - my settings have not been modified recently
> - logrorate and squid packages have not been updated by CentOS 5.6 (see below)
> ...an issue with glibc ?

Squid and logrotate work just fine here :
$ rpm -q squid logrotate
squid-2.6.STABLE21-6.el5
logrotate-3.7.4-9.el5_5.2

$ ls -l /var/log/squid/
total 92624
-rw------- 1 squid squid 43709603 mai 4 13:08 access.log
-rw------- 1 squid squid 9424047 mai 1 04:02 access.log.1.gz
-rw------- 1 squid squid 9751039 avr 24 04:02 access.log.2.gz
-rw------- 1 squid squid 10745924 avr 17 04:02 access.log.3.gz
-rw------- 1 squid squid 11373152 avr 10 04:02 access.log.4.gz
-rw------- 1 squid squid 9620745 avr 3 04:02 access.log.5.gz
-rw-r----- 1 squid squid 2794 mai 4 11:58 cache.log
-rw-r----- 1 squid squid 2503 mai 1 04:02 cache.log.1.gz
-rw-r----- 1 squid squid 1580 avr 24 04:02 cache.log.2.gz
-rw-r----- 1 squid squid 1881 avr 17 04:02 cache.log.3.gz
-rw-r----- 1 squid squid 1591 avr 10 04:02 cache.log.4.gz
-rw-r----- 1 squid squid 2772 avr 3 04:02 cache.log.5.gz
-rw-r--r-- 1 squid squid 511 nov 26 09:13 squid.out

Have you double checked that your problem is not a permission
problem, or some SELinux issue ?

You can also try, as root :
$ logrotate -d -v -f /etc/logrotate.d/squid # and without -d
$ squid -k rotate
$ ls -lZ /var/log/squid/
to see if there is any error message.

HTH,

--
Philippe
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 11:37 AM
Juergen Gotteswinter
 
Default since CentOS 5.6 upgrade, squid crashes

dont know if it helps, but squid keeps crashing for me when selinux was
activated and diskd enabled in the squid config.

Am 04.05.11 13:35, schrieb Philippe Naudin:
> Le mer 04 mai 2011 12:48:39 CEST, Laurent CREPET a écrit:
>
>> [...]
>> However, since:
>> - my settings have not been modified recently
>> - logrorate and squid packages have not been updated by CentOS 5.6 (see below)
>> ...an issue with glibc ?
>
> Squid and logrotate work just fine here :
> $ rpm -q squid logrotate
> squid-2.6.STABLE21-6.el5
> logrotate-3.7.4-9.el5_5.2
>
> $ ls -l /var/log/squid/
> total 92624
> -rw------- 1 squid squid 43709603 mai 4 13:08 access.log
> -rw------- 1 squid squid 9424047 mai 1 04:02 access.log.1.gz
> -rw------- 1 squid squid 9751039 avr 24 04:02 access.log.2.gz
> -rw------- 1 squid squid 10745924 avr 17 04:02 access.log.3.gz
> -rw------- 1 squid squid 11373152 avr 10 04:02 access.log.4.gz
> -rw------- 1 squid squid 9620745 avr 3 04:02 access.log.5.gz
> -rw-r----- 1 squid squid 2794 mai 4 11:58 cache.log
> -rw-r----- 1 squid squid 2503 mai 1 04:02 cache.log.1.gz
> -rw-r----- 1 squid squid 1580 avr 24 04:02 cache.log.2.gz
> -rw-r----- 1 squid squid 1881 avr 17 04:02 cache.log.3.gz
> -rw-r----- 1 squid squid 1591 avr 10 04:02 cache.log.4.gz
> -rw-r----- 1 squid squid 2772 avr 3 04:02 cache.log.5.gz
> -rw-r--r-- 1 squid squid 511 nov 26 09:13 squid.out
>
> Have you double checked that your problem is not a permission
> problem, or some SELinux issue ?
>
> You can also try, as root :
> $ logrotate -d -v -f /etc/logrotate.d/squid # and without -d
> $ squid -k rotate
> $ ls -lZ /var/log/squid/
> to see if there is any error message.
>
> HTH,
>

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 01:03 PM
Laurent CREPET
 
Default since CentOS 5.6 upgrade, squid crashes

On Wed, 4 May 2011 13:35:37 +0200
Philippe Naudin <philippe.naudin@supagro.inra.fr> wrote:

> Le mer 04 mai 2011 12:48:39 CEST, Laurent CREPET a écrit:
>
> > [...]
> > However, since:
> > - my settings have not been modified recently
> > - logrorate and squid packages have not been updated by CentOS 5.6 (see below)
> > ...an issue with glibc ?
>
> Squid and logrotate work just fine here :
> $ rpm -q squid logrotate
> squid-2.6.STABLE21-6.el5
> logrotate-3.7.4-9.el5_5.2
>
> $ ls -l /var/log/squid/
> total 92624
> -rw------- 1 squid squid 43709603 mai 4 13:08 access.log
> -rw------- 1 squid squid 9424047 mai 1 04:02 access.log.1.gz
> -rw------- 1 squid squid 9751039 avr 24 04:02 access.log.2.gz
> -rw------- 1 squid squid 10745924 avr 17 04:02 access.log.3.gz
> -rw------- 1 squid squid 11373152 avr 10 04:02 access.log.4.gz
> -rw------- 1 squid squid 9620745 avr 3 04:02 access.log.5.gz
> -rw-r----- 1 squid squid 2794 mai 4 11:58 cache.log
> -rw-r----- 1 squid squid 2503 mai 1 04:02 cache.log.1.gz
> -rw-r----- 1 squid squid 1580 avr 24 04:02 cache.log.2.gz
> -rw-r----- 1 squid squid 1881 avr 17 04:02 cache.log.3.gz
> -rw-r----- 1 squid squid 1591 avr 10 04:02 cache.log.4.gz
> -rw-r----- 1 squid squid 2772 avr 3 04:02 cache.log.5.gz
> -rw-r--r-- 1 squid squid 511 nov 26 09:13 squid.out
>
> Have you double checked that your problem is not a permission
> problem, or some SELinux issue ?

SELinux is disabled.

[root@stargate ~]# grep SELINUX /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
SELINUXTYPE=targeted


> You can also try, as root :
> $ logrotate -d -v -f /etc/logrotate.d/squid # and without -d
> $ squid -k rotate

[root@stargate ~]# /etc/init.d/squid status
squid (pid 6173) is running...
[root@stargate ~]# logrotate -d -v -f /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /var/log/squid/access.log
reading config info for /var/log/squid/cache.log
reading config info for /var/log/squid/store.log

Handling 3 logs

rotating pattern: /var/log/squid/access.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/access.log
log needs rotating
rotating log /var/log/squid/access.log, log->rotateCount is 5
renaming /var/log/squid/access.log.5.gz to /var/log/squid/access.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/access.log.4.gz to /var/log/squid/access.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/access.log.3.gz to /var/log/squid/access.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/access.log.2.gz to /var/log/squid/access.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/access.log.0.gz to /var/log/squid/access.log.1.gz (rotatecount 5, logstart 1, i 0),
copying /var/log/squid/access.log to /var/log/squid/access.log.1
truncating /var/log/squid/access.log
compressing log with: /bin/gzip
removing old log /var/log/squid/access.log.6.gz

rotating pattern: /var/log/squid/cache.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/cache.log
log needs rotating
rotating log /var/log/squid/cache.log, log->rotateCount is 5
renaming /var/log/squid/cache.log.5.gz to /var/log/squid/cache.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/cache.log.4.gz to /var/log/squid/cache.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/cache.log.3.gz to /var/log/squid/cache.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/cache.log.2.gz to /var/log/squid/cache.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/cache.log.1.gz to /var/log/squid/cache.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/cache.log.0.gz to /var/log/squid/cache.log.1.gz (rotatecount 5, logstart 1, i 0),
copying /var/log/squid/cache.log to /var/log/squid/cache.log.1
truncating /var/log/squid/cache.log
compressing log with: /bin/gzip
removing old log /var/log/squid/cache.log.6.gz

rotating pattern: /var/log/squid/store.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/store.log
log needs rotating
rotating log /var/log/squid/store.log, log->rotateCount is 5
renaming /var/log/squid/store.log.5.gz to /var/log/squid/store.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/store.log.4.gz to /var/log/squid/store.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/store.log.3.gz to /var/log/squid/store.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/store.log.2.gz to /var/log/squid/store.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/store.log.1.gz to /var/log/squid/store.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/store.log.0.gz to /var/log/squid/store.log.1.gz (rotatecount 5, logstart 1, i 0),
copying /var/log/squid/store.log to /var/log/squid/store.log.1
truncating /var/log/squid/store.log
running postrotate script
running script with arg /var/log/squid/store.log : "
/usr/sbin/squid -k rotate
"
compressing log with: /bin/gzip
removing old log /var/log/squid/store.log.6.gz
[root@stargate ~]# /etc/init.d/squid status
squid (pid 6173) is running...
[root@stargate ~]# logrotate -v -f /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /var/log/squid/access.log
reading config info for /var/log/squid/cache.log
reading config info for /var/log/squid/store.log

Handling 3 logs

rotating pattern: /var/log/squid/access.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/access.log
log needs rotating
rotating log /var/log/squid/access.log, log->rotateCount is 5
renaming /var/log/squid/access.log.5.gz to /var/log/squid/access.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/access.log.4.gz to /var/log/squid/access.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/access.log.3.gz to /var/log/squid/access.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/access.log.2.gz to /var/log/squid/access.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/access.log.0.gz to /var/log/squid/access.log.1.gz (rotatecount 5, logstart 1, i 0),
old log /var/log/squid/access.log.0.gz does not exist
copying /var/log/squid/access.log to /var/log/squid/access.log.1
truncating /var/log/squid/access.log
compressing log with: /bin/gzip
removing old log /var/log/squid/access.log.6.gz

rotating pattern: /var/log/squid/cache.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/cache.log
log needs rotating
rotating log /var/log/squid/cache.log, log->rotateCount is 5
renaming /var/log/squid/cache.log.5.gz to /var/log/squid/cache.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/cache.log.4.gz to /var/log/squid/cache.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/cache.log.3.gz to /var/log/squid/cache.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/cache.log.2.gz to /var/log/squid/cache.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/cache.log.1.gz to /var/log/squid/cache.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/cache.log.0.gz to /var/log/squid/cache.log.1.gz (rotatecount 5, logstart 1, i 0),
old log /var/log/squid/cache.log.0.gz does not exist
copying /var/log/squid/cache.log to /var/log/squid/cache.log.1
truncating /var/log/squid/cache.log
compressing log with: /bin/gzip
removing old log /var/log/squid/cache.log.6.gz

rotating pattern: /var/log/squid/store.log forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/squid/store.log
log needs rotating
rotating log /var/log/squid/store.log, log->rotateCount is 5
renaming /var/log/squid/store.log.5.gz to /var/log/squid/store.log.6.gz (rotatecount 5, logstart 1, i 5),
renaming /var/log/squid/store.log.4.gz to /var/log/squid/store.log.5.gz (rotatecount 5, logstart 1, i 4),
renaming /var/log/squid/store.log.3.gz to /var/log/squid/store.log.4.gz (rotatecount 5, logstart 1, i 3),
renaming /var/log/squid/store.log.2.gz to /var/log/squid/store.log.3.gz (rotatecount 5, logstart 1, i 2),
renaming /var/log/squid/store.log.1.gz to /var/log/squid/store.log.2.gz (rotatecount 5, logstart 1, i 1),
renaming /var/log/squid/store.log.0.gz to /var/log/squid/store.log.1.gz (rotatecount 5, logstart 1, i 0),
old log /var/log/squid/store.log.0.gz does not exist
copying /var/log/squid/store.log to /var/log/squid/store.log.1
truncating /var/log/squid/store.log
running postrotate script
compressing log with: /bin/gzip
removing old log /var/log/squid/store.log.6.gz
[root@stargate ~]# /etc/init.d/squid status
squid (pid 6173) is running...


> $ ls -lZ /var/log/squid/
> to see if there is any error message.

[root@stargate ~]# cat /var/log/squid/cache.log
2011/05/04 14:37:36| storeDirWriteCleanLogs: Starting...
2011/05/04 14:37:36| 65536 entries written so far.
2011/05/04 14:37:36| 131072 entries written so far.
2011/05/04 14:37:36| 196608 entries written so far.
2011/05/04 14:37:36| 262144 entries written so far.
2011/05/04 14:37:36| 327680 entries written so far.
2011/05/04 14:37:36| 393216 entries written so far.
2011/05/04 14:37:36| 458752 entries written so far.
2011/05/04 14:37:36| 524288 entries written so far.
2011/05/04 14:37:36| 589824 entries written so far.
2011/05/04 14:37:36| 655360 entries written so far.
2011/05/04 14:37:36| 720896 entries written so far.
2011/05/04 14:37:36| 786432 entries written so far.
2011/05/04 14:37:36| 851968 entries written so far.
2011/05/04 14:37:36| 917504 entries written so far.
2011/05/04 14:37:36| 983040 entries written so far.
2011/05/04 14:37:36| 1048576 entries written so far.
2011/05/04 14:37:36| 1114112 entries written so far.
2011/05/04 14:37:36| 1179648 entries written so far.
2011/05/04 14:37:36| Finished. Wrote 1242965 entries.
2011/05/04 14:37:36| Took 0.3 seconds (3692695.5 entries/sec).
2011/05/04 14:37:36| aioSync: flushing pending I/O operations
2011/05/04 14:37:36| aioSync: done
2011/05/04 14:37:36| logfileRotate: /var/log/squid/store.log
2011/05/04 14:37:36| logfileRotate: /var/log/squid/access.log
2011/05/04 14:39:51| storeDirWriteCleanLogs: Starting...
2011/05/04 14:39:51| 65536 entries written so far.
2011/05/04 14:39:51| 131072 entries written so far.
2011/05/04 14:39:51| 196608 entries written so far.
2011/05/04 14:39:51| 262144 entries written so far.
2011/05/04 14:39:51| 327680 entries written so far.
2011/05/04 14:39:51| 393216 entries written so far.
2011/05/04 14:39:51| 458752 entries written so far.
2011/05/04 14:39:51| 524288 entries written so far.
2011/05/04 14:39:51| 589824 entries written so far.
2011/05/04 14:39:51| 655360 entries written so far.
2011/05/04 14:39:51| 720896 entries written so far.
2011/05/04 14:39:51| 786432 entries written so far.
2011/05/04 14:39:51| 851968 entries written so far.
2011/05/04 14:39:51| 917504 entries written so far.
2011/05/04 14:39:51| 983040 entries written so far.
2011/05/04 14:39:51| 1048576 entries written so far.
2011/05/04 14:39:51| 1114112 entries written so far.
2011/05/04 14:39:51| 1179648 entries written so far.
2011/05/04 14:39:51| Finished. Wrote 1242997 entries.
2011/05/04 14:39:51| Took 0.4 seconds (3462811.6 entries/sec).
2011/05/04 14:39:51| aioSync: flushing pending I/O operations
2011/05/04 14:39:51| aioSync: done
2011/05/04 14:39:51| logfileRotate: /var/log/squid/store.log
2011/05/04 14:39:51| logfileRotate: /var/log/squid/access.log

So, logrotating squid logs by hand works. Now, when logrotate is started from /etc/cron.daily/logrotate, it processes more log files. It has consequences on system load and disk space. Here are my last ideas.

Laurent.
--
Laurent CREPET <lct@megrapet.fr>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 05-04-2011, 02:33 PM
Philippe Naudin
 
Default since CentOS 5.6 upgrade, squid crashes

Le mer 04 mai 2011 15:03:06 CEST, Laurent CREPET a écrit:

> [root@stargate ~]# logrotate -d -v -f /etc/logrotate.d/squid
> [snip ]
> So, logrotating squid logs by hand works. Now, when logrotate is started from /etc/cron.daily/logrotate, it processes more log files. It has consequences on system load and disk space. Here are my last ideas.

Not sure it is working : logrotate -d is debug mode, it actually does
nothing. You have to try again without -d to check if it works. Don't
forget to check the content of /var/log/squid/ (file size, date and
time) for the result.

--
Philippe
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org