ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle9.2/Linux rac 动态加入新节点(3)

oracle9.2/Linux rac 动态加入新节点(3)

原创 Linux操作系统 作者:cc59 时间:2008-03-08 23:50:57 0 删除 编辑

配置Oracle Cluster Manger

 

重新配置已存在的节点

l         修改rac1的Cluster Manger文件

(红色为加入的内容)

[oracle@rac1 admin]$ vi cmcfg.ora

ClusterName=Oracle Cluster Manager, version 9i

MissCount=210

PrivateNodeNames=rac2-priv rac1-priv rac3-priv

PublicNodeNames=rac2 rac1 rac3

ServicePort=9998

CmDiskFile=/dev/raw/raw1

KernelModuleName=hangcheck-timer

HostName=rac1-priv

l         修改rac2的Cluster Manger文件

[oracle@rac2 admin]$ vi cmcfg.ora

ClusterName=Oracle Cluster Manager, version 9i

MissCount=210

PrivateNodeNames=rac2-priv rac1-priv rac3-priv

PublicNodeNames=rac2 rac1 rac3

ServicePort=9998

CmDiskFile=/dev/raw/raw1

KernelModuleName=hangcheck-timer

HostName=rac2-priv

注:上述文件只要修改即可,的第三个节点相关启动时,它会自动重新配置。

3.2配置新节点

l         修改rac3的Cluster Manger文件

ClusterName=Oracle Cluster Manager, version 9i

MissCount=210

PrivateNodeNames=rac2-priv rac1-priv rac3-priv

PublicNodeNames=rac2 rac1 rac3

ServicePort=9998

CmDiskFile=/dev/raw/raw1

KernelModuleName=hangcheck-timer

HostName=rac3-priv

l         在rac3上启动Cluster Manger

[root@rac2 9.2]$ mkdir /var/opt/oracle

[root@rac2 9.2]$ vi /var/opt/oracle/srvConfig.loc

srvconfig_loc=/dev/raw/raw14

[root@rac2 9.2]$ chown -R oracle:dba /var/opt/oracle

[root@rac3 oracle]# chmod -R 755 /var/opt/oracle/srvConfig.loc

[root@rac3 ~]# . /home/oracle/.bash_profile

[root@rac3 ~]# /u01/oracle/product/9.2/oracm/bin/ocmstart.sh

[oracle@rac3 ~]$ ps -ef|grep ora

root      4892     1  0 Mar07 pts/1    00:00:08 oracm

root      4894  4892  0 Mar07 pts/1    00:00:05 oracm

root      4895  4894  0 Mar07 pts/1    00:04:04 oracm

root      4896  4894  0 Mar07 pts/1    00:00:00 oracm

root      4897  4894  0 Mar07 pts/1    00:01:04 oracm

root      4898  4894  0 Mar07 pts/1    00:00:09 oracm

root      4899  4894  0 Mar07 pts/1    00:00:08 oracm

root      4900  4894  0 Mar07 pts/1    00:01:03 oracm

root      4901  4894  0 Mar07 pts/1    00:00:30 oracm

root      4952  4894  0 Mar07 pts/1    00:00:00 oracm

root      4994  4894  0 Mar07 pts/1    00:00:05 oracm

root      6467  4894  0 01:09 pts/1    00:00:52 oracm

检查ocm日志

[oracle@rac2 log]$ tail –f /u01/oracle/product/9.2/oracm/log/cm.log

HandleUpdate(): SYNC(6) from node(0) completed {Mon Mar  3 18:12:28 2008 }^M

HandleUpdate(): NODE(0) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(4) {Mon Mar  3 18:12:28 2008 }^M

HandleUpdate(): NODE(1) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(6) {Mon Mar  3 18:12:28 2008 }^M

HandleUpdate(): NODE(2) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(7) {Mon Mar  3 18:12:28 2008 }^M

NMEVENT_RECONFIG [00][00][00][00][00][00][00][07] {Mon Mar  3 18:12:28 2008 }^M

Debug Hang : CMNodeListener(PID=15316) Registered with ORACM. {Mon Mar  3 18:12:28 2008 }^M

<11557:7152><58441:2567>Debug Hang : CMNodeListener(PID=15317) Registered with ORACM. {Mon Mar  3 18:12:29 2008 }^M

Successful reconfiguration,  3 active node(s) node 0 is the master, my node num is 0 (reconfig 7) {Mon Mar  3 18:12:29 2008 }^M

 

   这时可以启动gsd服务

[oracle@rac3 ~]$ gsdctl start

[oracle@rac3 ~]$ ps -ef|grep gsd

 

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

请登录后发表评论 登录
全部评论

注册时间:2007-12-21

  • 博文量
    132
  • 访问量
    288321