Author |
Message
|
vmanigandan |
Posted: Tue Jan 24, 2006 4:41 am Post subject: Configuration of MQ in MSCS Cluster !! |
|
|
Novice
Joined: 24 Jan 2006 Posts: 12
|
Hi all,
In configuration of Queue Manager under the MSCS Active passive cluster mode, i have a doubt of where the MQ product needs to be installed. In the SYSADMIN guide of MQ, it has been said that the product needs to be installed in all the cluster nodes and only the data files and log files of a queue manager are stored in shared disk.
I have a question, why cant the MQ product be directly installed in Shared disk instead of installing it in either nodes ??
If you have any answers, please reply..
Thanks,
Mani. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jan 24, 2006 5:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Probably to minimize risk if a file system goes bad ... _________________ MQ & Broker admin |
|
Back to top |
|
 |
vmanigandan |
Posted: Tue Jan 24, 2006 5:43 am Post subject: Creating Queue Manager in secondary node !! |
|
|
Novice
Joined: 24 Jan 2006 Posts: 12
|
Thanks for the quick response.
I have another query. I am very new to MQ clustering with MSCS. If the primary QM fails over to the secondary, what is the process that happens in the secondary node to restart the Queue Manager maintaining its state ??
should the Queue Manager be created in the secondary node identical as the primary "initially" OR The Queue Manager is created from the log and data files in the shared disk when the primary QM fails over ??
Hoping for your replies !!
Mani. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jan 24, 2006 6:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There is no sharing of in-memory state data. All connection handles to the failed queue manager/queues will become invalid during and after failover.
MQ client channel applications need to be designed to reconnect automatically when they get the 2009 (connection broken) condition.
They should retry every (say) 15 seconds until successful - at this point they will have connected to the recovered queue manager and can access all queues again (with persistent messages recovered).
Non-persistent messages will not be recovered.
It's almost exactly like restarting the queue manager on the same box - just that the hardware has been switched over as well. |
|
Back to top |
|
 |
vmanigandan |
Posted: Tue Jan 24, 2006 6:50 am Post subject: Configuration of MQ in MSCS Cluster !! |
|
|
Novice
Joined: 24 Jan 2006 Posts: 12
|
Hi Zpat,
I really appreciate your reply.. I still need to know some indepth information:
I will try to put my question with an example:
Assume QMA is the queue manager under MSCS created in Node1. its data files and log files are located in shared disk. Assume that QMA is failedover to Node2. My question is whether QMA would be created in Node2 by clustering configuration during failover? OR it needs to be created prior to the failover ??
I would welcome if you give the sequence of process that would run during failover for the above scenario !..
Thanks,
Mani. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jan 24, 2006 7:46 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
The queue manager is not created during failover.
Look at chapter 13 of the WMQ 5.3 system administration guide. |
|
Back to top |
|
 |
vmanigandan |
Posted: Tue Jan 24, 2006 9:07 am Post subject: Creating Queue Manager in secondary node !! |
|
|
Novice
Joined: 24 Jan 2006 Posts: 12
|
hai Zpat,
I went through the sysad guide.
It has been given like this !
Creating a matching queue Manager on the other node:
Quote: |
For clustering to work with webspher MQ, you need an identical queue manager on node B for each one on node A. However, you do not need to explicitly create the second one. you can create or prepare a queue manager on one node, move it to the other node as described in "Moving a queue manager to MSCS storage" on page 212, and is fully duplicated on that node ! |
My query in this is ::
In the module of "Moving a queue manager to MSCS storage" , they specify the steps to move the QM from the local disk to shared disk ! But in the document it is given as "moving it to other node". Does MQ support pack play a role of restarting QM again using log files and data files.?? Can you say in precise how the Queue Manager is getting started on that node !!
Thanks,
Mani. |
|
Back to top |
|
 |
