Author |
Message
|
nits_018 |
Posted: Sun Aug 04, 2013 3:26 am Post subject: unable to start Queue manager on unix box |
|
|
Apprentice
Joined: 24 Oct 2012 Posts: 34
|
Hello,
We had a system mainteneance and due to which the QM was brought down. Now whenever i am trying to start the QM using strmqm it is always throwing an error saying that "0 log accessed on queue manager mb.qm1 during the log reply phase ". It seems like log files are missing or got lost during the recovery phase. Is thr a way i can fix the problem by not having the old log files and if i have a old log file then where to place it so that my QM comes back up.
Request you to please help me out. |
|
Back to top |
|
 |
rammer |
Posted: Sun Aug 04, 2013 4:36 am Post subject: |
|
|
Partisan
Joined: 02 May 2002 Posts: 359 Location: England
|
If you do not have the log files then you will have to rebuild the Queue Manager.
Might be worth checking the log files are not on the server and for some reason permissions have been removed as part of mainteneance.
If you have a backup then restore the queue manager and relevant directories. These will be dependant on your install. |
|
Back to top |
|
 |
nits_018 |
Posted: Sun Aug 04, 2013 5:02 am Post subject: |
|
|
Apprentice
Joined: 24 Oct 2012 Posts: 34
|
Thanks for the reply.
Yes, i have some log files which are of old date but not on the date the queue manager was installed.
so in case of this issue do i need to have the log files on the day on which the queue manager was installed. |
|
Back to top |
|
 |
rammer |
Posted: Sun Aug 04, 2013 5:08 am Post subject: |
|
|
Partisan
Joined: 02 May 2002 Posts: 359 Location: England
|
nits_018 wrote: |
Thanks for the reply.
Yes, i have some log files which are of old date but not on the date the queue manager was installed.
so in case of this issue do i need to have the log files on the day on which the queue manager was installed. |
I havent really tested restore from just old logs. Only restores I have done are from tape and that restores the log and data directories. I am a littl eunsure what happens if you just restore some old logs that you find as MQ does a check on restart and Im guessing if it does not match where it thinks it was it may still fail. Are there still messages on the queues at time of mainteneance that you need to keep?
There will be people along soon who will have done more recovery than me. Alternative is if you do not have any data in the queues and have got a saveqmgr then you could possibly re-create it very quickly? |
|
Back to top |
|
 |
nits_018 |
Posted: Sun Aug 04, 2013 5:16 am Post subject: |
|
|
Apprentice
Joined: 24 Oct 2012 Posts: 34
|
Hello,
We do not need to have the message that where there in the queue. And i tried with old log files but they are still failing. so you are right it might be it needs the last state of the log file. so is thr a way to know which date log file is the QM trying to read so that i can restore the log file for that particulare date and QM can be brought back up.
Also can you enlighten me on savqmgr and how it can help in current scenario. |
|
Back to top |
|
 |
rammer |
Posted: Sun Aug 04, 2013 5:30 am Post subject: |
|
|
Partisan
Joined: 02 May 2002 Posts: 359 Location: England
|
Saveqmgr will not help you in this scenario it is a utility to backup Queue Manager Defnitions for rebuilds etc but needs to be carried out against a running queue manager.
This may help If you are using circular logs
http://www.mqseries.net/phpBB2/viewtopic.php?t=49665 |
|
Back to top |
|
 |
brianb |
Posted: Thu Aug 08, 2013 4:12 pm Post subject: Missing log files |
|
|
Voyager
Joined: 12 May 2010 Posts: 85
|
You may want to try to do a cold re-start
create a dummy QM etc.... |
|
Back to top |
|
 |
JosephGramig |
Posted: Fri Aug 09, 2013 5:37 am Post subject: Re: Missing log files |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
brianb wrote: |
You may want to try to do a cold re-start... |
This would only be supported if IBM L2/3 Support advised you to do so in writing in the PMR.
The right answer was to dump the Qmgr definition (dmpmqcfg or MS03 saveqmgr prior to WMQ 7.1), then recreate the Qmgr and run these definitions to get it back to where you were. Then fix up channels and clusters as needed. |
|
Back to top |
|
 |
Tibor |
Posted: Fri Aug 09, 2013 11:05 pm Post subject: Re: Missing log files |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
JosephGramig wrote: |
The right answer was to dump the Qmgr definition (dmpmqcfg or MS03 saveqmgr prior to WMQ 7.1) |
I think, you can launch dmpmqcfg or saveqmgr on a running queue manager only, but there is not an option.
nits_018 wrote: |
And i tried with old log files but they are still failing. so you are right it might be it needs the last state of the log file. |
You don't need the last log files, but a *consistent* log file set. So you should create a dummy queue manager with same logging parameters (you can find them in the qm.ini), and copy this log files, amqhlctl.lfh and S*LOG as well. |
|
Back to top |
|
 |
|