Remove all resources related to the public Ethernet adapter device on a host in the cluster domain

You can remove Ethernet adapter resources from the cluster domain of an HADR Db2 instance that is running on a Pacemaker-managed Linux cluster. Removal is done by using the Db2 Cluster Manager (db2cm) utility.

About this task

Important: To run the db2cm utility as the root user, ensure the DB2INSTANCE environment variable is set to the instance owner.
The following placeholders are used in the command statements throughout this procedure. These represent values that you can change to suit your organization:
  • <host1> is the host in your Pacemaker-managed Mutual Failover Db2 instance where the partition resides.
  • <network_interface_name> is the name of the Ethernet adapter in the cluster domain.

Procedure

  1. As the root user, delete the resources associated with the public Ethernet adapter from a host in your cluster:
    ./sqllib/bin/db2cm -delete -publicEthernet <network_interface_name> -host <host1>
  2. Verify that the resources have been deleted successfully.

Examples

The following example shows the command syntax and output from removing the resources associated with the public ethernet adapter eth1 on the host ignited1:
[root@ignited1 ~]# sqllib/bin/db2cm -delete -publicEthernet eth1 -host ignited1
Public Ethernet resource deleted successfully.
The following example shows the command syntax and output from verifying that the eth1 adapter is removed from the cluster:
[root@ignited1 ~]#
Stack: corosync
Current DC: ignited1 (version 2.0.1-4.el8-0eb7991564) - partition with quorum
Last updated: Mon Dec 30 11:18:07 2019
Last change: Mon Dec 30 11:18:03 2019 by root via cibadmin on ignited1
 
2 nodes configured
1 resource configured
 
Online: [ cuisses1 ignited1 ]
 
Full list of resources:
 
db2_cuisses1_eth0    (ocf::heartbeat:db2ethmon):    Started cuisses1