11gR203 add node for RAC

2024-01-22 09:08
文章标签 node add rac 11gr203

本文主要是介绍11gR203 add node for RAC,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

RAC添加节点要点、步骤和遇到的问题:

要点:

1、不需要停其他节点,可以说不影响正在运行的节点。

2、不需要下载安装介质。

步骤:

--delete

清理失败的节点:1. Reconfigure the RDBMS Services in the cluster to take into account node 2 is gone.1.1 Reconfigure the Service plb1 so that it is only running on the remaining instance.[oracle@sage ~]$ srvctl modify service -d db112i -s plb1 -n -i db112i1 -f1.2 Examine the configuration to ensure the service is removed from instance db112i2 and node Thyme.[oracle@sage ~]$ srvctl status service -d db112i -s plb1Service plb1 is running on instance(s) db112i1[root@sage ~]# /opt/app/oracle/product/grid/bin/crsctl stat res -t..ora.db112i.plb1.svc1 ONLINE ONLINE sage 
2. Reconfigure the RDBMS Instances in the cluster to take into account node 2 is gone.2.1. Remove the database instances. As this is an Administrator Managed database this can be performed through dbca. From the RAC Instance Management section in dbca follow the wizard to remove the Instance db112i2 from node 2 thyme.[oracle@sage ~]$ dbca[oracle@sage ~]$ [oracle@sage ~]$ srvctl config database -d db112iDatabase unique name: db112iDatabase name: db112iOracle home: /opt/app/oracle/database/11.2/db_1Oracle user: oracleSpfile: +DATA1/db112i/spfiledb112i.oraDomain: vmdomStart options: openStop options: immediateDatabase role: PRIMARYManagement policy: AUTOMATICServer pools: db112iDatabase instances: db112i1Disk Groups: DATA1Services: plb1Database is administrator managed[root@sage ~]# /opt/app/oracle/product/grid/bin/crsctl stat res -t..ora.db112i.db1 ONLINE ONLINE sage Open ora.db112i.plb1.svc1 ONLINE ONLINE sage ..3. Remove the Node from the RAC Cluster3.1 Using the Installer remove the failed node from Inventory of the Remaining Node(s)[oracle@sage ~]$ cd $ORACLE_HOME/oui/bin[oracle@sage bin]$ ./runInstaller -updateNodeList ORACLE_HOME=/opt/app/oracle/database/11.2/db_1 "CLUSTER_NODES={sage}" Starting Oracle Universal Installer...Checking swap space: must be greater than 500 MB. Actual 2601 MB PassedThe inventory pointer is located at /etc/oraInst.locThe inventory is located at /opt/app/oracle/oraInventory'UpdateNodeList' was successful.4. Remove the Node from the Grid Cluster
The process for performing the removal of a failed node has been based on the node deletion processes documented in the Grid and RAC administration guides.From any node that you are not deleting,  run the following commands from the Grid_home/bin directory as root to delete the node from the cluster:4.1 Stop the VIP resource for the node thyme[root@sage bin]# ./srvctl stop vip -i thyme4.2 Remove the VIP for the node thyme[root@sage bin]# ./srvctl remove vip -i thyme -f4.3 Check the state of the environment and ensure the VIP for node thyme is removed.[root@sage bin]# ./crsctl stat res -t..ora.sage.vip1 ONLINE ONLINE sage ..4.4 Remove node 2, thyme from the Grid Infrastructure/clusterware# crsctl delete node -n thyme4.5 As the owner of the Grid Infrastructure Installation perform the following to clean up the Grid Infrastructure inventory on the remaining nodes (in this case node 1, sage).[root@sage bin]# su - oracle[oracle@sage ~]$ . oraenv db112i1[oracle@sage ~]$ cd $ORACLE_HOME/oui/bin[oracle@sage ~]$ ./runInstaller -updateNodeList ORACLE_HOME=/opt/app/oracle/product/grid "CLUSTER_NODES={sage}" CRS=TRUE -silent4.6  As root now list the nodes that are a part of the cluster to confirm the node required (thyme) has been removed successfully and the only remaining node in this case is node sage.At the end of this process only the node sage remains as a part of the cluster.[root@sage bin]# ./olsnodessage删除存在的节点:1.$ olsnodes -s -tIf the node is pinned, then run the crsctl unpin css command. Otherwise,proceed to the next step.
2.Disable the Oracle Clusterware applications and daemons running on the node.Run the rootcrs.pl script as root from the Grid_home/crs/installdirectory on the node to be deleted, as follows:# ./rootcrs.pl -deconfig -deinstall -forceNote: Before you run this command, you must stop the EMAGENT, as follows:$ emctl stop dbconsole
3.From any node that you are not deleting# crsctl delete node -n node_to_be_deleted4.On the node you want to delete, run the following command as the user thatinstalled Oracle Clusterware from the Grid_home/oui/bin directory wherenode_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 -local5.For a local home, deinstall the Oracle Clusterware home from the node thatyou want to delete, as follows, by running the following command, whereGrid_home is the path defined for the Oracle Clusterware home:$ Grid_home/deinstall/deinstall –localCaution: If you do not specify the -local flag, then the command removes the Grid Infrastructure home from every node in the cluster.6. On any node other than the node you are deleting, run the following commandfrom the Grid_home/oui/bin directory where remaining_nodes_list is acomma-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

