Uninstalling the Db2 pureScale Feature and the Db2 database software

Uninstalling the Db2 database software with the Db2 pureScale Feature from your system requires that you perform certain steps in preparation and then proceed to the actual removal of the software.

Before you begin

If a quorum device is configured for the instance, uninstalling the Db2 pureScale Feature requires passwordless root SSH to be enabled between the cluster nodes and the quorum device host. In Db2® 12.1.3 and later, db2locssh and db2scp can be configured as alternatives to passwordless root SSH and secure copy protocol (SCP). Ensure that you are able to remotely access all hosts, including the quorum device. This requirement is needed to ensure the quorum device configuration is properly cleaned up on the quorum device host. To uninstall the Db2 pureScale Feature without enabling passwordless root SSH, the quorum device must be removed from the instance by running the db2cm -delete -qdevice -force command as the System Administrator.

Procedure

To uninstall the Db2 database software with the Db2 pureScale Feature from your system:

  1. Back up your data.
  2. Stop the Db2 pureScale instance by running the db2stop command from one of the hosts.
  3. Drop the Db2 pureScale instance on all the hosts by running the following command from one of the hosts:
    db2idrop -g instance_name
    where the -g parameter specifies that the Db2 pureScale instance will be dropped globally (on all Db2 members and cluster caching facilities). You can find the db2idrop command in the <DB2DIR>/instance directory
  4. Manually remove the IBM® Storage Scale cluster and file system. The db2idrop -g does not delete the IBM Storage Scale cluster on the host from which you ran the command and does not remove file systems to protect your data.
  5. Uninstall theDb2 database software with the Db2 pureScale Feature installation by running the following command:
    db2_deinstall -a