Author |
Message
|
nabulou |
Posted: Mon Jan 12, 2004 1:47 am Post subject: Change from Circular to Linear |
|
|
Newbie
Joined: 02 Jun 2003 Posts: 8
|
Is it possible to change from circular to linear logging on AIX without rebuilding the queue manager? How do I do this? |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Jan 12, 2004 1:51 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
mrlinux |
Posted: Mon Jan 12, 2004 8:52 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
There is a way you can depending on MQSeries version.
Warning: This procedure isnt supported by IBM
Make BACKUPS !!!! and Try on a test machine first.
v5.2 or older you can do the following.
1) on seperate AIX box create qmgr with same name and the log settings
you want.
2) on AIX box with Circ logging stop qmgr,
move the /var/mqm/log/QMGR_NAME dir to /var/mqm/log/QMGR_NAME.old
3) Copy the Liners logs from the other AIX system to /var/mqm/log/QMGR_NAME on the CIRC logging.
4) edit /var/mqs.ini and chage the Logging parms.
5) Start the qmgr. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Jan 12, 2004 9:08 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Jeff,
when would you use such a procedure?
On a development/test box, ok... but then recreating should be a piece of cake using saveqmgr and saving authorities
On a production box... I would not...
Michael |
|
Back to top |
|
 |
mrlinux |
Posted: Mon Jan 12, 2004 9:22 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well I have used it in production for other things. With earlier versions
of MQSeries we had a lot of crashes that corrupted the logs for our production qmgr, the qmgr wouldnt restart, so I would recreate a set of clean logs and move them into place so that I could get the qmgr restarted and running. Rebuilding the qmqr wasnt an option if you have data that needs to be saved. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
JasonE |
Posted: Mon Jan 12, 2004 2:59 pm Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
At 5.3 this proceedure is a lot less likely to 'save data' than previous releases, as internal changes make this more and more dangerous over time. Of course, if its a choice between completely lost data and probably lost data, I can understand trying it, but with the exception of times when the logs are severely damaged this can cause a lot more harm than it solves.
I would believe any time the logs are corrupted and the qmgr wont start is a problem IBM ought to look at, user-error (deleting the wrong logs etc) excepting. |
|
Back to top |
|
 |
mrlinux |
Posted: Mon Jan 12, 2004 8:16 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well Jason, I got this proccedure from IBM to recover from qmgr crashes, of course it was more v5.0 and v5.1 _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
JasonE |
Posted: Tue Jan 13, 2004 1:42 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Yep, I know - cold start proceedure used to be used (and required to recover sometimes)... But we are trying very hard to change peoples habits of doing this nowdays, because as I said, over time the chances of having a non-damaged queue on the disk after doing this proceedure are reducing, esp at 5.3. |
|
Back to top |
|
 |
|