Removing a queue manager from a cluster: alternative method
Remove a queue manager from a cluster, in scenarios where, because of a significant system or configuration issue, the queue manager cannot communicate with any full repository in the cluster.
Before you begin
This alternative method of removing a queue manager from a cluster manually stops and deletes all cluster channels linking the removed queue manager to the cluster, and forcibly removes the queue manager from the cluster. This method is used in scenarios where the queue manager that is being removed cannot communicate with any of the full repositories. This might be (for example) because the queue manager has stopped working, or because there has been a prolonged communications failure between the queue manager and the cluster. Otherwise, use the most common method: Removing a queue manager from a cluster: best practice.
About this task
This example task removes the queue manager LONDON
from the INVENTORY
cluster. The INVENTORY
cluster is set up as described in Adding a queue manager to a cluster, and modified as described in Removing a cluster queue from a queue manager.
The process for removing a queue manager from a cluster is more complicated than the process of adding a queue manager.
When a queue manager joins a cluster, the existing members of the cluster have no knowledge of the new queue manager and so have no interactions with it. New sender and receiver channels must be created on the joining queue manager so that it can connect to a full repository.
When a queue manager is removed from a cluster, it is likely that applications connected to the queue manager are using objects such as queues that are hosted elsewhere in the cluster. Also, applications that are connected to other queue managers in the cluster might be using objects hosted on the target queue manager. As a result of these applications, the current queue manager might create additional sender channels to establish communication with cluster members other than the full repository that it used to join the cluster. Every queue manager in the cluster has a cached copy of data that describes other cluster members. This might include the one that is being removed.
This procedure might be appropriate in an emergency, when it is not possible to wait for the queue manager to leave the cluster gracefully.
Procedure
Results
The queue manager LONDON
is no longer part of the cluster. However, it can still function as an independent queue manager.
What to do next
DISPLAY CLUSQMGR(LONDON)
The queue manager continues to
be displayed until the auto-defined cluster sender channels to it
have stopped. You can wait for this to happen, or, continue to monitor
for active instances by issuing the following command:
DISPLAY CHANNEL(INVENTORY.LONDON)
CLUSRCVR
channel on LONDON
:
DELETE CHANNEL(INVENTORY.LONDON)
The removed queue manager can be added back into the cluster at a later point as described in Adding a queue manager to a cluster. The removed queue manager continues to cache knowledge of the remaining members of the cluster for up to 90 days. If you prefer not to wait until this cache expires, it can be forcibly removed as described in Restoring a queue manager to its pre-cluster state.