RAC 12c中为集群添加一个节点

OS:Oracle Linux 6.6 x64
DB:Oracle 12c

以下环境中,有一个2节点RAC,node1+node2,集群模式为flex集群且都是hub角色,现计划新增一个节点node3,角色为leaf。

先为node3做预先准备,与新安装时一样。完成后在node1上预检,以grid用户运行:


点击(此处)折叠或打开

  1. $ cluvfy stage -pre nodeadd -n node3 -fixup -verbose

  2. #出现以下输出表示成功
  3. Checking Flex Cluster node role configuration...
  4. Flex Cluster node role configuration check passed

  5. Pre-check for node addition was successful.
然后开始安装,以grid用户运行:

点击(此处)折叠或打开

  1. $GRID_HOME/addnode/addnode.sh -silent "CLUSTER_NEW_NODES={node3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node3-vip}" "CLUSTER_NEW_NODE_ROLES={leaf}"
因为node3要作为叶节点,所以是leaf;如果要作为中心节点,就是hub。

运行完后,会出现如下提示,按提示在新节点node3上以root用户运行:

点击(此处)折叠或打开

  1. As a root user, execute the following script(s):
  2.         1. /u01/app/oraInventory/orainstRoot.sh
  3.         2. /u01/app/12.1.0/grid/root.sh

  4. Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
  5. [node3]
  6. Execute /u01/app/12.1.0/grid/root.sh on the following nodes:
  7. [node3]
最后,验证结果。


点击(此处)折叠或打开

  1. cluvfy stage -post nodeadd -n node3

  2. $ crsctl check cluster -all
  3. **************************************************************
  4. node1:
  5. CRS-4537: Cluster Ready Services is online
  6. CRS-4529: Cluster Synchronization Services is online
  7. CRS-4533: Event Manager is online
  8. **************************************************************
  9. node2:
  10. CRS-4537: Cluster Ready Services is online
  11. CRS-4529: Cluster Synchronization Services is online
  12. CRS-4533: Event Manager is online
  13. **************************************************************
  14. node3:
  15. CRS-4537: Cluster Ready Services is online
  16. CRS-4529: Cluster Synchronization Services is online
  17. CRS-4533: Event Manager is online
  18. **************************************************************

  19. $ olsnodes -n
  20. node1 1
  21. node2 2
  22. node3 100
至此,clusterware在node3复制运行成功,接下来需要复制ORACLE_HOME。

在node1上以oracle用户运行:

点击(此处)折叠或打开

  1. $ORACLE_HOME/addnode/addnode.sh -silent "CLUSTER_NEW_NODES={node3}"
完成后,出现如下提示,按提示在node3上以root执行:

点击(此处)折叠或打开

  1. As a root user, execute the following script(s):
  2.         1. /u01/app/oracle/product/12.1.0/db_1/root.sh

  3. Execute /u01/app/oracle/product/12.1.0/db_1/root.sh on the following nodes:
  4. [node3]

然后,node3还可能需要VIP。

确认当前node3有无VIP。无则添加一个。

点击(此处)折叠或打开

  1. $ srvctl config vip -n node3
  2. PRKO-2310 : VIP does not exist on node node3.

  3. #添加VIP,以root用户运行
  4. # /u01/app/12.1.0/grid/bin/srvctl add vip -node node3 -netnum 1 -address node3-vip.demo.com/255.255.255.0
  5. # /u01/app/12.1.0/grid/bin/srvctl start vip -n node3

如果是添加一个Hub节点,就需要新建实例了。新建实例使用DBCA->Instance Management。



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22621861/viewspace-2114827/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22621861/viewspace-2114827/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值