This topic will guide you through the required steps to manually clean up a cluster
domain. Uninstalling Db2® Enterprise Server
Edition with IBM®
Db2
pureScale® Feature will normally
handle the removal of the cluster manager. Follow these steps if an unexpected error occurs and a
manual cleanup is required.
About this task
The db2idrop -g command should automatically remove the cluster. The
following manual steps are needed only when problems occur.
Procedure
- List all of the existing peer domains by running the
lsrpdomain command.
The output of this command should be similar
to the following one:
lsrpdomain
If nothing is listed,
there is no active peer domain. Only one cluster can be active (online) at any given time, and any
operations (stopping, removing, or adding a node) will only affect this online
domain.
- List all of the nodes in this active peer domain by running the db2cluster -cm
-list -host -state command.
The output of this command should be similar to the following
output:
HOSTNAME STATE
----------- ------
coralpib135 ONLINE
coralpib136 ONLINE
- Remove the entire peer domain, including all nodes. The peer domain must be online for
the following command to be successful. Run the db2cluster -cm -delete -domain
db2domain command.
The output of this command should be similar to the following
output:
Deleting the domain db2domain from the cluster ...
Deleting the domain db2domain from the cluster was successful.
- To confirm that the peer domain has been removed appropriately, run the
db2cluster -cm -list -domain command.