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 » IBM MQ Installation/Configuration Support » Converting from linear to circular logging

Post new topic  Reply to topic
 Converting from linear to circular logging « View previous topic :: View next topic » 
Author Message
David.Partridge
PostPosted: Fri Feb 23, 2007 6:12 am    Post subject: Converting from linear to circular logging Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

One of a client's QMs regularly fills the log space as users have a habit of leaving test data on there for a long period.

We are therefore considering converting it from linear to circular logging. It is understood that the data in the queues will be lost. And I'm not convinced that linear logging buys much these days especially on a test QM (which this is).

The queue manager is a member of a number of clusters (luckily it isn't a full repository for any of these clusters).

I'd like to confirm the steps involved for the log conversion and be sure I understand the implications of doing this in the cluster environment.

I think this is what I need to do:

1) use saveqmgr to backup the definitions
2) use amqoamd to backup the permissions
3) ??? see below ???
4) delete the qmgr
5) recreate the qmgr with circular logging
6) reload the saveqmgr output
7) reload the amqoamd stuff
Get rid of cron jobs that do rcdmqimg etc.

Do I need to do anything at step 3) above such as extract the QM from the clusters it is connected to? I think I do, but would like confirmation.

Also did I miss anything crucial (or even not so crucial).

Thanks
Dave
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Feb 23, 2007 6:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

You should remove the queue manager from the cluster before deleting it. This of course implies a step 9 - add new queue manager to cluster.

I agree that linear logging does not add much to a test environment.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Feb 23, 2007 6:40 am    Post subject: Reply with quote

Guest




Read the MQ System Admin Guide, especially the sections on Recovery and Restart, and Managing Logs.

As a best practice, I make all qmgrs (test, q/a, production, identical - and all linear logs. Log usage is a function of MQPUTting and MQGETting persistent messages, changes to object definitions - that kind of thing.

Thus, test qmgrs, if used less than production qmgrs, will use less log space. For linear log qmgrs, once a log segment no longer holds active units of work, they can be archived so as to free up disk space.
Back to top
Vitor
PostPosted: Fri Feb 23, 2007 6:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
Thus, test qmgrs, if used less than production qmgrs, will use less log space. For linear log qmgrs, once a log segment no longer holds active units of work, they can be archived so as to free up disk space.


Very true, but dev machines tend not to be intrinsically short of space. They fill up as rubbish accumulates, like unneeded log files, and in a dev environment it's highly unlikely you'll want to look back over old messages or recreate queue managers. Circular logs have larger initial space requirements but are self maintaining.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Fri Feb 23, 2007 6:50 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Unless the qmgr data and log files are on different file systems there is no benefit to having a linear log system, since if they are on the same filesystem and it is lost, all the data is lost together.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Feb 23, 2007 7:24 am    Post subject: Reply with quote

Guest




All true.

I want test, q/a and production qmgrs to have the exact same environment, object definitions, etc.. I want programmers and admins to discover all the problems, issues and oddities, in test FIRST; so errant programs (and admin processes) don't make it into q/a or production.

An errant program sucking up lots of log space (in an MQPUT loop, for example) might not be caught in test, but would be really annoying in prod.

Disk space is cheap. Learn how to manage logs in test; then promote the process to q/a, then production.
Back to top
David.Partridge
PostPosted: Fri Feb 23, 2007 8:49 am    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

Not wishing to be akkard, but the decision to do this has been made

I don't wish to debate the merits of linear/circular logs - just want to check that my interpretation of the steps is correct, and whether I've missed anything.

Thanks
Dave
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Feb 23, 2007 8:59 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

David.Partridge wrote:
Not wishing to be akkard, but the decision to do this has been made


Then maybe this wasn't the best wording?

David.Partridge wrote:
We are therefore considering converting it from linear to circular logging.


Considering to me means...the decision has not yet been taken.

The steps look good but I would include Vitor's suggestion too.

Quote:
You should remove the queue manager from the cluster before deleting it. This of course implies a step 9 - add new queue manager to cluster.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Feb 23, 2007 9:29 am    Post subject: Reply with quote

Guest




Read the MQ Queue Manager Clusters manual, Advanced Tasks, for step-by-step removing objects from the cluster, and removing a queue manager from a cluster.
Back to top
tleichen
PostPosted: Fri Feb 23, 2007 9:35 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Can't seem to find it on this post. What platform is this dealing with? zOS?
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Feb 23, 2007 11:09 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

tleichen wrote:
Can't seem to find it on this post. What platform is this dealing with? zOS?


Can't be z/OS...no such thing as circular logging there
Back to top
View user's profile Send private message
tleichen
PostPosted: Fri Feb 23, 2007 11:35 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Yeah, that's right. I'm just not used to linear logging anywhere else...
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
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 » IBM MQ Installation/Configuration Support » Converting from linear to circular logging
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.