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 IBM Storage Scale cluster on all
hosts except for the host on which the db2idrop command was run. Use this
procedure to remove the IBM Storage Scale file system
and cluster on the remaining host. All data on the IBM Storage Scale file system will be lost.
After the db2idrop command has completed, the IBM Storage Scale cluster will
be left over on installation-initiating host (IIH) only. Manual clean up is only required on the
host acting as the IIH.
Procedure
- List existing IBM Storage Scale 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
- Set the IBM Storage Scale quorum type
from tiebreaker to majority:
db2cluster -cfs -set -tiebreaker -majority
- To ensure there is no data on the file system before
deleting
it, mount the file system:
db2cluster -cfs -mount -filesystem db2fs1
- Delete all files under the IBM Storage Scale file system,
including hidden files (except snapshots). Refer to step 1 to
find the mount point of the IBM Storage Scale file
system.
cd /db2sd_20091027220651
rm `ls -a`
- Delete the IBM Storage Scale file
system.
db2cluster -cfs -delete -filesystem db2fs1Copy
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 IBM Storage Scale 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 IBM Storage Scale
cluster:
/usr/lpp/mmfs/bin/mmshutdown -a
- Delete the IBM Storage Scale 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 IBM Storage Scale 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
IBM Storage Scale
cluster.