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 » Active log deletion

Post new topic  Reply to topic
 Active log deletion « View previous topic :: View next topic » 
Author Message
guest468
PostPosted: Mon Aug 10, 2009 6:20 am    Post subject: Active log deletion Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

Hi Guys,
I was trying to understand what would happen to inflight messages if an active log file which is being presently being used(modified) by the qmgr is deleted. What are the chances of message loss?
I am not even sure if the QMGR is still technically active or shutdown (though I could see many processes still running)
Thanks,
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Aug 10, 2009 6:27 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

From what I can remember, deleting active logs will not necessarily bring down a queue manager, but restarting it after shut down, or pre-emptive shut-down is a non-starter.

Play with a crash-and-burn queue manager to verify the above, but I'm sure someone will be along in a bit to expand on the above.
_________________
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
Vitor
PostPosted: Mon Aug 10, 2009 6:44 am    Post subject: Reply with quote

Grand High Poobah

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

The messages should still be in a q file (subject to persistence and other considerations) but the integrity of the queue manager will be compromised.

If the file's being modified then it's good odds the queue manager was running. Note that from the inside, a queue manager is just many processes running (i.e., there isn't a qmgr.exe)

OS security is the way to go here; prevention better than cure and all that. If you take up the suggestion of my most worthy associate and try it someplace do post what actually happens.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
guest468
PostPosted: Mon Aug 10, 2009 7:43 am    Post subject: Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

q file is fine. I am interested in the fate of in-flight messages. (and I am talking about persistent messages only)
btw, I am not sure how you can restrict access to active logs from OS side? mqm user does need write access there. And I am not aware of doing mq admin outside of that user/group.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 10, 2009 8:39 am    Post subject: Reply with quote

Grand High Poobah

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

guest468 wrote:
q file is fine. I am interested in the fate of in-flight messages. (and I am talking about persistent messages only)


Persistent in-flight messages will still be in a source queue file until the UOW is committed.

guest468 wrote:
btw, I am not sure how you can restrict access to active logs from OS side? mqm user does need write access there. And I am not aware of doing mq admin outside of that user/group.


Then you're on exactly the right method. Some sites in my experience open up this path to a wider group who may not entirely understand the significance.

Of course, it remains important to restrict membership of the mq admin group to trained people. Or at least people who think before deleting stuff.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Aug 10, 2009 9:18 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Vitor wrote:
guest468 wrote:
q file is fine. I am interested in the fate of in-flight messages. (and I am talking about persistent messages only)


Persistent in-flight messages will still be in a source queue file until the UOW is committed.

The real question being will the MQCMIT call (or MQBACK call) work if the MQ Logs are gone.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 10, 2009 9:24 am    Post subject: Reply with quote

Grand High Poobah

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

PeterPotkay wrote:
Vitor wrote:
guest468 wrote:
q file is fine. I am interested in the fate of in-flight messages. (and I am talking about persistent messages only)


Persistent in-flight messages will still be in a source queue file until the UOW is committed.

The real question being will the MQCMIT call (or MQBACK call) work if the MQ Logs are gone.


Hence the message will stay in the queue file....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Aug 10, 2009 5:09 pm    Post subject: Re: Active log deletion Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

guest468 wrote:
Hi Guys,
I was trying to understand what would happen to inflight messages if an active log file which is being presently being used(modified) by the qmgr is deleted. What are the chances of message loss?
I am not even sure if the QMGR is still technically active or shutdown (though I could see many processes still running)
Thanks,


The line of discussion in replies follows the apparent behaviour of MQ, but the bottom line is that the integrity of MQ will be compromised by deleting any active log file. So don't do it, and prepare for DR if it does happen.
_________________
Glenn
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 » Active log deletion
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.