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 » WebSphere Message Broker (ACE) Support » Steps to restart the broker during maintenance activity.

Post new topic  Reply to topic
 Steps to restart the broker during maintenance activity. « View previous topic :: View next topic » 
Author Message
punky
PostPosted: Wed Jun 27, 2012 9:39 pm    Post subject: Steps to restart the broker during maintenance activity. Reply with quote

Apprentice

Joined: 26 May 2011
Posts: 44
Location: India

Hi all,

Require your help to understand the sequence of steps to be followed to restart the broker during maintenance activity on production server.

Please correct me if I am wrong:
1. Stop the message flows.
2. Stop the database server.
3. Stop the Broker.
4. Start the Broker.
5. Start the database server
6. Start the message flow.



Regards,
Punky
Back to top
View user's profile Send private message Visit poster's website
marko.pitkanen
PostPosted: Wed Jun 27, 2012 10:29 pm    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi punky,

What is your broker version?
Why do you want to let broker be running without database server?
What about WMQ on which broker is running?


--
Marko
Back to top
View user's profile Send private message Visit poster's website
punky
PostPosted: Wed Jun 27, 2012 11:37 pm    Post subject: Reply with quote

Apprentice

Joined: 26 May 2011
Posts: 44
Location: India

Quote:
What is your broker version?

The broker version is 7.0

I just wanted to know because the steps followed by the team is:

Stop message flow.
Start message flow.
Stop database server.
Stop Broker.
Start database server.
Start Broker.

but there were few outbound IDOCS which showed the status as 41 and still did not reach the destination.

I am investigating the issue.
There was no record in the database table as the database was down.

Regards,
Punky
Back to top
View user's profile Send private message Visit poster's website
aravind703
PostPosted: Thu Jun 28, 2012 6:03 am    Post subject: @ punlu Reply with quote

Apprentice

Joined: 24 Sep 2011
Posts: 29

I am assuming


mqsireload Broker_name -e Execution_Group_Name should do the broker restart for you.

If you are having different applications running on different Execution Groups, why to stop the broker for one application. Unless there
is a real need to stop broker, it is not recomended to stop broker .

To check if a broker is connected to database use mqsicvp Broker_name -n Data_Source_Name


Last edited by aravind703 on Thu Jun 28, 2012 11:57 am; edited 2 times in total
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jun 28, 2012 9:46 am    Post subject: Re: @ punlu Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

aravind703 wrote:
I am assuming


mqsireload Broker_name -e Execution_Group_Name should do the broker restart for you.

If you are having different applications running on different Execution Groups, why to stop the broker for one application. Unless there
is a real need to stop broker, it is not recomended to stop broker .

To check if a broker is connected to database use mqsicvp Broker_name -n Data_Source_Name


Really?

Quote:

Use the mqsireload command to request the broker to stop and restart execution groups.



Granted that not specifying the Execution Group will stop and restart the broker BUT that is not what the OP was asking about.

As for the 'mqsicvp' command,

Quote:

The mqsicvp command:

Checks that the broker environment is set up correctly; for example, that the installed level of Java is supported.

It does not check to see if the broker IS CURRENTLY connected to a DB but can be used to validate that the broker CAN be connected to a DB. There is a subtle difference.

Please don't shout like that. It is impolite.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
aravind703
PostPosted: Thu Jun 28, 2012 11:50 am    Post subject: @ smdavies99 Reply with quote

Apprentice

Joined: 24 Sep 2011
Posts: 29

smdavies99 wrote:
aravind703 wrote:
I am assuming


mqsireload Broker_name -e Execution_Group_Name should do the broker restart for you.

If you are having different applications running on different Execution Groups, why to stop the broker for one application. Unless there
is a real need to stop broker, it is not recomended to stop broker .

To check if a broker is connected to database use mqsicvp Broker_name -n Data_Source_Name


Really?

Quote:

Use the mqsireload command to request the broker to stop and restart execution groups.



Granted that not specifying the Execution Group will stop and restart the broker BUT that is not what the OP was asking about.



