Author |
Message
|
shashivarungupta |
Posted: Sun Apr 19, 2009 6:59 am Post subject: Copy Queue Manager? |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Hi Folk,
Could you please guide me in what all necessary steps are required when copying the queue manager?
Appreciate that.
Thanks |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Apr 19, 2009 7:20 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Do you mean cloning a qmgr? Backing up a qmgr? What platform?
Please explain what you are trying to accomplish. _________________ 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 |
|
 |
mqjeff |
Posted: Sun Apr 19, 2009 8:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Step one in EVERYTHING TO DO WITH MQ is the same as step ONE in EVERYTHING TO DO WITH ANYTHING WITH COMPUTERS.
Read the documentation.
 |
|
Back to top |
|
 |
shashivarungupta |
Posted: Sun Apr 19, 2009 9:07 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
bruce2359 wrote: |
Do you mean cloning a qmgr? Backing up a qmgr? What platform?
Please explain what you are trying to accomplish. |
I am trying to shut down a existing server1 on which QM1 had been defined, and server2 is going to have the definition of QM1 now on. So, wanted to have all that setup in the new server server2. In both the servers the Queue Manager(s) have had been in the clustered environment.
My O.S. is AIX 5.3.
Can you provide a link to that document?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Sun Apr 19, 2009 9:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
Can you provide a link to that document? |
Top of this page. You'll probably see it while you're rolling your eyes.
My tip - remember you can't copy cluster membership.
My other tip - your first mistake with cluster configuration will probably be your last. Test your copy process in a sepatate environment before you use it on servers you care about, especially if the queue manager you're working on is a member of a large cluster. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Apr 19, 2009 9:19 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Copy has too many meanings to be usefull in a technical discussion.
If you want to save (copy) your object definitions from one qmgr; and then create a new qmgr, and create (copy) the same objects, then there's a support pac MS03 that provides a program called saveqmgr that will copy your object definitions to a file that you can then pass as input to runmqsc on the new qmgr.
Or do you mean that you want to copy an existing qmgr from the one filesystem to the filesystem of another server?
Or do you mean that you want to clone a qmgr for disaster recovery purposes?
Again, please be more specific about what exactly you want to accomplish. _________________ 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 |
|
 |
shashivarungupta |
Posted: Sun Apr 19, 2009 9:38 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
bruce2359 wrote: |
Copy has too many meanings to be usefull in a technical discussion.
If you want to save (copy) your object definitions from one qmgr; and then create a new qmgr, and create (copy) the same objects, then there's a support pac MS03 that provides a program called saveqmgr that will copy your object definitions to a file that you can then pass as input to runmqsc on the new qmgr.
Or do you mean that you want to copy an existing qmgr from the one filesystem to the filesystem of another server?
Or do you mean that you want to clone a qmgr for disaster recovery purposes?
Again, please be more specific about what exactly you want to accomplish. |
Quote: |
...Or do you mean that you want to copy an existing qmgr from the one filesystem to the filesystem of another server?...
|
I want an existing queue manager QM1 copy from one file sys. of a server1 to filesys of another server2.
Both are AIX O.S. and Server1 has a cluster CLUS1 that will be shut down. and Server2 has an existing cluster CLUS2 and its queue managers. Now, on server2 we want to place the QM1 from server1.
Thats it we are looking for. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Apr 19, 2009 9:49 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
this subject has been discussed here many times. Click search at the top of this page, and begin searching for similar posts. _________________ 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 |
|
 |
gbaddeley |
Posted: Sun Apr 19, 2009 4:22 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
bruce2359 wrote: |
...If you want to save (copy) your object definitions from one qmgr; and then create a new qmgr, and create (copy) the same objects, then there's a support pac MS03 that provides a program called saveqmgr that will copy your object definitions to a file that you can then pass as input to runmqsc on the new qmgr. |
There is much more to copying / cloning a qmgr that the object definitions. (be very careful with cloning channel definitions, particularly names and conname). You also need to consider OAM authorities, recovery log type and sizing, other attributues on the crtmqm command, exit definitions, other customisations in mqs.ini and qm.ini, file system sizes, MQ software version, preserving app messages. _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Apr 19, 2009 4:42 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
As I stated earlier, the term copy is far too general - lacking specifity as to what is to be copied (objects, messages, logs, ...) and for what purpose.
Until shashivarungupta provides a more definitive explanation of what is to be copied, and what is to be achieved by the copy, our posts will continue to be guesses.
(A few weeks ago, I asked an IT clerical person to make a copy of a cd for me. What came back was two sheets of paper - the front and back copied by a color copy machine. Kyrocera, I think; but I can't be positive.) _________________ 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 |
|
 |
Vitor |
Posted: Mon Apr 20, 2009 12:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
A few weeks ago, I asked an IT clerical person to make a copy of a cd for me. |
Oh Thank God! I thought it was just me this sort of thing happened too....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
crossland |
Posted: Tue Jul 21, 2009 12:12 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
bruce2359 wrote: |
Copy has too many meanings to be usefull in a technical discussion.
If you want to save (copy) your object definitions from one qmgr; and then create a new qmgr, and create (copy) the same objects, then there's a support pac MS03 that provides a program called saveqmgr that will copy your object definitions to a file that you can then pass as input to runmqsc on the new qmgr.
Or do you mean that you want to copy an existing qmgr from the one filesystem to the filesystem of another server?
Or do you mean that you want to clone a qmgr for disaster recovery purposes?
Again, please be more specific about what exactly you want to accomplish. |
Another way of copying definitions is to use Export in the MQMON supportpac. For example, to export your queue definitions:
list queues,
select any queue,
right click and highlight 'Export...'.
You are then able to export all MQ definitions of that type. The tool will generate a file containing the MQSC commands. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 21, 2009 12:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
crossland wrote: |
You are then able to export all MQ definitions of that type. The tool will generate a file containing the MQSC commands. |
As stated further up this post, this is useful if by "copy" you mean "clone". If you mean "copy" as in "move to a different server" (as seems to be the case here) it's not appropriate as it doesn't move queue contents.
It's also fatal if you mean clone and (as in this instance) the queue manager is a member of a cluster unless a little editing is done first.....
All depends what you're actually trying to do. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
crossland |
Posted: Tue Jul 21, 2009 12:46 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
Indeed - that is why I stated that the tool can be used to copy MQ definitions. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 21, 2009 12:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
crossland wrote: |
Indeed - that is why I stated that the tool can be used to copy MQ definitions. |
Good point, good point. I was simply underlining the risks for the benefit of those of our readers who skim the posts.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|