Oracle 11G R2 Install 1 ASMLib - 安装错误

来源:互联网 发布:淘宝红人馆 编辑:程序博客网 时间:2024/04/29 08:36

1,ASMLib安装后无法初始化

[root@vmrac3 ~]# /usr/sbin/oracleasm init
Loading module "oracleasm": failed
Unable to load module "oracleasm"

[root@vmrac4 ~]# /usr/sbin/oracleasm init
Loading module "oracleasm": failed
Unable to load module "oracleasm"

通过message日志检查发现,oracleasm-2.6.18-238.el5-2.0.5-1.el5.i686.rpm版本安装错了,导致无法加载asmlib库文件.

[root@vmrac3 ~]# uname -a
Linux vmrac3 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@vmrac3 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

redhat rhel5u5x64对应的asmlib为

oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-support-2.1.7-1.el5.x86_64.rpm

2, 等效性检查错误
[grid@vmrac3 grid]$pwd
/u02/grid

[grid@vmrac3 grid]$./runcluvfy.sh stage -post hwos -n vmrac3,vmrac4 -verbose
Checking shared storage accessibility...
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sda on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sdb on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sdc on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sdd on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sde on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sdf on nodes:
        vmrac4,vmrac3
WARNING:
vmrac3:Unable to determine the sharedness of /dev/sdg on nodes:
        vmrac4,vmrac3
No shared storage found
Shared storage check failed on nodes "vmrac4,vmrac3"
Post-check for hardware and operating system setup was unsuccessful on all the nodes.

 

出现这个错误主要是由于磁盘的smart功能没有开启导致.
[root@vmrac3 ~]# grep smartctl /var/log/messages.1
Apr 25 03:39:45 localhost smartd[3158]: Device: /dev/sda, IE (SMART) not enabled, skip device Try 'smartctl -s on /dev/sda' to turn on SMART features

3, SCAN解析错误
Oracle安装时检查出的错误.

Single Client Access Name (SCAN) - This test verifies the Single Client Access Name configuration.  Error:
 -
PRVF-4657 : Name resolution setup check for "scan1" (IP address: 202.102.110.204) failed  - Cause:  Inconsistent IP address definitions found for the SCAN name identified using DNS and configured name resolution mechanism(s).  - Action:  Look up the SCAN name with nslookup, and make sure the returned IP addresses are consistent with those defined in NIS and /etc/hosts as configured in /etc/nsswitch.conf by reconfiguring the latter. Check the Name Service Cache Daemon (/usr/sbin/nscd) by clearing its cache and restarting it.
 -
PRVF-4657 : Name resolution setup check for "scan1" (IP address: 192.168.25.219) failed  - Cause:  Inconsistent IP address definitions found for the SCAN name identified using DNS and configured name resolution mechanism(s).  - Action:  Look up the SCAN name with nslookup, and make sure the returned IP addresses are consistent with those defined in NIS and /etc/hosts as configured in /etc/nsswitch.conf by reconfiguring the latter. Check the Name Service Cache Daemon (/usr/sbin/nscd) by clearing its cache and restarting it.

  Check Failed on Nodes: [vmrac4,  vmrac3] 
Verification result of failed node: vmrac4

 Details:
 -
PRVF-4664 : Found inconsistent name resolution entries for SCAN name "scan1"  - Cause:  The nslookup utility and the configured name resolution mechanism(s), as defined in /etc/nsswitch.conf, returned inconsistent IP address information for the SCAN name identified.  - Action:  Check the Name Service Cache Daemon (/usr/sbin/nscd), the Domain Name Server (nslookup) and the /etc/hosts file to make sure the IP address for the SCAN names are registered correctly.
Back to Top 
Verification result of failed node: vmrac3

 Details:
 -
PRVF-4664 : Found inconsistent name resolution entries for SCAN name "scan1"  - Cause:  The nslookup utility and the configured name resolution mechanism(s), as defined in /etc/nsswitch.conf, returned inconsistent IP address information for the SCAN name identified.  - Action:  Check the Name Service Cache Daemon (/usr/sbin/nscd), the Domain Name Server (nslookup) and the /etc/hosts file to make sure the IP address for the SCAN names are registered correctly.
Back to Top

4, 安装失败时,删除/u01/app/oracle下全部的安装文件后,重装报错,提示目录已经存在,要求按装在不同的目录.

[INS-32025] conflicts with software already installed in the given Oracle home

解决方法: 修正安装节点下/u01/app/oraInventory/ContentsXML/inventory.xml文件,记录的是安装路径;修改后需要重启机器.
[root@vmrac3 ContentsXML]# less inventory.xml.old
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2011, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>11.2.0.3.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="vmrac3"/>
      <NODE NAME="vmrac4"/>
   </NODE_LIST>
</HOME>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="vmrac3"/>
      <NODE NAME="vmrac4"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
把上面这个记录去掉.

5, Grid安装时,Oracle_base配置定义在下面文件.
/u01/app/grid/product/11.2.0.3.0/install/envVars.properties
/u01/app/grid/product/11.2.0.3.0/inventory/ContentsXML/oraclehomeproperties.xml
grid安装时,当Oracle_home设置与环境变量定义不一致时,安装结束后可以修改这2个文件;否则在通过asmca创建ASM实例时会有报错.