mquser002 |
Posted: Tue Jan 24, 2006 10:37 am Post subject: mscs |
|
|
Newbie
Joined: 24 Jan 2006 Posts: 2
|
I am also in process of running MQ under MSCS. I have a couple of questions but i think i have some answers for Mani.
1. MQ needs to be installed on both machines like you would do on a single node installation.
2. Then MQ manager is configured on the local drive .
3. data and log QMGR files are moved to the shared disk.
4... now here is what IBM doc does not describe good enough. It said you only need to create QMGR on one node, during failover it will be duplicated on the second node. The problem is when QMGR on the node1 is moved to the shared disk everything is ok. But how the second node would recognize the move???? So what I did is created qmgr on node1 , moved it to shared disk. Moved the shared disk from node1 to node2. Created the same qmgr on node2 and moved it to shared disk. Kinda ugly. I guess the other way would be to duplicate the registry from the node1 to node2 but the manual says nothing about it.
So the question is how to duplicate the qmgr on the second node?
5. Once both nodes qmgrs are configured I can have qmgr running on node1, then shutdown Qmgr, failover to the node 2(move the shared disk, ip, etc), start qmgr on node2 and qmgr is functional again.
6. ...that is where i stopped.
v5.3 CSD12 |
|
Back to top |
|
 |
mquser002 |
Posted: Tue Jan 24, 2006 12:19 pm Post subject: found some answers. |
|
|
Newbie
Joined: 24 Jan 2006 Posts: 2
|
here are the steps.
1. install Mq/CSD on both nodes "normally"
2. created qmgr on node1
3. move node1 to shared disk
4. register IBM MQ MSCS resource
5. create MSCS group/resources as described in manual
6. bring qmgr online. test qmgr
7. move group to the other node2. Qmgr should be automatically started on node 2.
8. open champagne and exhale. |
|
Back to top |
|
 |
vmanigandan |
Posted: Tue Jan 24, 2006 11:57 pm Post subject: Some questions on the steps !! |
|
|
Novice
Joined: 24 Jan 2006 Posts: 12
|
Hey MQUser002,
I need to thank you for the quick reply with needed information !. I wanted to ask you a few questions !!
a) In your first reply, you said that you created the qmgr on node 2 and moved to the shared disk as done in Node1. So will you give the same group name in MSCS as given in Node1 ?? Did it worked ?? It would be better if you throw some light on this step !!
b) Also you said that, the registry can be duplicated in node 2. Do the registry contain informations of Queue Managers also ??
Also anybody who have done MSCS MQ clustering, please share the knowledge.
Thanks,
Mani. |
|
Back to top |
|
 |
ManiA |
Posted: Wed Jan 25, 2006 11:27 am Post subject: MQ on MSCS |
|
|
Newbie
Joined: 25 Jan 2006 Posts: 8
|
1) Install MQ on node 1
2) Install MQ on node 2
3) Create QMgr on node 1
4) Move QMgr data and log files to shared disk(as explained in manual)
5) Put Qmgr under MSCS control(as explained in manual)
Note : prior to step 7, make sure you close MQ explorer/services windows, Cluster Administrator and run "haregtyp /r" to register a MSCS Resource Type(IBM Websphere MQ MSCS)
6) Test QMgr on node 1
7) Simulate failover by using Move Group
8) This should make the MSCS move the QMgr to node 2
Fyi...I didn't have to create the QMgr on node 2 |
|
Back to top |
|
 |
mqnew |
Posted: Sun Mar 05, 2006 8:14 pm Post subject: how to set MQS_PREFIX |
|
|
Newbie
Joined: 05 Mar 2006 Posts: 1
|
I try to change the location of where the server should be created by seting MQS_PREFIX, but it doesn't seem to be working, I am using Websphere MQ 6
Thanks, |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Mon Mar 06, 2006 11:30 pm Post subject: Re: how to set MQS_PREFIX |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
mqnew wrote: |
I try to change the location of where the server should be created by seting MQS_PREFIX, but it doesn't seem to be working, I am using Websphere MQ 6
Thanks, |
Use MQSPREFIX (without underscore). _________________ Regards
Hubert |
|
Back to top |
|
 |
|