|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Migration |
« View previous topic :: View next topic » |
Author |
Message
|
segunoe |
Posted: Tue Nov 29, 2005 1:10 pm Post subject: MQ Migration |
|
|
 Newbie
Joined: 24 Mar 2005 Posts: 6
|
I am running MQ 5.3.06 on AIX 5.3. I want to migrate my production system to another box of running MQ5.3.09 but the same OS and configuration without missing out any item in my remote or local queue.
Can someone please remind me the process of backing up and restoring in MQ. I think what I need to backup is the MQ log having set up the same queues and channels on the new box but I seems to have forgotten the process. Any help please.
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 29, 2005 1:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
This is what I'd do
1) empty your business queues
2) use SaveQMgr to create an mqsc file for recreating your qmgr.
3) use amqoamd to create a script of setmqaut to recreate the security for your qmgr.
4) create the qmgr on the new system
5) use the files from 2 and 3 to rebuild the objects.
If you have to copy messages (i.e., you can't do 1), then do 2 through 5, and then use something like the q program or MQVisualEdit or etc to move the messages. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
segunoe |
Posted: Tue Nov 29, 2005 1:39 pm Post subject: |
|
|
 Newbie
Joined: 24 Mar 2005 Posts: 6
|
thank you for you prmpt response. I have tried steps 2 to 5 but I still feels just copying the MQ log will also mean copying the queues. What is the implication of this.
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 29, 2005 2:05 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There's a section in the System Administration guide on backup and recovery.
It's been a while since I've done this, and I don't remember all the details.
I don't believe that copying the logs will recreate your queues.
I'm sure it won't recreate the messages that were on those queues, as they are stored in a different place than the logs are. They are stored in q files, which are not under the qmgrs directory, not the logs directory.
The logs only contain transaction history, and usually don't contain things like non-persistant messages. Which is why I recommended using something that uses the MQ API to move the messages, rather than trying to play around behind the scenes. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
hopsala |
Posted: Tue Nov 29, 2005 3:17 pm Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
jefflowrey wrote: |
I don't believe that copying the logs will recreate your queues.
I'm sure it won't recreate the messages that were on those queues, as they are stored in a different place than the logs are. They are stored in q files, which are not under the qmgrs directory, not the logs directory. |
That's not entirely correct - If he is using linear logs, and has all logs since the beginning of history, he'll be able to recreate everything (object definitions, authorizations, persistent message) from scratch. It will, however, take about 2000 years for the pauvre QM to go up the first time in a production server, give or take a year or so.
I fully agree with you that this is a downright silly way to go about it - using saveqmgr is better, faster and safer, so why not use it? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 29, 2005 7:09 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
hopsala wrote: |
jefflowrey wrote: |
I don't believe that copying the logs will recreate your queues.
I'm sure it won't recreate the messages that were on those queues, as they are stored in a different place than the logs are. They are stored in q files, which are not under the qmgrs directory, not the logs directory. |
That's not entirely correct - If he is using linear logs, and has all logs since the beginning of history, he'll be able to recreate everything (object definitions, authorizations, persistent message) from scratch. |
Yes, but not by just copying the log files from one machine to another...
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 29, 2005 8:33 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
hopsala wrote: |
jefflowrey wrote: |
I don't believe that copying the logs will recreate your queues.
I'm sure it won't recreate the messages that were on those queues, as they are stored in a different place than the logs are. They are stored in q files, which are not under the qmgrs directory, not the logs directory. |
That's not entirely correct - If he is using linear logs, and has all logs since the beginning of history, he'll be able to recreate everything (object definitions, authorizations, persistent message) from scratch. It will, however, take about 2000 years for the pauvre QM to go up the first time in a production server, give or take a year or so.
I fully agree with you that this is a downright silly way to go about it - using saveqmgr is better, faster and safer, so why not use it? |
You don't need the logs since beginning of time. All you need is the last set of active logs. And of course the files one level above the logs.
Enjoy  |
|
Back to top |
|
 |
Tibor |
Posted: Wed Nov 30, 2005 2:42 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Why don't you make a file system level backup and restore? All you need is a copy of /var/mqm, because it's a Unix
IMHO,
Tibor |
|
Back to top |
|
 |
segunoe |
Posted: Wed Nov 30, 2005 3:51 am Post subject: |
|
|
 Newbie
Joined: 24 Mar 2005 Posts: 6
|
Thank you all, for all the information posted. I think the very last speaker said something that I have done before but on NT. It worked on NT i.e. making the entire copy of the queues, channels and logs and restore to my new destination after using the output of SAVEQMGR to create my Q and CHL on the new location.
It worked on NT, I will try it now on UNIX and let you all know.
Thank you all very much indeed for your assistance |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|