Author |
Message
|
pfarrel |
Posted: Tue Jan 04, 2005 9:00 am Post subject: Upgrade logs on AIX Queue Manager |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
I want to increase the sizes of my log datasets on an AIX queue manager. I may also want to add additional logs.
Ideally, I would prefer to just allocate datasets, and not drop and redefine the queue manager. Can I do this ?
If I have to drop and recreate the queue manager, I believe that I can recreate all the objects by using the saveqmgr program. However, how can I save and recreate all the authorizations ( that were done using the setmqaut ) ?
Any advice would be most welcome. Thanks. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jan 04, 2005 10:38 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
kingsley |
Posted: Tue Jan 04, 2005 12:59 pm Post subject: |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Shut down the QueueManager if the logs needs to be increased for one queuemanager.
Update the qm.ini (unix) or Registry ( Windows) and start the QueueManager
If it has to be update on all the QueueManagers on a given box, shut down MQseries and do the same and restart it.
It's fairly simply. These are logs (Circular & Linear not error logs) |
|
Back to top |
|
 |
pfarrel |
Posted: Wed Jan 05, 2005 4:48 am Post subject: |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
Thanks for all the help.
Just to be sure, can someone please conmfirm:
I can shut down my AIX queue manager, delete the log files, allocate them larger, and then restart the queue manager ?
Is that correct ? |
|
Back to top |
|
 |
kingsley |
Posted: Wed Jan 05, 2005 5:23 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Dont delete the Log files. If you delete them, you won't be able reconstruct some messages which are required.
Just increase the LogFilePages to increase the logsize.
Increase primary and Secondary Files to increase the number of Logs.
Iterating Again, don't delete the logs. The QueueManager takes care of it.
The changes are effective for the New logs |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jan 05, 2005 5:53 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
kingsley wrote: |
Just increase the LogFilePages to increase the logsize.
|
You can't change this attribute. It is locked in when you create the QM. You will have to delete and recreate the QM if you want to have bigger log files.
You can increase the number of log files without recreating the QM. In that case, just restart the QM. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
pfarrel |
Posted: Wed Jan 05, 2005 5:59 am Post subject: |
|
|
Centurion
Joined: 16 Mar 2004 Posts: 120 Location: Kansas City
|
OK, this sounds good.
If I simply update the mqs.ini file, and change the value LogFilePages=1024 to LogFilePages=61440, then MQ will automatically expand the log datasets. Is that correct ?
Thanks in advance. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jan 05, 2005 6:03 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
pfarrel wrote: |
OK, this sounds good.
If I simply update the mqs.ini file, and change the value LogFilePages=1024 to LogFilePages=61440, then MQ will automatically expand the log datasets. Is that correct ?
Thanks in advance. |
????????????????????
Quote: |
You can't change this attribute. It is locked in when you create the QM. You will have to delete and recreate the QM if you want to have bigger log files.
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fschofer |
Posted: Wed Jan 05, 2005 6:09 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
Quote: |
If I simply update the mqs.ini file, and change the value LogFilePages=1024 to LogFilePages=61440, then MQ will automatically expand the log datasets. Is that correct ? |
!!! No you cannot do this.
The only way to increase the total log size without recreating the
queue manager is to change the number of primary and secondary
log files which in total cannot be more than 63.
So you will have 63 * 1024 * 4 kB as maximum.
You can only define the logfile size during the queue manager creation.
Greetings
Frank |
|
Back to top |
|
 |
Tibor |
Posted: Wed Jan 05, 2005 9:43 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jan 05, 2005 10:05 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Tibor wrote: |
Of course it is not as simple as you think...
|
or supported by IBM. But yes, its technically possible as of this version of MQ. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
kingsley |
Posted: Wed Jan 05, 2005 11:43 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Dear PeterPotkay,
This content is extracted from the System Administration Guide in Page 102 (124 of 560) in the Pdf file for MQ V5.3
Major parameters in qm.ini and mqs.ini are changeable but requires a bounce of the QueueManager to be effective.
Pls dont confuse the novice. I don't mean to hurt you but you are confusing people.
--------------------------------------------------------
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. |
|
Back to top |
|
 |
bbburson |
Posted: Wed Jan 05, 2005 12:28 pm Post subject: Plenty of confusion to go around |
|
|
Partisan
Joined: 06 Jan 2004 Posts: 378 Location: Nowhere near a queue manager
|
kingsley wrote: |
Pls dont confuse the novice. I don't mean to hurt you but you are confusing people. |
Sorry to have to say it, but you are the one confusing people:
kingsley wrote: |
Just increase the LogFilePages to increase the logsize. |
This won't work. The only supported way to increase the SIZE of the log files is to delete and recreate the queue manager. The parameters that can be changed control the NUMBER of log files (and therefore the overall amount of disk space used). |
|
Back to top |
|
 |
kingsley |
Posted: Wed Jan 05, 2005 1:25 pm Post subject: Increase primary and Secondary Files to increase the number |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Look one line below in the same post
Increase primary and Secondary Files to increase the number of Logs.
You can't increase the log file already existed. New logfiles which are being created will use the new value and will increase in size. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jan 05, 2005 2:06 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
I hate to join this slamfest but....
The supported method of changing the size of the logfiles is to change the LogFilePages value (in QM.ini or whereever) and recreate the Queue Manager
You can change the number of log files (and hence increase the log space available) by increasing the LogFilePrimary or LogFileSecondary value and restarting the queue manager. This increases the logspace available not by increasing the size of the files but by increasing the number of files that the queue manager can use.
That is my understanding of things. Of course I may be totally wrong
There may be other (unsupported and/or undocumented) ways of doing it, but the above is, as I understand it, the IBM supported way. |
|
Back to top |
|
 |
|