Squid无法启动的故障排查
2012-06-10 18:44:15 来源: 评论:0 点击:
收到监控的兄弟报CDN有台服务器的squid启动不起来了.上去看了下日志Jun 9 22:37:09 WEBCDN squid[21516]: Squid Parent: child pro...
收到监控的兄弟报CDN有台服务器的squid启动不起来了.
上去看了下日志
Jun 9 22:37:09 WEBCDN squid[21516]: Squid Parent: child process 21709 started
Jun 9 22:37:09 WEBCDN squid[21709]: storeDirOpenTmpSwapLog: Failed to open swap log.
Jun 9 22:37:09 WEBCDN squid[21516]: Squid Parent: child process 21709 exited due to signal 6
Jun 9 22:37:12 WEBCDN squid[21516]: Squid Parent: child process 21813 started
Jun 9 22:37:13 WEBCDN squid[21813]: storeDirOpenTmpSwapLog: Failed to open swap log.
Jun 9 22:37:13 WEBCDN squid[21516]: Squid Parent: child process 21813 exited due to signal 6
Jun 9 22:37:16 WEBCDN squid[21516]: Squid Parent: child process 21872 started
Jun 9 22:37:16 WEBCDN squid[21872]: storeDirOpenTmpSwapLog: Failed to open swap log.
Jun 9 22:37:16 WEBCDN squid[21516]: Squid Parent: child process 21872 exited due to signal 6
Jun 9 22:37:16 WEBCDN squid[21516]: Exiting due to repeated, frequent failures
看了下cache-dir的目录权限是正确的,于是看了下操作记录
发现是有人使用了kill将squid干掉了!
Squid在运行时会写一个swap.state文件,如果强制kill掉squid会导致swap.state文件出现错误,那么squid也就没有办法启动了。
同时看了cache.log
2012/06/09 22:51:30| Store logging disabled
2012/06/09 22:51:30| Rebuilding storage in /data/squid/cache (DIRTY)
2012/06/09 22:51:30| Rebuilding storage in /data1/squid/cache (DIRTY)
2012/06/09 22:51:30| Rebuilding storage in /data2/squid/cache (DIRTY)
2012/06/09 22:51:30| /data3/squid/cache/swap.state.new: (28) No space left on device
FATAL: storeDirOpenTmpSwapLog: Failed to open swap log.
Squid Cache (Version 1.0): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.006 user + 0.012 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
看了下空间存在,但是inode用完了
已经重新格式化(这个盘格的时候可能出现了问题,没有正常格式化完):
mkfs.ext3 -N 36634624 /dev/sde1
因此,以后squid发生问题看下/var/log/messages和/log/squid/cache.log,不要使用kill来杀squid.
上一篇:WebCDN流量及QOS异常故障RC查找与经验分享
下一篇:CDN技术原理简介
分享到:
收藏
评论排行
- ·Windows(Win7)下用Xming...(92)
- ·使用jmx client监控activemq(20)
- ·Hive查询OOM分析(14)
- ·复杂网络架构导致的诡异...(8)
- ·使用 OpenStack 实现云...(7)
- ·影响Java EE性能的十大问题(6)
- ·云计算平台管理的三大利...(6)
- ·Mysql数据库复制延时分析(5)
- ·OpenStack Nova开发与测...(4)
- ·LTPP一键安装包1.2 发布(4)
- ·Linux下系统或服务排障的...(4)
- ·PHP发布5.4.4 和 5.3.1...(4)
- ·RSYSLOG搭建集中日志管理服务(4)
- ·转换程序源码的编码格式[...(3)
- ·Linux 的木马程式 Wirenet 出现(3)
- ·Nginx 发布1.2.1稳定版...(3)
- ·zend framework文件读取漏洞分析(3)
- ·Percona Playback 0.3 development release(3)
- ·运维业务与CMDB集成关系一例(3)
- ·应该知道的Linux技巧(3)