博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AIX 安装 RAC 无法发现节点(后遗症。。。)
阅读量:5810 次
发布时间:2019-06-18

本文共 4825 字,大约阅读时间需要 16 分钟。

解决无法发现节点问题后,又留下另一后遗症。。。。。。

安装CRS软件后,在第一个节点运行root.sh脚本时,出现以下错误:

[root@aix213 /]#/u01/crs_1/root.sh

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

Checking to see if Oracle CRS stack is already configured

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 -install -nn nodeA,nodeAnum,nodeB,nodeBnum... -o crshome

      -l languageid -c clustername -q votedisk

      [-t p1,p2,p3,p4] [-pn privA,privAnum,privB,privBnum...]

      [-hn hostA,hostAnum,hostB,hostBnum...]

 -o crshome     - directory CRS is installed in

 -q votedisk    - path to the CSS voting disk

 -c clustername - name of the cluster. 1-14 character string

 -l languageid  - Oracle localization language id.

                  e.g. AMERICAN_AMERICA.WE8ASCII37C

 -nn name,num   - nodename list in pairs of nodename,nodenumber

                  If OS clusterware is installed see vendor docs.

                  e.g. node1,1,node2,2,node4,4

 -pn name,num   - Defines private interconnect names for nodes already

                  specified with the -nn flag.

                  Defaults to the nodename if not specified.

 -hn name,num   - Defines hostnames for nodes specified with the -nn

                  flag in the same format as above.

                  Defaults to the nodename if not specified.

 -t p1,p2,p3,p4 - Specifies TCP ports to be used by the CRS daemons

                  on the private interconnect.

                  default ports: 49895,49896,49897,49898

 -force           Forces overwrite of any previous configuration.

WARNING: Using this tool may corrupt your cluster configuration. Do not

        use unless you positively know what you are doing.

Failed to initialize Oracle Cluster Registry for cluster

0

解决方法:

[root@aix213 /]#cat /u01/crs_1/root.sh

#!/bin/sh

/u01/crs_1/install/rootinstall

/u01/crs_1/install/rootconfig

分析root.sh 执行的脚本:

[root@aix213 /]#cat /u01/crs_1/install/rootconfig

#!/bin/sh

#

# rootconfig.sh for Oracle CRS homes

#

#    This is run once per node during the Oracle CRS install.

#    This script does the following:

#    1) Stop if any GSDs are running from 9.x oracle homes

#    2) Initialize new OCR device or upgrade the existing OCR device

#    3) Setup OCR for running CRS stack

#    4) Copy the CRS init script to init.d for init process to start

#    5) Start the CRS stack

#    6) Configure NodeApps if CRS is up and running on all nodes

#

# NOTE: Use sample paramfile in $ORA_CRS_HOME/srvm/admin/paramfile.sample for

#       setting CRS parameters

# The following commands need to be run before Oracle Cluster Registry is

# populated.

# This is run during CRS installation and not during RAC

SILENT=false

ORA_CRS_HOME=/u01/crs_1

CRS_ORACLE_OWNER=oracle

CRS_DBA_GROUP=oinstall

CRS_VNDR_CLUSTER=true

CRS_OCR_LOCATIONS=/dev/rrac_ocr

CRS_CLUSTER_NAME=crs

CRS_HOST_NAME_LIST=

CRS_NODE_NAME_LIST=

CRS_PRIVATE_NAME_LIST=aix213-priv,,aix214-priv,

CRS_LANGUAGE_ID='AMERICAN_AMERICA.WE8ISO8859P1'

CRS_VOTING_DISKS=/dev/rrac_vote

CRS_NODELIST=aix213,aix214

发现

CRS_HOST_NAME_LIST=

CRS_NODE_NAME_LIST=

这两个环境变量后面没有赋值,应该是在初期安装CRS时,没有发现节点,通过crs配置文件生成后,而这两个变量无法自动赋值,从而导致执行脚本出错。

