使用 runcluvfy 校验Oracle RAC安装环境

系统 1779 0

--*****************************************

-- 使用 runcluvfy Oracle RAC 安装

--*****************************************

 

    工欲善其事,必先利其器。安装 Orale RAC 是一 浩大的工程,尤其是 有做好前期的 规划与 配置工作 时将导 致安装的 复杂

非想象。幸好有 runcluvfy 工具, 大大 化了安装工作。下面的演示是基于安装 Oracle 10 g RAC / Linux 完成的。

 

1 . 安装文件路 下使用 runcluvfy 施安装前的校

    [oracle@node1 cluvfy]$ pwd

    /u01/Clusterware/clusterware/cluvfy

    [oracle@node1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose

   

    Performing pre-checks for cluster services setup

   

    Checking node reachability...

   

    Check : Node reachability from node "node1"

      Destination Node                       Reachable?              

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

      node1                                   yes                     

      node2                                  yes                     

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

   

    Checking user equivalence...

   

    Check : User equivalence for user "oracle"

      Node Name                              Comment                 

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

      node2                                  passed                  

      node1                                  passed                  

    Result : User equivalence check passed for user "oracle".

   

    Checking administrative privileges...

   

    Check : Existence of user "oracle"

      Node Name      User Exists                Comment                 

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

      node2          yes                        passed                  

      node1          yes                        passed                  

    Result : User existence check passed for "oracle".

    

    Check : Existence of group "oinstall"

      Node Name      Status                     Group ID                

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

      node2          exists                     500                     

      node1          exists                     500                     

    Result : Group existence check passed for "oinstall".

   

    Check : Membership of user "oracle" in group "oinstall" [ as Primary ]

      Node Name          User Exists    Group Exists   User in Group   Primary        Comment     

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

      node2              yes            yes            yes            yes            passed      

      node1              yes            yes            yes            yes            passed      

    Result : Membership check for user "oracle" in group "oinstall" [ as Primary ] passed.

   

    Administrative privileges check passed.

   

    Checking node connectivity...

   

    Interface information for node "node2"

      Interface Name                   IP Address                       Subnet          

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

      eth0                             192.168 .0.12                     192.168 .0.0     

      eth1                             10.101 .0.12                      10.101 .0.0      

    Interface information for node "node1"

      Interface Name                   IP Address                       Subnet          

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

      eth0                             192.168 .0.11                     192.168 .0.0     

      eth1                             10.101 .0.11                      10.101 .0.0      

   

    Check : Node connectivity of subnet "192.168.0.0"

      Source                           Destination                      Connected?      

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

      node2:eth0                        node1:eth0                       yes             

    Result : Node connectivity check passed for subnet "192.168.0.0" with node(s) node2,node1.

   

    Check : Node connectivity of subnet "10.101.0.0"

      Source                            Destination                      Connected?      

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

      node2:eth1                       node1:eth1                       yes             

    Result : Node connectivity check passed for subnet "10.101.0.0" with node(s) node2,node1.

   

    Suitable interfaces for the private interconnect on subnet "192.168.0.0":

    node2 eth0: 192.168 .0.12

    node1 eth0: 192.168 .0.11

   

    Suitable interfaces for the private interconnect on subnet "10.101.0.0":

    node2 eth1: 10.101 .0.12

    node1 eth1: 10.101 .0.11

   

    ERROR :

    Could not find a suitable set of interfaces for VIPs.

   

    Result : Node connectivity check failed.

   

    Checking system requirements for 'crs' ...

   

    Check : Total memory

      Node Name      Available                  Required                   Comment   

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

      node2          689.38 MB ( 705924 KB)        512 MB ( 524288 KB)           passed    

      node1          689.38 MB ( 705924 KB)        512 MB ( 524288 KB)           passed    

    Result : Total memory check passed.

   

    Check : Free disk space in "/tmp" dir

      Node Name      Available                  Required                    Comment   

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

      node2          4.22 GB ( 4428784 KB)         400 MB ( 409600 KB)           passed    

      node1          4.22 GB ( 4426320 KB)         400 MB ( 409600 KB)           passed    

    Result : Free disk space check passed.

   

    Check : Swap space

      Node Name      Available                  Required                   Comment   

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

      node2          2 GB ( 2096472 KB)            1 GB ( 1048576 KB)            passed    

      node1          2 GB ( 2096472 KB)            1 GB ( 1048576 KB)            passed    

    Result : Swap space check passed.

   

    Check : System architecture

      Node Name      Available                  Required                   Comment   

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

      node2          i686                       i686                       passed    

      node1          i686                        i686                       passed    

    Result : System architecture check passed.

   

    Check : Kernel version

      Node Name      Available                  Required                   Comment   

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

      node2          2.6 .18- 194 .el5             2.4 .21- 15 EL                passed    

      node1          2.6 .18- 194 .el5             2.4 .21- 15 EL                passed    

    Result : Kernel version check passed.

   

    Check : Package existence for "make-3.79"

      Node Name                        Status                           Comment         

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

      node2                            make - 3.81 - 3 .el5                  passed          

      node1                            make - 3.81 - 3 .el5                  passed          

    Result : Package existence check passed for "make-3.79".

   

    Check : Package existence for "binutils-2.14"

      Node Name                        Status                           Comment         

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

      node2                            binutils- 2.17 .50.0.6- 14 .el5      passed          

       node1                            binutils- 2.17 .50.0.6- 14 .el5      passed          

    Result : Package existence check passed for "binutils-2.14".

   

    Check : Package existence for "gcc-3.2"

      Node Name                        Status                            Comment         

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

      node2                            gcc- 4.1 .2- 48 .el5                 passed          

      node1                            gcc- 4.1 .2- 48 .el5                 passed          

    Result : Package existence check passed for "gcc-3.2".

    Check : Package existence for "glibc-2.3.2-95.27"

      Node Name                        Status                           Comment         

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

      node2                            glibc- 2.5 - 49                     passed          

      node1                            glibc- 2.5 - 49                     passed          

    Result : Package existence check passed for "glibc-2.3.2-95.27".

   

    Check : Package existence for "compat-db-4.0.14-5"

      Node Name                        Status                           Comment         

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

      node2                            compat-db- 4.2 .52- 5.1             passed          

      node1                            compat-db- 4.2 .52- 5.1             passed          

    Result : Package existence check passed for "compat-db-4.0.14-5".

   

    Check : Package existence for "compat-gcc-7.3-2.96.128"

      Node Name                        Status                           Comment         

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

       node2                            missing                          failed          

      node1                            missing                          failed          

    Result : Package existence check failed for "compat-gcc-7.3-2.96.128".

   

    Check : Package existence for "compat-gcc-c++-7.3-2.96.128"

      Node Name                        Status                           Comment         

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

      node2                             missing                          failed          

      node1                            missing                          failed          

    Result : Package existence check failed for "compat-gcc-c++-7.3-2.96.128".

   

    Check : Package existence for "compat-libstdc++-7.3-2.96.128"

      Node Name                        Status                           Comment         

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

      node2                            missing                          failed          

      node1                            missing                          failed          

    Result : Package existence check failed for "compat-libstdc++-7.3-2.96.128".

   

    Check : Package existence for "compat-libstdc++-devel-7.3-2.96.128"

      Node Name                        Status                           Comment         

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

      node2                            missing                          failed          

      node1                            missing                          failed          

    Result : Package existence check failed for "compat-libstdc++-devel-7.3-2.96.128".

   

    Check : Package existence for "openmotif-2.2.3"

      Node Name                        Status                           Comment         

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

      node2                            openmotif- 2.3 .1- 2 .el5_4.1         passed          

      node1                            openmotif- 2.3 .1- 2 .el5_4.1        passed          

    Result : Package existence check passed for "openmotif-2.2.3".

   

    Check : Package existence for "setarch-1.3-1"

      Node Name                         Status                           Comment         

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

      node2                            setarch- 2.0 - 1.1                  passed          

      node1                             setarch- 2.0 - 1.1                  passed          

    Result : Package existence check passed for "setarch-1.3-1".

   

    Check : Group existence for "dba"

      Node Name      Status                     Comment                 

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

      node2          exists                     passed                  

      node1          exists                     passed                  

    Result : Group existence check passed for "dba".

   

    Check : Group existence for "oinstall"

      Node Name      Status                     Comment                 

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

      node2          exists                     passed                  

      node1          exists                     passed                  

    Result : Group existence check passed for "oinstall".

   

    Check : User existence for "nobody"

      Node Name      Status                     Comment                 

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

      node2          exists                     passed                  

      node1          exists                     passed                  

    Result : User existence check passed for "nobody".

    

    System requirement failed for 'crs'

   

    Pre- check for cluster services setup was unsuccessful on all the nodes.

 

    Could not find a suitable set of interfaces for VIPs. ”,可以忽略 该错误

    信息, 是一 bug Metalink 中有 详细说 明, doc.id: 338924.1 考本文尾部列出的 容。

    

    于上面描述的 failed 的包, 可能的 其安装到系

 

2 . 安装 Clusterware 后的 检查 , 注意,此 时执 行的 cluvfy 是位于已安装的路

    [oracle@node1 ~]$ pwd

    /u01/app/oracle/product/ 10.2 .0/crs_1/ bin

    [oracle@node1 ~]$./cluvfy stage - post crsinst -n node1,node2

   

    Performing post -checks for cluster services setup

   

    Checking node reachability...

    Node reachability check passed from node "node1".

   

   

    Checking user equivalence...

    User equivalence check passed for user "oracle".

   

    Checking Cluster manager integrity...

   

   

    Checking CSS daemon...

    Daemon status check passed for "CSS daemon".

   

    Cluster manager integrity check passed.

   

    Checking cluster integrity...

   

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

    Liveness check passed for "CRS daemon".

   

    Checking daemon liveness...

    Liveness check passed for "CSS daemon".

   

    Checking daemon liveness...

    Liveness check passed for "EVM daemon".

   

    Checking CRS health...

    CRS health check passed.

   

    CRS integrity check passed.

   

    Checking node application existence...

   

   

    Checking existence of VIP node application ( required )

    Check passed.

   

    Checking existence of ONS node application (optional)

    Check passed.

   

    Checking existence of GSD node application (optional)

    Check passed.

   

   

    Post - check for cluster services setup was successful.

   

    上面的校 可以看出, Clusterware 的相 后台 程, nodeapps 关资 源以及 OCR passed 状态 ,即 Clusterware 成功安装

 

3 .cluvfy 的用法

    [oracle@node1 ~]$ cluvfy -help   # 直接使用 -help 参数 即可 cluvfy 助信息

   

    USAGE :

    cluvfy [ -help ]

    cluvfy stage { - list | -help }

    cluvfy stage {-pre|- post } <stage- name > <stage-specific options>   [-verbose]

    cluvfy comp   { - list | -help }

    cluvfy comp   <component- name > <component-specific options>   [-verbose]

   

    [oracle@node1 ~]$ cluvfy comp - list

       

    USAGE :

    cluvfy comp   <component- name > <component-specific options>   [-verbose]

   

    Valid components are:

            nodereach : checks reachability between nodes

            nodecon    : checks node connectivity

            cfs        : checks CFS integrity

            ssa        : checks shared storage accessibility

            space      : checks space availability

            sys        : checks minimum system requirements

             clu        : checks cluster integrity

            clumgr     : checks cluster manager integrity

            ocr        : checks OCR integrity

            crs        : checks CRS integrity

            nodeapp    : checks node applications existence

             admprv     : checks administrative privileges

            peer       : compares properties with peers

 

4 .ID 338924.1

    CLUVFY Fails With Error : Could not find a suitable set of interfaces for VIPs [ ID 338924.1 ]

    ________________________________________

         Modified 29 -JUL- 2010      Type PROBLEM      Status PUBLISHED     

    In this Document

      Symptoms

      Cause

      Solution

      References

    ________________________________________

    Applies to :

    Oracle Server - Enterprise Edition - Version : 10.2 .0.1 to 11.1 .0.7 - Release: 10.2 to 11.1

    Information in this document applies to any platform.

    Symptoms

    When running cluvfy to check network connectivity at various stages of the RAC/CRS installation process, cluvfy fails

     with errors similar to the following :

    =========================

    Suitable interfaces for the private interconnect on subnet "10.0.0.0":

    node1 eth0: 10.0 .0.1

    node2 eth0: 10.0 .0.2

   

    Suitable interfaces for the private interconnect on subnet "192.168.1.0":

    node1_internal eth1: 192.168 .1.2

    node2_internal eth1: 192.168 .1.1

   

    ERROR :

    Could not find a suitable set of interfaces for VIPs.

   

    Result : Node connectivity check failed.

   

    ========================

    On Oracle 11 g, you may still see a warning in some cases, such as :

    ========================

    WARNING:

    Could not find a suitable set of interfaces for VIPs.

    ========================

    Output seen will be comparable to that noted above, but IP addresses and node_names may be different - i.e. the node names

     of 'node1' , 'node2' , 'node1_internal' , 'node2_internal'   will be substituted with your actual Public and Private node names.

    

    A second problem that will be encountered in this situation is that at the end of the CRS installation for 10 gR2, VIPCA

     will be run automatically in silent mode , as one of the 'optional' configuration assistants.   In this scenario, the VIPCA

      will fail at the end of the CRS installation.    The InstallActions log will show output such as :

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

    > />> Running vipca(silent) for configuring nodeapps

    > />> The given interface(s), "eth0" is not public. Public interfaces should

    > />> be used to configure virtual IPs.

    Cause

    This issue occurs due to incorrect assumptions made in cluvfy and vipca based on an Internet Best Practice document -

     "RFC1918 - Address Allocation for Private Internets".   This Internet Best Practice RFC can be viewed here:

    http://www.faqs.org/rfcs/rfc1918.html

    From an Oracle perspective, this issue is tracked in BUG: 4437727

    Per BUG: 4437727 , cluvfy makes an incorrect assumption based on RFC 1918 that any IP address/subnet that begins with any

    of the following octets is private and hence may not be fit for use as a VIP:

    172.16 .x.x   through 172.31 .x.x

    192.168 .x.x

    10 .x.x.x

    However, this assumption does not take into account that it is possible to use these IPs as Public IP 's on an internal

    network   (or intranet).    Therefore, it is very common to use IP addresses in these ranges as Public IP' s and as Virtual

     IP(s), and this is a supported configuration.

    Solution

    The solution to the error above that is given when running 'cluvfy' is to simply ignore it if you intend to use an IP in

     one of the above ranges for your VIP. The installation and configuration can continue with no corrective action necessary.

    One result of this, as noted in the problem section , is that the silent VIPCA will fail at the end of the 10 gR2 CRS

    installation.    This is because VIPCA is running in silent mode and is trying to notify that the IPs that were provided

    may not be fit to be used as VIP(s). To correct this, you can manually execute the VIPCA GUI after the CRS installation

    is complete.   VIPCA needs to be executed from the CRS_HOME/ bin directory as the 'root'   user   ( on Unix/Linux)   or as a

    Local Administrator ( on Windows):

    $ cd $ORA_CRS_HOME/ bin

    $ ./vipca

    Follow the prompts for VIPCA to select the appropriate interface for the public network , and assign the VIPs for each node

    when prompted.   Manually running VIPCA in the GUI mode , using the same IP addresses, should complete successfully.

     Note that if you patch to 10.2 .0.3 or above, VIPCA will run correctly in silent mode.   The command to re-run vipca

    silently can be found in CRS_HOME/cfgtoollogs   ( or CRS_HOME/cfgtoollogs) in the file 'configToolAllCommands' or

     'configToolFailedCommands' .   Thus, in the case of a new install, the silent mode VIPCA command will fail after the

     10.2 .0.1 base release install, but once the CRS Home is patched to 10.2 .0.3 or above, vipca can be re-run silently,

     without the need to invoke the GUI tool

    

    References

    NOTE: 316583.1 - VIPCA FAILS COMPLAINING THAT INTERFACE IS NOT PUBLIC

     Related

    ________________________________________

    Products

    ________________________________________

    ?     Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition

    Keywords

    ________________________________________

    INSTALLATION FAILS; INTERCONNECT; PRIVATE INTERCONNECT; PRIVATE NETWORKS

    Errors

    ________________________________________RFC- 1918

 

    上面的描述很多,下面

   

    在出 现错误 点修改 vipca 文件

    [root@node2 ~]# vi $CRS_ORA_HOME/ 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 文件

    [root@node2 ~]# vi $CRS_ORA_HOME/ bin /srvctl

   

    找到如下 容:

        LD_ASSUME_KERNEL= 2.4 .19

        export LD_ASSUME_KERNEL

        在其后新增加一行:

        unset LD_ASSUME_KERNEL

        保存退出,然后在故障重新 root.sh

   

5. 快捷参考

性能 请参

    Oracle 硬解析 与软 解析

    共享池的 与优 (Shared pool Tuning)

    Buffer cache 与优 ( 一)

    Oracle (caching table) 的使用

 

ORACLE 体系 结构请参

    Oracle 表空 间与数 据文件

    Oracle 文件

    Oracle 参数 文件

    Oracle 机重做日志文件 (ONLINE LOG FILE)

    Oracle 控制文件(CONTROLFILE)

    Oracle 归档 日志

     Oracle (ROLLBACK) 和撤 (UNDO)

    Oracle 库实 启动关闭过

    Oracle 10g SGA 的自 化管理

    Oracle 例和 Oracle (Oracle 体系 结构 )

 

关闪 回特性 请参

    Oracle 回特性 (FLASHBACK DATABASE)

    Oracle 回特性 (FLASHBACK DROP & RECYCLEBIN)

    Oracle 回特性 (Flashback Query 、Flashback Table)

    Oracle 回特性 (Flashback Version 、Flashback Transaction)

 

基于用 管理的 备份 备份 请参

    Oracle 备份

    Oracle 热备份

    Oracle 备份 复概

    Oracle 例恢

    Oracle 基于用 管理恢 ( 详细 描述了介 及其 )

    SYSTEM 表空 管理及 备份

    SYSAUX 表空 管理及恢

 

RMAN 备份 复与 管理 请参

    RMAN 述及其体系 结构

    RMAN 配置、 管理

    RMAN 备份详

    RMAN

    RMAN catalog 建和使用

    基于catalog RMAN 脚本

基于catalog 的RMAN 备份与

使用 RMAN 迁移文件系统数据库到 ASM

    RMAN 备份 困惑 ( 使用plus archivelog )

 

ORACLE 故障 请参

    ORA-32004 错误处

    ORA-01658 错误

    CRS-0215 错误处

    ORA-00119 ,ORA-00132 错误处

    又一例SPFILE 错误导 无法 启动

    对参数 FAST_START_MTTR_TARGET = 0 解及

    SPFILE 错误导 无法 启动 (ORA-01565)

 

ASM 请参

    ASM 例及 ASM

    ASM 、目 的管理

    使用 ASMCMD 工具管理ASM 及文件

 

SQL/PLSQL 请参

    SQLPlus 常用命令

    替代 SQL*Plus

    使用Uniread 实现 SQLplus 功能

    SQL -->SELECT 查询

    SQL --> NEW_VALUE 的使用

    SQL --> 集合 (UNION UNION ALL)

    SQL --> 常用函

    SQL --> 视图 (CREATE VIEW)

    SQL --> 建和管理表

    SQL --> 多表 查询

    SQL --> 过滤 和排序

    SQL --> 查询

    SQL --> 组与

    SQL --> 次化 查询 (START BY ... CONNECT BY PRIOR)

    SQL --> ROLLUP CUBE 算符 实现数 汇总

    PL/SQL -->

    PL/SQL --> (Exception)

    PL/SQL --> 言基

    PL/SQL --> 流程控制

    PL/SQL --> PL/SQL 记录

    PL/SQL --> 包的 管理

    PL/SQL --> 式游 (SQL%FOUND)

    PL/SQL --> 包重 、初始化

    PL/SQL --> DBMS_DDL 包的使用

    PL/SQL --> DML 触发

    PL/SQL --> INSTEAD OF 触发

    PL/SQL --> 储过

    PL/SQL -->

    PL/SQL --> 动态 SQL

    PL/SQL --> 动态 SQL 的常 见错误

 

ORACLE 特性

    Oracle 常用目 录结构 (10g)

    使用OEM,SQL*Plus,iSQL*Plus 管理Oracle

    日志 记录 模式 (LOGGING 、FORCE LOGGING 、NOLOGGING)

    表段、索引段上的LOGGING NOLOGGING

    Oralce OMF 功能

    Oracle 限、系 统权  

    Oracle 角色、配置文件

    Oracle

    Oracle 外部表

    使用外部表管理Oracle 告警日志(ALAERT_$SID.LOG)

    簇表及簇表管理(Index clustered tables)

    EXPDP 工具的使用

    IMPDP 入工具的使用

    Oracle

    SQL*Loader 使用方法

    用用 户进 程跟踪

    配置非默 口的 动态

    配置ORACLE 接到

    system sys ,sysoper sysdba 区别

    ORACLE_SID 、DB_NAME 、INSTANCE_NAME 、DB_DOMIAN 、GLOBAL_NAME

    Oracle 丁全集 (Oracle 9i 10g 11g Path)

    Oracle 10.2.0.1 10.2.0.4

    Oracle kill session

 

使用 runcluvfy 校验Oracle RAC安装环境


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论