I clearly told its my assumption abt mqsireload.

Quote:

As for the 'mqsicvp' command,
Quote:

The mqsicvp command:

Checks that the broker environment is set up correctly; for example, that the installed level of Java is supported.

It does not check to see if the broker IS CURRENTLY connected to a DB but can be used to validate that the broker CAN be connected to a DB. There is a subtle difference.

Please don't shout like that. It is impolite.




/opt/IBM/mqsi/7.0> mqsicvp MB7BROKER -n AROMA_DB

BIP8272E: Datasource 'AROMA_DB' has not been associated with broker 'MB7BROKER'.
This invocation of the mqsicvp command requires that the datasource name has been associated with the broker, using the mqsisetdbparms command.
Check that this datasource has been associated with the broker.




/opt/IBM/mqsi/7.0> mqsicvp MB7BROKER -n SAMPLE_DB

BIP8270I: Connected to Datasource 'SAMPLE_DB' as user 'msgbrkr'. The datasource platform is 'SQL Server', version '15.00.0000'.



Quote:

BIP8270I: Connected to datasource <..multiple inserts..>
https://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/an07235_.htm
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 28, 2012 1:17 pm    Post subject: Reply with quote

Grand High Poobah

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

But this is not what the OP asked...
The OP asked about a sequence for a MAINTENANCE interval...

Ok so here it is:
  1. If in cluster suspend broker qmgr
  2. stop broker
  3. stop all qmgrs (not needed if maintenance only to broker)
  4. stop DB (not needed if DB on a different server or maintenance only to broker or qmgr
  5. apply maintenance
  6. check if reboot necessary
  7. if reboot necessary shut down any other app on the box (like DB, MQ)
  8. if reboot => reboot box
  9. if reboot check everything is up and running
  10. if reboot and in cluster resume broker qmgr
  11. and following case no reboot
  12. check DB up and running else start DB
  13. check qmgrs up and running else start them
  14. start broker
  15. sleep 1 min
  16. resume broker qmgr if in cluster


If your flows are in "maintained" mode, stopping them will only force you to start them once the broker is up... Extra work if you can arrange it in such a way that the broker stops processing work...(MQ cluster)

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Thu Jun 28, 2012 6:45 pm    Post subject: Re: @ smdavies99 Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

aravind703 wrote:

/opt/IBM/mqsi/7.0> mqsicvp MB7BROKER -n AROMA_DB

BIP8272E: Datasource 'AROMA_DB' has not been associated with broker 'MB7BROKER'.
This invocation of the mqsicvp command requires that the datasource name has been associated with the broker, using the mqsisetdbparms command.
Check that this datasource has been associated with the broker.




/opt/IBM/mqsi/7.0> mqsicvp MB7BROKER -n SAMPLE_DB

BIP8270I: Connected to Datasource 'SAMPLE_DB' as user 'msgbrkr'. The datasource platform is 'SQL Server', version '15.00.0000'.



Quote:

BIP8270I: Connected to datasource <..multiple inserts..>
https://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/an07235_.htm


This is clearly not the purpose of the mqsicvp command. As smdavies99 clearly pointed out, it is to check if the environment is setup correctly.

Quote:

Purpose

The mqsicvp command:

Checks that the component environment is set up correctly; for example, that the installed level of Java is supported.
Verifies that the WebSphere® MQ queues are defined and accessible.
If the component is a broker, checks that the expected database tables are present.
The mqsicvp command completes all these checks, and fails if one or more checks fail. It reports all errors in the system log, or to the command line, or both.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fan07235_.htm

Back to top
View user's profile Send private message Send e-mail
punky
PostPosted: Thu Jun 28, 2012 8:29 pm    Post subject: Reply with quote

Apprentice

Joined: 26 May 2011
Posts: 44
Location: India

Thanks Fjb_saper,

I got what I really wanted.

Thanks all for all your suggestions.
I learn a lot through this forum.


Regards,
Punky
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Steps to restart the broker during maintenance activity.
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.