删除节点步骤
一、删除DB和DB软件(如四节点删除rac-3和rac-4)
1.更新删除节点的Inventory
登录rac-3:
cd $ORACLE_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES"={rac-3}" -local
登录rac-4:
cd $ORACLE_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES"={rac-4}" -local
2.分离 HOME
登录rac-3:
cd $ORACLE_HOME/oui/bin
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME
登录rac-4:
cd $ORACLE_HOME/oui/bin
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME
3.更新非删除节点Inventory
登录rac-1:
cd $ORACLE_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={rac-1,rac-2}"
登录rac-2:
cd $ORACLE_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={rac-1,rac-2}"
4.删除本地软件卷和DB操作系统用户。
二、删除集群信息
1.检查是否各个节点是否unpin
olsnode -t -s
如果还有pin,需要调整成unpin:
crsctl unpin css -n node_to_be_deleted
2.Disable集群软件和daemons
用root登录rac-3
cd $GRID_HOME/crs/install
./rootcrs.pl -deconfig -force
用root登录rac-4
cd $GRID_HOME/crs/install
./rootcrs.pl -deconfig -force
用root登录rac-1
crsctl delete node -n rac-3,rac-4
3.更新删除节点Inventory
登录rac-3:
cd $GRID_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES"={rac-3} -local
登录rac-4:
cd $GRID_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES"={rac-4} -local
4.deinstall删除节点(注,以下操作针对是非共享的GRID_HOME,如果GRID_HOME是在共享存储上,则不能用以下方法。需要./runInstaller -detachHome ORACLE_HOME=$GRID_HOME)
登录rac-3:
cd $GRID_HOME/deinstall
./deinstall -local
登录rac-4:
cd $GRID_HOME/deinstall
./deinstall -local
5.登录任一非删除节点,更新剩余节点Inventory节点列表
登录rac-1:
cd $GRID_HOME/oui/bin
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES"={rac-1,rac-2} CRS=TRUE
6.登录非删除节点,检查节点在cluster中情况
登录rac-1:
cd $GRID_HOME/oui/bin
clufy stage -post nodedel -n rac-1,rac-2 -verbose