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 Discussion » Recovering qm.ini file

Post new topic  Reply to topic
 Recovering qm.ini file « View previous topic :: View next topic » 
Author Message
harsha8127
PostPosted: Wed Aug 10, 2016 2:56 am    Post subject: Recovering qm.ini file Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 10, 2016 3:37 am    Post subject: Reply with quote

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
View user's profile Send private message
ankurlodhi
PostPosted: Wed Aug 10, 2016 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 10, 2016 4:56 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Aug 10, 2016 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Aug 10, 2016 9:59 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
View user's profile Send private message
JosephGramig
PostPosted: Wed Aug 10, 2016 11:18 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1230
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
View user's profile Send private message AIM Address
gbaddeley
PostPosted: Wed Aug 10, 2016 5:49 pm    Post subject: Re: Recovering qm.ini file Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2494
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
View user's profile Send private message
harsha8127
PostPosted: Thu Aug 11, 2016 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 11, 2016 3:43 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
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 Discussion » Recovering qm.ini file
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.