You didn't say what platform you're doing this on. I do just mainframes, but expect you'd have the same problems on smaller ones.
If you don't replicate the log files and you have any persistent messages on your queues when you go through your exercise below, then you'll have problems. MQ needs the log files then. If you get out of sync, you'll never be able to bring up your queue manager.

Bob Juch
MQ Mainframe Support Team
Weehawken, NJ


-----Original Message-----
From: MQSeries List [mailto:[EMAIL PROTECTED]On Behalf Of Kulbir S. Thind
Sent: Wednesday, November 17, 2004 12:05 PM
Subject: Backing up "Q" files but not the "LOG" files


We're thinking about setting up replication for our queue manager to ensure that just the Q files are backed up but not the LOG files for the queue manager.  This is being contemplated as it appears the log files are updated far more than the Q files as the LOG files are doing internal MQSeries checks, etc.  We need to reduce the amount of data that we're replicating.

My first thoughts on this were that this would not work as the Q files would be out of sync with the LOG files.  However we performed the following:
  1. Created a queue manager
  2. Started the queue manager
  3. Created some queues
  4. Put some message on the queues
  5. Ended the queue manager
  6. Took a copy of the LOG files used by the queue manager
  7. Started the queue manager
  8. Put some more messages on the queues
  9. Created another queue object
  10. Ended the queue manager
  11. Restored the LOG files that were backed up in step 6
  12. Started the queue manager

At this point I was expecting issues but I found that the queue manager started without problems and it recognised the queue that was created in step 9.  Does this mean if we took a copy of the LOG files and restored them to a queue manager at a later point retaining the latest Q files we would have no problems?  Has anyone tried this or no of any problems?



Reply via email to