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 » How can I alter LogPrimaryFiles/Secondary vals using cmdline

Post new topic  Reply to topic Goto page 1, 2  Next
 How can I alter LogPrimaryFiles/Secondary vals using cmdline « View previous topic :: View next topic » 
Author Message
bostanian
PostPosted: Wed Nov 18, 2009 8:31 am    Post subject: How can I alter LogPrimaryFiles/Secondary vals using cmdline Reply with quote

Newbie

Joined: 28 Jan 2008
Posts: 3

Could some one throw some light on how to change the values for

LogPrimaryFiles ,LogSecondaryFiles

For a already running qmanger using command line (for unix)

thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 18, 2009 8:34 am    Post subject: Re: How can I alter LogPrimaryFiles/Secondary vals using cmd Reply with quote

Grand High Poobah

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

bostanian wrote:
Could some one throw some light on how to change the values for

LogPrimaryFiles ,LogSecondaryFiles

For a already running qmanger using command line (for unix)

thanks


Execute the following commands from a command prompt, inserting parameters appropriate for your site:

saveqmgr > backup.txt
endmqm
dltmqm
crtmqm
strmqm
runmqsc < backup.txt


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 18, 2009 8:36 am    Post subject: Reply with quote

Grand High Poobah

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

The other, unsupported method, doesn't involve a command prompt (there's no "change log" command") but involves editing the configuration file. A search will turn this up, it's been discussed a few times.

Note that even this doesn't work on a running queue manager. The queue manager will need to be stopped and restarted to change these values.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Nov 18, 2009 9:52 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

There is no need to delete and recreate the QM just to change the # of Log Files. Its 100% supported to end the MQ, change these specific parms and fire the QM back up. The changes may not be evident immediately.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bostanian
PostPosted: Wed Nov 18, 2009 12:30 pm    Post subject: Reply with quote

Newbie

Joined: 28 Jan 2008
Posts: 3

Thanks for your response ( PeterPotkay, Vitor)


Right now on windows I am stopping the qmgr and changing the properties maually - and in linux - I am editing the ini file and bouncing the qmgr..


I am looking for a easy alternate way to automate this process (batch /shellscript)..

Please keep me posted with your suggestions !!


Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 18, 2009 1:50 pm    Post subject: Reply with quote

Grand High Poobah

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

bostanian wrote:
I am looking for a easy alternate way to automate this process (batch /shellscript)..


There are very few reasons you'd want to do this on a regular enough basis to warrent a script. It's possible (through changing circumstances) for a queue manager to need larger log space than when it was created, but proper planning should ensure enough log space at creation. Certainly if a queue manager runs out of space you should increase the log space further than just to get round the current problem.

There is a school of thought that says a queue manager should be created with logs that fill the available log space on disk.

There are certainly no other methods than the ones described here that will change these parameters.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 18, 2009 3:28 pm    Post subject: Reply with quote

Poobah

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

Quote:
There is a school of thought that says a queue manager should be created with logs that fill the available log space on disk.

There is also a school of thought that says that log file size should be calculated based on current and future usage (growth over time).

Your application developers should provide input on both current and growth.

There is a section of the WMQ System Admin manual that describes how to go about sizing logs.
_________________
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
Vitor
PostPosted: Thu Nov 19, 2009 6:14 am    Post subject: Reply with quote

Grand High Poobah

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

bruce2359 wrote:
There is also a school of thought that says that log file size should be calculated based on current and future usage (growth over time).




bruce2359 wrote:
Your application developers should provide input on both current and growth.




Though there are a number of things application developers should do regarding WMQ that never seem to work out.

But both of these schools have the log size being set at creation time.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Nov 24, 2009 5:54 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

PeterPotkay wrote:
There is no need to delete and recreate the QM just to change the # of Log Files.

Agree !!!

bostanian wrote:
...how to change the values for LogPrimaryFiles ,LogSecondaryFiles ...

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. .. THIS IS THE STATEMENT IN MQ ADMIN. RED BOOK.
It depends at what level you want to make the changes, QMgr or Node level and for that you'll hit the configuration files (in Unix/Aix) i.e. .ini file(s).

Special NOTEs : * The size of the log files specified during queue manager creation cannot be changed for a queue manager. And same is for the Type of Logging you opted while creation of the queue manager.
* LogBufferPages can be increased as Larger buffers lead to higher throughput, especially for larger messages.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Tue Nov 24, 2009 6:15 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

shashivarungupta wrote:
...It depends at what level you want to make the changes, QMgr or Node level and for that you'll hit the configuration files (in Unix/Aix) i.e. .ini file(s).


OK, I'll bite...Node level?
_________________
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
shashivarungupta
PostPosted: Tue Nov 24, 2009 6:25 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

exerk wrote:
shashivarungupta wrote:
...It depends at what level you want to make the changes, QMgr or Node level and for that you'll hit the configuration files (in Unix/Aix) i.e. .ini file(s).


OK, I'll bite...Node level?


Aaaouch !!!
....A WebSphere MQ configuration file (mqs.ini) to effect changes for WebSphere MQ on the node as a whole. There is one mqs.ini file for each node
as :
LogDefaults:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=0
LogDefaultPath=/var/mqm/log

Was that word weird !!!!
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Tue Nov 24, 2009 6:43 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Not quite accurate...

The mqs.ini file provides log defaults for any queue manager created that does NOT have -ll, or -lp -ls etc. specified - it does NOT effect changes on the node as a whole, because that implies it will change an individual queue managers log set-up if the mqs.ini file is changed, and the queue manager is 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.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Nov 24, 2009 6:44 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

LogFilePages should be higher, I use 16384
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Nov 24, 2009 6:51 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

exerk wrote:
Not quite accurate...

The mqs.ini file provides log defaults for any queue manager created that does NOT have -ll, or -lp -ls etc. specified - it does NOT effect changes on the node as a whole, because that implies it will change an individual queue managers log set-up if the mqs.ini file is changed, and the queue manager is restarted.



_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Thu Dec 31, 2009 4:39 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

OK, suppose we have 30 primary log files and we want to reduce this to 20 (of the same size).

We edit qm.ini and change the primary number from 30 to 20.

Stop queue manager

Delete the last 10 log files (QM originally created with 30).

Start queue manager

- or do we have to delete and re-create the queue manager - the manual implies not - but is following the method above safe?

Platform = AIX, WMQ 6.0.2.7


Last edited by zpat on Thu Dec 31, 2009 5:00 am; edited 1 time in total
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 » How can I alter LogPrimaryFiles/Secondary vals using cmdline
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.