AMQ7017 queue manager log not available or corrupted

Problem
Your queue manager fails to start with the following error :

AMQ7017 Log not available
 
Cause
The qm.ini files had been altered and the LogPath entries were removed.

After making the change to qm.ini LogPath, the queue manager failed to start because S0000001.log was not available. The log file was present and the permissions appeared to be correct, but it seemed to be corrupted.

 
Solution
Edit the qm.ini file and specify the correct LogPath.

If the queue manager fails to start and you suspect a corrupted log file, then do the following:


Here are the steps to follow to recover from the damaged log file(s) in /var/mqm/log/qmgrname/active. The queue manager is referred to as TESTQMGR.

  1. cd /var/mqm/qmgrs
  2. mv TESTQMGR TEST.OLD
    NOTE:
    This will rename the TESTQMGR directory to be TEST.OLD, effectively backing up all your queues and objects.
  3. dltmqm TESTQMGR
    Note:
     This command may not completely run and it may produce error messages. This is OK. At the end of this command there are 3 places to check to make sure everything is cleaned up from TESTQMGR and if it did not then you will need to manually remove what is left.
  4. There should not be a directory under /var/mqm/qmgrs by the name of TESTQMGR as it should have been renamed to TEST.OLD.
  5. In /var/mqm/log there should not be a directory name TESTQMGR. If there is a directory left there, from /var/mqm/log issue the command rm -rf TESTQMGR to remove the old logs.
  6. In /var/mqm there is a file called mqs.ini. Within file mqs.ini there will be QueueManager: stanzas for each queue manager defined on this box. There should no longer be a stanza referring to TESTQMGR. If there is a stanza for TESTQMGR, remove it; the whole stanza (should be 4 lines.)
  7. crtmqm TESTQMGR
  8. cd /var/mqm/qmgrs
  9. cp TESTQMGR/amqalchk.fil TEST.OLD
    (This is to copy the new check point file over to the backup directory where you are saving our old queue manager files.)
  10. rm -rf TESTQMGR
    (This will remove the new qmgr files you just created so you can replace them with the files from the old queue manager that you had saved.)
  11. mv TEST.OLD TESTQMGR
    (This is where you just restored the old definitions. At this point you should have a new queue manager created with new logs but you should have our old queues and channels still there.)
  12. strmqm TESTQMGR
    (Start up the queue manager. Everything should be back to normal except there will be no attempt to recover any in-flight UOWs because you have nothing in the logs.)



another path :

Failure recovery and the queue manager

After a full system failure and recovery, the queue manager might fail to start, displaying this message:

AMQ7017 Log not available.

This typically indicates that the log file is missing or damaged, or that the log path to the queue manager is inaccessible.

To remedy the problem, create a dummy queue manager and copy its header log file and transaction log files over to the actual queue manager. This will allow you to restart the queue manager.





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值