MQ: QMGR is not started due to Circular log deletion
Issue: Circular Log is deleted by the user by mistake which causes the queue manager not able to start
Solution:
Restore the log file from back up and start the qmgr. it should work
WorkAround: If there is no backup the workaround to get the queue manager running is
1. backup /var/mqm/log/<ORI_QMGR>
2. create the dummy qmgr with the similar log description as in the <ORI_QMGR>for this refer the /var/mqm/qmgrs/<ORI_QMGR>/qm.ini
3. crtmqm <DUMMY_QMGR> -lp 3 -ls 2 -lp 1024 -lc
4. copy /var/mqm/log/<DUMMY_QMGR>/active and amqhlct.ifh to /var/mqm/log/<ORI_QMGR>
cp /var/mqm/log/<DUMMY_QMGR>/* /var/mqm/log/<ORI_QMGR>/
5. ensure all semphores for <ORI_DMGR> are cleared
6.strmqm <ORI_QMGR>
7. you can remove <DUMMY_QMGR> if not required.
Solution:
Restore the log file from back up and start the qmgr. it should work
WorkAround: If there is no backup the workaround to get the queue manager running is
1. backup /var/mqm/log/<ORI_QMGR>
2. create the dummy qmgr with the similar log description as in the <ORI_QMGR>for this refer the /var/mqm/qmgrs/<ORI_QMGR>/qm.ini
3. crtmqm <DUMMY_QMGR> -lp 3 -ls 2 -lp 1024 -lc
4. copy /var/mqm/log/<DUMMY_QMGR>/active and amqhlct.ifh to /var/mqm/log/<ORI_QMGR>
cp /var/mqm/log/<DUMMY_QMGR>/* /var/mqm/log/<ORI_QMGR>/
5. ensure all semphores for <ORI_DMGR> are cleared
6.strmqm <ORI_QMGR>
7. you can remove <DUMMY_QMGR> if not required.
Comments
Post a Comment