新增節點oracle10g rac(rhel4)_clusterware

wisdomone1發表於2010-03-09
新增新節點oracle10g rac(rhel4)_clusterware(一)

1,根據配置好的rac節點,搭建相關環境
   a,os rpm包(參考oracle document)
   b,os 配置檔案(limits.conf)
   c,/etc/hosts檔案
   d,連通新節點與儲存
   e,編輯修改/boot/grub/grub及modprobe.conf檔案(可參對我以前的rac文件)
   f,配置raw,asm根據已有rac節點,當然若啟用了ocfs,請查閱相關文件
   g,把相關的許可權及授權動作寫入/etc/rc.d/rc.local(可查閱已存rac節點)
2,在已有rac節點以oracle使用者執行addnodes.sh指令碼
3,以上指令碼執行,可能會提示所選節點capitek3不可訪問(這是三節點的ssh通訊配置有問題,重配就可);若cluster未啟動,報錯如下:
  rac 啟動與addnodes.sh錯誤日誌關係
[root@capitek1 logs]# more oraInstall2010-03-08_03-46-16AM.err
Exception java.lang.NullPointerException occurred..
java.lang.NullPointerException
        at oracle.sysman.oii.oiif.oiifw.OiifwClusterChecksWCCE.getNodeStatus(OiifwClusterChecksWCCE.java:412)
        at oracle.sysman.oii.oiif.oiifw.OiifwClusterChecksWCCE.doOperation(OiifwClusterChecksWCCE.java:336)
        at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)
        at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:1273)
        at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:289)
        at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:546)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:929)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
[root@capitek1 logs]#
 以上不言自喻,啟動cluster就行(表現症狀:在選擇新增節點的對話方塊中:vip and private ip名字是空的)



4,繼續執行會提示要執行一個runinstaller指令碼,先在新增節點執行它,然後繼續執行cluster軟體安裝對話方塊

5,最後在新增節點執行root.sh提示如下:
[root@capitek3 /]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script. is complete
[root@capitek3 /]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
OCR LOCATIONS =  /dev/raw/raw4
OCR backup directory '/u01/app/oracle/product/10.2.0/crs_1/cdata/crs' does not exist. Creating now
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname capitek1 for node 1.
assigning default hostname capitek2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: capitek1 capitek1-priv capitek1
node 2: capitek2 capitek2-priv capitek2
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        capitek1
        capitek2
        capitek3
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
IP address "capitek1-vip" has already been used. Enter an unused IP address.


可先用crs_stat -t與ifconfig相關clusterware服務是否正常(ps -ef),若正常,可不用執行vipca


6,在已有節點以oracle使用者執行/u01/app/oracle/product/10.2.0/crs_1/bin/racgons add_config capitek3:6200
   (新增節點埠號資訊可取自於:more product/10.2.0/crs_1/opmn/conf/ons.config )

這就完成了新增節點rac cluster軟體的配置




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-629014/,如需轉載,請註明出處,否則將追究法律責任。

相關文章