You are on page 1of 7

9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials

ORACLE  SQL SERVER  APPLICATION  OS & LINUX  ENGINEERING  PROGRAMMING  NETWORK ABOUT US ASK QUESTIONS

Oracle  

How to Create and Con gure Oracle ASM Disk on


Linux Using OracleASM ASMLib Utility
Hi,

I will explain How to Create and Con gure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility.

Search in IT Tutorial

Search

Ask a Question

Article Categories

Download PDF - [Free] Select Category

To View PDF, Download Here


Follow Us On Social Media

ProPDFConverter SEE MORE

Before this article,  read the following article to add Disk on VirtualBox.
Subscribe IT Tutorial via Email

Enter your email address to subscribe to IT


Tutorial

Email Address

Subscribe

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 1/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials

How to Add Hard disk in VirtualBox and Disk format


and Mount Steps on Linux
Hi, I will explain How to Add Hard disk in VirtualBox and Disk format and Mount Steps
on Linux.   … Continue reading

IT Tutorials 0

In the above article, /dev/sdc disk is partitionned into 2 parts and mounted the rst one as /dev/sdc1 /u01.

Now prepare /dev/sdc2 partition as Oracle ASM Disk.

ASMLib software is used to format or con gure any disk on Linux as an ASM disk. The ASMLib software
consists of the following 3 components.

• Open source (GPL) core module package: kmod-oracleasm


• Open source (GPL) utilities package: oracleasm-support
• Closed-source library package: oracleasmlib

 
Top Posts & Pages
download and install them with the following yum packages.

Oracle RAC Administration Scripts via CRSCTL


Firstly yum install oracleasm like following.
-2
  How to Create and Con gure Oracle ASM Disk
on Linux Using OracleASM ASMLib Utility

[root@MehmetSalih ~]# yum install oracleasm Oracle Database 19c on Linux 7.6 Step by Step
Loaded plugins: langpacks, ulninfo Installation -1
Resolving Dependencies
--> Running transaction check Oracle Database 19c on Linux 7.6 Step by Step
---> Package kernel-uek.x86_64 0:4.14.35-1844.2.5.el7uek will be installed Installation -2
--> Finished Dependency Resolution
Microsoft SQL Server Database Tutorials for
Dependencies Resolved
Beginners
====================================================================================
====================================================================== Oracle Database History & Oracle Release
Package Arch Version Repository Size Versions
====================================================================================
====================================================================== SQL Server DBA Scripts All in One – Useful
Installing: Database Administration Scripts
kernel-uek x86_64 4.14.35-1844.2.5.el7uek ol7_UEKR5 52 M
Transaction Summary Oracle Automatic Storage Management ( ASM
==================================================================================== ) -2
======================================================================
What is the Linux & Linux History and Top
Install 1 Package
Linux Distributions
Total download size: 52 M
Installed size: 59 M Oracle Database Editions & Oracle Features
Is this ok [y/d/N]: y
Downloading packages:

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 2/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Site Archives
kernel-uek-4.14.35-1844.2.5.el7uek.x86_64.rpm | 52 MB 00:00:13
Running transaction check
Running transaction test Select Month
Transaction test succeeded
Running transaction
Installing : kernel-uek-4.14.35-1844.2.5.el7uek.x86_64 1/1
Verifying : kernel-uek-4.14.35-1844.2.5.el7uek.x86_64 1/1
Installed:
kernel-uek.x86_64 0:4.14.35-1844.2.5.el7uek
Complete!
[root@MehmetSalih ~]#

And then you should install related yum packages like following.

[root@MehmetSalih ~]# yum install oracleasm-support.x86_64


[root@MehmetSalih ~]# yum install kmod-oracleasm

After Oracle ASM lib packages are installed you need to con gure like following.

[root@MehmetSalih ~]# 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

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 3/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials
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 []: 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

Check Oracle ASM status like following.

[root@MehmetSalih ~]# oracleasm status


Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@MehmetSalih ~]#
[root@MehmetSalih ~]#

İnitialize oracleasm like following

[root@MehmetSalih ~]# 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@MehmetSalih ~]#

After seeing Oracleasm software works correctly, the disk is created as follows.

[root@MehmetSalih ~]# oracleasm createdisk DATA /dev/sdc2


Writing disk header: done
Instantiating disk: done
[root@MehmetSalih ~]#

And we can list oracle asmdisk like following.

[root@MehmetSalih ~]# oracleasm listdisks


DATA
[root@MehmetSalih ~]#

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 4/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials
 

Now Oracle ASM Disk ( DATA ) is created, you can use it during Automatic Storage Management
Installation.

← How to Add Hard disk in VirtualBox and Disk format and Mount Steps on Linux

How to Create and Con gure a Virtual Machine VM on Oracle Virtualbox →

Mehmet Salih Deveci


I am Founder of IT Tutorial and Certi ed Expert about Oracle & SQL Server database,
Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years
experience.I have OCA, OCP, OCE RAC Expert Certi cates I have worked 100+ Banking,
Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+
Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server
Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster
Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication
with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA,
SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email
adress mehmetsalih.deveci@outlook.com.-                                                                                                                     
                                                                                                                           -Oracle DBA, SQL Server DBA, APPS
DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  mehmetsalih.deveci@outlook.com a mail
atabilirsiniz.

Leave a Reply
Your email address will not be published. Required elds are marked *

Comment

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 5/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials
Name *

Email *

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

Post Comment

Bangalore < Madurai Chennai < Madurai Madurai < Chennai


Departs on 27-Sep-2019 Departs on 23-Sep-2019 Departs on 23-Sep-2019

Rs. 1,999 Rs. 1,783 Rs. 1,792

BOOK NOW BOOK NOW BOOK NOW

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 6/7
9/5/2019 How to Create and Configure Oracle ASM Disk on Linux Using OracleASM ASMLib Utility | IT Tutorials

Copyright © 2019 IT Tutorials. All rights reserved.


Theme: ColorMag by ThemeGrill. Powered by WordPress.

https://ittutorial.org/how-to-create-and-configure-oracle-asm-disk-on-linux-using-oracleasm-asmlib-utility/?fbclid=IwAR0M3oO2evX7si3KlYWfQmjZnklT… 7/7

You might also like