Author |
Message
|
RaviKrG |
Posted: Sat Jan 17, 2009 5:27 am Post subject: Increase the number of error file of a QM |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
Hi,
When we create any queue manager then we have three error log files for the created queue manager in the path /var/mqm/qmgrs/test/errors where the files names AMQERR0?.LOG (where ? is 1,2,3).
Now we have a facility to have different no of log file (primary/secondary). Is there any way where we can change the number of error log file ie that can be increased from 3 to say(5)
Thanks |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Jan 17, 2009 7:20 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
No. I wish they did.
You can write your own script to archive AMQERR03.LOG everytime it changes and then rename the archive to AMQERR04.LOG, etc.
MQ does allow you to up the size of these error logs. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
RaviKrG |
Posted: Sat Jan 17, 2009 7:33 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
Thanks Peter.
Can you please elaborate little bit this
"MQ does allow you to up the size of these error logs."
Also I change the qm.ini file with primary log file to 5 and then stopped and started the queue manager but i did not see any change in the log file.
In one of the forums I did study that the changes are immediate.
Can you comment on this . Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 17, 2009 7:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
RaviKrG wrote: |
Thanks Peter.
Can you please elaborate little bit this
"MQ does allow you to up the size of these error logs."
Also I change the qm.ini file with primary log file to 5 and then stopped and started the queue manager but i did not see any change in the log file.
In one of the forums I did study that the changes are immediate.
Can you comment on this . Thanks |
You are confusing the redo logs with the error logs here... _________________ MQ & Broker admin |
|
Back to top |
|
 |
RaviKrG |
Posted: Sat Jan 17, 2009 7:51 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
fjb, in my previous post actually i have asked two questions.
i think the primary log file no in qm.ini has nothing to do with the error log file in the /var/mqm/qmgrs/QMNAME/errors path.
1) MQ does allow you to up the size of these error logs (what does this imply)
2) this was about the primary/secondary log file. I think this was related to
http://www.mqseries.net/phpBB2/viewtopic.php?t=47126 |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 17, 2009 9:35 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
RaviKrG wrote: |
fjb, in my previous post actually i have asked two questions.
i think the primary log file no in qm.ini has nothing to do with the error log file in the /var/mqm/qmgrs/QMNAME/errors path.
1) MQ does allow you to up the size of these error logs (what does this imply)
2) this was about the primary/secondary log file. I think this was related to
http://www.mqseries.net/phpBB2/viewtopic.php?t=47126 |
1) There is an environment variable that allows you to have bigger size error logs. This is what was alluded to in some previous post (use search)
2) This applies only to redo/recovery logs and not error logs. To change the number of logs you need to restart the qmgr. To change the size of these logs you need to recreate the qmgr.
When changing the # of logs the qmgr will create the additional mentioned logs as needed. If primary they will stay around, if secondary they will be removed when the qmgr doesn't need them anymore. In other words DO NOT TOUCH. When using linear logging use one of the support packs for log archive management.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Jan 17, 2009 12:16 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Speaking about the MQ Error logs, NOT the MQ transaction logs:
There are 2 sets of MQ error logs - at the system level and at the QM level. The size of the QM error logs can be controlled by a stanza in the qm.ini file (via MQ Explorer on Windows systems) as of MQ 6.0. The system level MQ error logs can have their size altered by the environment variable that FJ mentioned. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
RaviKrG |
Posted: Sun Jan 18, 2009 3:31 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
Regarding log files
-------------------------
But as you said I increased the # of primary log files from 3 to 5 and stopped and then started the queue manager.
When I checked in the path now C:\Program Files\IBM\WebSphere MQ\log\QMNAME\active there were only three files with the names S0000000, S0000001, S0000002.
Regarding error file
--------------------------
The size of the QM error logs can be controlled by a stanza in the qm.ini file (via MQ Explorer on Windows systems) as of MQ 6.0 - I did not find anything on explorer , STILL in SEARCh.
Also about the env variable I am searching and will get back to you
Thanks. |
|
Back to top |
|
 |
RaviKrG |
Posted: Sun Jan 18, 2009 3:37 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
|
Back to top |
|
 |
RaviKrG |
Posted: Sun Jan 18, 2009 3:51 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
Regarding the error file size:
----------------------------------
the env variable need to be set is MQMAXERRORLOGSIZE.
we can set these on unix/solaris with set MQMAXERRORLOGSIZE = X.
but on windows (not sure) this has to be set as system variable.
Also if set these value then these will be for all the queue managers on that particular box. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sun Jan 18, 2009 5:38 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
PeterPotkay wrote: |
There are 2 sets of MQ error logs - at the system level and at the QM level. The size of the QM error logs can be controlled by a stanza in the qm.ini file (via MQ Explorer on Windows systems) as of MQ 6.0. The system level MQ error logs can have their size altered by the environment variable that FJ mentioned. |
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sun Jan 18, 2009 5:41 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
RaviKrG wrote: |
Regarding log files
-------------------------
But as you said I increased the # of primary log files from 3 to 5 and stopped and then started the queue manager.
When I checked in the path now C:\Program Files\IBM\WebSphere MQ\log\QMNAME\active there were only three files with the names S0000000, S0000001, S0000002.
|
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa12570_.htm
Quote: |
LogPrimaryFiles=3|2-254 (Windows®)|2-510 (UNIX® systems)
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 254 on Windows, or 510 on UNIX systems. The default is 3.
The total number of primary and secondary log files must not exceed 255 on Windows, or 511 on UNIX systems, 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.
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sun Jan 18, 2009 5:45 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Will that work? Probably. Should you do it? No! IBM does not support that. If you want bigger MQ transaction logs, back up the MQ definitions using the MS03 Support Pack, then delete and recreate the QM the right way.
The first place you should research MQ questions is by searching in IBM's MQ InfoCenter, not Google.
Bookmark this link and use it: http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
I know a lot about MQ, yet I search in the Infocenter almost every day. It's that important. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
RaviKrG |
Posted: Sun Jan 18, 2009 6:47 am Post subject: |
|
|
 Master
Joined: 07 Sep 2008 Posts: 240
|
Thanks Peter for this healthy discussion. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Jan 18, 2009 7:57 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I don't want to appear repetetive, redundant or repeat myself, but:
If only the folks at the WMQ factory had called the error files error files and not error logs; and that the error files had been given a suffix of .ERR, and not .LOG.
Imagine all the confusion that would not exist on this subject.
Stop me if I've said this before... _________________ 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 |
|
 |
|