Re: Need help configuring ASM on Linux 7

  • From: Mladen Gogala <gogala.mladen@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Sun, 18 Mar 2018 14:25:35 -0400

Since you are using Oracle Linux, you should be using the "uek" kernels, which have ASMLib compiled into the kernel already. Unfortunately, I no longer have any 7.3 kernels, all of my OL machines were upgraded to 7.4 some time ago, but on my RAC machines, I use only UEK kernels. There was a row between Oracle Corp. and Red Hat, when Oracle created their own Linux distribution and Red Hat stopped shipping ASMLib in their kernels. If you don't want to be using the "unbreakable" kernel, you have to download and install the ASMLib driver. You can do it here:

http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel7-2773795.html

There is an alternative with Oracle 12.2, called "ASM filter driver", which is described here:

https://docs.oracle.com/database/121/OSTMG/GUID-4A742DDE-0549-4C64-8F34-A631D4E7A9B8.htm

Jared Still was writing about the driver here:

https://blog.pythian.com/oracle-12-2-asm-filter-driver-installation/

In Jared's case, ASM with the filter driver provided significant performance improvement over the ASMLib driver, although the architectural differences between the two drivers are not quite clear and Oracle is not very forthcoming and is not explaining why would the filter driver perform better. Installing with ASMLib is certainly easier.

Regards


On 03/18/2018 06:23 AM, Sourav Biswas wrote:


Hi All,

Currently, I’m not able to configure ASM. We are planning on installing 12.1.0.2 database on this OS. Please find below error message while configuring ASM.

*_OS Version:_*

[root@dl-bel01 ~]# cat /etc/oracle-release

Oracle Linux Server release 7.3

[root@dl-bel01 ~]# uname -r

3.10.0-514.el7.x86_64

[root@dl-bel01 ~]# ls -lrth /usr/src/kernels/

total 8.0K

drwxr-xr-x. 22 root root 4.0K Mar 13 21:05 3.10.0-514.el7.x86_64

*_List of rpms installed for ASM lib:_*

[root@dl-bel01 ~]# rpm -qa |grep -i oracleasm

oracleasm-support-2.1.8-3.el7.x86_64

kmod-oracleasm-2.0.8-19.0.1.el7.x86_64

oracleasmlib-2.0.12-1.el7.x86_64

*_Error while configure ASM:_*

[root@dl-bel01 ~]# /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 [grid]:

Default group to own the driver interface [asmadmin]:

Scan for Oracle ASM disks on boot (y/n) [y]:

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver:                     [FAILED]

*_Error reported on /var/log/messages:_*

[root@dl-bel01 ~]# tail -f /var/log/messages

Mar 18 15:42:22 dl-bel01 systemd-logind: New session 3 of user root.

Mar 18 15:42:22 dl-bel01 systemd: Starting Session 3 of user root.

Mar 18 15:42:57 dl-bel01 systemd: Starting Load oracleasm Modules...

Mar 18 15:42:57 dl-bel01 modprobe: FATAL: Module oracleasm not found.

Mar 18 15:42:57 dl-bel01 service: Initializing the Oracle ASMLib driver: [FAILED]

Mar 18 15:42:57 dl-bel01 systemd: oracleasm.service: main process exited, code=exited, status=1/FAILURE

Mar 18 15:42:57 dl-bel01 systemd: Failed to start Load oracleasm Modules.

Mar 18 15:42:57 dl-bel01 systemd: Unit oracleasm.service entered failed state.

Mar 18 15:42:57 dl-bel01 systemd: oracleasm.service failed.

Mar 18 15:43:10 dl-bel01 modprobe: FATAL: Module oracleasm not found.

Please suggest any link or work around to go about it.

*Thanks & Regards,*

*Sourav Biswas*

*+91-9650017306*


--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217

Other related posts: