Disclaimer

Friday, 6 June 2025

Checking if ASMLIB can be loaded: no (loading library failed)

 

Checking if ASMLIB can be loaded: no (loading library failed)

This typically means there's a mismatch between the oracleasmlib, oracleasm-support




[root@rac01 ~]# oracleasm status
Checking if the oracleasm kernel module is loaded: yes
Checking if /dev/oracleasm is mounted: yes
Checking which I/O Interface is in use: oracleasm driver (KABI_V2)
Checking if ASMLIB can be loaded: no (loading library failed)


Please find the below oracleasmlib rpm which caused the issue

[root@rac01 ~]# rpm -qa| grep -i oracleasm
oracleasm-support-3.1.0-10.el8.x86_64
kmod-redhat-oracleasm-2.0.8-18.0.1.el8.x86_64
kmod-redhat-oracleasm-2.0.8-18.2.0.1.el8_10.x86_64
oracleasmlib-2.0.12-1.el8.x86_64

[root@rac01 ~]# oracleasm configure
ORACLEASM_UID=grid
ORACLEASM_GID=asmadmin
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="true"
ORACLEASM_CONFIG_MAX_DISKS="2048"
ORACLEASM_ENABLE_IOFILTER="true"


Performed Steps:
*************************

1. Keep 
./emctl status blackout
./emctl start blackout OS_Patching -nodeLevel -d 02:00
./emctl status blackout
./emctl stop blackout OS_Patching

2. Shutdown the crs or has

#] crsctl stop crs

3. install ASM library rpm -Uvh oracleasmlib-3.1.0-6.el8.x86_64.rpm

cd /mnt/newexport

#] rpm -Uvh oracleasmlib-3.1.0-6.el8.x86_64.rpm

[root@rac01 ~]# rpm -qa| grep -i oracleasm
oracleasm-support-3.1.0-10.el8.x86_64
kmod-redhat-oracleasm-2.0.8-18.0.1.el8.x86_64
kmod-redhat-oracleasm-2.0.8-18.2.0.1.el8_10.x86_64
oracleasmlib-3.1.0-6.el8.x86_64

4. oracleasm exit

[root@rac01 tmp]# oracleasm exit
Cleaning any stale ASM disks...
Unmounting oracleasm driver filesystem: /dev/oracleasm
Unloading module "oracleasm": oracleasm


5. oracleasm configure -i
[root@rac01 tmp]# oracleasm configure -i
Configuring the Oracle ASM system service.

This will configure the on-boot properties of the Oracle ASM system
service.  The following questions will determine whether the service
is started 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 ASM disk devices [grid]:
Default group to own the ASM disk devices [asmadmin]:
Start Oracle ASM system service on boot (y/n) [y]: y
Scan for Oracle ASM disks when starting the oracleasm service (y/n) [y]: y
Maximum number of ASM disks that can be used on system [2048]:
Enable iofilter if kernel supports it (y/n) [y]: y
Writing Oracle ASM system service configuration: done

Configuration changes only come into effect after the Oracle ASM
system service is restarted.  Please run 'systemctl restart oracleasm'
after making changes.

WARNING: All of your Oracle and ASM instances must be stopped prior
to restarting the oracleasm service.



6. systemctl restart oracleasm


7. oracleasm init

[root@rac01 tmp]# oracleasm init
Reloading disk partitions: done
Cleaning any stale ASM disks...
Validating disk "ARCH_DISK01"
Validating disk "DATA_DISK01"
Validating disk "RECO_DISK01"
Scanning system for ASM disks...
Can't open device '/dev/sr0': No medium found
Disk "RECO_DISK01" is a valid ASM disk
Disk "ARCH_DISK01" is a valid ASM disk
Disk "DATA_DISK01" is a valid ASM disk
Disk scan successful


8. oracleasm status

[root@rac01 tmp]# oracleasm status
Checking if the oracleasm kernel module is loaded: yes
Checking if /dev/oracleasm is mounted: yes
Checking which I/O Interface is in use: oracleasm driver (KABI_V2)
Checking if ASMLIB can be loaded: yes



9. After this step we can start crs or has services


[root@rac01]# crsctl start crs


10. su - grid

oracleasm-discover

[grid@rac01 ~]$ oracleasm-discover
Using ASMLIB from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
[ASM Library - Linux, version 3.1.0 (KABI_V2)]
Discovered disk: ORCL:ARCH_DISK01 [104857600 blocks (53687091200 bytes), blksz 512/512, maxio 524288 bytes, integrity unsupported]
Discovered disk: ORCL:DATA_DISK01 [104857600 blocks (53687091200 bytes), blksz 512/512, maxio 524288 bytes, integrity unsupported]
Discovered disk: ORCL:RECO_DISK01 [104857600 blocks (53687091200 bytes), blksz 512/512, maxio 524288 bytes, integrity unsupported]



11. su -root

Check the  "oracleasm status"

[root@rac01 tmp]# oracleasm status
Checking if the oracleasm kernel module is loaded: yes
Checking if /dev/oracleasm is mounted: yes
Checking which I/O Interface is in use: oracleasm driver (KABI_V2)
Checking if ASMLIB can be loaded: yes








No comments:

Post a Comment

Understanding SQL Plan Baselines in Oracle Database

  Understanding SQL Plan Baselines in Oracle Database SQL Plan Baseline is the feature in Oracle started from Database 11g that helps to pre...