RedHat 5.6_x86_64 + ASM + RAW+ Orac

nt1979發表於2021-09-09


十、常見報錯

1、報錯1

nodeNames = jason1,jason2,

INFO: Query Returned:

PRKC-1044 : Failed to check remote command executionsetup for node jason1 using shells /usr/bin/ssh and /usr/bin/rsh

jason1: Connection refused

SEVERE: The specified nodes are not clusterable.

The following error was returned by the operatingsystem:

PRKC-1044 : Failed to check remote command executionsetup for node jason1 using shells /usr/bin/ssh and /usr/bin/rsh

jason1: Connection refused

解決方法:

確保安裝ssh與rsh。同時配置彼此信任關係

2、報錯2

[root@jason2 crs]# ./root.sh

WARNING: directory '/home/oracle/orahome/product/10.2.0'is not owned by root

WARNING: directory '/home/oracle/orahome/product' is notowned by root

WARNING: directory '/home/oracle/orahome' is not ownedby root

WARNING: directory '/home/oracle' is not owned by root

Checking to see if Oracle CRS stack is alreadyconfigured

/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory

Setting up NS directories

PROT-1: Failed to initialize ocrconfig

Failed to upgrade Oracle Cluster Registry configuration

[root@jason2 crs]#

解決方法

如果出現以上報錯,則表示OCR無法初始化,

因此應確保共享磁碟共享正常或裸裝置中存在資料需要清除

dd if=/dev/zero of=/dev/sdc bs=8192 count=20000

3、報錯3

[root@jason2 crs]# ./root.sh

WARNING: directory '/home/oracle/orahome/product/10.2.0'is not owned by root

WARNING: directory '/home/oracle/orahome/product' is notowned by root

WARNING: directory '/home/oracle/orahome' is not ownedby root

WARNING: directory '/home/oracle' is not owned by root

Checking to see if Oracle CRS stack is alreadyconfigured

Oracle CRS stack is already configured and will be runningunder init(1M)

[root@jason2 crs]#

解決方法:

原因為更換的儲存裝置和上次安裝的裝置檔名不一致,刪除每臺機器上的/etc/oracle/scls_scr/rac1/oracle/cssfatal檔案即可。

4、報錯4 (這是個bug:3937317)

安裝叢集軟體時,在第二個節點執行root.sh指令碼報如下錯誤:

Running vipca(silent) for configuring nodeapps

/home/oracle/orahome/product/10.2.0/crs/jdk/jre//bin/java:error while loading shared libraries: libpthread.so.0: cannot open sharedobject file: No such file or directory

或執行root.sh指令碼碰到了這個錯誤(該錯誤不需要修改檔案,直接執行vipca進行配置):

The given interface(s), "eth0" is not public.Public interfaces should be used to configure virtual IPs.

解決方法:

修改vipca檔案

# vi /home/oracle/orahome/product/10.2.0/crs/bin/vipca

找到如下內容:

Remove this workaround when the bug 3937317 is fixed

arch=`uname -m`

if [ "$arch" = "i686" -o"$arch" = "ia64" ]

then

LD_ASSUME_KERNEL=2.4.19

export LD_ASSUME_KERNEL

fi

#End workaround

在fi 後新新增一行:

unset LD_ASSUME_KERNEL

修改srvctl 檔案

# vi /home/oracle/orahome/product/10.2.0/crs/bin/srvctl

找到如下內容:

LD_ASSUME_KERNEL=2.4.19

export LD_ASSUME_KERNEL

同樣在其後新增加一行:

unset LD_ASSUME_KERNEL

修改完檔案之後以root使用者身份執行vipca配置nodeappsresource.如下所示

091413185.jpg

點選next

091445603.jpg

點選next

091830146.jpg

書寫vip別名與vip地址

091943564.jpg

點選next

092317190.jpg

點選finish

092342875.jpg

092531878.jpg

點選ok

092814164.jpg

點選exit

vipca配置完成之後回到叢集軟體安裝介面點選ok介面退出叢集軟體安裝。

092915969.jpg

5、報錯5

在執行vipca配置時,報如下錯誤。

[root@jason2 bin]# ./vipca

Error 0(Native: listNetInterfaces:[3])

[Error 0(Native:listNetInterfaces:[3])]

[root@jason2 bin]#

解決方法

[root@jason2 bin]# pwd

/home/oracle/orahome/product/10.2.0/crs/bin

[root@jason2 bin]# ./oifcfg setif -globaleth0/192.168.12.0:public

[root@jason2 bin]# ./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect

[root@jason2 bin]# ./oifcfg getif

eth0 192.168.12.0 global public

eth1 10.10.10.0 global cluster_interconnect

[root@jason2 bin]#

執行完以上操作後,再次以root使用者手工執行vipca進行配置nodeappsresource。

詳細的情況記錄在Oracle notes: 414163.1。

附件:

©著作權歸作者所有:來自51CTO部落格作者jason_125的原創作品,如需轉載,請註明出處,否則將追究法律責任

RAWASMRedHat 5.6_x86_64oracle配置部署


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

相關文章