AIX 安装 RAC 错误集锦(1)之--root.sh


        AIX5.3 安装Oracle 10g RAC 报错之--root.sh 


故障问题:安装crs 报错,运行root.sh报错


环境:

操作系统: AIX 5.3.8

集群软件: CRS 10.2.0.1

数据库:   Oracle 10.2.0.1


一、出错现象


在第二个节点运行root.sh

[root@aix212 install]#/u01/crs_1/root.sh

WARNING: directory '/u01' is not owned by root

Checking to see if Oracle CRS stack is already configured

Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/u01' is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: aix211 aix211-priv aix211

node 2: aix212 aix212-priv aix212

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 30 seconds.

Adding daemons to inittab

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

--------在这里hold住,无法继续


查看crsd.log日志:


2013-06-06 16:23:34.959: [ CSSCLNT][1]clsssInitNative: connect failed, rc 9

2013-06-06 16:23:34.960: [  CRSRTI][1]32CSS is not ready. Received

status 3 from CSS. Waiting for good status ..  

2013-06-06 16:23:35.355: [ COMMCRS][325]clsc_connect: (110986810) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_aix212_crs))

2013-06-06 16:23:35.355: [ CSSCLNT][1]clsssInitNative: connect failed, rc 9

2013-06-06 16:23:35.356: [  CRSRTI][1]32CSS is not ready. Received status 3 from CSS. Waiting for good status ..  

2013-06-06 16:23:36.314: [ COMMCRS][319]clsc_connect: (110986810) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_aix212_crs))

2013-06-06 16:23:36.314: [ CSSCLNT][1]clsssInitNative: connect failed, rc 9

2013-06-06 16:23:36.315: [  CRSRTI][1]32CSS is not ready. Received status 3 from CSS. Waiting for good status ..  


、解决方法:(在所有节点)

通过图形方式运行install_assistAIX 安装助手,修改系统时间和配置网卡,系统时间原来为台湾时间改为Republic china,呵呵)

wKioL1MNiZrCkuFBAAFjIRys-Ak264.jpg

wKiom1MNidnCqzNiAAGd5vIKGbc820.jpg

wKiom1MNih-SzqFxAAEp19jhtJ4871.jpg

修改后,将主机重启!

[root@aix211 install]  shutdown –Fr

系统启动后,将/tmp/ 下关于.oracle  crs* 的相关目录和文件删除


三、重新配置crs(在所有节点)


在节点上运行rootdelete.sh的脚本

[root@aix211 install]#./rootdelete.sh

CRS-0210: Could not find resource 'ora.aix211.LISTENER_AIX211.lsnr'.

CRS-0210: Could not find resource 'ora.aix211.ons'.

CRS-0210: Could not find resource 'ora.aix211.vip'.

CRS-0210: Could not find resource 'ora.aix211.gsd'.

Shutting down Oracle Cluster Ready Services (CRS):

Stopping resources.

Successfully stopped CRS resources  

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

Shutdown has begun. The daemons should exit soon.

Checking to see if Oracle CRS stack is down...

Oracle CRS stack is not running.

Oracle CRS stack is down now.

Removing script for Oracle Cluster Ready services

Updating ocr file for downgrade

Cleaning up SCR settings in '/etc/oracle/scls_scr'

然后在运行root.sh的脚本

[root@aix212 install]#/u01/crs_1/root.sh

WARNING: directory '/u01' is not owned by root

Checking to see if Oracle CRS stack is already configured

Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/u01' is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: aix211 aix211-priv aix211

node 2: aix212 aix212-priv aix212

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 30 seconds.

Adding daemons to inittab

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

       aix211

       aix212

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M)

Running vipca(silent) for configuring nodeapps

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

[root@aix212 install]#

[root@aix211 install]#/u01/crs_1/root.sh  

WARNING: directory '/u01' is not owned by root

Checking to see if Oracle CRS stack is already configured

Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/u01' is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: aix211 aix211-priv aix211

node 2: aix212 aix212-priv aix212

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 30 seconds.

Adding daemons to inittab

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

       aix211

       aix212

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

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

[root@aix211 install]#

-----在所有节点上运行vipcaroot 用户)

-------选择public network interface

在安装crs的节点上运行(安装后校验):

[root@aix212 cluvfy]#./runcluvfy.sh stage -post crsinst  -n aix212,aix211 –verbose


Performing post-checks for cluster services setup  

Checking node reachability...

Check: Node reachability from node "aix212"

 Destination Node                      Reachable?              

 ------------------------------------  ------------------------

 aix211                                yes                      

 aix212                                yes                      

Result: Node reachability check passed from node "aix212".

Checking user equivalence...

Check: User equivalence for user "root"

 Node Name                             Comment                  

 ------------------------------------  ------------------------

 aix212                                passed                  

 aix211                                failed                  

