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 » any kind of Lock file for multi instance queue managers

Post new topic  Reply to topic
 any kind of Lock file for multi instance queue managers « View previous topic :: View next topic » 
Author Message
srikanthc60
PostPosted: Fri Sep 30, 2016 3:29 am    Post subject: any kind of Lock file for multi instance queue managers Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 30, 2016 3:44 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Fri Sep 30, 2016 3:47 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 30, 2016 3:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Sep 30, 2016 4:28 am    Post subject: Re: any kind of Lock file for multi instance queue managers Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 30, 2016 4:58 am    Post subject: Re: any kind of Lock file for multi instance queue managers Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
srikanthc60 wrote:
So that we can refer this file to know about primary/secondary host info with out logging into the other host?
must be manually started.



The queue manager is now running with one active instance that is processing all requests, and a standby instance that is ready to take over if the active instance fails. The active instance is granted exclusive access to the queue manager data and logs. The standby waits to be granted exclusive access to the queue manager data and logs. When the standby is granted exclusive access, it becomes the active instance.


_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 30, 2016 5:04 am    Post subject: Re: any kind of Lock file for multi instance queue managers Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Vitor wrote:
srikanthc60 wrote:
So that we can refer this file to know about primary/secondary host info with out logging into the other host?
must be manually started.



The queue manager is now running with one active instance that is processing all requests, and a standby instance that is ready to take over if the active instance fails. The active instance is granted exclusive access to the queue manager data and logs. The standby waits to be granted exclusive access to the queue manager data and logs. When the standby is granted exclusive access, it becomes the active instance.



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
View user's profile Send private message
umatharani
PostPosted: Fri Sep 30, 2016 6:03 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Oct 01, 2016 12:59 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Oct 03, 2016 3:50 am    Post subject: Reply with quote

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?


mqjeff wrote:
The queue manager is now running with one active instance that is processing all requests, and a standby instance that is ready to take over if the active instance fails. The active instance is granted exclusive access to the queue manager data and logs. The standby waits to be granted exclusive access to the queue manager data and logs. When the standby is granted exclusive access, it becomes the active instance.


_________________
chmod -R ugo-wx /
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 » any kind of Lock file for multi instance queue managers
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.