1、重新配置 rootconfig.sh

#!/bin/sh

#

# rootconfig.sh for Oracle CRS homes

#

#    This is run once per node during the Oracle CRS install.

#    This script does the following:

#    1) Stop if any GSDs are running from 9.x oracle homes

#    2) Initialize new OCR device or upgrade the existing OCR device

#    3) Setup OCR for running CRS stack

#    4) Copy the CRS init script to init.d for init process to start

#    5) Start the CRS stack

#    6) Configure NodeApps if CRS is up and running on all nodes

#

# NOTE: Use sample paramfile in $ORA_CRS_HOME/srvm/admin/paramfile.sample for

#       setting CRS parameters

# The following commands need to be run before Oracle Cluster Registry is

# populated.

# This is run during CRS installation and not during RAC

SILENT=false

ORA_CRS_HOME=/u01/crs_1

CRS_ORACLE_OWNER=oracle

CRS_DBA_GROUP=oinstall

CRS_VNDR_CLUSTER=true

CRS_OCR_LOCATIONS=/dev/rrac_ocr

CRS_CLUSTER_NAME=crs

CRS_HOST_NAME_LIST=aix213,1,aix214,2

CRS_NODE_NAME_LIST=aix213,1,aix214,2

CRS_PRIVATE_NAME_LIST=aix213-priv,,aix214-priv,

CRS_LANGUAGE_ID='AMERICAN_AMERICA.WE8ISO8859P1'

CRS_VOTING_DISKS=/dev/rrac_vote

CRS_NODELIST=aix213,aix214

CRS_NODEVIPS='aix213/aix213-vip/255.255.255.0/en0,aix214/aix214-vip/255.255.255.0/en0'

2、删除crs 配置信息

[root@aix213 /]#/u01/crs_1/install/rootdelete.sh

3、修改OCR、VOTE 对应raw 属性

[root@aix213 /]#ls -l /dev |grep ocr

brw-rw----    1 oracle   dba          88,  1 Feb 24 09:51 rac_ocr

crw-r-----    1    oracle   dba    88,  1 Feb 26 08:58 rrac_ocr

[root@aix213 /]#ls -l /dev |grep vote

brw-rw----    1 oracle   dba          88,  2 Feb 24 09:51 rac_vote

crw-r--r--    1    oracle   dba     88,  2 Feb 26 08:58 rrac_vote

4、清空OCR、VOTE 磁盘头信息(所有节点)

[root@aix213 /] dd  if=/dev/zero  of=/dev/rrac_ocr  bs=1024k  count=2560

[root@aix213 /] dd  if=/dev/zero  of=/dev/rrac_vote  bs=1024k  count=2560

5、重新运行root.sh

[root@aix213 /]#/u01/crs_1/root.sh

至此,问题全部解决!

本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1363570,如需转载请自行联系原作者
你可能感兴趣的文章
centos *** clent 连接
查看>>
《QTP自动化测试进阶》(14)
查看>>
JMeter入门教程2:录制1
查看>>
RAIDD 互联网应用
查看>>
第九章 缓存技术
查看>>
有4家企业获得阿里云创投资金 一夜间成为土豪的感脚有木有~~
查看>>
ORACLE日期时间的格式化参数大全
查看>>
我的博文哪去了?
查看>>
老男孩28期视频第一次测试
查看>>
cron表达式详解
查看>>
restful+springmvc+mybatis+ webservice 分布式架构
查看>>
Centos7之后版本的默认登陆模式更改
查看>>
git 添加多个远程仓库
查看>>
ext Grid取当前页码
查看>>
CI 结合 vue.js 的搜索功能模块
查看>>
Windows平台Eclipse配置svn(Subversion)
查看>>
将网页以编辑框形式弹出方法2(Jquery 方法)
查看>>
415. Add Strings - Easy
查看>>
linux python 图形编程 qt开发环境搭建
查看>>
HDU 6113 度度熊的01世界
查看>>