Chinaunix首页 | 论坛 | 博客
  • 博客访问: 409759
  • 博文数量: 89
  • 博客积分: 1386
  • 博客等级: 中尉
  • 技术积分: 827
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-20 10:32
个人简介

12年 linux 系统运维工程师,网络架构设计、优化,故障处理。

文章分类

全部博文(89)

文章存档

2019年(1)

2015年(2)

2014年(11)

2013年(14)

2012年(2)

2011年(59)

分类: 系统运维

2011-11-15 16:42:21


 
晚上收到报警短信,原来是公司squid停止工作,
上网找了一下,原因是acces.log 日志到2G了。
======================================
Thanks to Google for saving my life again as a dummy Linux administrator.
The search term “Squid Parent: child process exited due to signal 25″ led me to  who suggests that the Squid server log files (in particularly, the cache.log file) might have exceeded the Linux 2GB file size limitation! Otherwise, the Linux file system might be the culprit – run fsck command to check the file system consistency.
(The Squid v2.6 Stable 5 is running on Red Hat Enterprise Linux AS 3 using kernel version 2.4.21-4.ELsmp).
For my case, it was the cache.log that had exceeded 2GB exactly. After running > cache.log to initialize the file, the Squid Proxy server is up and working again.
To prevent this from happening again, I’ve to enable logrotate on cache.log file too. Previously, only the access.log file is logrotated, as this log file can grow up to a very big file size in just half a day – it log every lines whenever a browser loading a web page from the Web!

===============================================
上次编译安装时 没有打开--with-large-files 这个参数。
 
./configure --help | grep large
 
 
--enable-large-cache-files

Enable support for large cache files (>2GB).

--with-large-files Enable support for large files (logs etc).

POSIX_V6_ILP32_OFFBIG 32 bits with large file support

POSIX_V6_LPBIG_OFFBIG large pointers and files

XBS5_ILP32_OFFBIG 32 bits with large file support (legacy)

XBS5_LPBIG_OFFBIG large pointers and files (legacy)
 
阅读(898) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~