Author |
Message
|
aditya.aggarwal |
Posted: Wed Jun 24, 2009 3:06 am Post subject: Corrupt Circular Log File |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Hi,
Is there any way to recover a corrupted circular log file? I do not have the backup of /var/mqm.
Cheers,
Aditya |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 24, 2009 3:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You need to build another set of logs. A search of the forum will turn up this procedure _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
exerk |
Posted: Wed Jun 24, 2009 3:31 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Create another queue manager with exactly the same logging parameters of the old one, then copy the logs and lfh file over your existing queue manager logs. I'm sure it's in one of the manuals somewhere, but I don't have time to look. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Wed Jun 24, 2009 6:15 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Thanks exerk
i will try this solution
Best Regards,
Aditya |
|
Back to top |
|
 |
exerk |
Posted: Wed Jun 24, 2009 6:23 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I also strongly suggest you follow Vitor's advice, because there will be a wealth of extra information. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Sat Jun 27, 2009 7:00 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Hi Vitor/Exerk,
I have searched the forum and performed below steps to recover the corrupt log file.
Step 1: Create a queue manager "DUMMY" With same parameters of the failed queue manager "IMT1"
Step 2: Copy the Active logs and log control file from Dummy queue manager
Step 3: Paste the Active log files and log control file in to failed queue manager "IMT1" active log directory.
Step 4: Start the queue manager "IMT1" : strmqm -c -z TEST
I am getting the same error while starting the queue manager again which i was getting before.
AMQ7017: Log not available
where i am going wrong in doing this? i do not want to recrate this queue manager and it is a Test queue manager so i have some time to resolve this issue.
Cheers,
Aditya |
|
Back to top |
|
 |
Vitor |
Posted: Sat Jun 27, 2009 12:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aditya.aggarwal wrote: |
Step 4: Start the queue manager "IMT1" : strmqm -c -z TEST |
Why is this not strmqm -c IMT1? Specifically:
- Why use the name of the spurious queue manager when trying to start the failed one?
- Why use the -z flag to suppress error messages when it's clearly critical to find out what's going on?
aditya.aggarwal wrote: |
i do not want to recrate this queue manager and it is a Test queue manager so i have some time to resolve this issue.
|
Do bear in mind this entire proceedure is an unsupported hack, with no guarantee of success. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Sun Jun 28, 2009 2:04 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Hi Vitor,
It was IMt1 only...by mistake i have copy and pasted other queue manager o/p facing the same problem...
Cheers,
Aditya |
|
Back to top |
|
 |
Vitor |
Posted: Sun Jun 28, 2009 9:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aditya.aggarwal wrote: |
other queue manager o/p facing the same problem... |
What other queue manager? Did these new log files come from another queue manager with a problem? How many queue managers have this problem and does this indicate a pattern?
And why didn't you answer my question about the flag? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Sun Jun 28, 2009 10:10 pm Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Vitor Wrote:
Quote: |
Quote: |
aditya.aggarwal wrote:
other queue manager o/p facing the same problem... |
What other queue manager? Did these new log files come from another queue manager with a problem? How many queue managers have this problem and does this indicate a pattern?
And why didn't you answer my question about the flag? |
The other queue manager name is "TEST".. new log files come from the new queue manager "DUMMY"...Two queue managers [mqv7.0] on windows have this problem...for both queue managers Active log file is missing.
I should not use the -z flag while starting the queue manager. now i am using strmqm -c IMT1
but getting the same error.
Cheers,
Aditya |
|
Back to top |
|
 |
Vitor |
Posted: Sun Jun 28, 2009 11:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aditya.aggarwal wrote: |
Two queue managers [mqv7.0] on windows have this problem...for both queue managers Active log file is missing.
....
I should not use the -z flag while starting the queue manager. now i am using strmqm -c IMT1
but getting the same error. |
And no other useful errors now the -z has been removed?
Sounds like PMR time to me. Once you've satisfied yourself nothing unfortunate is being done to the Windows box by misguided but well meaning people. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vchenna |
Posted: Thu Jul 02, 2009 9:46 am Post subject: Procedure to Build Logs- Its nothing but a cold start |
|
|
Novice
Joined: 29 Jun 2009 Posts: 18
|
Follow these step to rebuild the logs:
1. Record the logging parameters of the failed queue manager by checking .../qmgrs/<qmgr>/qm.ini. These parameters include the type, number, and size and location of the log files.
2. Create a queue manager called TEMP with identical logging parameters.
3. cd to the queue manager logs directory.
4. Rename the logs directory for the existing queue manager to <qmgr>_old.
5. Rename the TEMP directory to the name of the existing queue manager.
6. cd to …/qmgrs/<qmgr>/
7. Rename the existing queue manager's checkpoint file, amqalchk.fil, to amqalchk.fil_old
8. cd to …/qmgrs/TEMP
9. Copy amqalchk.fil from the TEMP queue manager to the existing queue manager.
10. Delete the TEMP queue manager by running dltmqm TEMP (you will get an error about missing logs)
11. Start the existing queue manager.
12. After the queue manager is verified, cleanup the system by deleting amqalchk.fil_old and <qmgr>_old |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 02, 2009 10:32 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
by mistake i have copy and pasted |
Quote: |
logging parameters of the failed queue manager by checking .../qmgrs/<qmgr>/qm.ini |
From the copy/paste comment, I'm guessing the platform is windows, so no qm.ini file. _________________ 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 |
|
 |
vchenna |
Posted: Thu Jul 02, 2009 10:42 am Post subject: Please Follow the Steps On your server |
|
|
Novice
Joined: 29 Jun 2009 Posts: 18
|
Please Follow the Steps On your server to create the logs |
|
Back to top |
|
 |
exerk |
Posted: Thu Jul 02, 2009 12:47 pm Post subject: Re: Please Follow the Steps On your server |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
vchenna wrote: |
Please Follow the Steps On your server to create the logs |
As with your previous post, nicely quoted from the manual... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|