DB2 Version 10.1 for Linux, UNIX, and Windows

Dropping a member or cluster caching facility

This task details the steps necessary to drop a member or cluster caching facility.

About this task

In a recoverable database, if you make any change to member topology, for example adding or dropping a member, you must take an offline backup before you can access the database. Otherwise, if you attempt to access the database before taking an offline backup, the database is placed in a backup pending state.

In a non-recoverable database, if you make any change to the member topology, you do not need to take an offline backup before you can access the database. However, the database would only be recoverable to the point in time when you took the last backup image, and using the same topology as when the image was produced. If you do not take an offline back and attempt to access the database, the database is not placed in a backup pending state.

You can add multiple members or drop multiple members without having to take a backup after each change. For example, if you add three members, you only have to take a backup after you have completed all add operations. However, if you add two members and then drop a member, or if you drop two members and then add a member, you must take a backup before you can perform any additional member topology changes.

Restrictions

The db2iupdt -drop command does not drop the last cluster caching facility or the last member, in the DB2® pureScale® instance. To drop the last member or cluster caching facility in the DB2 pureScale instance, see the "Removing DB2 Enterprise Server Edition with the DB2 pureScale Feature" topic.

You must run the db2iupdt -drop command from a host that will still belong to the instance after you have dropped the cluster caching facility or member.

Procedure

  1. Log in to the host that will still belong to the instance after you dropped the cluster caching facility or member.
  2. Stop the DB2 pureScale instance on all hosts by using the db2stop command.
  3. To remove a DB2 member:
       db2iupdt -drop -m hostname instance_name
    To remove a cluster caching facility:
       db2iupdt -drop -cf hostname instance_name
  4. Remove the DB2 pureScale Feature installation on the host by running the following command:
       db2_deinstall -a
    When the DB2 installer removes the last DB2 installation, it also automatically removes DB2 cluster services.

Example

For example, if you want to drop a member from a host called test1 and an instance called db2sdin1, run the following command:
   db2iupdt -drop -m test1 db2sdin1
Then, to remove the DB2 installation from the test1 host, run the following command from the test1 host:
   DB2DIR/install/db2_deinstall -a