Author |
Message
|
srikanthc60 |
Posted: Fri Sep 30, 2016 3:29 am Post subject: any kind of Lock file for multi instance queue managers |
|
|
Voyager
Joined: 21 Jul 2013 Posts: 79
|
Hi,
When we configure multi instance queue manager, is there any kind of lock file that will be generated which queue managers use to to write the primary and secondary queue manager instance information like on which node primary instance is running and on which node stand by instances are running. So that we can refer this file to know about primary/secondary host info with out logging into the other host?
My way of presenting the question may be wrong, intention is to know more about multi instance set up. Didn't found any info about this on Google.
Thanks in advance!! |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 30, 2016 3:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What is your experience in testing this?
Do you find a lock file? Do you not find a lock file?
Are you not able to set up a pair of MI queue managers? Perhaps you could use something like VMWare or docker or VirutalBox to set up two machines with MQ on them, and use your local disk to act as the shared disk. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Sep 30, 2016 3:47 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I'm thinking the OP is asking what is needed to manage the file system between the two mq instances. NFSv4. _________________ 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 |
|
 |
mqjeff |
Posted: Fri Sep 30, 2016 3:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
I'm thinking the OP is asking what is needed to manage the file system between the two mq instances. NFSv4. |
Well, okay. But I didn't see any mention of file system type. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 30, 2016 4:28 am Post subject: Re: any kind of Lock file for multi instance queue managers |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
srikanthc60 wrote: |
So that we can refer this file to know about primary/secondary host info with out logging into the other host? |
A multi-instance queue manager is not like a queue manager controlled by traditional HA software. The secondary instance won't automatically start in the event of a failure but must be manually started.
So there's no need to look for a lock file or similar to determine which of the queue managers is the active one. The active one is the one you last started and/or the one that's still running. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 30, 2016 4:58 am Post subject: Re: any kind of Lock file for multi instance queue managers |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 30, 2016 5:04 am Post subject: Re: any kind of Lock file for multi instance queue managers |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Shows what I know about v8.
That's also the answer to the OP's question, irrespective of NFS. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
umatharani |
Posted: Fri Sep 30, 2016 6:03 am Post subject: |
|
|
Apprentice
Joined: 23 Oct 2008 Posts: 39
|
Hi,
Locking is very important for MQ multi-instance queue manager to operate correctly, failover/switchover. Any problem with locking likely to result in unexpected failures(e.g. queue manager hang or crash). The following technote has some details on the files used by the queue manager for locking.
http://www-01.ibm.com/support/docview.wss?uid=swg21421805
Thanks,
mahesh |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Oct 01, 2016 12:59 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Coming back to the OP's original question....
Did you ever try to run dspmq -x?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Oct 03, 2016 3:50 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
Coming back to the OP's original question....
Did you ever try to run dspmq -x?  |
_________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|