Author |
Message
|
san123 |
Posted: Tue Nov 11, 2008 11:47 am Post subject: Migrating existing Qmgr to MQHA Qmgr |
|
|
Newbie
Joined: 08 May 2008 Posts: 4
|
Hi,
I have a qmgr on server A. I got another server B and both these servers are clustered using HACMP. Is there a way to migrate my existing qmgr on server A to MQHA qmgr without deleting and recreating it.
Thanks
san |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 11, 2008 4:55 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Do something like:
Install the WMQ software on your server B. Shutdown the queue manager on server A. Move the current contents of /var/mqm to shared storage and create the correct symlinks on both servers. Do the needful within HACMP to start/stop queue managers & failover as required.
The HACMP support pac will be useful in this scenario. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
csmith28 |
Posted: Tue Nov 11, 2008 7:04 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Vitor is right MQSeries needs to be installed on both members of the cluster.
In an HACMP Cluster the application, in this case a WMQSeries MQManager has to be defined within an Resource Group.
The Resource Group must be defined on a shareable Enhanced Concurrent Filesystem on a Volume Group defined on SAN disk that can be varried on to both members of the cluster.
If the MQManager on Server A is defined on a local disk or on a Volume Group on a disk that cannot be varried on to server B then you will have no choice other than to delete and recreate the MQMAnager on a disk that can be shared between the two servers in the cluster.
IBM has done an extroodinary job of documenting the requirements to build an HACMP/WMQSeries Cluster. If this is what you have to do I suggest you read it, learn it and know it before you start.
And don't forget to document the cluster architecture in a diagram. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
san123 |
Posted: Wed Nov 12, 2008 6:19 am Post subject: |
|
|
Newbie
Joined: 08 May 2008 Posts: 4
|
Thanks guys.
Actually I very well understand how to configure MQHA and create a new queue manager from scratch using "hacrtmqm" script etc.
The scenario here is that I already have a qmgr running on one of the servers. I know I can backup qmgr object definitions and permissions using saveqmgr but what about messages? There is possibility of queues having messages at the time I migrate this qmgr to MQHA qmgr. How to save these messages (of course persistent msgs).
I would like to check if there a way to make my existing qmgr an MQHA qmgr without deleting and re-creating it again.
Thanks
San |
|
Back to top |
|
 |
exerk |
Posted: Wed Nov 12, 2008 6:32 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
What I have done in the past is as Vitor recommends.
In the one case where it was done manually, the relevant directory sub-structure was copied to the volume group and verified before deleting from the 'local' disk, the sym-links were created and the mqs.ini file edited on the old server (due to path changes) before cloning that across to the new server.
Any connections to the queue manager were identified and their CONNAME values altered to the VIP address. Fingers (and everything else!) were then crossed and the 'go' button pushed...it worked like a charm! _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 12, 2008 7:05 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Wouldn't it be wonderful if the supportPac included a script to perform a migration, as well as a script to perform a creation? maybe something called "hamigmqm"?
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Nov 12, 2008 10:32 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
So much for suggesting people contact the author(s) of the MC91 Support Pack to ask for this - no contact info is provided.  _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 12, 2008 11:14 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Okay, that's odd. There *used* to be an hamigmqm script in MC91.
There doesn't seem to be one in the current release just downloaded... |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Nov 12, 2008 12:18 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Sorry I didn't mean to give you an HACMP 101 class but the original questoin in the thread was not indicative of an indepth knowledge of HACMP.
san123 wrote: |
Thanks guys.
Actually I very well understand how to configure MQHA and create a new queue manager from scratch using "hacrtmqm" script etc.
The scenario here is that I already have a qmgr running on one of the servers. I know I can backup qmgr object definitions and permissions using saveqmgr but what about messages? There is possibility of queues having messages at the time I migrate this qmgr to MQHA qmgr. How to save these messages (of course persistent msgs).
I would like to check if there a way to make my existing qmgr an MQHA qmgr without deleting and re-creating it again.
Thanks
San |
_________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
markt |
Posted: Wed Nov 12, 2008 12:45 pm Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
Quote: |
Wouldn't it be wonderful if the supportPac included a script to perform a migration, as well as a script to perform a creation? maybe something called "hamigmqm"? |
Actually you're asking for an "hamvmqm", and it would be nice, but it's not going to be in MC91.
The complexities of writing such a script expand enormously when you have to cope with errors half-way through and maybe backout half of the symlink changes (and what happens if they in turn fail). At least with the crt command, if that fails you don't have a used qmgr that's now part-broken. If the filesystem were transactional, maybe it'd be easier ...
The hamigmqm was for migrating an already-HA qmgr from one version of MQ to another. |
|
Back to top |
|
 |
|