ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Queue Manager Recovery and Restart

Post new topic  Reply to topic
 Queue Manager Recovery and Restart « View previous topic :: View next topic » 
Author Message
pshan81
PostPosted: Mon Dec 22, 2008 3:30 am    Post subject: Queue Manager Recovery and Restart Reply with quote

Acolyte

Joined: 24 May 2005
Posts: 72

Hi,

I have observed the below behaviour of the qmgr while working out recovery and restart mechanisms.

1) Able to recover a corrupted/deleted queue file using rcrmqobj command even without using rcdmqimg for the queue (All the persistent messages were restored)

When is rcdmqimg really useful? Any instances where media images need to be recorded manually?

2) rcdmqimg applies to all MQ objects like qmgr,queue,channel,services etc.However, rcrmqobj command doesnot accept the type qmgr.Even the below command recovers all objects except qmgr.Why?

rcrmqobj -m QMGR -t all *

3) The corrupted qmgr file is restored after restarting the qmgr.Is it an example of how Websphere MQ automatically recovers some objects from their media image?Any other instances where Websphere MQ does this automatic recovery?

Thanks a lot
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 22, 2008 3:47 am    Post subject: Re: Queue Manager Recovery and Restart Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

pshan81 wrote:
1) Able to recover a corrupted/deleted queue file using rcrmqobj command even without using rcdmqimg for the queue (All the persistent messages were restored)

When is rcdmqimg really useful? Any instances where media images need to be recorded manually?


rcdmqimg records the object definitions (the queues themselves) not the messages. Persistent messages are logged automatically under all circumstances. You'd use rcdmqimg where you're using linear logging for recovery. This is a documented thing.

pshan81 wrote:
2) rcdmqimg applies to all MQ objects like qmgr,queue,channel,services etc.However, rcrmqobj command doesnot accept the type qmgr.Even the below command recovers all objects except qmgr.Why?


Because a queue manager is a discrete object which owns the logs. If the queue manager (which is just a set of processes) was corrupt, what would run the logs forward and restore the objects?

pshan81 wrote:
3) The corrupted qmgr file is restored after restarting the qmgr.Is it an example of how Websphere MQ automatically recovers some objects from their media image?Any other instances where Websphere MQ does this automatic recovery?


As documented.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Dec 22, 2008 4:25 am    Post subject: Re: Queue Manager Recovery and Restart Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

pshan81 wrote:
When is rcdmqimg really useful? Any instances where media images need to be recorded manually?


To expand on Vitor's comment, it's useful for 'moving' the first checkpoint log needed for media recovery to a later log in the chain, which can make log management easier.
_________________
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
View user's profile Send private message
Sam Uppu
PostPosted: Tue Dec 23, 2008 8:16 am    Post subject: Re: Queue Manager Recovery and Restart Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Vitor wrote:
pshan81 wrote:
1) Able to recover a corrupted/deleted queue file using rcrmqobj command even without using rcdmqimg for the queue (All the persistent messages were restored)

When is rcdmqimg really useful? Any instances where media images need to be recorded manually?


rcdmqimg records the object definitions (the queues themselves) not the messages. Persistent messages are logged automatically under all circumstances. You'd use rcdmqimg where you're using linear logging for recovery. This is a documented thing.

pshan81 wrote:
2) rcdmqimg applies to all MQ objects like qmgr,queue,channel,services etc.However, rcrmqobj command doesnot accept the type qmgr.Even the below command recovers all objects except qmgr.Why?


Because a queue manager is a discrete object which owns the logs. If the queue manager (which is just a set of processes) was corrupt, what would run the logs forward and restore the objects?

pshan81 wrote:
3) The corrupted qmgr file is restored after restarting the qmgr.Is it an example of how Websphere MQ automatically recovers some objects from their media image?Any other instances where Websphere MQ does this automatic recovery?


As documented.


Is there any advantage of using 'rcdmqimg' command than using saveqmgr script. Is there any advantage of using 'rcdmqimg'?. I know that the saveqmgr can be used for both linear and circular and rcdmqimg is used only for linear.

I believe when we use 'rcdmqimg' will recover the msgs from linear logs after recovering which wont happen with restoring from saveqmgr file. plz correct/ confirm.

Thanks for clearing my confusion.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Dec 23, 2008 8:24 am    Post subject: Re: Queue Manager Recovery and Restart Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Sam Uppu wrote:
Is there any advantage of using 'rcdmqimg' command than using saveqmgr script. Is there any advantage of using 'rcdmqimg'?. I know that the saveqmgr can be used for both linear and circular and rcdmqimg is used only for linear.

I believe when we use 'rcdmqimg' will recover the msgs from linear logs after recovering which wont happen with restoring from saveqmgr file. plz correct/ confirm.

Thanks for clearing my confusion.


Already covered in Vitor's and my earlier post...
_________________
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
View user's profile Send private message
mqjeff
PostPosted: Tue Dec 23, 2008 11:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Saveqmgr does absolutely nothing with the logfiles.

This is why it doesn't care if they are linear or circular.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Queue Manager Recovery and Restart
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.