--add

	1. Ensure that you have successfully installed Oracle Clusterware on at least one node in your cluster environment.2. Verify the integrity of the cluster and node3: $ cluvfy stage -pre nodeadd -n node3 [-fixup [-fixupdir fixup_dir]] [-verbose]3. To extend the Grid Infrastructure home to the node3("CLUSTER_NEW_NODES={node3,node4,node5}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node3-vip,node4-vip,node5-vip}")Grid_home/oui/bin/addNode.sh directory on node1If you are using Grid Naming Service (GNS), run the following command:$ ./addNode.sh "CLUSTER_NEW_NODES={node3}"If you are not using GNS, run the following command:$ ./addNode.sh "CLUSTER_NEW_NODES={node3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node3-vip}"Alternatively,$ ./addNode.sh -responseFile file_name$ vi file_nameRESPONSEFILE_VERSION=2.2.1.0.0CLUSTER_NEW_NODES={node3}CLUSTER_NEW_VIRTUAL_HOSTNAMES={node3-vip}4. If you have an Oracle RAC or Oracle RAC One Node database configured on thecluster and you have a local Oracle home, then do the following to extend theOracle database home to node3:$ $Oracle_home/oui/bin/addNode.sh "CLUSTER_NEW_NODES={node3}"$ $Oracle_home/root.sh script on node3 as root, where Oracle_home is the Oracle RAC home.5. Run the Grid_home/root.sh script on the node3 as root and run the subsequent script, as instructed.6. Run the following CVU command to check cluster integrity.$ cluvfy stage -post nodeadd -n node3 [-verbose]

遇到的问题:

预检不通过,无法继续安装,但实际已满足安装条件,比如:/u01/11.2.0/grid目录存在,但预检时却检查失败。

prod02:/u01/11.2.0/grid/oui/bin$./addNode.sh -ignoreSysPrereqs -force "CLUSTER_NEW_NODES={prod01}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={prod01-vip}"Performing pre-checks for node addition Checking node reachability...
Node reachability check passed from node "prod02":::::Checking CRS home location...
PRVG-1013 : The path "/u01/11.2.0/grid" does not exist or cannot be created on the nodes to be added
Shared resources check for node addition failedCheck failed on nodes: prod01Checking node connectivity...


可以通过设置环境变量IGNORE_PREADDNODE_CHECKS=Y来解决,详细如下:

