Wednesday, July 4, 2012

Removing a Node from RAC 11GR2



[root@rac1 bin]# ./crsctl unpin css -n rac3
CRS-4667: Node rac3 successfully unpinned.
[root@rac1 bin]# crsctl delete node -n rac3
-bash: crsctl: command not found
[root@rac1 bin]# ./crsctl delete node -n rac3
CRS-4658: The clusterware stack on node rac3 is not completely down.
CRS-4000: Command Delete failed, or completed with errors.
[root@rac1 bin]# crsctl stop cluster -n rac3
-bash: crsctl: command not found
[root@rac1 bin]# ./crsctl stop cluster -n rac3
CRS-2673: Attempting to stop ‘ora.crsd’ on ‘rac3′
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ‘rac3′
CRS-2673: Attempting to stop ‘ora.rac3.vip’ on ‘rac3′
CRS-2677: Stop of ‘ora.rac3.vip’ on ‘rac3′ succeeded
CRS-2672: Attempting to start ‘ora.rac3.vip’ on ‘rac2′
CRS-2676: Start of ‘ora.rac3.vip’ on ‘rac2′ succeeded
CRS-2673: Attempting to stop ‘ora.ons’ on ‘rac3′
CRS-2673: Attempting to stop ‘ora.eons’ on ‘rac3′
CRS-2677: Stop of ‘ora.ons’ on ‘rac3′ succeeded
CRS-2673: Attempting to stop ‘ora.net1.network’ on ‘rac3′
CRS-2677: Stop of ‘ora.net1.network’ on ‘rac3′ succeeded
CRS-2677: Stop of ‘ora.eons’ on ‘rac3′ succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘rac3′ has completed
CRS-2677: Stop of ‘ora.crsd’ on ‘rac3′ succeeded
CRS-2673: Attempting to stop ‘ora.cssdmonitor’ on ‘rac3′
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘rac3′
CRS-2673: Attempting to stop ‘ora.evmd’ on ‘rac3′
CRS-2677: Stop of ‘ora.cssdmonitor’ on ‘rac3′ succeeded
CRS-2677: Stop of ‘ora.evmd’ on ‘rac3′ succeeded
CRS-2677: Stop of ‘ora.ctssd’ on ‘rac3′ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘rac3′
CRS-2677: Stop of ‘ora.cssd’ on ‘rac3′ succeeded
CRS-2673: Attempting to stop ‘ora.diskmon’ on ‘rac3′
CRS-2677: Stop of ‘ora.diskmon’ on ‘rac3′ succeeded
[root@rac1 bin]# ./crsctl delete node rac3
Parse error:
  ‘rac3′ is an invalid argument

Brief usage:
  crsctl delete {resource|type|serverpool|node} [...] [
  crsctl delete crs administrator -u [-f]
  crsctl delete wallet -type
 crsctl delete votedisk

For complete usage, use:
    crsctl [-h | --help]
For detailed help on each command and object and its options use:
    crsctl -h  For example, crsctl relocate resource -h
[root@rac1 bin]# ./crsctl delete node -n rac3
CRS-4661: Node rac3 successfully deleted.

————————————————————————
from Node to be deleted run

[oracle@rac3 bin]$ ./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME CLUSTER_NODES=”" -local
Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB.   Actual 4959 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
‘UpdateNodeList’ was successful.

——————————————————————————

from one of remaining nodes excute

[oracle@rac1 bin]$ ./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME “CLUSTER_NODES={rac1,rac2}”
Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB.   Actual 4959 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
‘UpdateNodeList’ was successful.

———————————————————————————–

NOW FROM $GRID_HOME run this script

./runInstaller -updateNodeList ORACLE_HOME=$GRID_HOME “CLUSTER_NODES={rac1,rac2}” CRS=TRUE

Finally delete CRS,Oracle Homes (ASM, RDBMS) on deleted node (rac3)

$ORACLE_HOME rm -rf *
$ORACLE_ASM_HOME rm -rf *
$GRID_HOME rm -rf *

No comments:

Post a Comment