ORACLEASM TOOL FOR MANAGING ASM ON ORACLE LINUX

ASMLIB is an asm utility which is free to use to manage and discover asm disks logically . This tool can map the disks to the diskgroups easily.

There are three rpm packages for using oracleasm utility

  • oracleasmlib
  • oracleasm-support
  •  kmod-oracleasm

Use below commands to install the packages from ULN repository

yum install kmod-oracleasm -y 

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

yum localinstall ./oracleasm-support-2.1.12-1.el8.x86_64.rpm ./oracleasmlib-2.0.17-1.el8.x86_64.rpm

SAMPLE OUTPUT:

[root@dgprim01 oracle]# wget https://public-yum.oracle.com/repo/OracleLinux/OL8/              addons/x86_64/getPackage/oracleasm-support-2.1.12-1.el8.x86_64.rpm
--2021-08-23 19:39:52--  https://public-yum.oracle.com/repo/OracleLinux/OL8/addo              ns/x86_64/getPackage/oracleasm-support-2.1.12-1.el8.x86_64.rpm
Resolving public-yum.oracle.com (public-yum.oracle.com)... 106.51.144.225, 2600:              140f:c000:184::2a7d, 2600:140f:c000:188::2a7d
Connecting to public-yum.oracle.com (public-yum.oracle.com)|106.51.144.225|: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 100%[===================>]  97.51K  --.-KB/s    in 0.02s

2021-08-23 19:39:52 (6.10 MB/s) - ‘oracleasm-support-2.1.12-1.el8.x86_64.rpm’ sa              ved [99852/99852]

[root@dgprim01 oracle]# 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: 23:56:50 ago on Sun 22 Aug 2021 07:43:23 PM IST.
Package oracleasmlib-2.0.17-1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package                Arch        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.

/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6:               hwcap directive ignored

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

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

Complete!
[root@dgprim01 oracle]#

Use the below link to configure and create diskgroups for oracleasm

https://wordpress.com/post/alphaoragroup.com/7230

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s