Linux rac 删除节点小记

http://www.killdb.com/2011/09/27/linux-rac-delete-node小记.html

上周给客户做了一个add node for single rac的操作,后来客户说主机有问题,
换了一台新的主机,于是今天又到现场了。在add操作之前,首先要将原node
信息从cluster中清除。 如下是简单的记录:
####  Delete node for Linux rac ####
 
检查当前系统环境资源如下:
 
[oracle@callrac1 bin]$ ./crs_stat -t
 
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....b1.inst application    ONLINE    ONLINE    callrac1   
ora.calldb.db  application    ONLINE    ONLINE    callrac1   
ora....SM1.asm application    ONLINE    ONLINE    callrac1   
ora....C1.lsnr application    ONLINE    ONLINE    callrac1   
ora....ac1.gsd application    ONLINE    ONLINE    callrac1   
ora....ac1.ons application    ONLINE    ONLINE    callrac1   
ora....ac1.vip application    ONLINE    ONLINE    callrac1   
ora....SM2.asm application    ONLINE    OFFLINE              
ora....C2.lsnr application    ONLINE    OFFLINE              
ora....ac2.gsd application    ONLINE    OFFLINE              
ora....ac2.ons application    ONLINE    OFFLINE              
ora....ac2.vip application    ONLINE    ONLINE    callrac1
 
++++ 移除nodeapp ++++
 
[root@callrac1 bin]# ./srvctl remove  nodeapps -n callrac2
 
Please confirm that you intend to remove the node-level applications on node callrac2 (y/[n]) y
PRKO-2108 : Node applications are still running on node: callrac2  ==== 这里报错先不管 ====
 
++++ 将信息crs中2节点的资源信息从ocr中清除 ++++
 
[root@callrac1 bin]# ./crs_unregister ora.callrac2.LISTENER_CALLRAC2.lsnr
[root@callrac1 bin]# ./crs_unregister ora.callrac2.vip
 
CRS-0214: Could not unregister resource 'ora.callrac2.vip'.
 
[root@callrac1 bin]# ./crs_unregister ora.callrac2.ASM2.asm
[root@callrac1 bin]# ./crs_unregister ora.callrac2.gsd
[root@callrac1 bin]# ./crs_unregister ora.callrac2.ons
 
 
[oracle@callrac1 bin]$ ./crs_stat -t
 
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....b1.inst application    ONLINE    ONLINE    callrac1   
ora.calldb.db  application    ONLINE    ONLINE    callrac1   
ora....SM1.asm application    ONLINE    ONLINE    callrac1   
ora....C1.lsnr application    ONLINE    ONLINE    callrac1   
ora....ac1.gsd application    ONLINE    ONLINE    callrac1   
ora....ac1.ons application    ONLINE    ONLINE    callrac1   
ora....ac1.vip application    ONLINE    ONLINE    callrac1   
ora....ac2.vip application    ONLINE    ONLINE    callrac1   
 
[root@callrac1 bin]# ./crs_stop -f ora.callrac2.vip
 
Attempting to stop `ora.callrac2.vip` on member `callrac1`
Stop of `ora.callrac2.vip` on member `callrac1` succeeded.
 
[root@callrac1 bin]# ./crs_stop -f ora.callrac2.vip
 
Attempting to stop `ora.callrac2.vip` on member `callrac1`
Stop of `ora.callrac2.vip` on member `callrac1` succeeded.
 
[root@callrac1 bin]# ./crs_unregister ora.callrac2.vip
 
[oracle@callrac1 bin]$ crs_stat -t
 
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....b1.inst application    ONLINE    ONLINE    callrac1   
ora.calldb.db  application    ONLINE    ONLINE    callrac1   
ora....SM1.asm application    ONLINE    ONLINE    callrac1   
ora....C1.lsnr application    ONLINE    ONLINE    callrac1   
ora....ac1.gsd application    ONLINE    ONLINE    callrac1   
ora....ac1.ons application    ONLINE    ONLINE    callrac1   
ora....ac1.vip application    ONLINE    ONLINE    callrac1   
 
 
++++ 更新cluster node ++++
 
[oracle@callrac1 bin]$ ./runInstaller -updateNodelist ORACLE_HOME=/home/oracle/product/10.2.0/db_1 "CLUSTER_NODES=callrac1"
 
Starting Oracle Universal Installer...
 
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /home/oracle/oraInventory
'UpdateNodeList' was successful.
 
[oracle@callrac1 bin]$ cd $ORA_CRS_HOME/oui/bin
[oracle@callrac1 bin]$ ls
 
addLangs.sh  addNode.sh  attachHome.sh  detachHome.sh  lsnodes  
ouica.bat  ouica.sh  resource  runConfig.sh  runInstaller  runInstaller.sh
 
[oracle@callrac1 bin]$ ./runInstaller -updateNodelist ORACLE_HOME=/home/oracle/product/10.2.0/crs "CLUSTER_NODES=callrac1"
 
Starting Oracle Universal Installer...
 
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /home/oracle/oraInventory
'UpdateNodeList' was successful.
 
++++ 执行 rootdeletenode.sh ++++
 
[root@callrac1 install]# pwd
 
/home/oracle/product/10.2.0/crs/install
 
[root@callrac1 install]# ./rootdeletenode.sh callrac2,2
 
CRS-0210: Could not find resource 'ora.callrac2.ons'.
CRS-0210: Could not find resource 'ora.callrac2.vip'.
CRS-0210: Could not find resource 'ora.callrac2.gsd'.
CRS-0210: Could not find resource ora.callrac2.vip.
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 14 values from OCR.
Key SYSTEM.css.interfaces.nodecallrac2 marked for deletion is not there. Ignoring.
Successfully deleted 5 keys from OCR.
Node deletion operation successful.
'callrac2,2' deleted successfully
 
++++ 检查cluster node情况 ++++ 
 
[root@callrac1 bin]# pwd
 
/home/oracle/product/10.2.0/crs/bin
 
[root@callrac1 bin]# ./olsnodes -n
 
callrac1        1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值