|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved] Log recreation? |
« View previous topic :: View next topic » |
Author |
Message
|
techno |
Posted: Fri Jul 18, 2003 10:07 am Post subject: [Solved] Log recreation? |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Somehow, log files of a q-mgr got deleted. How do I recreate them? When I start the q-mgr, it says log files not available. I tried to copy log files of a different q-mgr. It does not work. I though these log files contain messages. Could you throw some light on this topic.
Thanks |
|
Back to top |
|
 |
GMcCarthy |
Posted: Fri Jul 18, 2003 10:13 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
What platform. I just went through this. You have to either recover the logs from that queue manager OR perform a cold start. _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
techno |
Posted: Fri Jul 18, 2003 10:40 am Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
It is on HP-UX. How do I recover. I do not have any backup. What do you mean by cold start? |
|
Back to top |
|
 |
GMcCarthy |
Posted: Fri Jul 18, 2003 11:09 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
You need to create a 'dummy' queue manager using the same EXACT log configuration as the queue manager that is missing it's logs. You can get this info, assuming you have not changed it, in qm.ini for that queue manager.
Example:
for circular logging, 3 primary logs, 2 secondary logs, logfilesize of 1024
You need to cd to the current queue manager log directory
==>cd /var/mqm/log/qmanager
there you should see the active directory and a file called amqhlctl.lfh
delete them
==>rm -r *
Then create the DUMMY queue manager
==>crtmqm -lc -lp 3 -ls 2 -lf 1024 DUMMY
then switch to the log directory for the DUMMY queue manager
==>cd /var/mqm/log/DUMMY
copy them
==>cp -pr * /var/mqm/log/qmgrname
you should be able to bring up your queue manager
you should also delete DUMMY
==>dltmqm DUMMY
Hope this helps. Let me know if it works for you.
PS...they do not hold your messages. They're for recovery. _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
techno |
Posted: Fri Jul 18, 2003 11:21 am Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Thanks a lot. That works. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|