Author |
Message
|
tkaravind |
Posted: Tue Nov 25, 2003 1:33 am Post subject: Changing the log file size !!! |
|
|
Acolyte
Joined: 24 Jul 2001 Posts: 61
|
Hi Folks,
Is it possible to change the LOG FILE SIZE Qmanager parameter in the "QM.ini" file by editing it directly ?
Would this take effect when we restart the queue manager (just like other parameters for ex : No of Primary/Secondary files etc) ?
If this works then there would be no need to delete & recreate the
QManager just to change this one parameter.
Would this work ? Pls correct me if I am wrong somewhere.
Regards,
Aravind |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 25, 2003 2:52 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
I do not believe this is possible - My understanding is that the log file size is fixed for the lifetime of a qmgr and it cannot be changed (unfortunately) |
|
Back to top |
|
 |
leongor |
Posted: Tue Nov 25, 2003 3:39 am Post subject: |
|
|
 Master
Joined: 13 May 2002 Posts: 264 Location: Israel
|
You can change only number of primary/secondary logs, not a size. _________________ Regards.
Leonid.
IBM Certified MQSeries Specialist. |
|
Back to top |
|
 |
mrlinux |
Posted: Tue Nov 25, 2003 12:51 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
What you could do, create another qmgr on another system with the same name and the logfile size you want. (dont start the queue mgr)
Stop the qmgr whose log size you want to change
1) zip up the LOG/QMGR_NAME dir with the new logs and the active.lfh file
2) move the old LOG Dir to a backup (just in case)
3) unzip the new logs in place
4) modify the registry
5) start queue manager _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 25, 2003 12:56 pm Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Also known as a cold start - dont do it (unless you really, really, really have to). 5.3 has more implications than 5.2 as to whether that will work.
Note that *IF* you shut the queue manager down cleanly then these implications are reduced, but I really cannot recommend these steps unless its for a critical reason. |
|
Back to top |
|
 |
mrlinux |
Posted: Tue Nov 25, 2003 12:59 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well I have yet to play with v5.3, but I have been using this since v5.0 and the only issue I have came up againist is the need to use the same queue manager starting either in v5.1 or v5.2 (been a while since I have been forced to do this).
What are the new implications ??? _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 25, 2003 1:06 pm Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Loss of data on queues if qmgr wasnt shutdown cleanly is the main one - More data is buffered in memory in 5.3, and the message chains on the Q file may not match the Q without first replaying the log records. Following a normal shutdown (ie with a checkpoint) then its 'safer', but not a practice to use if avoidable.
My take is its safer to know you need to migrate your data (ie redefine qmgr) than it is to lose some msgs due to a corruption. |
|
Back to top |
|
 |
mrlinux |
Posted: Tue Nov 25, 2003 1:24 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Iam not trying to be a pain, Iam asking the questions out of curiousty
So if the queues were empty that would eliminate most of the issues ???? _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 25, 2003 1:48 pm Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
You cant empty all queues, as some system queues may have data in them (eg. 5.2+ keeps setmqaut info in a queue, cluster info (5.1+) is in a queue etc).
Also if all queues are empty in most cases its easy to back up qmgr definitions (ms03 support pack for example), and rebuild it. Not quite so simple for a machine in an MQ cluster, but not overly difficult. |
|
Back to top |
|
 |
|