When the db2idrop command has failed to completely drop the instance,
you must complete the clean up of a Db2
pureScale
instance.
Procedure
To clean up an incomplete Db2
pureScale instance
drop:
- Stop and disable the Pacemaker and Corosync services:
systemctl stop pacemaker
systemctl stop corosync
systemctl disable pacemaker
systemctl disable corosync
- Delete
/etc/corosync/corosync.conf
- Delete all files under
/var/lib/pacemaker/cib/*
-
Clean up the Db2 cluster file
system.
- Clean up $HOME/sqllib for the instance user on all hosts.
- Clean up the entries in /etc/services for the Db2
pureScale instance
user.
- Remove instance signature
installed_path/instance/db2iset -d instance_name
- Remove following global registries on all hosts:
For example
installed_path/bin/db2greg -delvarrec
service=GPFS_CLUSTER,variable=NAME,installpath=-
installed_path/bin/db2greg -delvarrec
service=PEER_DOMAIN,variable=NAME,installpath=-
installed_path/bin/db2greg -delvarrec
service=DEFAULT_INSTPROF,variable=DEFAULT,installpath=-
installed_path/bin/db2greg -delvarrec
service=INSTPROF,variable=<instance name>,installpath=-