• Oracle asmlib和SELinux - [Oracle]

    Jun 16, 2009

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://fbirdzp.blogbus.com/logs/41076012.html

    测试环境配置asmlib时,遇到的问题,如下。

    【问题描述】

    节点安装oracle asmlib库后,进行配置时报错如下:

    [root@dr2 ~]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    
    This will configure the on-boot properties of the Oracle ASM library
    driver.  The following questions will determine whether the driver is
    loaded on boot and what permissions it will have.  The current values
    will be shown in brackets ('[]').  Hitting  without typing an
    answer will keep that current value.  Ctrl-C will abort.
    Default user to own the driver interface [oracle]: 
    Default group to own the driver interface [dba]: 
    Start Oracle ASM library driver on boot (y/n) [y]: 
    Scan for Oracle ASM disks on boot (y/n) [y]: 
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [FAILED]
    [root@dr2 ~]#

    【系统环境】

    系统版本
    [root@dr2 ~]# uname -a
    Linux dr2 2.6.18-92.el5 #1 SMP Fri May 23 23:40:43 EDT 
    2008 x86_64 x86_64 x86_64 GNU/Linux [root@dr2 ~]# cat /etc/issue Enterprise Linux Enterprise Linux Server release 5.2 (Carthage) Kernel \r on an \m 安装的oracle asmlib库
    [root@dr2 ~]# rpm -qa|grep asm
    oracleasmlib-2.0.4-1.el5
    oracleasm-2.6.18-92.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5

    【解决方法】

    oracle asmlib的版本与操作系统kernel版本一致,安装过程也没有出错,最后根据oracle工程师建议disable SELINUX解决问题。

    方法:修改/etc/sysconfig/selinux文件配置SELINUX=disabled

    总结,使用oracle asmlib管理disk设备,安装配置asmlib时要注意:
    1. oracle asmlib版本与系统kernel版本一致
    2. 确定系统的SELINUX=disabled

    另外,在网上也找到一些相关的知识点:
    1. 修改SELINUX=disabled后,如果不想重启系统,可以使用"# setenforce 0”命令
    2. 搭建RAC环境时,安装oracle的OCFS2文件系统也需要将SELINUX disable掉。大概RAC节点之间互相通信,需要降低系统的安全级别吧。


    收藏到:Del.icio.us