故障现象:
需要每周重启一次机器,要不然所有用户的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) |