ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Backup QM

Post new topic  Reply to topic
 Backup QM « View previous topic :: View next topic » 
Author Message
oluies
PostPosted: Thu Feb 19, 2015 2:50 am    Post subject: Backup QM Reply with quote

Newbie

Joined: 19 Feb 2015
Posts: 9

Hi,

I am looling into setting up a queue manager with a backup QM on another site.

What is the best story of shipping the logs to the and managing the logs (keeping the backup up to date and archiving logs).

I can use Windows or Linux and I do have SAN replication avaliable, but no cluster file system (as I know of)

Thanks,
ÖL
Back to top
View user's profile Send private message Send e-mail
oluies
PostPosted: Mon Feb 23, 2015 12:28 am    Post subject: Reply with quote

Newbie

Joined: 19 Feb 2015
Posts: 9

T-Rob: Windows MQ Log Maintenance that really works
https://t-rob.net/2015/02/22/windows-mq-log-maintenance-that-really-works/
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Mon Feb 23, 2015 4:59 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Here is the link to the RFE to get IBM to make it so MQ can maintain its own linear logs. Please click and add your vote to this RFE.
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=19128

But in the meantime, thanks to T.Rob for this handy script!

-Peter
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 23, 2015 6:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

oluies wrote:
T-Rob: Windows MQ Log Maintenance that really works
https://t-rob.net/2015/02/22/windows-mq-log-maintenance-that-really-works/

I understand T-Rob's aversion to dependencies.

However looking at MS0L, just use the java that comes with the MQ Client install. The problem about dependency arises if you are installing an older version of MQ and the version of the jar file in the support pack, requires a newer version of java... i.e. your version of MS0L does not match the version of MQ it was designed / revised for...

A bit of configuration on the mqllm.bat and Multi-mqllm.bat file allows you to run this on automation... Be sure to use a temp directory (could be the same as the archive directory)...
Works for local qmgrs, works for multi-instance queue managers. However you may need different copies of the batch files if you are running both (local and multi-instance) on the same server.

On the other hand it would be nice if there was a support pack that worked out of the box with no config... and no dependencies...

Obviously not enough votes on the RFE or else the support packs are deemed adequate enough... As it is an RFE from 2012!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
JosephGramig
PostPosted: Mon Feb 23, 2015 8:37 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

I just did this with a MI Qmgr.

Like fjb_saper said, you will need to combine a couple of things together to achive your goal. MS0L is fine for managing the linear logs you no longer need. I wish it had a switch to tell it to just discard them (as you can't do anything with them useful).

You need to combine what MS0L does with what the KC tells you to do to create and maintain a Backup Qmgr.

My client cleverly created a Windows PowerShell script to do:
  1. Record media objects
  2. Advance the current log
  3. Query the Qmgr for the current log
  4. ZIP up all the logs up to but not including the current log
  5. Copy the ZIP to the Backup Qmgr machine
  6. If the ZIP made it there, delete all files in the log directory (for cleanliness)
  7. UnZIP the logs to the log directory
  8. Delete the ZIP file at the Backup Qmgr
  9. Replay the logs at the Backup Qmgr
  10. run MS0L at the Active Qmgr
  11. Here is some batch file code to purge files
    Code:
    rem Purge backups 45 days and older
    forfiles -p "%BACKUPDIR%" -s -m *.* /D -45 /C "cmd /c del @path"


WARNING: If you create the Backup Qmgr and the data and logs are on a different named UNC (which it will be), be sure to edit the qm.ini files to point to the right place before running any Qmgr command.
Back to top
View user's profile Send private message AIM Address
PeterPotkay
PostPosted: Mon Feb 23, 2015 9:16 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

fjb_saper wrote:
Obviously not enough votes on the RFE or else the support packs are deemed adequate enough... As it is an RFE from 2012!


It is the #3 vote getter for all MQ RFEs

#1 is MQ PDFs at 194 votes:
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=21041
Solution Delivered.

#2 is DNS names for MQ CHLAUTH rules at 73 votes
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=21982
Solution Delivered.

#3 is Linear Log self maintenance at 70 votes (several more added this morning).
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=19128

I bet it would get more votes if people could find it. The person that created it called them "lineal" logs so anyone searching for RFEs for Linear logs misses it.



Seems like it would be trivial to add a new process into MQ that fed off new parameters in the qm.ini file related to Liner Log Maintenance - how often to clean them up, where to move old copies to, how many old copies to keep before deleting them, etc.

Before anyone says what't the big deal, its easy, just use the support pack, I'll say exactly, what IS the big deal? If its so easy, why is such a fundamental thing not in the base product?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Feb 23, 2015 9:36 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

PeterPotkay wrote:

Before anyone says what's the big deal, its easy, just use the support pack, I'll say exactly, what IS the big deal? If its so easy, why is such a fundamental thing not in the base product?

I can speculate that IBM has another product (Tivoli) that can provide these log automation services, but at additional license cost.
_________________
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Backup QM
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.