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 » reduce logfiles of QMGR

Post new topic  Reply to topic Goto page 1, 2  Next
 reduce logfiles of QMGR « View previous topic :: View next topic » 
Author Message
hmh
PostPosted: Mon Mar 09, 2009 3:41 am    Post subject: reduce logfiles of QMGR Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

Hello, it is possible to change (reduce) the size and the nunmber of logfiles online, this means without dltmqm and crtmqm of the QMGR.
MQ Version is 6.0.2.5 on Solaris 10
actual qm.ini:
Log:
LogPrimaryFiles=128
LogSecondaryFiles=16
LogFilePages=4096
LogType=CIRCULAR
LogBufferPages=0
wanted values ov qm.ini
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=0

Does MQ also delete the not longer needed files in the filesystem?
Kind regards
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Mon Mar 09, 2009 3:53 am    Post subject: Re: reduce logfiles of QMGR Reply with quote

Grand High Poobah

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

hmh wrote:
Does MQ also delete the not longer needed files in the filesystem?


Only the secondary ones if they're not needed.

There is an unsupported hack to increase the number of logs for a circular logged queue manager. I would be wary of using it to reduce the number of logs.

I'd also question why you're bothering to reduce the number of logs. Too much log won't cause the queue manager a problem in the way too little log will. And disc is cheap.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hmh
PostPosted: Mon Mar 09, 2009 4:31 am    Post subject: Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

Clear, but I don't need definitively not so much logfiles.
I see that since september 2007 only 5 Logfiles are used by the application and I need the filespace for other QMGR's.
The problem is, that I can't make a dltmqm and crtmqm on the fly, because this is an productive system of a financial order and trading system.
A small one, really, but actually I won't get the risk that it will not work any longer after doing this.
Any other Idea?
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Mon Mar 09, 2009 4:37 am    Post subject: Reply with quote

Grand High Poobah

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

hmh wrote:
The problem is, that I can't make a dltmqm and crtmqm on the fly, because this is an productive system of a financial order and trading system.


Do not be doing unsupported hacks on production systems of any size.

Get a maintenance window, resize the queue manager properly with dltmqm & crtmqm.

Or buy more disc for the new queue managers. Disc is cheap.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Mar 09, 2009 4:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can change the *number* of log files without using dltmqm/crtmqm - just edit the qm.ini.

You will still need a maintenance window because you must still endmqm/strmqm for it to take effect.
Back to top
View user's profile Send private message
hmh
PostPosted: Mon Mar 09, 2009 5:44 am    Post subject: Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

mqjeff wrote:
You can change the *number* of log files without using dltmqm/crtmqm - just edit the qm.ini.

You will still need a maintenance window because you must still endmqm/strmqm for it to take effect.


Thank, but this I tested on one of our Test-System.
Getting a downtime for some time to restart teh QMGR isn't the problem.
Changing the qm.ini isn't also possible during regular working time, but this doesn't delete the not longer needed logfiles.
Can I delete the Logfiles in the active directory manually or will this result in other problems?
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
exerk
PostPosted: Mon Mar 09, 2009 5:49 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Do NOT delete the log files manually - EVER. You can edit the qm.ini file at any time, but the changes will not be picked up until restart of the queue manager. As you have stated that is no problem, do as suggested.

EDIT: shot from the lip again...I meant until the changes had been made and the queue manager restarted
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.


Last edited by exerk on Mon Mar 09, 2009 5:51 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2009 5:49 am    Post subject: Reply with quote

Grand High Poobah

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

hmh wrote:
Can I delete the Logfiles in the active directory manually or will this result in other problems?


Only once qm.ini has been edited and the queue manager restarted.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hmh
PostPosted: Mon Mar 09, 2009 6:34 am    Post subject: Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

exerk wrote:
EDIT: shot from the lip again...I meant until the changes had been made and the queue manager restarted


Looks like, that I have no other chance as dltmqm and crtmqm.

