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 » General IBM MQ Support » yet another issue with queue manager logs

Post new topic  Reply to topic
 yet another issue with queue manager logs « View previous topic :: View next topic » 
Author Message
pgorak
PostPosted: Fri Sep 19, 2003 12:30 am    Post subject: yet another issue with queue manager logs Reply with quote

Disciple

Joined: 15 Jul 2002
Posts: 158
Location: Cracow, Poland

Hi all,

This indeed seems to be an endless subject.

Let's suppose we have a queue manager with circular logs, 3 primary and 2 secondary files. At a point in time there is a resource problem and we decide to increase the number of primary log files to 10. Now, at some point later we want to free some disk space and go back to 3 primary log files.

My question is: is this possible and how can this be accomplished?

Piotr
Back to top
View user's profile Send private message
jhalstead
PostPosted: Fri Sep 19, 2003 3:40 am    Post subject: Reply with quote

Master

Joined: 16 Aug 2001
Posts: 258
Location: London

Yes I believe it is, you'll need to re-start the qmgr after changing the log settings.
After a while a number of the logs will no longer hold relevant information and will be cleaned up ...
Back to top
View user's profile Send private message Send e-mail
pgorak
PostPosted: Fri Sep 19, 2003 3:46 am    Post subject: Reply with quote

Disciple

Joined: 15 Jul 2002
Posts: 158
Location: Cracow, Poland

you mean - automatically cleaned up by the queue manager?

What I expected was that the unnecessary files are deleted right away, during the restart. But it didn't happen and that's why I posted my question.

Piotr
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sat Sep 20, 2003 9:45 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Piotr, are you really running MQ on a machine that is so low on disk space? Even if you made your logs at the maximum size of 16,384, those 7 logs you are deleting is only about 1/2 a gig of data (16384 x 4096 x7 469,762,048). Most PCs nowadays have many times that space available.


Anyway, if you really do need to recalim that space, see below the quote from the Sys Admin Guide. It kinda implies that the space will be reclaimed whenever MQ feels like it.

Quote:

LogPrimaryFiles=3|2-62
The log files allocated when the queue manager is created.
The minimum number of primary log files you can have is 2 and the
maximum is 62. The default is 3.
The total number of primary and secondary log files must not exceed 63, and
must not be less than 3.
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.
LogSecondaryFiles=2|1-61
The log files allocated when the primary files are exhausted.
The minimum number of secondary log files is 1 and the maximum is 61. The
default number is 2.
The total number of primary and secondary log files must not exceed 63, and
must not be less than 3.
The value is examined when the queue manager is started. You can change this
value, but changes do not become effective until the queue manager is
restarted, and even then the effect might not be immediate.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
KAKOZ
PostPosted: Mon Apr 05, 2004 12:58 am    Post subject: Reply with quote

Voyager

Joined: 26 Jan 2004
Posts: 90
Location: FRANCE

Hi Piotr, Peter,

- I see that the System Admin Guide says that it is possible to modify the number of primay and secondary files

- I suppose that we can increase or decrease this number because within the documentation nothing is said about the impossibility to decrease the number of log files

- they also say that 'the effect might not be immediate"

have you already made the test to decrease the number of primary log files and did you see the primary log files behind the max number deleted by the Qmgr? how long after the modification of the qm.ini file?

thanks for info
Jack
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 » General IBM MQ Support » yet another issue with queue manager logs
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.