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 » Deleted Queue Manager logs

Post new topic  Reply to topic
 Deleted Queue Manager logs « View previous topic :: View next topic » 
Author Message
boca1
PostPosted: Sun Feb 10, 2008 10:34 am    Post subject: Deleted Queue Manager logs Reply with quote

Newbie

Joined: 10 Feb 2008
Posts: 2

Can anyone help us in finding the solution for this peculiar problem.

By mistakenly i took the back up and deleted the log files that are in /var/mqm/logs while the queue manager was running and stopped the queue manager .
And i was trying to start the queue manager but it is saying that

>mqsistart MAZDA_BRK
Log not available.

So i replaced all the back up log files in the /var/mqm/logs/(QM)/active.

and again i tried starting the queue manager but iam getting the same problem.

Could anyone help me getting this queue manager starting.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Feb 10, 2008 5:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Create another qmgr with the same name and logging characteristics on a different machine.
Copy the full /var/mqm/logs/QMGR directory to the machine with the problem.
Restart the qmgr with the problem. If it works delete the qmgr you created to fix the problem....

Understand that this is not the officially sanctioned answer. That answer would be delete and recreate the qmgr...

This should however allow you to keep messages already in your queues.
You will have to reset all channels (seqnum).

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Mon Feb 11, 2008 9:46 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

fjb_saper wrote:
Create another qmgr with the same name and logging characteristics on a different machine.
Copy the full /var/mqm/logs/QMGR directory to the machine with the problem.
Restart the qmgr with the problem. If it works delete the qmgr you created to fix the problem....

Make sure that you only ever have one of these QMs active at any one time
fjb_saper wrote:

You will have to reset all channels (seqnum).

Why. The Sequence numbers are kept in a queue, which will remain intact.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Feb 11, 2008 10:15 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Understanding that this is not an official or even approved way of solving this....why would the dummy QM need the same name? Nothing in the logs has the QM name, right?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 11, 2008 4:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

PeterPotkay wrote:
Understanding that this is not an official or even approved way of solving this....why would the dummy QM need the same name? Nothing in the logs has the QM name, right?


Never tried it giving a different name to the qmgr...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dcjs
PostPosted: Mon Feb 11, 2008 5:44 pm    Post subject: Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

I tried in the same way by creating the queue manager in another system with the same name and took the back up of the logs from C:\IBM\WebSphereMQ\errors and C:\IBM\WebSphereMQ\log\MAZDA_BRK\active.
and copied those files into the existing queue manager file system.

When i tried to sart the queue manager iam getting the same error.
Logs not found
_________________
TRY TRY UNTIL U SUCCEED
Back to top
View user's profile Send private message
csmith28
PostPosted: Tue Feb 12, 2008 4:08 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

If I were you, I would just dltmqm and create a new instance of the MQManager.

I hope that you recently created a backup image of this MQManager using saveqmgr.

One thing you may have done wrong above is you need to go look at the /var/mqm/qmgrs/<QMGRNAME>/qm.ini and make sure the QManager you created on the other sever has the same amount of logs. Both Primary and secondary.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Feb 12, 2008 9:52 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

dcjs wrote:
C:\IBM\WebSphereMQ\errors

Not necessary. Those will be recreated as required.
dcjs wrote:
C:\IBM\WebSphereMQ\log\MAZDA_BRK\active.

You also need C:\IBM\WebSphereMQ\log\MAZDA_BRK\amqhlctl.lfh

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
KramJ
PostPosted: Tue Feb 12, 2008 11:04 am    Post subject: Reply with quote

Voyager

Joined: 09 Jan 2006
Posts: 80
Location: Atlanta

Follow these step to rebuild the logs:

1. Record the logging parameters of the failed queue manager by checking .../qmgrs/<qmgr>/qm.ini. These parameters include the type, number, and size and location of the log files.
2. Create a queue manager called TEMP with identical logging parameters.
3. cd to the queue manager logs directory.
4. Rename the logs directory for the existing queue manager to <qmgr>_old.
5. Rename the TEMP directory to the name of the existing queue manager.
6. cd to …/qmgrs/<qmgr>/
7. Rename the existing queue manager's checkpoint file, amqalchk.fil, to amqalchk.fil_old
8. cd to …/qmgrs/TEMP
9. Copy amqalchk.fil from the TEMP queue manager to the existing queue manager.
10. Delete the TEMP queue manager by running dltmqm TEMP (you will get an error about missing logs)
11. Start the existing queue manager.
12. After the queue manager is verified, cleanup the system by deleting amqalchk.fil_old and <qmgr>_old
Back to top
View user's profile Send private message
broker_new
PostPosted: Tue Feb 12, 2008 6:32 pm    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

It worked for me too if we follow the above procedure
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
dcjs
PostPosted: Tue Feb 12, 2008 6:35 pm    Post subject: Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

Thank you very much for all who replied to my issue atlast iam able to start the queue manager.
_________________
TRY TRY UNTIL U SUCCEED
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Feb 13, 2008 1:14 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona


_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
chrisgclark
PostPosted: Fri Mar 12, 2010 2:56 am    Post subject: Reply with quote

Apprentice

Joined: 26 Mar 2009
Posts: 35

Hi,

I was getting a 'AMQ7017: Log not available' error when starting one of our queue managers. Looking in the queue manager error file, the last linear log the queue manager needs is in the correct location but the queue manager won't start.

I tried KramJ's procedure but the queue manager still wouldn't start. I then copied over qmstatus.ini and amqalchk.fil from our TEMP queue manager. These files and the new logs allowed the queue manager to then start.

Thought I'd add this incase anyone has the same problem.

Chris
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 » Deleted Queue Manager logs
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.