简体   繁体   English

IBM MQ:AMQ7017'日志不可用'

[英]IBM MQ: AMQ7017 'Log not available'

When trying to start a queue manager I get a AMQ7017 Log not available message. 尝试启动队列管理器时,出现AMQ7017 Log not available I have checked, the LogPath for the queue manager in the mqs.ini file is correct. 我检查了mqs.ini文件中队列管理器的LogPath是否正确。 When the problem started I checked and there were two log files in the log folder for the manager: S000000 and S0000002 . 问题开始时,我检查了日志,并在管理器的日志文件夹中有两个日志文件: S000000S0000002 I simply copied the first one and renamed the copy to S000001 (with the correct number of zeroes). 我只复制了第一个,然后将副本重命名为S000001 (具有正确的零数)。 Still the same error. 还是一样的错误。

How can I fix this issue? 如何解决此问题?

I hope its not a production qmgr. 我希望它不是生产qmgr。 Few options below. 下面的几个选项。

  1. You can restore the missing log file from backup and try to start. 您可以从备份中还原丢失的日志文件,然后尝试启动。
  2. Create a qmgr of the same name (in another machine) with the same qm.ini. 使用相同的qm.ini创建相同名称的qmgr(在另一台计算机上)。 Basically the log setting should be the same as this qmgr. 基本上,日志设置应与此qmgr相同。 Copy the log files from that machine to this qmgr and try to start the qmgr. 将日志文件从该计算机复制到此qmgr,然后尝试启动qmgr。 If it starts, the qmgr might recover the persistent messages from the queue files. 如果启动,则qmgr可能会从队列文件中恢复持久消息。 This is not recommended by IBM, but works in some situations. IBM不建议这样做,但是在某些情况下可以使用。 If its a non-production qmgr, this is the best way. 如果其非生产qmgr,则这是最佳方法。
  3. recreate the qmgr 重新创建qmgr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM