重新配置已存在的节点
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
注:上述文件只要修改即可,的第三个节点相关启动时,它会自动重新配置。
配置新节点
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
root489210 Mar07 pts/100:00:08 oracm
root489448920 Mar07 pts/100:00:05 oracm
root489548940 Mar07 pts/100:04:04 oracm
root489648940 Mar07 pts/100:00:00 oracm
root489748940 Mar07 pts/100:01:04 oracm
root489848940 Mar07 pts/100:00:09 oracm
root489948940 Mar07 pts/100:00:08 oracm
root490048940 Mar07 pts/100:01:03 oracm
root490148940 Mar07 pts/100:00:30 oracm
root495248940 Mar07 pts/100:00:00 oracm
root499448940 Mar07 pts/100:00:05 oracm
root646748940 01:09 pts/100: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 Mar3 18:12:28 2008 }^M
HandleUpdate(): NODE(0) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(4) {Mon Mar3 18:12:28 2008 }^M
HandleUpdate(): NODE(1) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(6) {Mon Mar3 18:12:28 2008 }^M
HandleUpdate(): NODE(2) IS ACTIVE MEMBER OF CLUSTER, INCARNATION(7) {Mon Mar3 18:12:28 2008 }^M
NMEVENT_RECONFIG [00][00][00][00][00][00][00][07] {Mon Mar3 18:12:28 2008 }^M
Debug Hang : CMNodeListener(PID=15316) Registered with ORACM. {Mon Mar3 18:12:28 2008 }^M
<11557:7152><58441:2567>Debug Hang : CMNodeListener(PID=15317) Registered with ORACM. {Mon Mar3 18:12:29 2008 }^M
Successful reconfiguration,3 active node(s) node 0 is the master, my node num is 0 (reconfig 7) {Mon Mar3 18:12:29 2008 }^M
这时可以启动gsd服务
[oracle@rac3 ~]$ gsdctl start
[oracle@rac3 ~]$ ps -ef|grep gsd