Print this page

 

This topic covers using MSCS (MicroSoft Clustered Server) to achieve a high availability (HA) WebSphere MQ (MQSeries) configuration.

To use MSCS, ensure that the following are in place:

  1. Each node must have two PCI network adapters ( check with Start->Control Panel->Network Connections); one adapter is used as the public cluster interface, the second is used as the private interface for cluster management, status signals etc.
  2. All nodes in the cluster must belong to the same domain (check with Start->Administrative Tools->Active Directory Domains and Trusts.  If not displayed, Start->Administrative Tools->Configure Your Server) and can be either member servers or domain controllers.
  3. Configure a cluster account with administrative privileges in the domain (Start,Administartive Tools,Active Directory Users And Computers).
  4. Shared storage must consist of at least two NTFS formatted partitions, one for the quorom disk (used by MSCS) and at least one for application data (check with Start, Administrative Tools, Computer Management and Storage-Disk Management).  When MSCS is installed (next step), specify that these disks are to be managed by MSCS.
  5. Install the cluster software (Start,Control Panel,Add or Remove Programs, Add/Remove Windows Components for Windows 2003 or Add Feature in Server Manager for Windows 2008).
  6. When you click Next, Setup prompts you for the CD and, after copying files, starts the Cluster Service Configuration wizard.  Alternatively, select Cluster Administrator in Administrative Tools on Windows 2003 or select Failover Cluster Management in Administrative Tools on Windows 2008.  Then, select Create a Cluster.  Follow the instructions in the wizard to specify the servers to include in the cluster, the name of the cluster and any IP information that is not automatically supplied by your DHCP settings.

This link contains an excellent article on how to set up a MSCS cluster.

To implement MQ with MSCS, apply the following steps:

1. Install MQ on each computer in the cluster.
2. Enter 'haregtyp /r' to register MQ as a MSCS resource type on all cluster nodes.
3. Create a queue manager on one node, with all its resources on local drives.
4. Move the MQ queue manager log files and data files onto shared disk.  To do this:

  • shut the queue manager down,
  • take a full media backup of the queue manager logs and queues,
  • use MSCS Cluster Administrator to create a resource of type shared disk big enough to hold logs and data,
  • issue the following command:
hamvmqm /m qmname /dd "e:\WebSphere MQ" /ld e:\WebSphere MQ\log"  

5.  Place the queue manager under MSCS control.  To do this:

  • Start MSCS Cluster Administrator (Start, Administrative Tools, Cluster Administrator in Windows 2003 or click on 'Services and Applications' in Server Manager on Windows 2008).  On the subsequent screen, click Browse to select the Cluster created above.
  • On the next screen, select Groups, Cluster Groups, right click and select new->Group (or application on Windows 2008).  To make support simpler, the group name can contain the queue manager name.  Then, create resource instances for the drives that the queue manager uses, the IP address resource (right click on the group, select New Resource, resource type IP address, address (e.g. 192.168.1.100, subnet 255.255.255.0)) and for the queue manager (right click on the group, new resource, type IBM WebSphere MQ MSCS, select "Run this resource in a separate Resource Monitor", for dependencies select the IP address and the drive).

 

6.  Start the queue manager from MSCS Cluster Administrator, by right clicking on the MQ Resource and selecting "Bring Online".