为10g_RAC_Cluster添加节点.docx_第1页
为10g_RAC_Cluster添加节点.docx_第2页
为10g_RAC_Cluster添加节点.docx_第3页
为10g_RAC_Cluster添加节点.docx_第4页
为10g_RAC_Cluster添加节点.docx_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

为10g RAC Cluster添加节点By admin, on March 31st, 2011RAC体系为系统扩容开创了一条新的道路:只需要不断向集群Cluster中加入新的服务器就可以了。这里我们就来介绍一下如何为10g RAC Cluster增加节点;实际上这并不复杂,甚至可以说是很简单的。为现有的Oracle 10g RAC添加节点大致包括以下步骤:1. 配置新的服务器节点上的硬件及操作系统环境 2. 向Cluster集群中加入该节点 3. 在新节点上安装Oracle Database software 4. 为新的节点配置监听器LISTENER 5. 通过DBCA为新的节点添加实例 我们假设当前RAC环境中存在2个节点,分别为vrh1和vrh2;该RAC环境中clusterware和database的版本均为10.2.0.4,需要加入该Cluster的新节点为vrh3。一、在新的服务器节点上配置操作系统环境1. 这包括配置该节点今后使用的public network公用网络和private network接口,不要忘记在hosts文件中加入之前节点的网络信息,并将该份完整的hosts文件传到集群Cluster中已有的节点上,保证处处可以访问 2. 同时需要在原有的基础上配置oracle(或其他DBA)用户的身份等价性,这需要将新节点上生成的id_rsa.pub和id_dsa.pub文件中的信息追加到authorized_keys文件中,并保证在所有节点上均有这样一份相同的authorized_keys文件 3. 调整新节点上的操作系统内核参数,保证其满足今后在该节点上运行实例的内存要求以及10g RAC Cluster的推荐的udp网络参数 4. 调整新节点上的系统时间以保持同其他节点一致,或者配置NTP服务 5. 保证原有Cluster中所有节点上的CRS都正常运行,否则addNode时会报错 6. 配置clusterware和database软件的安装目录,要求路径和原有节点上的一致 二.向Rac Cluster中加入新的节点1.在原有RAC节点上(vrh1)以oracle用户身份登录,设置合理的DISPLAY显示环境变量,并运行$ORA_CRS_HOME/oui/bin目录下的addNode.sh脚本oraclevrh1 $ export DISPLAY=IP:0.0oraclevrh1 $ cd $ORA_CRS_HOME/oui/binoraclevrh1 bin$ ./addNode.sh2.若OUI被正常调用则会出现欢迎界面,并点击NEXT:3.在”Specify Cluster Nodes to Add to Installation”界面下输入公共节点名、私有节点名和VIP节点名(之前应当在所有节点的/etc/hosts文件中都配置了):4.出现”Cluster Node Addition Summary”界面Review一遍Summary信息,并点击NEXT:5.出现”Cluster Node Addition Progress”界面,OUI成功将安装好的clusterware软件传输到新的节点后,会提示用户运行多个脚本包括:orainstRoot.sh(新节点)、rootaddnode.sh(运行OUI的原有节点)、root.sh(新节点):6.运行之前提示的三个脚本:/* 在新节点上运行orainstRoot.sh脚本 */rootvrh3 # /s01/oraInventory/orainstRoot.shChanging permissions of /s01/oraInventory to 770.Changing groupname of /s01/oraInventory to oinstall.The execution of the script is complete/* 在运行OUI的原有节点上运行rootaddnode.sh脚本 */rootvrh1 # /s01/oracle/product/10.2.0/crs/install/rootaddnode.shclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Attempting to add 1 new nodes to the configurationUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node nodenumber: nodename private interconnect name hostnamenode 3: vrh3 vrh3-priv vrh3Creating OCR keys for user root, privgrp root.Operation successful./s01/oracle/product/10.2.0/crs/bin/srvctl add nodeapps -n vrh3 -A vrh3-vip/255.255.255.0/eth0 -o /s01/oracle/product/10.2.0/crs/* 在新节点上运行root.sh脚本 */rootvrh3 # /s01/oracle/product/10.2.0/crs/root.shWARNING: directory /s01/oracle/product/10.2.0 is not owned by rootWARNING: directory /s01/oracle/product is not owned by rootWARNING: directory /s01/oracle is not owned by rootWARNING: directory /s01 is not owned by rootChecking to see if Oracle CRS stack is already configured/etc/oracle does not exist. Creating it now.OCR LOCATIONS = /dev/raw/raw1OCR backup directory /s01/oracle/product/10.2.0/crs/cdata/crs does not exist. Creating nowSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory /s01/oracle/product/10.2.0 is not owned by rootWARNING: directory /s01/oracle/product is not owned by rootWARNING: directory /s01/oracle is not owned by rootWARNING: directory /s01 is not owned by rootclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node nodenumber: nodename private interconnect name hostnamenode 1: vrh1 vrh1-priv vrh1node 2: vrh2 vrh2-priv vrh2clscfg: Arguments check out successfully.NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes. vrh1 vrh2 vrh3CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeappsCreating VIP application resource on (0) nodes.Creating GSD application resource on (2) nodes.Creating ONS application resource on (2) nodes.Starting VIP application resource on (2) nodes.Starting GSD application resource on (2) nodes.Starting ONS application resource on (2) nodes.Done.7.运行完成以上脚本后回到OUI界面点选OK,出现安装成功界面:三.在新节点上安装Oracle Database software1.在原有RAC节点上以Oracle用户身份登录,设置合理的DISPLAY显示环境变量,并运行$ORACLE_HOME/oui/bin目录下的addNode.sh脚本:oraclevrh1 $ export DISPLAY=IP:0.0oraclevrh1 $ cd $ORACLE_HOME/oui/binoraclevrh1 bin$ ./addNode.sh2.若OUI被正常调用则会出现欢迎界面,并点击NEXT:3.在”Specify Cluster Nodes to Add to Installation“界面中勾选需要安装Oracle Database software数据库软件的节点,这里为vrh3:4.出现”Cluster Node Addition Summary”界面,review一遍安装Summary后点击Next:5.出现”Cluster Node Addition Progress”进度条界面,完成对Oracle database Software的远程传输安装后会提示用户运行root.sh脚本:6.在新的节点(这里为vrh3)上运行提示脚本root.sh四.在新的节点(vrh3)上使用netca工具配置监听器LISTENER,不做展开五.使用DBCA工具在新节点上添加实例1.在原有RAC节点上以Oracle用户身份登录,设置合理的DISPLAY显示环境变量,并运行DBCA命令:2.出现DBCA欢迎界面,选择”Oracle Real Application Clusters”并点击Next:

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论