Disclaimer

Sunday 11 July 2021

Unable To Load Module Oracleasm in Oracle 12c

 

Unable To Load Module Oracleasm in Oracle 12c

CRS (Cluster Ready Service) is not starting and getting ‘FATAL: Module oracleasm not found’ error on log files.

[root@ocmnode1 ~]# cat /var/log/messages

Aug 12 01:32:08 ocmnode1 modprobe: FATAL: Module oracleasm not found.
Aug 12 01:32:33 ocmnode1 modprobe: FATAL: Module oracleasm not found.
Aug 12 01:34:32 ocmnode1 modprobe: FATAL: Module oracleasm not found.

After checked in details found that oracleasm package / RPM was not working.

[root@ocmnode1 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
[root@ocmnode1 ~]# oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@ocmnode1 ~]# oracleasm configure -i
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]:
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: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]

Installed again oracleasm RPM:

[root@ocmnode1 ~]# yum install oracleasm
Details – yum install oracleasm
[root@ocmnode1 ~]# oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no

👉Reboot Server and Check:

oracleasm rpm looks good now.

[root@ocmnode1 ~]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@ocmnode1 ~]# oracleasm configure -i
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]:
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

Showing all ASM Disk.

[root@ocmnode1 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@ocmnode1 ~]# oracleasm listdisks
DATADISK01
DATADISK02
DATADISK03
DATADISK04
OCRDISK1
OCRDISK2
OCRDISK3
VOTINGDISK01
VOTINGDISK02
VOTINGDISK03


Good to start CRS process on the problematic node.

[root@ocmnode1 ~]# . oraenv
ORACLE_SID = [root] ? +ASM1
The Oracle base has been set to /u01/app/grid
[root@ocmnode1 ~]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[grid@ocmnode1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.FRA.dg
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.OCR.dg
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.OCR_VOTE.dg
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.asm
ONLINE ONLINE ocmnode1 Started,STABLE
ONLINE ONLINE ocmnode2 Started,STABLE
ora.net1.network
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
ora.ons
ONLINE ONLINE ocmnode1 STABLE
ONLINE ONLINE ocmnode2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE ocmnode2 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE ocmnode1 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE ocmnode1 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE ocmnode1 169.254.84.152 192.1
68.10.10,STABLE
ora.cvu
1 ONLINE ONLINE ocmnode1 STABLE
ora.mgmtdb
1 ONLINE ONLINE ocmnode1 Open,STABLE
ora.oc4j
1 ONLINE ONLINE ocmnode1 STABLE
ora.ocmnode1.vip
1 ONLINE ONLINE ocmnode1 STABLE
ora.ocmnode2.vip
1 ONLINE ONLINE ocmnode2 STABLE
ora.orcl.db
1 ONLINE ONLINE ocmnode1 Open,STABLE
2 ONLINE ONLINE ocmnode2 Open,STABLE
ora.scan1.vip
1 ONLINE ONLINE ocmnode2 STABLE
ora.scan2.vip
1 ONLINE ONLINE ocmnode1 STABLE
ora.scan3.vip
1 ONLINE ONLINE ocmnode1 STABLE
--------------------------------------------------------------------------------

For more details, you may check this MOS Doc – Oracle ASM RPM issue




No comments:

Post a Comment

100 Oracle DBA Interview Questions and Answers

  Here are 100 tricky interview questions tailored for a Senior Oracle DBA role. These questions span a wide range of topics, including perf...