|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Alter qmgr LogPrimaryFiles ,LogFilePages and LogPath |
« View previous topic :: View next topic » |
Author |
Message
|
kjreddy |
Posted: Tue Aug 19, 2008 8:10 am Post subject: Alter qmgr LogPrimaryFiles ,LogFilePages and LogPath |
|
|
Novice
Joined: 16 Feb 2007 Posts: 20
|
How to alter LogPrimaryFiles ,LogFilePages and LogPath for already created queuemanager ? |
|
Back to top |
|
 |
jeevan |
Posted: Tue Aug 19, 2008 11:03 am Post subject: Re: Alter qmgr LogPrimaryFiles ,LogFilePages and LogPath |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
kjreddy wrote: |
How to alter LogPrimaryFiles ,LogFilePages and LogPath for already created queuemanager ? |
1.) Create a dummy qmgr with the appropriate log file size, lets call the
qmgr DUMMY.
$ crtmqm -lf 8192 -lp 10 -ls 5 DUMMY NOTE: The crtmqm
with large log files may take a few minutes.
2.) Next, stop the qmgr for which you are reallocating the logs.
$ endmqm -i queue-manager-name
3.) Then change directory ( cd ) to the current qmgr log directory and
delete ( rm ) file amqhlctl.lfh.
$ cd /var/mqm/log/queue-namager-name
$ rm amqhlctl.lfh
4.) Then change directory to the active directory and delete the old
logs.
$ cd active
$ rm *.LOG
5.) Copy ( cp ) from DUMMY qmgr directory the amqhlctl.lfh file and the
newly created logs to the dirctory of the Queue Manager for which
you are reallocating the logs.
$ cd /var/mqm/log/DUMMY
$ cp -pr * /var/mqm/log/Old_QMgr
6.) Update the current qmgr qm.ini Log: stanza with the updated logfile
sizes.
#* *#
#* *#
Log:
LogPrimaryFiles=10
LogSecondaryFiles=5
LogFilePages=8192
LogType=CIRCULAR
LogBufferPages=17
LogPath=/var/mqm/log/QMMQIP01/
LogWriteIntegrity=TripleWrite
7.) Delete the Dummy qmgr and restart the production qmgr.
$ dltmqm DUMMY
$ strmqm queue-manager-name
Hope, this helps |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Aug 19, 2008 5:26 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
unsupported by IBM, although it may work.
Your better off just backing up the QM definitions with MS03, deleting the QM and recreating it with the correct size logs. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bkRaju |
Posted: Mon Aug 25, 2008 2:13 am Post subject: |
|
|
Centurion
Joined: 19 Aug 2008 Posts: 106
|
Thanks Peter.I have opted for second one. |
|
Back to top |
|
 |
kingsean |
Posted: Wed Sep 10, 2008 8:58 pm Post subject: thats right |
|
|
Novice
Joined: 10 Sep 2008 Posts: 14
|
|
Back to top |
|
 |
csmith28 |
Posted: Mon Sep 22, 2008 5:00 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Jeevan's suggestions will work if implemented properly but like Peter says, it's not supported and if you admit to doing it Jeevan's way and there is a problem afterward IBM may just refuse to support you in trying to fix it even though you will find that process as a sollution to problems of this nature in the IBM Support Search database.
I guess it depends on who answers the phone @ IBM.  _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 22, 2008 7:50 pm Post subject: Re: Alter qmgr LogPrimaryFiles ,LogFilePages and LogPath |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Let's back up a little
kjreddy wrote: |
How to alter LogPrimaryFiles ,LogFilePages and LogPath for already created queuemanager ? |
In fact only LogFilePages requires that you recreate the queue manager.
For all other changes the qmgr should be stopped.
Modify the # of primary/secondary logfiles, modify the LogPath and move the files accordingly, do not IIRC need you to recreate the queue manager. Just be sure you have it stopped while you move the logs and change the log stanza. Restart the qmgr and it should now conform to the new rules.
However as previously stated, changing the logfile size, will mandate a delete and recreate of the qmgr.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jeevan |
Posted: Tue Sep 23, 2008 12:33 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
csmith28 wrote: |
Jeevan's suggestions will work if implemented properly but like Peter says, it's not supported and if you admit to doing it Jeevan's way and there is a problem afterward IBM may just refuse to support you in trying to fix it even though you will find that process as a sollution to problems of this nature in the IBM Support Search database.
I guess it depends on who answers the phone @ IBM.  |
When we would like to change the log setting this way, we should be ready to redo the whole thing as things may go wrong. We recently haev had this incident.
One of our production queue manager needed changes in its log setup. We planned to do this way instead of doing whole. I prepared required log files and control file. We tested this on test a few times and have prepared steps to be followed. My colleague who was on call that day. when he implemented it, it did not work. However, we had a script for queue manager creation, latest definitions of mq objects, script for security implementation, and he knew all the sender receiver channels. He recreated the queue manager, all mq objects and restarted the sender channel and sender channels to this queue maanger, everything went well.
The learning to me is, when we are plannign to do this, we have to be ready to recreate and setup the whole qmgr.
Last edited by jeevan on Tue Sep 23, 2008 12:44 pm; edited 4 times in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Sep 23, 2008 12:39 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
A plan is just a plan. A plan cannot anticipate all contingencies. Once we begin to execute the plan, variations from the plan are the norm, not the exception.
When someone says (laments) that I tried it, and it didn't work, they have confirmed the above. _________________ 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|