su - root
cd /ibmdb2/V10.5/instance
./db2idrop -g db2inst1
以上命令自动自动删除实例和GPFS
2. GPFS集群删除
1. Unmount all GPFS file systems on all nodes by issuing the mmumount all -a command.
mmlsfs all
mmumount all -a
2. Issue the mmdelfs command for each file system in the cluster to remove GPFS file systems.
mmlsfs all
mmdelfs /dev/gpfs1nsd
3. Issue the mmdelnsd command for each NSD in the cluster to remove the NSD volume ID written on
sector 2.
If the NSD volume ID is not removed and the disk is again used with GPFS at a later time, you will
receive an error message when issuing the mmcrnsd command. See NSD creation fails with a message
referring to an existing NSD in the GPFS: Problem Determination Guide.
mmlsnsd
mmdelnsd gpfs1nsd
4. Issue the mmshutdown -a command to shutdown GPFS on all nodes.