主机os重装的节点加回RAC集群步骤示例(11gR2 RAC)
很多客户遇到过这样的情况:由于RAC其中一个节点的主机OS损坏,需要重装。而重装后怎样把节点加回集群呢?
这里将涉及的步骤整理如下:
1. 清除重装主机的OCR条目(这里以节点2重装为例,请将node2换成您节点2的主机名)
# crsctl delete node -n node2
要检查上述步骤是否成功,在尚存执行“olsnodes”即可,重装的主机不应该出现在它列出的清单里。
2. 从OCR中删除重装主机的VIP信息
在尚存节点上执行:
/grid/bin/srvctl remove vip -i node2-v -f
3. 清除重装主机的GI和DB home的inventory信息:
在尚存节点执行:
1)GI
/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/grid "CLUSTER_NODES=node1" CRS=TRUE -silent -local
注:这里CLUSTER_NODES是写尚存节点的清单
2)在db home下执行同样的步骤:
/home/oracle/app/oracle/product/11.2.0/dbhome_1/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/ CLUSTER_NODES=node1 -silent -local
4. 下面开始添加节点。运行CVU检查:
./cluvfy stage -pre nodeadd -n node2 -verbose
在这里,由于OCR和voting disk在ASM中,并且使用了ASMLIB,最常见的错误是:
ERROR:
PRVF-5449 : Check of Voting Disk location "ORCL:DISK6(ORCL:DISK6)" failed on the following nodes:
node2:No such file or directory
PRVF-5431 : Oracle Cluster Voting Disk configuration check failed
在下面步骤中将解释这个错误的影响。
5. 在尚存节点上执行grid home下的"addNode.sh" .
[oracle@node1] /grid/oui/bin% ./addNode.sh -silent "CLUSTER_NEW_NODES={node2}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node2-v}"
[oracle@node1] /grid/oui/bin%
在这里,上述命令没有任何信息就退出,实际上addNode.sh根本没运行。
原因 : ASMLIB在使用中,符合MOS Note : 1267569.1描述的问题
第四步的报错能帮我们发现它。
解决办法 :
设置如下环境变量并重新运行addNode.sh。
IGNORE_PREADDNODE_CHECKS=Y
export IGNORE_PREADDNODE_CHECKS
[oracle@node1] /grid/oui/bin% ./addNode.sh -silent "CLUSTER_NEW_NODES={node2}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node2-v}"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 12143 MB
Performing tests to see whether nodes node2 are available
............................................................... 100% Done.
Cluster Node Addition Summary
Global Settings
Source: /grid
New Nodes
Space Requirements
New Nodes
node2
Instantiating scripts for add node (Tuesday, December 21, 2015 3:35:16 AM PST)
. 1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Tuesday, December 21, 2015 3:35:18 AM PST)
............................................................................................... 96% Done.
Home copied to new nodes
Saving inventory on nodes (Tuesday, December 21, 2015 3:37:57 AM PST)
. 100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
/grid/root.sh # On nodes node2
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node
The Cluster Node Addition of /grid was successful.
Please check '/tmp/silentInstall.log' for more details.
6. 在重装节点上执行root.sh来启动CRS stack.
这会结束该节点上GI的安装。
7. 在尚存节点上执行DB home下的addNode.sh
/home/oracle/app/oracle/product/11.2.0/dbhome_1/addNode.sh -silent "CLUSTER_NEW_NODES={node2}"
8. 当DB Home添加完成,使用srvctl检查DB和实例的注册情况,如需要则添加他们。
赞 (0)