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 statusChecking if the oracleasm kernel module is loaded: yesChecking if /dev/oracleasm is mounted: yesChecking 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 oracleasmoracleasm-support-3.1.0-10.el8.x86_64kmod-redhat-oracleasm-2.0.8-18.0.1.el8.x86_64kmod-redhat-oracleasm-2.0.8-18.2.0.1.el8_10.x86_64oracleasmlib-2.0.12-1.el8.x86_64
[root@rac01 ~]# oracleasm configureORACLEASM_UID=gridORACLEASM_GID=asmadminORACLEASM_SCANBOOT=trueORACLEASM_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 oracleasmoracleasm-support-3.1.0-10.el8.x86_64kmod-redhat-oracleasm-2.0.8-18.0.1.el8.x86_64kmod-redhat-oracleasm-2.0.8-18.2.0.1.el8_10.x86_64oracleasmlib-3.1.0-6.el8.x86_64
4. oracleasm exit
[root@rac01 tmp]# oracleasm exitCleaning any stale ASM disks...Unmounting oracleasm driver filesystem: /dev/oracleasmUnloading module "oracleasm": oracleasm
5. oracleasm configure -i[root@rac01 tmp]# oracleasm configure -iConfiguring the Oracle ASM system service.
This will configure the on-boot properties of the Oracle ASM systemservice. The following questions will determine whether the serviceis started on boot and what permissions it will have. The currentvalues will be shown in brackets ('[]'). Hitting <ENTER> withouttyping 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]: yScan for Oracle ASM disks when starting the oracleasm service (y/n) [y]: yMaximum number of ASM disks that can be used on system [2048]:Enable iofilter if kernel supports it (y/n) [y]: yWriting Oracle ASM system service configuration: done
Configuration changes only come into effect after the Oracle ASMsystem service is restarted. Please run 'systemctl restart oracleasm'after making changes.
WARNING: All of your Oracle and ASM instances must be stopped priorto restarting the oracleasm service.
6. systemctl restart oracleasm
7. oracleasm init
[root@rac01 tmp]# oracleasm initReloading disk partitions: doneCleaning 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 foundDisk "RECO_DISK01" is a valid ASM diskDisk "ARCH_DISK01" is a valid ASM diskDisk "DATA_DISK01" is a valid ASM diskDisk scan successful
8. oracleasm status
[root@rac01 tmp]# oracleasm statusChecking if the oracleasm kernel module is loaded: yesChecking if /dev/oracleasm is mounted: yesChecking 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-discoverUsing 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 statusChecking if the oracleasm kernel module is loaded: yesChecking if /dev/oracleasm is mounted: yesChecking which I/O Interface is in use: oracleasm driver (KABI_V2)Checking if ASMLIB can be loaded: yes
No comments:
Post a Comment