4.3.6.2 DELETE COMPUTE

This command deletes an existing compute node, removes the instance, home and clusterware from the cluster.

Syntax

DELETE COMPUTE 
WHERE 
   { SRCNAME=host_name [ STEPNAME=step_name ] |
     SRCNAMES=host_names [ STEPNAME=step_name ] }

Arguments

SRCNAME specifies the host name of the guest that you want to remove.

SRCNAMES specifies a comma-separated list host names of the guests that you want to remove.

STEPNAME is used to clean up steps from a failed CREATE COMPUTE command. Specify the name of the individual creation step to be reverted. The values for step_name are:

  • ADD_INSTANCE
  • EXTEND_DBHOME
  • ADD_NODE
  • CELL_CONNECTIVITY
  • CREATE_USERS

Example 4-14 Deleting a Compute Node - Simple Case

This example removes the dbadm04 compute node from the cluster.

LOAD FILE NAME=4-4compute.xml
DELETE COMPUTE where srcname=dbadm04
SAVE ACTION
MERGE ACTIONS
DEPLOY  ACTIONS
SAVE FILE name=3-4compute.xml

Example 4-15 Deleting a Compute Node with Individual Steps

This example removes the dbadm04 compute node from the cluster, running each step individually. This example does not show all the steps involved in removing the compute node.

LOAD FILE NAME=4-4compute.xml
DELETE COMPUTE where srcname=dbadm04 stepname=ADD_INSTANCE
SAVE ACTION
MERGE ACTIONS
DEPLOY ACTIONS

DELETE COMPUTE where srcname=dbadm04 stepname=EXTEND_DBHOME
SAVE ACTION
MERGE ACTIONS
DEPLOY ACTIONS

DELETE COMPUTE where srcname=dbadm04 stepname=ADD_NODE
SAVE ACTION
MERGE ACTIONS
DEPLOY ACTIONS
...