Re: Need help configuring ASM on Linux 7

From: Sourav Biswas <biswas.sourav_at_hotmail.com>
Date: Sun, 18 Mar 2018 20:25:31 +0000
Message-ID: <BM1PR0101MB1409FD6CA79185185055C1B8F0D50_at_BM1PR0101MB1409.INDPRD01.PROD.OUTLOOK.COM>



Thanks Mladen!

This is one of our testing environment. And I simply installed the required(bare necessary) pakages as per doc. Usually the SysAdmin takes care of such pre-requisites.

I remembered, on Virtual Machines at home, I used to perform "yum update -y" before proceeding with any other activity. I tried the same on this one as well and now OS kernel is updated to OEL 7.4 along with others (total update was around 630mb).

And to my surprise now ASM lib is successfully configured. I checked the 3 rpm for ASM, which I mentioned in my earlier email. And they have not updated. So I suppose there were some depended rpms missing. In that case I wonder why its not mentioned in Oracle doc. Also wish there was a way to figure out which rpm update fixed this issue.

Thanks and Regards,
Sourav Biswas



From: oracle-l-bounce_at_freelists.org <oracle-l-bounce_at_freelists.org> on behalf of Mladen Gogala <gogala.mladen_at_gmail.com> Sent: Sunday, March 18, 2018 11:55:35 PM To: oracle-l_at_freelists.org
Subject: Re: Need help configuring ASM on Linux 7

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_at_dl-bel01 ~]# cat /etc/oracle-release
Oracle Linux Server release 7.3
[root_at_dl-bel01 ~]# uname -r
3.10.0-514.el7.x86_64
[root_at_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_at_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_at_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_at_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


--
http://www.freelists.org/webpage/oracle-l
Received on Sun Mar 18 2018 - 21:25:31 CET

Original text of this message