|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to remove a log from the active ring of logs |
« View previous topic :: View next topic » |
Author |
Message
|
dogbert64 |
Posted: Wed Oct 21, 2009 12:02 pm Post subject: How to remove a log from the active ring of logs |
|
|
Acolyte
Joined: 11 Jun 2003 Posts: 58
|
Looking over the System Admin guide for z/OS, I see how to dynamically add a log to the ring of active logs using DEFINE LOG but I don't see how to remove a log. I don't see a command in the Command Reference which relates to that either.
Anybody know how to take a log file out of the rotation list? Is it simply a matter of deleting it when it is not the Active Log and maybe restarting the Queue Manager or are there some records in the BSDS which might be "in love" with that log and those have to be removed as well?
We are running MQ 6.0 on two z/OS 1.9 LPARs using QSG if that helps. |
|
Back to top |
|
 |
dogbert64 |
Posted: Wed Oct 21, 2009 12:23 pm Post subject: |
|
|
Acolyte
Joined: 11 Jun 2003 Posts: 58
|
Okay, it looks like the change log inventory utility (CSQJU003) will do this. It has a Delete command that will remove info about the log from the BSDS.
I've never done this before, so has anyone else? Are there any "gotchas" to it? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Oct 22, 2009 12:09 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
MQ must be stopped. Make sure that the active log you are going to remove is not required for restart. if you use dual logging, remove either both or none (i guess) _________________ Regards, Butcher |
|
Back to top |
|
 |
dogbert64 |
Posted: Thu Nov 05, 2009 7:43 am Post subject: |
|
|
Acolyte
Joined: 11 Jun 2003 Posts: 58
|
Mr Butcher wrote: |
Make sure that the active log you are going to remove is not required for restart. |
How do you do that? I've looked through the documentation and I don't see explicitly how to determine if a Active Log can be removed so it can be re-allocated in a larger size. |
|
Back to top |
|
 |
dogbert64 |
Posted: Fri Dec 04, 2009 8:08 am Post subject: |
|
|
Acolyte
Joined: 11 Jun 2003 Posts: 58
|
Okay, figured it out. Run program CSQJU004 (print log map utility) and point it to a BSDS. The System Admin Guide for z/OS can tell you how to setup the JCL and the particulars of the utility.
Although it lists a bunch of information, all you have to do it look at the Active Section and you'll see your log ring there. There are 2 sections (if you are using Dual Logging), entitled ACTIVE LOG COPY 1 DATA SETS and ACTIVE LOG COPY 2 DATA SETS, so for consistency sake you probably want to check both (if you are using Dual Logging). All but one will be marked as REUSABLE and those are NOT the Active logs. The one marked NOT REUSABLE is the Active log.
Also, the utility lists all the Archive Log datasets the QM knows about. All in all, a handy utility to be familiar with.
By the way, our ASG monitor TMONMQ lists all the log datasets, which are Active and which are Reusable, etc. But I forced myself to use CSQJ0004 and I am glad I did. It is good to be familiar with the IBM utilities. |
|
Back to top |
|
 |
dogbert64 |
Posted: Fri Dec 04, 2009 8:14 am Post subject: |
|
|
Acolyte
Joined: 11 Jun 2003 Posts: 58
|
One other thing I didn't mention about CSQJ0004. Since it (appears) to read the BSDS directly without going through the QM, it can be run when a QM is down. As a matter of fact, the manual indicates that having the QM down is the only way to get accurate results.
I think that is because the Active Log and Archive Logs are dynamic information. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Dec 04, 2009 9:50 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
(Hi, Phil.) _________________ 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
|
|
|
|