ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » [Solved] Log recreation?

Post new topic  Reply to topic
 [Solved] Log recreation? « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Fri Jul 18, 2003 10:07 am    Post subject: [Solved] Log recreation? Reply with quote

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
View user's profile Send private message
GMcCarthy
PostPosted: Fri Jul 18, 2003 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
techno
PostPosted: Fri Jul 18, 2003 10:40 am    Post subject: Reply with quote

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
View user's profile Send private message
GMcCarthy
PostPosted: Fri Jul 18, 2003 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
techno
PostPosted: Fri Jul 18, 2003 11:21 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Thanks a lot. That works.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » [Solved] Log recreation?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.