Oracle_RAC_Grid_root.sh執行異常

luckyfriends發表於2014-06-04

文章版權所有 Jusin Hao(luckyfriends) ,支援原創,轉載請註明

-----2014-05-31

1. 問題現象:

安裝grid,執行root指令碼的時候,後臺有報這個錯誤:

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'

CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'rac1'

CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'

CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded

CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'

CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'rac1'

CRS-2676: Start of 'ora.asm' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'rac1'

CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'rac1'

CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded

PRKC-1024 : Invalid netmask: 255.255.25.0

add nodeapps -n rac1 -A rac1-vip/255.255.25.0/en0 on node=rac1 ... failed

CRS-2672: Attempting to start 'ora.asm' on 'rac1'

CRS-2676: Start of 'ora.asm' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac1'

CRS-2676: Start of 'ora.DATA.dg' on 'rac1' succeeded

PRCR-1001 : Resource ora.net1.network does not exist

add scan=rac-scan ... failed

Configure Oracle Grid Infrastructure for a Cluster ... failed

後繼續執行rac2的root.sh指令碼,然後進行如下config,出現異常

clip_image002

2. 問題分析

2.1. 檢視os配置

host檔案:

clip_image003

ip地址配置:

clip_image005

clip_image007

兩臺機器子網掩碼配置不一致

2.2. 檢視root指令碼執行的日誌

# vi /u01/11.2/grid/cfgtoollogs/crsconfig/rootcrs_db1.log、srvmcfg0.log

[main] [ 2014-05-31 17:16:42.086 CDT ] [has.VIPNative.Native] prsr_trace: Finished getting all of the interfaces

[main] [ 2014-05-31 17:16:42.087 CDT ] [CommandLineParser.buildVIPAddress:3705] found atleast one matching interface

[main] [ 2014-05-31 17:16:42.087 CDT ] [CommandLineParser.buildVIPAddress:3725] vipAddr =rac1-vip

[main] [ 2014-05-31 17:16:42.089 CDT ] [VIPAddress.:138] vipName is null

[main] [ 2014-05-31 17:16:42.090 CDT ] [VIPAddress.:139] viporname is rac1-vip

[main] [ 2014-05-31 17:16:42.107 CDT ] [DottedDecimalBinaryConverter.:51] #tokens = 4

[main] [ 2014-05-31 17:16:42.108 CDT ] [VIPAddress.:234] VIPAddress: netmask 255.255.25.0 is not valid

3. 問題解決:修改子網掩碼

由上面的診斷可以看出是子網掩碼不正確導致。

檢查rac1的子網掩碼配置不正確,如下修改

smitty tcpip

clip_image008

修改後的:

clip_image009

4. 後續配置

由於之前root執行失敗,導致vip、scanip的配置沒有完成。需要作如下配置

4.1. 手動增加vip服務

在節點1以root使用者為叢集增加節點的vip服務
# /u01/11.2/grid/bin/srvctl add nodeapps -n rac1 -A "rac1-vip/255.255.255.0/en0"

# /u01/11.2/grid/bin/srvctl add nodeapps -n rac2 -A "rac2-vip/255.255.255.0/en0"

檢視叢集服務狀態

clip_image010

clip_image011

clip_image012

然後srvctl start 把 ons 和vip拉起來

clip_image013

4.2. 手動增加scan vip

#srvctl add scan -n rac-scan

注:rac-scan為hosts檔案裡配置scan ip地址,否則如下報錯

# ./srvctl add scan -n scan

PRCS-1016 : Failed to resolve Single Client Access Name scan

/u01/grid$crs_stat |grep SCAN

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

相關文章