Tags
Ensure that Grid_home correctly specifies the full directory path for the Oracle Clusterware home on each node, where Grid_home is the location of the installed Oracle Clusterware software.
- Run the following command as either root or the user that installed Oracle
Clusterware to determine whether the node you want to delete is active and whether it
is pinned:
$ olsnodes -s -t
If the node is pinned, then run the crsctl unpin css command. Otherwise, proceed to
the next step.(>= 11.2 version)
$ <CRS_HOME/crs/install/rootcrs.pl -deconfig -force
If you are deleting multiple nodes, then run the rootcrs.pl script on each node that you
are deleting. If you are deleting all nodes from a cluster, then append the -lastnode
option to the preceding command to clear OCR and the voting disks, as follows:
$ ./rootcrs.pl -deconfig -force -lastnode
$ srvctl stop vip -i vip_name -f
$ srvctl remove vip -i vip_name -f
Where vip_name is the VIP for the node to be deleted. If you specify multiple VIP
names, then separate the names with commas and surround the list in double
quotation marks (“”).
2. From any node that you are not deleting, run the following command from the
Grid_home/bin directory as root to delete the node from the cluster:
$ crsctl delete node -n node_to_be_deleted
3. On the node you want to delete, run the following command as the user that installed
Oracle Clusterware from the Grid_home/oui/bin directory where node_to_be_deleted is
the name of the node that you are deleting:
$ ./runInstaller -updateNodeList ORACLE_HOME=Grid_home “CLUSTER_NODES=
{node_to_be_deleted}” CRS=TRUE -silent -local
4. Depending on whether you have a shared or local Oracle home, complete one of the
following procedures as the user that installed Oracle Clusterware:
If you have a shared home, then run the following commands in the following order on
the node you want to delete. Run the following command to deconfigure Oracle
Clusterware:
$ Grid_home/perl/bin/perl Grid_home/crs/install/rootcrs.pl -deconfig
Run the following command from the Grid_home/oui/bin directory to detach the Grid
home:
$ ./runInstaller -detachHome ORACLE_HOME=Grid_home -silent -local
Manually delete the following files:
/etc/oraInst.loc
/etc/oratab
/etc/oracle/
/opt/ORCLfmap/
$OraInventory/
For a local home, deinstall the Oracle Clusterware home from the node that you want to
delete, as follows, by running the following command, where Grid_home is the path defined for the Oracle Clusterware home:
$ Grid_home/deinstall/deinstall –local
- On any node other than the node you are deleting, run the following command from the
Grid_home/oui/bin directory where remaining_nodes_list is a comma-delimited list of
the nodes that are going to remain part of your cluster:
$ ./runInstaller -updateNodeList ORACLE_HOME=Grid_home “CLUSTER_NODES=
{remaining_nodes_list}” CRS=TRUE -silent
$ ./runInstaller -updateNodeList ORACLE_HOME=ORACLE_HOME
“CLUSTER_NODES={remaining_nodes_list}”
If you have a shared Oracle Grid Infrastructure home, then append the -cfs option to
the command example in this step and provide a complete path location for the
cluster file system.
6. Run the following CVU command to verify that the specified nodes have been
successfully deleted from the cluster:
$ cluvfy stage -post nodedel -n node_list [-verbose]