AIX 安装 RAC 无法发现节点(后遗症。。。)

本文涉及的产品
教育场景识别,教育场景识别 200次/月
自定义KV模板,自定义KV模板 500次/账号
企业资质识别,企业资质识别 200次/月
简介:

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


安装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,如需转载请自行联系原作者
目录
相关文章
|
9月前
rac 节点驱逐
rac 节点驱逐
65 0
|
6月前
|
Oracle 关系型数据库
分布式锁设计问题之Oracle RAC保证多个节点写入内存Page的一致性如何解决
分布式锁设计问题之Oracle RAC保证多个节点写入内存Page的一致性如何解决
|
9月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
97 3
|
Oracle 关系型数据库 数据库
RAC中,控制文件的快照文件必须能够被所有节点的数据实例访问到 ORA-00245
RMAN在使用控制文件备份的时候,备份开始点需要最新的检查点信息以及文件头信息。
133 0
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
915 0
|
Oracle 关系型数据库
oracle rac 添加节点常用命令
rac 添加节点常用命令
106 0
|
Shell Linux
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
304 0
|
存储 文字识别 Oracle
神龙RAC节点1无法启动问题处理
神龙Oracle rac由于空间问题希望扩容根目录,扩容失败,导致相关的asm磁盘组多路径映射出现问题导致集群挂起,之后进行集群恢复过程处理
806 0
神龙RAC节点1无法启动问题处理
|
Oracle 关系型数据库 Shell
RHEL 7.6 安装 Oracle 18c RAC
RHEL 7.6 安装 Oracle 18c RAC第一部分 安装规划 虚拟环境 VirtualBox 6.0 OS 版本 Red Hat Enterprise Linux Server release 7.
1985 0
|
Oracle 关系型数据库 专有云
阿里专有云3.6.1版本云上rac安装节点驱逐问题
阿里专有云云上Oracle rac节点驱逐解决方案
2774 0