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 Discussion » How can I back up an MQ server without sender channel stop?

Post new topic  Reply to topic
 How can I back up an MQ server without sender channel stop? « View previous topic :: View next topic » 
Author Message
JYama
PostPosted: Wed Nov 16, 2005 5:49 pm    Post subject: How can I back up an MQ server without sender channel stop? Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Hi all,

I have an MQ server on AIX v5.3 which dispatches messeges to another system.

One of my clients requires not to stop sender channels on client machines during the server's backup.

In other words, the client wants to back up the server without any operations on the client machines.

One possibility may be to stop receiver channels on the server,
but I know MQ channels don't immediately stop in this case.

Does anybody have a good idea or experience in similar situations?


Many Thanks in Advance,
JYama
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Nov 16, 2005 6:20 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
One possibility may be to stop receiver channels on the server,

Not enough. You cannot back up a running Queue Manage, except for z/OS.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
JYama
PostPosted: Wed Nov 16, 2005 6:39 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Quote:
Not enough. You cannot back up a running Queue Manage, except for z/OS.


Thank you very much for your reply.

Sorry, my explanation was not enough.

What I meant was that
1) stop all 'receiver' channels on the server
2) issue enemqm to stop the QMgrs
3) issue endmqlsr to stop MQ listeners
and then,
4) back up MQ system (such as /var/mqm/*)

In general, in my understanding, this kind of backup should be done as a planned maintenance, which means all sender channels are stopped in advance before the backup.

However, in my situation, it's difficult to stop sender channels because of user requirements.

So I'd like to know a way to back up the server under this kind of situaiton.

Thanx,
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Nov 16, 2005 6:47 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Well, if all you want to do is backup the MQManager Objects you can download the MS03 (saveqmgr) support pack from IBM's website.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
JYama
PostPosted: Wed Nov 16, 2005 7:16 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Quote:
Well, if all you want to do is backup the MQManager Objects you can download the MS03 (saveqmgr) support pack from IBM's website.


I appreciate for your information.

Well then, one problem is that I have WBI Message Brokers.
The backup includes both MQSeries(ex. /var/mqm) and Message Broker(ex. /var/mqsi).

Cheers,
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Nov 16, 2005 7:50 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
However, in my situation, it's difficult to stop sender channels because of user requirements.

Don't bother. MQ will still shut down with Sender channels connected. These channels will then go into a Retry state until you re-start the QM.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
JYama
PostPosted: Wed Nov 16, 2005 8:19 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Quote:
MQ will still shut down with Sender channels connected. These channels will then go into a Retry state until you re-start the QM.


Well, I carefully considered it but I noticed that there was uncertain and delicate timing.
If a message comes into the QMgr during the shtting down process on the server, the message will be saved into its backup image (of curse, it depends on the timing, which is delicate).

In the future, when the backup image is restored, this 'old' message will come back again!!

I'd like to remove this risk.
Back to top
View user's profile Send private message
jsware
PostPosted: Wed Nov 16, 2005 11:16 pm    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

Quote:
Well, I carefully considered it but I noticed that there was uncertain and delicate timing.
If a message comes into the QMgr during the shtting down process on the server, the message will be saved into its backup image (of curse, it depends on the timing, which is delicate).

In the future, when the backup image is restored, this 'old' message will come back again!!


Backing up a Queue Manager and then restoring it again after it has been restarted and processed messages will result in those persistent messages that were on a queue being restored. For example:

Message arrives; you shutdown MQ; you back it up; you start MQ; message gets processed; you shutdown MQ; you restore backup; you startup MQ; message is back!

Also consider: You shutdown MQ; back it up; restart; message arrives; shutdown MQ; restore backup; restart MQ; Message is gone!!

This kind of scenario can be protected against by using linear logs.

It might help for you to explain what problem you are trying to solve rather than trying to explain how far you have got trying to solve your problem. For example, as a previous reply said, if you just want to save the queue manager configuration, then MS03 saveqmgr script will do the job without stopping the queue manager (we run a saveqmgr against each qmgr in test & production and check any changes into our version control system every night).

HTH
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
JYama
PostPosted: Wed Nov 16, 2005 11:48 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Thank you for your info, John.

I'm using WBI Message Broker V5 and MQ V5.3(using linear logging) on AIX and what I want to do is to back up the system for future disaster recovery.

What I'm trying to do is to make static backup image of MQ & MB without stopping MQ sender channels.

I know, to make a static backup image of MQ and WBIMB, both of them should be stopped(ex. endmqm, mqsistop, etc.) before backing up.

Thanx,


Last edited by JYama on Thu Nov 17, 2005 2:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Tibor
PostPosted: Thu Nov 17, 2005 2:27 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Perhaps an interesting information in this topic: we are on the hype with the concept of backup queue manager introduced in v6. It seems very useful in particular configurations... as the poor-man's-standby-solution

Tibor
Back to top
View user's profile Send private message
jsware
PostPosted: Fri Nov 18, 2005 4:59 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

Quote:
I'm using WBI Message Broker V5 and MQ V5.3(using linear logging) on AIX and what I want to do is to back up the system for future disaster recovery.


You can stop the msg broker & MQ and then perform a backup of the relevant filesystems/directories. Sender channels on remote hosts will go into retry and reconnect when you've restarted MQ.

However, if you don't need to recover messages that may be "in flight" between applications and thus will get restored then you can use MS03 (saveqmgr) to save the queue manager configuration while it is still running.
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 18, 2005 10:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

if you run with linear logging you can take an image anytime.
(rcdmqimg)
Back to top
View user's profile Send private message Send e-mail
JYama
PostPosted: Mon Nov 28, 2005 11:40 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 281

Thank you very much for replies.
I really appreciate it.

Well, if I have only QMgrs, I agree that using MS03(saveqmgr) is a good idea, which enables to extract MQ definitions from QMgrs without stopping the QMgrs, but one problem is WBIMB. I need its static image(ex. /var/mqsi/*) at the same time.

Technically speaking, I'm sure that there are several possible ways to backup/recover the system, but I adopted it this time that we stop sender channels before backup, stop Brokers/QMgrs, and then save its static image, which is simple and easy (and also safe) to understand for system operators.
(We negotiated with our clients to change their requirement to adopt this easy backup/recovery.)


Cheers,
JYAMA
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 Discussion » How can I back up an MQ server without sender channel stop?
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.