2.9. 運行指令碼(orainstRoot.Sh 和 root.Sh)
在每個節點依次執行orainstRoot.sh指令碼(先執行安裝CRS軟體的節點):
[oracle@rac1~]$ su - root
Password:
[root@rac1~]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changingpermissions of /u01/app/oracle/oraInventory to 770.
Changinggroupname of /u01/app/oracle/oraInventory to oinstall.
Theexecution of the script is complete
依次執行 root.sh指令碼(先執行你的CRS安裝軟體的那個節點)
[root@rac1~]# /u01/app/oracle/product/crs/root.sh
WARNING:directory '/u01/app/oracle/product' is not owned by root
WARNING:directory '/u01/app/oracle' is not owned by root
WARNING:directory '/u01/app' is not owned by root
Checkingto see if Oracle CRS stack is already configured
/etc/oracledoes not exist. Creating it now.
Settingthe permissions on OCR backup directory
Settingup NS directories
OracleCluster Registry configuration upgraded successfully
WARNING:directory '/u01/app/oracle/product' is not owned by root
WARNING:directory '/u01/app/oracle' is not owned by root
WARNING:directory '/u01/app' is not owned by root
assigningdefault hostname rac1 for node 1.
assigningdefault hostname rac2 for node 2.
Successfullyaccumulated necessary OCR keys.
Usingports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node<nodenumber>: <nodename> <private interconnect name><hostname>
node1: rac1 rac1-priv rac1
node2: rac2 rac2-priv rac2
CreatingOCR keys for user 'root', privgrp 'root'..
Operationsuccessful.
Nowformatting voting device: /dev/raw/raw2
Formatof 1 voting devices complete.
Startupwill be queued to init within 90 seconds.
Addingdaemons to inittab
Expectingthe CRS daemons to be up within 600 seconds.
CSSis active on these nodes.
rac1
CSSis inactive on these nodes.
rac2
Localnode checking complete.
Runroot.sh on remaining nodes to start CRS daemons.
再在另外個節點執行如下:
[root@rac2~]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changingpermissions of /u01/app/oracle/oraInventory to 770.
Changinggroupname of /u01/app/oracle/oraInventory to oinstall.
Theexecution of the script is complete
[root@rac2~]# /u01/app/oracle/product/crs/root.sh
WARNING:directory '/u01/app/oracle/product' is not owned by root
WARNING:directory '/u01/app/oracle' is not owned by root
WARNING:directory '/u01/app' is not owned by root
Checkingto see if Oracle CRS stack is already configured
/etc/oracledoes not exist. Creating it now.
Settingthe permissions on OCR backup directory
Settingup NS directories
OracleCluster Registry configuration upgraded successfully
WARNING:directory '/u01/app/oracle/product' is not owned by root
WARNING:directory '/u01/app/oracle' is not owned by root
WARNING:directory '/u01/app' is not owned by root
assigningdefault hostname rac1 for node 1.
assigningdefault hostname rac2 for node 2.
Successfullyaccumulated necessary OCR keys.
Usingports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node<nodenumber>: <nodename> <private interconnect name><hostname>
node1: rac1 rac1-priv rac1
node2: rac2 rac2-priv rac2
CreatingOCR keys for user 'root', privgrp 'root'..
Operationsuccessful.
Nowformatting voting device: /dev/raw/raw2
Formatof 1 voting devices complete.
Startupwill be queued to init within 90 seconds.
Addingdaemons to inittab
Expectingthe CRS daemons to be up within 600 seconds.
Failureat final check of Oracle CRS stack.
10
安裝Cluster的過程中第一個節點順利通過,第二個節點出現了該錯誤,查了下錯誤,懷疑是虛擬機器的共用磁碟設定的不對,對共用磁碟添加以下參數解決該問題:
最後添加這個
disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"