Result: User equivalence check failed for user "root".

WARNING:  

User equivalence is not set for nodes:

       aix211

Verification will proceed with nodes:

       aix212

Checking Cluster manager integrity...  

Checking CSS daemon...

 Node Name                             Status                  

 ------------------------------------  ------------------------

 aix212                                running                  

Result: Daemon status check passed for "CSS daemon".

Cluster manager integrity check passed.

Checking cluster integrity...  

 Node Name                            

 ------------------------------------

 aix211                              

 aix212                              

Cluster integrity check passed

Checking OCR integrity...

Checking the absence of a non-clustered configuration...

All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR...

OCR of correct Version "2" exists.

Checking data integrity of OCR...

Data integrity check for OCR passed.

OCR integrity check passed.

Checking CRS integrity...

Checking daemon liveness...

Check: Liveness for "CRS daemon"

 Node Name                             Running                  

 ------------------------------------  ------------------------

 aix212                                yes                      

Result: Liveness check passed for "CRS daemon".

Checking daemon liveness...

Check: Liveness for "CSS daemon"

 Node Name                             Running                  

 ------------------------------------  ------------------------

 aix212                                yes                      

Result: Liveness check passed for "CSS daemon".

Checking daemon liveness...

Check: Liveness for "EVM daemon"

 Node Name                             Running                  

 ------------------------------------  ------------------------

 aix212                                yes                      

Result: Liveness check passed for "EVM daemon".

Liveness of all the daemons

 Node Name     CRS daemon                CSS daemon                EVM daemon

 ------------  ------------------------  ------------------------  ----------

 aix212        yes                       yes                       yes        

Checking CRS health...

Check: Health of CRS

 Node Name                             CRS OK?                  

 ------------------------------------  ------------------------

 aix212                                yes                      

Result: CRS health check passed.

CRS integrity check passed.

Checking node application existence...  

WARNING:  

User equivalence is not set for nodes:

       aix211

Verification will proceed with nodes:

       aix212

Checking existence of VIP node application  

 Node Name     Required                  Status                    Comment    

 ------------  ------------------------  ------------------------  ----------

 aix212        yes                       exists                    passed    

Result: Check passed.  

Checking existence of ONS node application  

 Node Name     Required                  Status                    Comment    

 ------------  ------------------------  ------------------------  ----------

 aix212        no                        exists                    passed    

Result: Check passed.  

Checking existence of GSD node application  

 Node Name     Required                  Status                    Comment    

 ------------  ------------------------  ------------------------  ----------

 aix212        no                        exists                    passed    

Result: Check passed.  

Post-check for cluster services setup was unsuccessful.  

Checks did not pass for the following node(s):

       aix211

[root@aix212 cluvfy]#su - oracle

[u@h W]$bash


四、验证CRS  


[oracle@aix212 ~]$crs_stat -t

Name           Type           Target    State     Host        

------------------------------------------------------------

ora.aix211.gsd application    ONLINE    ONLINE    aix211      

ora.aix211.ons application    ONLINE    ONLINE    aix211      

ora.aix211.vip application    ONLINE    ONLINE    aix211      

ora.aix212.gsd application    ONLINE    ONLINE    aix212      

ora.aix212.ons application    ONLINE    ONLINE    aix212      

ora.aix212.vip application    ONLINE    ONLINE    aix212      

[oracle@aix212 ~]$

[oracle@aix211 ~]$crs_stat -t

Name           Type           Target    State     Host        

------------------------------------------------------------

ora.aix211.gsd application    ONLINE    ONLINE    aix211      

ora.aix211.ons application    ONLINE    ONLINE    aix211      

ora.aix211.vip application    ONLINE    ONLINE    aix211      

ora.aix212.gsd application    ONLINE    ONLINE    aix212      

ora.aix212.ons application    ONLINE    ONLINE    aix212      

ora.aix212.vip application    ONLINE    ONLINE    aix212      

[oracle@aix211 ~]$

[oracle@aix211 ~]$crsctl check crs

CSS appears healthy

CRS appears healthy

EVM appears healthy

[oracle@aix211 ~]$crsctl query css votedisk  

0.     0    /dev/rrac_vote

located 1 votedisk(s).

[oracle@aix211 ~]$ocrcheck

Status of Oracle Cluster Registry is as follows :

        Version                  :          2

        Total space (kbytes)     :     262056

        Used space (kbytes)      :       1928

        Available space (kbytes) :     260128

        ID                       :   24165117

        Device/File Name         : /dev/rrac_ocr

                                   Device/File integrity check

succeeded

                                   Device/File not configured

        Cluster registry integrity check succeeded

[oracle@aix211 ~]$









本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1363767,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值