Search This Blog

Total Pageviews

Friday, 22 November 2024

oracleasm module not loaded



[root@oraafd ~]# oracleasm createdisk DATA1 /dev/sdb1
oracleasm module not loaded or /dev/oracleasm not mounted.


oracleasm init   <<<< run this command 

[root@oraafd ~]# df -ha |grep -i oracleasm
oracleasmfs                    0     0     0    - /dev/oracleasm
[root@oraafd ~]#


[root@oraafd ~]# oracleasm createdisk DATA1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@oraafd ~]#



*********************************************************************************

[root@localhost rpm]# 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  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 []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

[root@localhost rpm]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm

[root@localhost rpm]#


dmesg | grep Linux

oracleasm configure -i


[root@localhost rpm]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=grid
ORACLEASM_GID=oinstall
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"

[root@localhost rpm]#



/usr/sbin/oracleasm init
systemctl enable oracleasm
systemctl start oracleasm




in CentOS oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.12-1.el7.x86_64

 

in CentOS oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.12-1.el7.x86_64 


=======================================

download link 

https://www.oracle.com/linux/downloads/linux-asmlib-v8-downloads.html

https://public-yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/index.html

Oracle ASMLib Software Update and Support Policy (Doc ID 1089399.1)

https://public-yum.oracle.com/repo/OracleLinux/OL8/5/baseos/base/x86_64/index.html  kmod

Oracle ASMLib 3.0 oracleasmlib-3.0.0.-13.el8.x86_64.rpm Installing and Configuring Oracle ASMLib v3
Oracle ASMLib 2.0 oracleasmlib-2.0.17-1.el8.x86_64.rpm Customers should upgrade to ASMLib v3

=======================================================================================================================================

[root@oraafd ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@oraafd ~]#





[root@oraafd ~]# ls -ltr
total 188
-rw-r--r--  1 root root 27092 Jun  1  2020 oracleasmlib-2.0.17-1.el8.x86_64.rpm

-rw-r--r--  1 root root 18204 Nov 21 13:54 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
-rw-r--r--  1 root root 31828 Nov 21 14:01 oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
-rw-r--r--  1 root root 99852 Nov 22 12:06 oracleasm-support-2.1.12-1.el8.x86_64.rpm



[root@oraafd ~]# yum localinstall ./oracleasm-support-2.1.12-1.el8.x86_64.rpm ./oracleasmlib-2.0.17-1.el8.x86_64.rpm
Last metadata expiration check: 20:41:08 ago on Thu 21 Nov 2024 15:27:04 GMT.
Error:
 Problem: conflicting requests
  - nothing provides oracleasm >= 1.0.4 needed by oracleasmlib-2.0.17-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)



[root@oraafd ~]# yum localinstall oracleasmlib-2.0.17-1.el8.x86_64.rpm
Last metadata expiration check: 20:41:34 ago on Thu 21 Nov 2024 15:27:04 GMT.
Error:
 Problem: conflicting requests
  - nothing provides oracleasm >= 1.0.4 needed by oracleasmlib-2.0.17-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)



use below command 
###################################################################################################################################

[root@oraafd ~]# rpm -Uvh --nodeps --force oracleasmlib-2.0.17-1.el8.x86_64.rpm
warning: oracleasmlib-2.0.17-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:oracleasmlib-2.0.17-1.el8        ################################# [100%]

########################################################################################################################################################

[root@oraafd ~]# yum localinstall oracleasm-support-2.1.12-1.el8.x86_64.rpm
Last metadata expiration check: 20:43:51 ago on Thu 21 Nov 2024 15:27:04 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                                Architecture                                Version                                           Repository                                         Size
==============================================================================================================================================================================================================
Installing:
 oracleasm-support                                      x86_64                                      2.1.12-1.el8                                      @commandline                                       98 k

Transaction Summary
==============================================================================================================================================================================================================
Install  1 Package

Total size: 98 k
Installed size: 349 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                      1/1
  Installing       : oracleasm-support-2.1.12-1.el8.x86_64                                                                                                                                                1/1
  Running scriptlet: oracleasm-support-2.1.12-1.el8.x86_64                                                                                                                                                1/1
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Synchronizing state of oracleasm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable oracleasm
Created symlink /etc/systemd/system/multi-user.target.wants/oracleasm.service → /usr/lib/systemd/system/oracleasm.service.

  Verifying        : oracleasm-support-2.1.12-1.el8.x86_64                                                                                                                                                1/1

Installed:
  oracleasm-support-2.1.12-1.el8.x86_64

Complete!



