Author |
Message
|
mrfridaynight |
Posted: Wed Nov 29, 2006 3:34 am Post subject: MQ backups |
|
|
Apprentice
Joined: 13 Nov 2006 Posts: 44
|
Hi Guys,
Can anyone tell me what exactly I need to back up on my MQ server (folders, etc) incase it goes belly up.
Example - If I delete queues, channels, etc from my queue manager...How can I restore them.
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 29, 2006 3:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
There's a Support Pack (MS03) that saves the object definitions as script. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 29, 2006 4:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There's an entire chapter in the Systems Administration guide on restart and recovery. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Chandra Mohan |
Posted: Wed Nov 29, 2006 4:59 am Post subject: |
|
|
 Acolyte
Joined: 26 Jul 2006 Posts: 53
|
You can take a back up from the predefined scripts saveqm and saveaut. they stored the output in a .txt file and whenever u want to restore the objects use # runmqsc qmname < file.txt > output.txt _________________ Chandra Mohan |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 29, 2006 5:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Chandra Mohan wrote: |
You can take a back up from the predefined scripts saveqm and saveaut. |
These do not ship with WMQ. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Nov 29, 2006 7:52 am Post subject: |
|
|
Guest
|
You will need to backup messages in queues, too. This means that you will need to understand your mq applications. For example: are all messages that are MQPUT to queues immediately consumed by the MQGETting application? Or do messages stay in queues for extended periods of time?
If all messages are immediately consumed, there will be no messages residing in queues. If messages remain in queues for hours or days, they are at risk of being lost if there is a catastrophic media failure. Logs are used to recover from this - if you have log files - that is, they haven't been destroyed by the same media failure.
As with any other system or application, you will need to address several recovery scenarios; from loss of the computer facility, loss of a single server box, loss of a single qmgr, loss of an object (queue), loss of a message. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 29, 2006 8:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bruce2359 wrote: |
If messages remain in queues for hours or days, they are at risk of being lost if there is a catastrophic media failure. Logs are used to recover from this - if you have log files - that is, they haven't been destroyed by the same media failure. |
More precisely, if you have linear log files.
But while we are in the process of summarizing the entire chapter in the System Administration Guide - you can't take a consistent back up of the MQ file system while the queue manager is running.
So that means you need to schedule downtime if you want to back up your queue manager. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|