Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2617989
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2008-04-11 13:47:30

故障现象:
需要每周重启一次机器,要不然所有用户的cron 任务就根本不执行.若reboot后,不做任何修改配置,系统会自动去执行cron,但3-5天后,系统又莫明其妙的不执行cron了,reboot后,系统又恢复正常。
查看/var/adm/cron/log 文件,里面报错信息如下:
# tail log
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
 
解决方法:
crontab 没有定时执行是因为“! cron: 0481-087 The c queue maximum run limit has been reached.”。
修改/var/adm/cron/queuedefs 文件。在里面加上这样一句:"c.200j20n60w",然后kill  PID,其中PID为cron进程号,新的cron设置就会生效。
Maximum number of jobs in the queue by default was 50. The errorc messages 0481-087, 0481-095 usually appears when this max. number is reached. So you can increase the maximum number of jobs in /var/adm/cron/queuedefs , vi the queuedefs file  and change the b to c and the 50 to 200.   by including this entry"c.200j20n60w"  in the file. After making the changes to the file, killcron and it will respawn again with the new settings.

阅读(2360) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~