prod02:/u01/11.2.0/grid/oui/bin$cat addNode.sh 
#!/bin/sh
OHOME=/u01/11.2.0/grid
INVPTRLOC=$OHOME/oraInst.loc
EXIT_CODE=0
ADDNODE="$OHOME/oui/bin/runInstaller -addNode -invPtrLoc $INVPTRLOC ORACLE_HOME=$OHOME $*"
if [ "$IGNORE_PREADDNODE_CHECKS" = "Y" -o ! -f "$OHOME/cv/cvutl/check_nodeadd.pl" ]      <<<<<<<<<脚本这里可以看到这个参数
then$ADDNODEEXIT_CODE=$?;
elseCHECK_NODEADD="$OHOME/perl/bin/perl $OHOME/cv/cvutl/check_nodeadd.pl -pre ORACLE_HOME=$OHOME $*"$CHECK_NODEADDEXIT_CODE=$?;if [ $EXIT_CODE -eq 0 ]then$ADDNODEEXIT_CODE=$?;fi
fi
exit $EXIT_CODE ;prod02:/u01/11.2.0/grid/oui/bin$export IGNORE_PREADDNODE_CHECKS=Y
prod02:/u01/11.2.0/grid/oui/bin$./addNode.sh -ignoreSysPrereqs -force "CLUSTER_NEW_NODES={prod01}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={prod01-vip}"
Starting Oracle Universal Installer...Checking swap space: must be greater than 500 MB.   Actual 4727 MB    Passed
Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.Performing tests to see whether nodes prod01 are available
............................................................... 100% Done..
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global SettingsSource: /u01/11.2.0/gridNew Nodes
Space RequirementsNew Nodesprod01/u01: Required 3.91GB : Available 17.60GB
Installed ProductsProduct NamesOracle Grid Infrastructure 11.2.0.3.0 Sun JDK 1.5.0.30.03 Installer SDK Component 11.2.0.3.0 Oracle One-Off Patch Installer 11.2.0.1.7 Oracle Universal Installer 11.2.0.3.0 Oracle USM Deconfiguration 11.2.0.3.0 Oracle Configuration Manager Deconfiguration 10.3.1.0.0 Enterprise Manager Common Core Files 10.2.0.4.4 Oracle DBCA Deconfiguration 11.2.0.3.0 Oracle RAC Deconfiguration 11.2.0.3.0 Oracle Quality of Service Management (Server) 11.2.0.3.0 Installation Plugin Files 11.2.0.3.0 Universal Storage Manager Files 11.2.0.3.0 Oracle Text Required Support Files 11.2.0.3.0 Automatic Storage Management Assistant 11.2.0.3.0 Oracle Database 11g Multimedia Files 11.2.0.3.0 Oracle Multimedia Java Advanced Imaging 11.2.0.3.0 Oracle Globalization Support 11.2.0.3.0 Oracle Multimedia Locator RDBMS Files 11.2.0.3.0 Oracle Core Required Support Files 11.2.0.3.0 Bali Share 1.1.18.0.0 Oracle Database Deconfiguration 11.2.0.3.0 Oracle Quality of Service Management (Client) 11.2.0.3.0 Expat libraries 2.0.1.0.1 Oracle Containers for Java 11.2.0.3.0 Perl Modules 5.10.0.0.1 Secure Socket Layer 11.2.0.3.0 Oracle JDBC/OCI Instant Client 11.2.0.3.0 Oracle Multimedia Client Option 11.2.0.3.0 LDAP Required Support Files 11.2.0.3.0 Character Set Migration Utility 11.2.0.3.0 Perl Interpreter 5.10.0.0.2 PL/SQL Embedded Gateway 11.2.0.3.0 OLAP SQL Scripts 11.2.0.3.0 Database SQL Scripts 11.2.0.3.0 Oracle Extended Windowing Toolkit 3.4.47.0.0 SSL Required Support Files for InstantClient 11.2.0.3.0 SQL*Plus Files for Instant Client 11.2.0.3.0 Oracle Net Required Support Files 11.2.0.3.0 Oracle Database User Interface 2.2.13.0.0 RDBMS Required Support Files for Instant Client 11.2.0.3.0 RDBMS Required Support Files Runtime 11.2.0.3.0 XML Parser for Java 11.2.0.3.0 Oracle Security Developer Tools 11.2.0.3.0 Oracle Wallet Manager 11.2.0.3.0 Enterprise Manager plugin Common Files 11.2.0.3.0 Platform Required Support Files 11.2.0.3.0 Oracle JFC Extended Windowing Toolkit 4.2.36.0.0 RDBMS Required Support Files 11.2.0.3.0 Oracle Ice Browser 5.2.3.6.0 Oracle Help For Java 4.2.9.0.0 Enterprise Manager Common Files 10.2.0.4.3 Deinstallation Tool 11.2.0.3.0 Oracle Java Client 11.2.0.3.0 Cluster Verification Utility Files 11.2.0.3.0 Oracle Notification Service (eONS) 11.2.0.3.0 Oracle LDAP administration 11.2.0.3.0 Cluster Verification Utility Common Files 11.2.0.3.0 Oracle Clusterware RDBMS Files 11.2.0.3.0 Oracle Locale Builder 11.2.0.3.0 Oracle Globalization Support 11.2.0.3.0 Buildtools Common Files 11.2.0.3.0 Oracle RAC Required Support Files-HAS 11.2.0.3.0 SQL*Plus Required Support Files 11.2.0.3.0 XDK Required Support Files 11.2.0.3.0 Agent Required Support Files 10.2.0.4.3 Parser Generator Required Support Files 11.2.0.3.0 Precompiler Required Support Files 11.2.0.3.0 Installation Common Files 11.2.0.3.0 Required Support Files 11.2.0.3.0 Oracle JDBC/THIN Interfaces 11.2.0.3.0 Oracle Multimedia Locator 11.2.0.3.0 Oracle Multimedia 11.2.0.3.0 HAS Common Files 11.2.0.3.0 Assistant Common Files 11.2.0.3.0 PL/SQL 11.2.0.3.0 HAS Files for DB 11.2.0.3.0 Oracle Recovery Manager 11.2.0.3.0 Oracle Database Utilities 11.2.0.3.0 Oracle Notification Service 11.2.0.3.0 SQL*Plus 11.2.0.3.0 Oracle Netca Client 11.2.0.3.0 Oracle Net 11.2.0.3.0 Oracle JVM 11.2.0.3.0 Oracle Internet Directory Client 11.2.0.3.0 Oracle Net Listener 11.2.0.3.0 Cluster Ready Services Files 11.2.0.3.0 Oracle Database 11g 11.2.0.3.0 
-----------------------------------------------------------------------------Instantiating scripts for add node (Monday, July 6, 2015 7:53:36 PM CST)
.                                                                 1% Done.
Instantiation of add node scripts completeCopying to remote nodes (Monday, July 6, 2015 7:53:39 PM CST)
...............................................................................................                                 96% Done.
Home copied to new nodesSaving inventory on nodes (Monday, July 6, 2015 7:57:51 PM CST)
.                                                               100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each new cluster node. Each script in the list below is followed by a list of nodes.
/u01/11.2.0/grid/root.sh #On nodes prod01
To execute the configuration scripts:1. Open a terminal window2. Log in as "root"3. Run the scripts in each cluster nodeThe Cluster Node Addition of /u01/11.2.0/grid was successful.
Please check '/tmp/silentInstall.log' for more details.
prod02:/u01/11.2.0/grid/oui/bin$


