Posted: Fri Nov 05, 2004 5:15 am Post subject: Online backup of MQ
Acolyte
Joined: 19 Mar 2004 Posts: 70
Hi everyone!
We are wondering if it is possible to take online backup of MQ and if so how? Given that we only have persistent messages on a Qmgr with linear logging.
Joined: 17 Jun 2004 Posts: 278 Location: Harrisburg PA
If you search the forum you will fine reams of information on this.
There is no such thing as a "supported" running backup. _________________ Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
If all you want is a backup of your MQManagers download the saveqmgr utility in support pack MS03 on the IBM Website.
This script will save a copy of all the objects that have been created on the named MQMGR.
Code:
# saveqmgr -m QMGRNAME -f OutPutFileName.bak.txt
I usually save that and a copy of the /var/mqm/mqs.ini if it has been modified and the /var/mqm/qmgrs/MQMGR/qm.ini file on a remote server.
In my personal experience this has been adequate to recover from a catastrophic failure as long as you have the WMQ installation image and a backup of any ServicePacks/APAR's you have installed.
I know I will probably get flamed a little about this but in most cases if there is a Hardware failure or some other catastrophic failure the TimeToLife for the messages (as in the amount of time that the messages are useful to the application) expires by the time service can be restored rendering any backup of the /var/mqm/log/QMGR/active or the /var/mqm/qmgrs/QMGR/queues directories insignifigant.
Disclaimer: I know this does not apply to all scenarios. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial.
the TimeToLife for the messages expires by the time service can be restored
This is essentially true in a request response scenario. However if you are in a garanteed once only delivery scenario with datagrams (send and forget) you will want to use the Logs to recover whatever you can. Your messages would be persistent with no expiry time.
This is why it is prudent to have the queues and the logs on different file systems. If one gets corrupted you can always count on the other to recover.
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