关于linux as5配置RAC中的asm时遇到失败的情况
时间:2010-10-17 来源:abp0109
今天在vmware上搭建ORACLE 10G RAC环境,在配置asm的时候,执行/etc/sysconfig/oracleasm configure命令时遇到:
[root@node1 ~]# /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 <ENTER> 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) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
后来google了下,原来跟selinux有关系,关掉就可以了。怎么关掉呢?呵呵,记录如下:
[root@node1 ~]# vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
修改成disabled即可,然后运行setenforce 0,重启服务器。
待重新启动完成之后,运行/usr/sbin/sestatus
[root@node1 ~]# /usr/sbin/sestatus
SELinux status: disabled
显示selinux为disables了,就OK了。