I do the following.
create a QMGR with
crtmqm -lc -lf 4096 -lp 128 -ls 16 QMGR
strmqm QMGR
endmqm -i QMGR
edit the qm.ini and change the values to:

Log:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR

strmqm QMGR
endmqm -i QMGR
until here everthing works fine

delete the logliles except S0000000.LOG S0000001.LOG S0000002.LOG

strmqm QMGR results in the error....
$ strmqm QMGR
WebSphere MQ queue manager 'QMGR' starting.
AMQ7017: Log not available.

MQ-Version is 6.0.2.1, sorry for the mistake.....
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
exerk
PostPosted: Mon Mar 09, 2009 6:44 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Did you delete all the log files before restarting?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
hmh
PostPosted: Mon Mar 09, 2009 7:17 am    Post subject: Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

exerk wrote:
Did you delete all the log files before restarting?


No, not all.
I stop the QMGR
delete all files, except the first three.

The Logs S0000000.LOG S0000001.LOG S0000002.LOG I don't touch ....
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
exerk
PostPosted: Mon Mar 09, 2009 7:38 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

OK, I did this on Windows XP SP3, WMQ 7.0.0.1:

1. I created a queue manager with -lp 10 -ls 10 and started/stopped it.

2. I changed the logs to -lp 5 -ls 5 and started it.

3. I tried deleting logs 5 to 9 and couldn't.

4. I stopped the queue manager, then I could delete the 'redundant' log files.

5. On restart I got 'AMQ7017: Log not available.'

As I did not run anything into the queue manager to generate log activity, I am somewhat confused as like mqjeff I thought the number of logs could be increased/reduced as necessary.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
hmh
PostPosted: Mon Mar 09, 2009 7:57 am    Post subject: Reply with quote

Apprentice

Joined: 31 Mar 2006
Posts: 29
Location: Germany

exerk wrote:
As I did not run anything into the queue manager to generate log activity, I am somewhat confused as like mqjeff I thought the number of logs could be increased/reduced as necessary.


I'm confused too.
Maybe there must be another link in MQ. tha the QMGR expect more Logfiles than in the qm.ini defined.
I knew, thai in MQ 5.3.X you only can define more logfiles than before, but you can't reduce ....

Try to do this with dltmqm and crtmqm.

Thanks for help and some ideas.....
_________________
Michael Hoppe
63067 Offenbach

+49 (0)170 / 9629 131
http://www.hmhcs.de
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Mon Mar 09, 2009 9:25 am    Post subject: Reply with quote

Poobah

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

Quote:
4. I stopped the queue manager, then I could delete the 'redundant' log files.

At this point, the qmgr has released its enque on these files.
Quote:
5. On restart I got 'AMQ7017: Log not available.'

The qmgr knows which logs files it needs, wants, owns, from the checkpoint file (this from the dark recesses of my memory).
Quote:
As I did not run anything into the queue manager to generate log activity...

Starting a qmgr creates log entries.
_________________
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
exerk
PostPosted: Mon Mar 09, 2009 1:30 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

bruce2359 wrote:
Quote:
4. I stopped the queue manager, then I could delete the 'redundant' log files.

At this point, the qmgr has released its enque on these files.


As expected. I did it expecting this, filemon showed the files in use by WMQ, and it was to forestall any 'did you try...' questions.

bruce2359 wrote:
Quote:
5. On restart I got 'AMQ7017: Log not available.'

The qmgr knows which logs files it needs, wants, owns, from the checkpoint file (this from the dark recesses of my memory).


Again, as expected. It was the 'missing', i.e. deleted files about which it was complaining.

bruce2359 wrote:
Quote:
As I did not run anything into the queue manager to generate log activity...

Starting a qmgr creates log entries.


By that I meant I did not induce any check-pointing to roll anything into the logs, e.g. long running UOW's.

So, hence my confusion, especially having checked the Info Centre, which states:

Quote:
The value is examined when the queue manager is created or started. You can change it after the queue manager has been created. However, a change in the value is not effective until the queue manager is restarted, and the effect might not be immediate.

_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » reduce logfiles of QMGR
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.