oracle rac安装在配置asm时出现的问题

时间:2021-10-09 08:16:58

oracle rac安装在配置asm时出现的问题


解决办法:安装缺失包和对应kernel的oracleasm包

compat-binutils215-2.15.92.0.2-24.i386.rpm
compat-libcwait-2.1-1.i386.rpm
compat-libstdc++-egcs-1.1.2-1.i386.rpm
compat-oracle-el5-1.0-5.i386.rpm
openmotif21-2.1.30-11.EL5.i386.rpm
openmotif21-debuginfo-2.1.30-11.EL5.i386.rpm
oracleasm-2.6.18-53.el5-2.0.4-1.el5.i686.rpm                                       //我的这个包装错了
oracleasm-2.6.18-53.el5debug-2.0.4-1.el5.i686.rpm
oracleasm-2.6.18-53.el5PAE-2.0.4-1.el5.i686.rpm
oracleasm-2.6.18-53.el5xen-2.0.4-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.7-1.el5.i386.rpm
xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm

包下载地址:oracleasmlib程序包 for RHEL 5.1(2.6.18-53.el5)



网上找的 一篇关于这方面写的挺好的一篇文章如下:

Initializing the Oracle ASMLib driver: [FAILED]

[root@node1 init.d]# uname -a
Linux node1 2.6.18-53.el5xen #1 SMP Wed Oct 10 17:06:12 EDT 2007 i686 i686 i386 GNU/Linux
[root@node1 init.d]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel \r on an \m

安装ASMLib包:
oracleasm-2.6.18-53.el5-2.0.4-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.3-1.el5.i386.rpm


[root@node1 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 [root]: oracle
Default group to own the driver interface [dba]: 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]


搜索网络报该错以下2个原因:

1.安装对应内核的oracleasm包,确定过了,安装包是正确的。

2.关闭SELINUX:
[root@node1 selinux]# cat config
# 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=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

也是disabled


查看var/log下的日志:
cat /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed

......

查看oracleasm模块:

ls /lib/modules
2.6.18-53.el5  2.6.18-53.el5xen

发现模块在/lib/modules/2.6.18-53.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
然后,2.6.18-53.el5xen下面没有oracleasm.ko模块,恰好linux运行在2.6.18-53.el5xen下。所以报找不到oracleasm模块。

于是网上再次到asmlib网站看了看,发现了包:
oracleasm-2.6.18-53.el5xen-2.0.4-1.el5.i686.rpm

难道这个el5xen包就能将oracleasm module放到2.6.18-53.el5xen下。

[root@node1 asmlib]# rpm -ivh oracleasm-2.6.18-53.el5xen-2.0.4-1.el5.i686.rpm
Preparing...                ########################################### [100%]
   1:oracleasm-2.6.18-53.el5########################################### [100%]

[root@node1 asmlib]# cd /etc/
[root@node1 etc]# cd init.d
[root@node1 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) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]


搞定,以前一直都是安装的那3个包,还没注意到xen这个包。哈哈!