这篇关于11gR203 add node for RAC的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/632511

相关文章

Node.js 数据库 CRUD 项目示例详解(完美解决方案)

《Node.js数据库CRUD项目示例详解(完美解决方案)》:本文主要介绍Node.js数据库CRUD项目示例详解(完美解决方案),本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考... 目录项目结构1. 初始化项目2. 配置数据库连接 (config/db.js)3. 创建模型 (models/

使用Node.js制作图片上传服务的详细教程

《使用Node.js制作图片上传服务的详细教程》在现代Web应用开发中,图片上传是一项常见且重要的功能,借助Node.js强大的生态系统,我们可以轻松搭建高效的图片上传服务,本文将深入探讨如何使用No... 目录准备工作搭建 Express 服务器配置 multer 进行图片上传处理图片上传请求完整代码示例

Nginx指令add_header和proxy_set_header的区别及说明

《Nginx指令add_header和proxy_set_header的区别及说明》:本文主要介绍Nginx指令add_header和proxy_set_header的区别及说明,具有很好的参考价... 目录Nginx指令add_header和proxy_set_header区别如何理解反向代理?proxy

nvm如何切换与管理node版本

《nvm如何切换与管理node版本》:本文主要介绍nvm如何切换与管理node版本问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录nvm切换与管理node版本nvm安装nvm常用命令总结nvm切换与管理node版本nvm适用于多项目同时开发,然后项目适配no

在Dockerfile中copy和add的区别及说明

《在Dockerfile中copy和add的区别及说明》COPY和ADD都是Dockerfile中用于文件复制的命令,但COPY仅用于本地文件或目录的复制,不支持自动解压缩;而ADD除了复制本地文件或... 目录在dockerfile中,copy 和 add有什么区别?COPY 命令ADD 命令总结在Doc

Node.js net模块的使用示例

《Node.jsnet模块的使用示例》本文主要介绍了Node.jsnet模块的使用示例,net模块支持TCP通信,处理TCP连接和数据传输,具有一定的参考价值,感兴趣的可以了解一下... 目录简介引入 net 模块核心概念TCP (传输控制协议)Socket服务器TCP 服务器创建基本服务器服务器配置选项服

mac安装nvm(node.js)多版本管理实践步骤

《mac安装nvm(node.js)多版本管理实践步骤》:本文主要介绍mac安装nvm(node.js)多版本管理的相关资料,NVM是一个用于管理多个Node.js版本的命令行工具,它允许开发者在... 目录NVM功能简介MAC安装实践一、下载nvm二、安装nvm三、安装node.js总结NVM功能简介N

Node.js 中 http 模块的深度剖析与实战应用小结

《Node.js中http模块的深度剖析与实战应用小结》本文详细介绍了Node.js中的http模块,从创建HTTP服务器、处理请求与响应,到获取请求参数,每个环节都通过代码示例进行解析,旨在帮... 目录Node.js 中 http 模块的深度剖析与实战应用一、引言二、创建 HTTP 服务器:基石搭建(一

Node.js学习记录(二)

目录 一、express 1、初识express 2、安装express 3、创建并启动web服务器 4、监听 GET&POST 请求、响应内容给客户端 5、获取URL中携带的查询参数 6、获取URL中动态参数 7、静态资源托管 二、工具nodemon 三、express路由 1、express中路由 2、路由的匹配 3、路由模块化 4、路由模块添加前缀 四、中间件

Node Linux相关安装

下载经编译好的文件cd /optwget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.gztar -xvf node-v10.15.3-linux-x64.tar.gzln -s /opt/node-v10.15.3-linux-x64/bin/npm /usr/local/bin/ln -s /opt/nod