[root@oraafd ~]# yum localinstall ./kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64.rpm
Last metadata expiration check: 0:12:17 ago on Fri 22 Nov 2024 12:11:05 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                                 Architecture                             Version                                                Repository                                      Size
==============================================================================================================================================================================================================
Installing:
 kmod-redhat-oracleasm                                   x86_64                                   8:2.0.8-12.0.1.el8                                     @commandline                                    44 k

Transaction Summary
==============================================================================================================================================================================================================
Install  1 Package

Total size: 44 k
Installed size: 138 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                      1/1
  Installing       : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                      1/1
  Running scriptlet: kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                      1/1



  Verifying        : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                      1/1

Installed:
  kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64

Complete!


==========



[root@oraafd ~]# rpm -qa | grep oracleasm
kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64
oracleasmlib-2.0.17-1.el8.x86_64
oracleasm-support-2.1.12-1.el8.x86_64


[root@oraafd ~]#



=======================
another installation 
[root@localhost ~]# ls -ltr *.rpm
-rw-r--r-- 1 root root  18204 Dec  9 12:22 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 110724 Dec  9 14:51 oracleasm-support-3.0.0-6.el8.x86_64.rpm
-rw-r--r-- 1 root root  44920 Dec  9 14:56 kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64.rpm
-rw-r--r-- 1 root root  47512 Dec  9 15:33 oracleasmlib-3.0.0-13.el8.x86_64.rpm

[root@localhost ~]# yum localinstall oracleasm-support-3.0.0-6.el8.x86_64.rpm
Last metadata expiration check: 0:32:00 ago on Tue 10 Dec 2024 08:12:01 GMT.
Error:
 Problem: conflicting requests
  - nothing provides libbpf >= 0.6.0 needed by oracleasm-support-3.0.0-6.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]# yum localinstall oracleasmlib-3.0.0-13.el8.x86_64.rpm
Last metadata expiration check: 0:33:24 ago on Tue 10 Dec 2024 08:12:01 GMT.
Dependencies resolved.
===============================================================================================================================================================================================================
 Package                                            Architecture                                 Version                                              Repository                                          Size
===============================================================================================================================================================================================================
Installing:
 oracleasmlib                                       x86_64                                       3.0.0-13.el8                                         @commandline                                        46 k

Transaction Summary
===============================================================================================================================================================================================================
Install  1 Package

Total size: 46 k
Installed size: 91 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                       1/1
  Installing       : oracleasmlib-3.0.0-13.el8.x86_64                                                                                                                                                      1/1
  Running scriptlet: oracleasmlib-3.0.0-13.el8.x86_64                                                                                                                                                      1/1
  Verifying        : oracleasmlib-3.0.0-13.el8.x86_64                                                                                                                                                      1/1

Installed:
  oracleasmlib-3.0.0-13.el8.x86_64
=

error 


[root@localhost ~]# yum localinstall oracleasm-support-3.0.0-6.el8.x86_64.rpm
Last metadata expiration check: 0:33:36 ago on Tue 10 Dec 2024 08:12:01 GMT.
Error:
 Problem: conflicting requests
  - nothing provides libbpf >= 0.6.0 needed by oracleasm-support-3.0.0-6.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]# dnf install oracleasm-support
Last metadata expiration check: 0:34:06 ago on Tue 10 Dec 2024 08:12:01 GMT.
No match for argument: oracleasm-support
Error: Unable to find a match: oracleasm-support

====

[root@localhost ~]# rpm -Uvh --nodeps --force oracleasm-support-3.0.0-6.el8.x86_64.rpm
warning: oracleasm-support-3.0.0-6.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:oracleasm-support-3.0.0-6.el8    ################################# [100%]
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Synchronizing state of oracleasm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable oracleasm



[root@localhost ~]# yum localinstall ./kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64.rpm
Last metadata expiration check: 0:51:59 ago on Tue 10 Dec 2024 08:12:01 GMT.
Dependencies resolved.
===============================================================================================================================================================================================================
 Package                                                 Architecture                             Version                                                 Repository                                      Size
===============================================================================================================================================================================================================
Installing:
 kmod-redhat-oracleasm                                   x86_64                                   8:2.0.8-12.0.1.el8                                      @commandline                                    44 k

Transaction Summary
===============================================================================================================================================================================================================
Install  1 Package

Total size: 44 k
Installed size: 138 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                       1/1
  Installing       : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                       1/1
  Running scriptlet: kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                       1/1




  Verifying        : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64                                                                                                                                       1/1

Installed:
  kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64

Complete!



Oracle public repositories | Oracle public yum


https://public-yum.oracle.com/index.html


https://public-yum.oracle.com/oracle-linux-8.html

Oracle DBA

anuj blog Archive