Author |
Message
|
harsha8127 |
Posted: Wed Aug 10, 2016 2:56 am Post subject: Recovering qm.ini file |
|
|
Acolyte
Joined: 25 Nov 2013 Posts: 72
|
Hi docs,
Iam using MQ7.0 version in Windows server 2008 R2. Unintentionally i have deleted the qm.ini file for a queue manager in production, but it is in still up and running state. If we restart the queue manager i know it will not start.
So docs is there any way to recreate or recover the qm.ini file without restarting the Queue manager(no backup taken for the queue manager).
please help ...
 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 10, 2016 3:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
strmqm -c might help, if dspmq shows the queue manager. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
ankurlodhi |
Posted: Wed Aug 10, 2016 4:55 am Post subject: |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
does strmqm -c also helps if we have got Damaged system objects like system queues? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 10, 2016 4:56 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ankurlodhi wrote: |
does strmqm -c also helps if we have got Damaged system objects like system queues? |
strmqm -c is primarily for damaged or deleted system objects.
I don't really know if it will help with qm.ini. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Aug 10, 2016 8:20 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Create another QMGR with the same name on another server and copy it over.
It has worked for me in the past. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Aug 10, 2016 9:59 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
smdavies99 wrote: |
Create another QMGR with the same name on another server and copy it over.
It has worked for me in the past. |
The 'another' qmgr would have to be created with the same attributes (logging, for example) as the qmgr now missing its qm.ini file.
I believe that this is the precise issue the OP is facing. He/she doesn't know how the crtmqm command was specified. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
JosephGramig |
Posted: Wed Aug 10, 2016 11:18 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
If you didn't make a backup (or get this from a system backup) of the qm.ini, then hopefully you recorded the crtmqm command you used to make the Qmgr in the first place. If you did, then just create a temporary Qmgr and copy/modify that qm.ini to fit the one that got deleted.
If you have no record, you can look at your transaction logs to see if they are Linear or Circular and what the LogFilePages size should be (some multiple of 4K pages).
BTW, this belongs in the MQ General Questions topic... |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Aug 10, 2016 5:49 pm Post subject: Re: Recovering qm.ini file |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
harsha8127 wrote: |
Hi docs,
Iam using MQ7.0 version in Windows server 2008 R2. Unintentionally i have deleted the qm.ini file for a queue manager in production, but it is in still up and running state. If we restart the queue manager i know it will not start.
So docs is there any way to recreate or recover the qm.ini file without restarting the Queue manager(no backup taken for the queue manager).
please help ... |
Being production, surely there is a backup strategy in place for the server, and you could request the Windows sys mgt team to restore the file from backup? _________________ Glenn |
|
Back to top |
|
 |
harsha8127 |
Posted: Thu Aug 11, 2016 2:14 am Post subject: |
|
|
Acolyte
Joined: 25 Nov 2013 Posts: 72
|
smdavies99 wrote: |
Create another QMGR with the same name on another server and copy it over.
It has worked for me in the past. |
No it did not worked for me. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 11, 2016 3:43 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
harsha8127 wrote: |
smdavies99 wrote: |
Create another QMGR with the same name on another server and copy it over.
It has worked for me in the past. |
No it did not worked for me. |
Please be precise. Exactly how did it not work for you?
Were you unable to create another qmgr? Were you unable to copy the new .ini file from new to old?
Did you get some kind of error when starting the old qmgr? If so, what error? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|