Run these commands to completely uninstall TSM Server and DB2 Instances from AIX operating system


In this post I will explain how to manually uninstall TSM 6.3 server and TSM 6.3 B/A Client packages from a AIX machine. IBM recommends to uninstall TSM server code only by going to /opt/tivoli/tsm/_uninstall directory and run the uninstaller. This way it will remove both TSM Server and DB2 packages completely.  Even if we remove all TSM Server packages, the DB2 instances will be hiding somewhere in the machine and it will cause you problems if you try to re-install TSM server again on the same machine.

To escape those annoying problems, We have to delete all DB2 packages, DB2 instances, Instance usernames and instance directories. In this post I will demonstrate how to do it step by step. This method will work even if you have manually removed each package through smitty remove or Installp -u command.

Manually uninstalling TSM 6.3 Server and TSM 6.3 Client from AIX machine:

Step 1: Uninstall TSM packages either by running the uninstaller command in /opt/tivoli/tsm/_uninstall or manually removing each TSM package through smitty. Either way you have to remove DB2 instances manually as shown in the next steps. For example, below are the common TSM server and client packages on any AIX machine. make sure you have uninstalled/remove all of them.

# lslpp -l|grep -i tivoli
  tivoli.tsm.client.api.64bit
  tivoli.tsm.client.ba.64bit.base
  tivoli.tsm.client.ba.64bit.common
  tivoli.tsm.client.ba.64bit.hdw
  tivoli.tsm.client.ba.64bit.image
  tivoli.tsm.client.ba.64bit.nas
  tivoli.tsm.client.ba.64bit.snphdw
  tivoli.tsm.client.ba.64bit.web
  tivoli.tsm.client.jbb.64bit
  tivoli.tsm.devices.acsls   6.3.3.0  COMMITTED  TSM ACSLS Support
  tivoli.tsm.devices.msg.en_US
  tivoli.tsm.devices.rte     6.3.3.0  COMMITTED  TSM Device Driver
  tivoli.tsm.filepath.rte   2.2.0.48  COMMITTED  TSM Filepath - Kernel
  tivoli.tsm.server          6.3.3.0  COMMITTED  TSM Server
  tivoli.tsm.server.license.cert
  tivoli.tsm.server.license.rte
  tivoli.tsm.server.msg.en_US
  Tivoli_Management_Agent.client.rte
  tivoli.tivguid             1.3.3.1  COMMITTED  IBM Tivoli GUID on AIX
  tivoli.tsm.devices.acsls   6.3.3.0  COMMITTED  TSM ACSLS Support
  tivoli.tsm.devices.rte     6.3.3.0  COMMITTED  TSM Device Driver
Step 2: If you have used smitty remove command, then the db2 is still running on your system because we have only removed above TSM packages. If you have used uninstaller DB2 will be uninstalled but the DB2 instances will be still hiding somewhere. Before deleting all the TSM directories in /opt and /usr, follow these steps to remove TSM DB2  instances manually. Run the following command..
cd /opt/tivoli/tsm/db2/instance/db2ilist ---- This will list all the db2 instances as below
tsminst6
tsminst7

Now you have to drop all the DB2 instances manually before uninstalling DB2. Use this command to drop the instance individually
/opt/tivoli/tsm/db2/instance/db2idrop tsminst6

DBI1070I  Program db2idrop completed successfully.

Similarly, for tsminst7
/opt/tivoli/tsm/db2/instance/db2idrop tsminst7
DBI1070I  Program db2idrop completed successfully.

Step 3: Now we can uninstall/remove db2 package from the system manually. Run these following commands to remove it completely.
cd /opt/tivoli/tsm/db2/install
./db2_deinstall -a
DBI1016I  Program db2_deinstall is performing uninstallation. Please wait.
The execution completed successfully.
For more information see the DB2 uninstallation log at "/tmp/db2_deinstall.log.11337866".

It will take some time to remove DB2 from the system depending upon on the configuration and you should get the above shown message.

Also Read: Starting TSM server in maintenance mode

You can also follow the above procedure if you face problem with DB2 instance while reinstalling on the same machine. Drop the old db2 instance and start configuring new db2 instance.




What Others are Reading Now...

0 Comment to "Run these commands to completely uninstall TSM Server and DB2 Instances from AIX operating system"

Post a Comment