Oracle ASM configuration on RHEL 8 version

Oracle ASM configuration on RHEL 8 version.

 

Overview of the activity:

Oracle 19c databases were running on RHEL 7.9

Before upgrade below packages were installed related to ASM.

rpm -qa|grep oracleasm
oracleasm-support-2.1.11-2.el7.x86_64
oracleasmlib-2.0.12-1.el7.x86_64
kmod-oracleasm-2.0.8-28.el7.x86_64

OS upgraded from RHEL7.9 to RHEL8.9

Total 3 packages required for ASM configuration on RHEL 8.9.

kmod-redhat-oracleasm-2.0.8-18.el8.x86_64
oracleasm-support-2.1.12-1.el8.x86_64
oracleasmlib-2.0.17-1.el8.x86_64

After OS upgrade from 7.9 to 8.9 below package is available by default.

kmod-redhat-oracleasm-2.0.8-18.el8.x86_64

 

Step 1

Download packages.

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

 

cd /tmp
wget https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.17-1.el8.x86_64.rpm
wget https://public-yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/getPackage/oracleasm-support-2.1.12-1.el8.x86_64.rpm

output

[ oracleasmlib]# cd /tmp
[ tmp]# wget https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.17-1.el8.x86_64.rpm
–2024-02-29 08:37:52– https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.17-1.el8.x86_64.rpm
Resolving download.oracle.com (download.oracle.com)… 23.200.224.108
Connecting to download.oracle.com (download.oracle.com)|23.200.224.108|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 27092 (26K) [application/x-redhat-package-manager]
Saving to: ‘oracleasmlib-2.0.17-1.el8.x86_64.rpm’

oracleasmlib-2.0.17-1.el8.x86_64.rpm 100%[============================================================================>] 26.46K –.-KB/s in 0.02s

2024-02-29 08:37:53 (1.06 MB/s) – ‘oracleasmlib-2.0.17-1.el8.x86_64.rpm’ saved [27092/27092]

[ tmp]# wget https://public-yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/getPackage/oracleasm-support-2.1.12-1.el8.x86_64.rpm
–2024-02-29 08:38:04– https://public-yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/getPackage/oracleasm-support-2.1.12-1.el8.x86_64.rpm
Resolving public-yum.oracle.com (public-yum.oracle.com)… 23.200.225.148, 2600:1404:5400:2a6::2a7d, 2600:1404:5400:291::2a7d
Connecting to public-yum.oracle.com (public-yum.oracle.com)|23.200.225.148|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 99852 (98K) [application/x-rpm]
Saving to: ‘oracleasm-support-2.1.12-1.el8.x86_64.rpm’

oracleasm-support-2.1.12-1.el8.x86_64.r 100%[============================================================================>] 97.51K –.-KB/s in 0.06s

2024-02-29 08:38:05 (1.57 MB/s) – ‘oracleasm-support-2.1.12-1.el8.x86_64.rpm’ saved [99852/99852]

[ tmp]#

Step 2

Verify the packages:

$ rpm -qa|grep oracleasm
kmod-redhat-oracleasm-2.0.8-18.el8.x86_64

 

Step 3

Connect as root and install Oracle asmlib

 

[ oracle]# rpm -ivh 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%]
[ oracle]#

Install packages.

 

Step 4

Install  remaining two packages

 

[ tmp]# yum localinstall ./oracleasm-support-2.1.12-1.el8.x86_64.rpm ./oracleasmlib-2.0.17-1.el8.x86_64.rpm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 – AppStream (RPMs) 134 kB/s | 4.5 kB
Red Hat Enterprise Linux 8 for x86_64 – BaseOS (RPMs) 128 kB/s | 4.1 kB
Package oracleasmlib-2.0.17-1.el8.x86_64 is already installed.
Dependencies resolved.
=================================================================================================================================================
Package Architecture Version Repository
=================================================================================================================================================
Installing:
oracleasm-support x86_64 2.1.12-1.el8 @commandline

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 :
Installing : oracleasm-support-2.1.12-1.el8.x86_64
Running scriptlet: oracleasm-support-2.1.12-1.el8.x86_64
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

Verifying : oracleasm-support-2.1.12-1.el8.x86_64
Installed products updated.

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

Complete!
[ tmp]#

 

 

Step 5

Install below packages if required (as OS upgraded to 8.9)

yum install bc
yum install binutils
yum install elfutils-libelf
yum install elfutils-libelf-devel
yum install fontconfig-devel
yum install glibc
yum install glibc-devel
yum install ksh
yum install libaio
yum install libaio-devel
yum install libXrender
yum install libX11
yum install libXau
yum install libXi
yum install libXtst
yum install libgcc
yum install libnsl
yum install librdmacm
yum install libstdc++
yum install libstdc++-devel
yum install libxcb
yum install libibverbs
yum install make
yum install policycoreutils
yum install policycoreutils-python-utils
yum install smartmontools
yum install sysstat

 

Step 6

Configure ASM

tmp]# /usr/sbin/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 []: oracle
Default group to own the driver interface []: dba
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

 

Step 7

[tmp]# /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

#

Step 8

[tmp]# systemctl enable oracleasm
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

#

Step 9

[ tmp]# systemctl start oracleasm

[ tmp]#
[ tmp]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
[ tmp]#
[ tmp]#
[ tmp]# oracleasm listdisks
DATA1
DATA_0001

 

See also