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 » Startup scripts for multi instance Queue manager

Post new topic  Reply to topic
 Startup scripts for multi instance Queue manager « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Sun Feb 13, 2011 5:16 pm    Post subject: Startup scripts for multi instance Queue manager Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi,
We are using MQ v.7.0.1.3 on Linux.

We created a multi instance queue manager on server1 and standby instance on server2 with shared storage as NFS v4.

Quote:
Server1:
$ dspmq
QMNAME(QM1) STATUS(Running as standby)


Quote:
Server2:
$ dspmq
QMNAME(QM1) STATUS(Running as standby)


Question:
When the server got rebooted we wanted to automate the Multi instance queue manager start/ stop along with the server start/ stop.

Lets say server1 is rebooted:

Stop:
Case1: if we issue, endmqm QM1(controlled shutdown), the standby instance also will be 'ended normally'. In this case both active and standby instances are down and need to restart the standby instance incase the active server is rebooted.
Case2: If we issue, 'endmqm -s QM1', some of the mqm processes are still running when the queue manager becomes standby instance.

Quote:
QMNAME(QM1) STATUS(Running as standby)
bash-3.2$
bash-3.2$ ps -ef| grep QM1
mqm 12654 1 0 00:47 ? 00:00:00 amqzxma0 -m QM1 -x
mqm 12659 12654 0 00:47 ? 00:00:00 /opt/mqm/bin/amqzfuma -m QM1
mqm 13056 12309 0 01:11 pts/1 00:00:00 grep QM1


As the processes are still running, we can't shutdown the server. We wanted to make sure all the mqm processes are down before the server goes down.


Start:
Planning to start the multi instance queue manager with 'strmqm -x QM1' when the server comes up.


Can you guys share your thoughts on this?. How you are implementing the startup/ shutdown scripts for multi instance queue managers at your shops?.

Thanks a lot.
Back to top
View user's profile Send private message
Mirage
PostPosted: Mon Feb 14, 2011 2:51 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Nov 2004
Posts: 44
Location: IL

Here is what I've been thinking of doing for server restarts. I've not implemented this yet and I'm very much interested about your comments.

MQ: MI Stop script
- Check the status of the Qmgr
if 'stdby' then issue endmqm -x
if 'active' then issue endmqm -s, wait few minutes (or check until only those 2 MQ processes remain), then issue endmqm -x or kill the mq processes.

This command should tell if the queue manager is Active or Standby instance.

$ dspmq -m <QMGR> -x | grep `hostname`
INSTANCE(<hostname1>) MODE(Active)
$

$ dspmq -m <QMGR> -x | grep `hostname`
INSTANCE(<hostname2>) MODE(Standby)
$

MQ: MI Start script
Start with -x command (same as Chris's)



Thanks,
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 » Startup scripts for multi instance Queue manager
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.