|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Backup QM |
« View previous topic :: View next topic » |
Author |
Message
|
oluies |
Posted: Thu Feb 19, 2015 2:50 am Post subject: Backup QM |
|
|
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 |
|
 |
oluies |
Posted: Mon Feb 23, 2015 12:28 am Post subject: |
|
|
Newbie
Joined: 19 Feb 2015 Posts: 9
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Feb 23, 2015 4:59 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 23, 2015 6:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
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 |
|
 |
JosephGramig |
Posted: Mon Feb 23, 2015 8:37 am Post subject: |
|
|
 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:
- Record media objects
- Advance the current log
- Query the Qmgr for the current log
- ZIP up all the logs up to but not including the current log
- Copy the ZIP to the Backup Qmgr machine
- If the ZIP made it there, delete all files in the log directory (for cleanliness)
- UnZIP the logs to the log directory
- Delete the ZIP file at the Backup Qmgr
- Replay the logs at the Backup Qmgr
- run MS0L at the Active Qmgr
- 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 |
|
 |
PeterPotkay |
Posted: Mon Feb 23, 2015 9:16 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Mon Feb 23, 2015 9:36 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|