This topic guides you through the required steps to manually
clean a DB2® managed clustered
file system.
About this task
Using the
db2idrop -g command to remove
the
IBM® DB2 pureScale® Feature from
your environment removes the GPFS™ cluster
on all hosts except for the host on which the
db2idrop command
was run. Use this procedure to remove the GPFS file system and cluster on the remaining
host. All data on the GPFS file
system will be lost. After the
db2idrop command
has completed, the GPFS cluster
will be left over on installation-initiating host (IIH) only. Manual
clean up is only required on the host acting as the IIH.
- List existing GPFS file
systems using the following command:
DB2DIR/bin/db2cluster -cfs -list -filesystem
where DB2DIR represents
the installation location of your DB2 copy.The
output of this command should be similar to the following:
FILE SYSTEM NAME MOUNT_POINT
---------------- -----------
db2fs1 /db2sd_20091027220651
- Stop the entire GPFS cluster:
db2cluster -cfs -stop -all
- Set the GPFS quorum
type from tiebreaker to majority:
db2cluster -cfs -set -tiebreaker -majority
- Start the GPFS cluster:
db2cluster -cfs -start -all
- To ensure there is no data on the file system before deleting
it, mount the file system:
db2cluster -cfs -mount -filesystem db2fs1
- Delete the GPFS file
system. You
must delete all files under the GPFS file system, including hidden
files.
db2cluster -cfs -delete -filesystem db2fs1
The
output of this command should be similar to the following:
The file system 'db2fs1' has been successfully deleted.
All cluster configurations have been completed successfully.
- List the GPFS domain
name:
db2cluster -cfs -list -domain
The
output of this command should be similar to the following:
Domain Name: db2cluster_20091027220622.ca.ibm.com
- Stop the GPFS cluster:
db2cluster -cfs -stop -all
- Delete the GPFS cluster:
db2cluster -cfs -delete -domain db2cluster_20091027220622.ca.ibm.com
The
output of this command should be similar to the following:
Deleting the domain db2cluster_20091027220622.in.ibm.com from
the cluster was successful.
- After removing GPFS cluster
and file systems, delete the GPFS_CLUSTER and DEFAULT_INSTPROF variable
records in the Global Registry.
db2greg -delvarrec service=GPFS_CLUSTER,variable=NAME,installpath=-
db2greg -delvarrec service=DEFAULT_INSTPROF,variable=DEFAULT,installpath=-
If you dropped the instance manually, you must also remove
these variables from all nodes in the GPFS cluster.