Author |
Message
|
jim |
Posted: Tue Nov 26, 2013 2:10 pm Post subject: Recovery of damged object |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
How to recover a damaged system MQ object in linear logging But the backup log required for the recovery is not stored.
Folks Could you please advice on it. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 26, 2013 2:38 pm Post subject: Re: Recovery of damged object |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
jim wrote: |
How to recover a damaged system MQ object in linear logging But the backup log required for the recovery is not stored. |
Do you mean that the linear log file needed for the restore (and indicated by the queue manager in the log) has been removed?
jim wrote: |
Folks Could you please advice on it. |
Find the missing file. It's as easy as that. Look on system level backups. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 26, 2013 2:39 pm Post subject: Re: Recovery of damged object |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jim wrote: |
How to recover a damaged system MQ object in linear logging But the backup log required for the recovery is not stored.
Folks Could you please advice on it. |
Care to explain the part saying: but the backup log required for the recovery is not stored? How do you do archiving of the linear logs?
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jim |
Posted: Tue Nov 26, 2013 2:45 pm Post subject: Re: Recovery of damged object |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
Vitor wrote: |
jim wrote: |
How to recover a damaged system MQ object in linear logging But the backup log required for the recovery is not stored. |
Do you mean that the linear log file needed for the restore (and indicated by the queue manager in the log) has been removed?
yes
jim wrote: |
Folks Could you please advice on it. |
Find the missing file. It's as easy as that. Look on system level backups. |
can we recreate the damage object |
|
Back to top |
|
 |
jim |
Posted: Tue Nov 26, 2013 2:53 pm Post subject: Re: Recovery of damged object |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
fjb_saper wrote: |
jim wrote: |
How to recover a damaged system MQ object in linear logging But the backup log required for the recovery is not stored.
Folks Could you please advice on it. |
Care to explain the part saying: but the backup log required for the recovery is not stored? How do you do archiving of the linear logs?
Have fun  |
We take the backup of the logs but script automatically remove the logs after 3 days |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 26, 2013 4:17 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Delete the object; then redefine it. _________________ 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 |
|
 |
jim |
Posted: Tue Nov 26, 2013 4:32 pm Post subject: |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
bruce2359 wrote: |
Delete the object; then redefine it. |
or
Which is the better option
To start the Queue manager with strmqm -c QMGR or redefine the queue.
Kindly advice on it.  |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 26, 2013 5:42 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Did you read the syntax to see exactly what the -c switch would do for/to you:
Quote: |
-c
Start of change Starts the queue manager, redefines the default and system objects, then stops the queue manager. Any existing system and default objects belonging to the queue manager are replaced if you specify this flag, and any non-default system object values will be reset (for example, the value of MCAUSER is set to blank). |
Are you saying that one of your SYSTEM. objects become corrupted? _________________ 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 |
|
 |
gbaddeley |
Posted: Tue Nov 26, 2013 7:32 pm Post subject: Re: Recovery of damged object |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Quote: |
We take the backup of the logs but script automatically remove the logs after 3 days |
Linear log files should be removed when messages in the MQ error log say that they are no longer required for media recovery, not after any number of days. _________________ Glenn |
|
Back to top |
|
 |
jim |
Posted: Wed Nov 27, 2013 4:23 am Post subject: |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
bruce2359 wrote: |
Did you read the syntax to see exactly what the -c switch would do for/to you:
Quote: |
-c
Start of change Starts the queue manager, redefines the default and system objects, then stops the queue manager. Any existing system and default objects belonging to the queue manager are replaced if you specify this flag, and any non-default system object values will be reset (for example, the value of MCAUSER is set to blank). |
Are you saying that one of your SYSTEM. objects become corrupted? |
yes. system object got corrupted.
If we use the -c flag it will reset non-default system object values.
Then I guess we should not go for it in critical env 
Last edited by jim on Wed Nov 27, 2013 4:28 am; edited 1 time in total |
|
Back to top |
|
 |
jim |
Posted: Wed Nov 27, 2013 4:25 am Post subject: Re: Recovery of damged object |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
gbaddeley wrote: |
Quote: |
We take the backup of the logs but script automatically remove the logs after 3 days |
Linear log files should be removed when messages in the MQ error log say that they are no longer required for media recovery, not after any number of days. |
yes we do archiving of the log using the error log and the backup log is deleted after 3 day |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 27, 2013 6:11 am Post subject: Re: Recovery of damged object |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jim wrote: |
yes we do archiving of the log using the error log and the backup log is deleted after 3 day |
Wrong. You need to use one of the support packs for archiving linear logs. Look at support pack MS0L...
No wonder nothing works if you arbitrarily delete logs after x days. Do you run rcdmqimg regularly?
Methinks you need to review in the documentation how linear logs work.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
jim |
Posted: Wed Nov 27, 2013 6:39 am Post subject: Re: Recovery of damged object |
|
|
Voyager
Joined: 26 Nov 2013 Posts: 94
|
fjb_saper wrote: |
jim wrote: |
yes we do archiving of the log using the error log and the backup log is deleted after 3 day |
Wrong. You need to use one of the support packs for archiving linear logs. Look at support pack MS0L...
No wonder nothing works if you arbitrarily delete logs after x days. Do you run rcdmqimg regularly?
Methinks you need to review in the documentation how linear logs work.
 |
Archiving are done by taking BACKUP of the Queue Manager Log Files that are no longer needed for recovery using AMQ7467 or AMQ7468 but script delete the BACKUP LOGS after 3 days.
If we use the -c flag it will reset non-default system object values. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Nov 27, 2013 6:51 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Exactly which SYSTEM. object? What are you using it for?
SYSTEM. objects are used mostly as templates for creation of non-system (user) objects. _________________ 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 |
|
 |
JosephGramig |
Posted: Wed Nov 27, 2013 7:11 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
The strmqm -c will try to REPLACE the object and will fail because the object is damaged. Delete it and redefine it. Do a SAVEQMGR on another Qmgr to get the syntax if you need.
Then do as fjb_saper told you to do and use the sPac to do the backup correctly. The fact that a required log is missing at a time of need indicates whatever you are doing is incorrect. |
|
Back to top |
|
 |
|