Author |
Message
|
manojsu |
Posted: Sat Oct 14, 2006 1:51 am Post subject: Deletion of log files |
|
|
Centurion
Joined: 19 Jul 2006 Posts: 147 Location: Bangalore
|
Hello All,
I accidentally deleted my logfiles, and havent taken any back up, and when trying to restart its checking for the logfiles..
Getting the below error..
****************************************
* Command: amqmdain qmgr start BKQM1
****************************************
WebSphere MQ queue manager 'BKQM1' starting.
WebSphere MQ was unable to display an error message 893.
exitvalue = 71
Please suggest a solution as its my brokers Queue Manager..
The reason I did it was, I had enables Circular Logging for my Brokers Queue Manager, but when deploying i was getting error as brokers log was full.. |
|
Back to top |
|
 |
wschutz |
Posted: Sat Oct 14, 2006 2:45 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Search this site for the words "cold start" ... good luck. _________________ -wayne |
|
Back to top |
|
 |
manojsu |
Posted: Sat Oct 14, 2006 8:03 pm Post subject: |
|
|
Centurion
Joined: 19 Jul 2006 Posts: 147 Location: Bangalore
|
Searched, dint fine anytthing, ppl have reported probs for error code 893, but for diff reasons.
Please let me know of any solutions/suggestions |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Oct 15, 2006 4:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
The supported solution is delete and recreate the qmgr.
The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jeevan |
Posted: Sun Oct 15, 2006 6:32 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Quote: |
The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)
|
I think, the name of the queue manager does not matter. But remember, the log specification has to be the same.
-[lc :ll], lp, ls, -lf
Once the new queue manager is created, copy the log directory of the newly created queue manager in place of the log directory of you queue manager. Restart it. I should work. |
|
Back to top |
|
 |
jeevan |
Posted: Sun Oct 15, 2006 6:35 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Quote: |
The unsupported solution is create a qmgr with the same name on the a different machine (same platform) and copy the logfiles (full directories and files under /var/mqm/log/<qmgr>)
|
I think, the name of the queue manager does not matter. But remember, the log specification has to be the same.
-[lc :ll], lp, ls, -lf
Once the new queue manager is created, copy the log directory of the newly created queue manager in place of the log directory of you queue manager. Restart it. It should work. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Oct 15, 2006 10:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I believe the name of the qmgr does matter,... but then I never tested the fact... _________________ MQ & Broker admin |
|
Back to top |
|
 |
jeevan |
Posted: Sun Oct 15, 2006 2:47 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Quote: |
I believe the name of the qmgr does matter,... but then I never tested the fact...
|
I have done once. As remember, I created a temp queue manager which can be done in the same system. But what matters is the specification of the log as I mentioned. |
|
Back to top |
|
 |
Gaya3 |
Posted: Sun Oct 15, 2006 6:29 pm Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi,
The below is the cold start procedure...
This procedure Works fine....but its not supported by IBM (this is the worst case) (but no other way....to get it work)
Recreate queue manager's logs using a 'cold start' procedure as shown bellow:
• Log in as someone in the 'mqm' group.
• Record the logging parameters of the failing queue manager by checking '/var/mqm/qmgrs/OLDQMGR/qm.ini'. These parameters include the type, number, and size of the log files.
• Create a queue manager called 'TEMP' with identical logging parameters. For example, 'crtmqm TEMP' will create a new queue manager with the default size and number of circular logs.
• Type 'cd /var/mqm/log'.
• Type 'ls -l'. You should see subdirectories for each of your queue managers, including the new 'TEMP' queue manager.
• Type 'rm -rf OLDQMGR'. Note: It is always good practice to backup the /var/mqm/log/'OLDQMGR' directory prior to deleting it.
• Type 'mv TEMP OLDQMGR'.
• Copy the 'amqalchk.fil' checkpoint file from the new to the old queue manager.
• Type 'dltmqm TEMP' to remove the new queue manager.
• Type 'strmqm OLDQMGR' to restart your original queue manager.
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|