Author |
Message
|
ashoon |
Posted: Mon Jun 27, 2005 1:30 pm Post subject: MSCS and the secondary node |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
Hello - I'm trying to put a queue manager under MSCS control... I have done this in AIX/HACMP and have a fairly good idea however the one part that's puzzling me is how do you let the secondary node know about the queue manager - in HACMP this is the halinkmqm command which alters the mqs.ini file to add the queue manager and log file location.
From the docs it says MSCS will take care of informing the other nodes however my my queue manager won't start on the secondary node...
Anyone know what I missed?!?  |
|
Back to top |
|
 |
ashoon |
Posted: Mon Jun 27, 2005 2:07 pm Post subject: instanceid |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
further to this I noticed that within the MQ regesitry entries there's no instance id under the MQSeries/Config/Services/QMgr... could this be part of the problem? |
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Jun 28, 2005 1:07 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Hi,
What you are looking for is described in the System Admin Guide and in the Windows quick beginnings.
What you need to do is...
- Installing MQ localy on both nodes
- Register the new ressource of the type MQ Series
(done with haregtype)
- Create the queue manager on one of the hosts localy
- Migrate the queue manager to the cluster
(hamvmqm)
- Put the queue manager under MSCS control
(Use the GUI)
- Create your objects
(As usual)
I hope this helps
cheers
Sebastian |
|
Back to top |
|
 |
ashoon |
Posted: Tue Jun 28, 2005 3:09 am Post subject: |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
hmmm... I believe the steps as suggested below are completed as there are other queue managers under control of MSCS (in their own resource groups) that are able to fail over. Also when I do a dspmq on either node it displays all queue managers capable of being run (except the one I am working on)
sebastianhirt wrote: |
- Installing MQ localy on both nodes - done
- Register the new ressource of the type MQ Series
(done with haregtype) - I believe this is done already as I can put any queue manager under control of MSCS as the resource type MQ Series exists.
- Create the queue manager on one of the hosts localy - done
- Migrate the queue manager to the cluster - done as the log and qmgr files now reside on the shared disk
(hamvmqm)
- Put the queue manager under MSCS control - done
(Use the GUI)
- Create your objects - done
(As usual)
|
|
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Jun 28, 2005 4:15 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Are you running Active/Active or Active/Passiv?
hmmm... What happens if you try to move the ressource groups in the cluster Administration tool? |
|
Back to top |
|
 |
ashoon |
Posted: Tue Jun 28, 2005 5:11 am Post subject: active/active |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
The current setup is that there's 2 resource groups with two queue managers per resource group (don't ask why as I can't answer that myself)... three of the four qmgr's can move between cluster nodes but the 4th (the one I'm to fix) can only start on node one but when moved to node two it can't start b/c as I can see there's no registry entry for that qmgr. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Jun 28, 2005 5:41 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Have you checked whether the Queue managers where really moved to the shared disk? |
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Jun 28, 2005 5:56 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
OK, I was reading a bit our documentation...
The only thing what I would think could be wrong is that either:
The Queue Manager is not really under cluster control (Maybe a typo in the ressource definition)
Or the queue manager files are not moved properly to the shared disk.
Well I guess you do, but are you using the MSCS Cluster Administrator to move the ressources to the other host? If you do, are you moving the shared disk? If you don't move the shared disk (and other dependant ressources), the queue manager would also not start for obvious reasons.
Do the W2K or MQ Logs say anything?
cheers
Sebastian |
|
Back to top |
|
 |
ashoon |
Posted: Tue Jun 28, 2005 7:02 am Post subject: instance id... |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
OK - so I've got it working but am unsure as to the reasons behind it...
Here's what I observed - it seems that if I create a queue manager from the command line there is no instance id created in the registry entry for that queue manager under the services folder. If I create the queue manager through the MQ services MMC tool there is an instance id.
When there is an instance ID and I initiate a failover the queue manager is 'created' on the second node i.e. it's registry information is copied to node 2.
I'm not sure what the difference is between the MQ Services and the MQ Explorer and the command line differences here... can anyone shed some light? Note that this is MQ V5.3 CSD 4 (again no comments needed here). |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jun 28, 2005 5:23 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
This is just the way it works under MSCS. You create the QM on Node1, move it out to the share drive, and once it is under the control of MSCS, fail it back and forth one time. This will register it on Node2. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
ashoon |
Posted: Tue Jun 28, 2005 7:05 pm Post subject: BUT... |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
if I create it using the command line - crtmqm it doesn't create an entry under the Services registry and therefore doesn't register on node 2 on failover.
If I do this through the MQ Services screen it does create an entry under the Services registry and does work as expected.
Still not sure why though... |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed Jun 29, 2005 1:18 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Creating it with crtmqm does do the job for me, though... Don't really understand Why it shouldn't do it for you.
cheers
Sebastian |
|
Back to top |
|
 |
|