SlideShare a Scribd company logo
1 of 9
Download to read offline
🔴 Oracle ASM Filter Driver & ASMLIB & UDEV🔴
A complete review, recommendation usage
About Oracle ASM Filter Driver
Oracle ASM Filter Driver (Oracle ASMFD) is a kernel module that resides in the I/O path of the
Oracle ASM disks. Oracle ASM uses the
fi
lter driver to validate write I/O requests to Oracle ASM
disks.
Oracle ASMFD simpli
fi
es the con
fi
guration and management of disk devices by eliminating the
need to rebind disk devices used with Oracle ASM each time the system is restarted.
Oracle ASM Filter Driver rejects any I/O requests that are invalid. This action eliminates accidental
overwrites of Oracle ASM disks that would cause corruption in the disks and
fi
les within the disk
group. For example, the Oracle ASM Filter Driver
fi
lters out all non-Oracle I/Os which could cause
accidental overwrites.
Note : AFD is not compatible with ASMLIB and these packages can't exist together on a OS.
1) Starting with Oracle Grid Infrastructure 12C Release 1 (12.1.0.2), Oracle ASM Filter Driver
(Oracle ASMFD) is installed with an Oracle Grid Infrastructure installation.
2) Oracle Automatic Storage Management Filter Driver (Oracle ASMFD) rejects write I/O requests
that are not issued by Oracle software. This
fi
lter helps to prevent users with administrative
privileges from inadvertently overwriting Oracle ASM disks, thus preventing corruption in Oracle
ASM disks and
fi
les within the disk group. For disk partitions, the area protected is the area on the
disk managed by Oracle ASMFD, assuming the partition table is left untouched by the user.
3) Oracle ASMFD simpli
fi
es the con
fi
guration and management of disk devices by eliminating the
need to rebind disk devices used with Oracle ASM each time the system is restarted.
4) ASMFD is a superset of ASMLIB; therefore it includes base-ASMLIB features (permissions
persistence & sharing open handles).
5) The Oracle ASM
fi
lter driver (ASMFD) is a kernel module that resides in the I/O path of the
Oracle ASM disks. Logically, ASMFD provides an interface between Oracle binaries and the
underlying operating environment which includes the storage hardware interfaces. Following are
descriptions of the key capabilities of ASMFD:
• Reject non-Oracle I/Os.
As a manager of Oracle storage, ASM is exposed to the capabilities of the Operating System
(OS) when it comes to dealing with storage devices. In particular, non-Oracle commands have the
ability to overwrite the contents of ASM disks which may lead to unrecoverable data loss. ASMFD
only allows writes using an Oracle-speci
fi
c interface and prevents non-Oracle applications from
writing to ASM disks. This protects ASM from accidental corruption.
• Reduce OS resource usage.
An ASM instance contains numerous processes, or threads on Windows. Without ASMFD, each
process that is I/O capable needs to have its own dedicated open
fi
le descriptor for each disk.
When a database has thousands of processes accessing hundreds of disks, there is an explosion
of
fi
le descriptors leading to considerable OS resource consumption. ASMFD exposes a portal
device that can be used for all I/O on a particular host. The same portal device can be shared by
all the processes associated with multiple database instances. The result is that using ASMFD,
the required number of open
fi
le descriptors is drastically reduced.
• Enable device name persistence.
ASMFD do not require additional con
fi
guration to ensure device name persistence by using udev
rules or third-party storage drivers.
• Faster node recovery.
With the current implementation of Oracle Clusterware, init.d scripts panic the node in situations
when Cluster Synchronization Services (CSS) is not functioning correctly. Using this mechanism,
nodes are fenced to ensure the integrity of the rest of the cluster. While e
ff
ective, this solution is
costly because of the time required to reboot the node and restart all the required processes.
ASMFD allows Oracle Clusterware to perform node level fencing without a reboot. So with
ASMFD, it is possible to achieve the same result by restarting the Oracle software stack instead
of rebooting the entire node. This process is just as e
ff
ective, but far quicker.
----------------------
ASMLIB:
What is ASMLib?
ASMLib is an optional set of tools and a kernel driver that can be inserted between ASM and the
hardware, as well as an application library used by the Oracle database software to access ASM
disks. It is a support library for the ASM feature of Oracle 10g and higher ,single instance
database servers as well as RAC installations. ASM and regular database instances can use
ASMLib as an alternative interface for disk access. ASMLib has three components:
Kernel driver – oracleasm is a Linux kernel driver also known as the Oracle ASMLib kernel driver.
This is an open-source (GPL) kernel driver and is available from Oracle as source and binary
RPMs. Note that although this driver is provided under an open source license, it has not been
accepted into the mainline Linux kernel.
Support tools – oracleasm-support provides the utilities to manage the ASM library driver.
Oracleasm-support is an open-source package (GPL) and is available from Oracle as source and
binary RPMs.
Application library – oracleasmlib package provides the actual ASM library. This is a closed
source, binary-only RPM, available as a free download from Oracle. Oracle introduced ASMLib in
2004 to provide Oracle workloads on Linux with performance and stability comparable to
equivalent workloads on UNIX. ASMLib addressed de
fi
ciencies – including a lack of async and
direct I/O -- that existed in the 2.4 and higher Linux kernel. The Linux community addressed these
de
fi
ciencies in the 2.6 Linux kernel with the addition of udev and device-mapper multipath which
together with LVM provided native multipathing, scalable native volume management, and
persistent device naming. Additionally, the 2.6 Linux kernel added tools for handling large
numbers of disks, especially SAN-attached disks. How is ASMLib delivered? ASMLib is available
as a free download from the Oracle ULN website. Unlike ASM, ASMLib is not included with the
Oracle database product.
ASMLib is available for Linux only; it does not exist for any other platform.
When would I want to use ASM and ASMLib together?
What are the advantages and disadvantages?
Oracle recommends using ASM with ASMLib or AFD together for better manageability and
persistent device naming. Note that Oracle makes no claims that ASM with ASMLib delivers
performance bene
fi
ts over ASM without ASMLib.
Advantages
• Perceived better manageability.
• Well documented and recommended by Oracle.
• Some Oracle DBAs and SysAdmins are trained in how to use ASM with ASMLib and are
comfortable with this environment.
• Optimized for database applications via direct and async I/O provided by the ASMLib kernel
driver.
Note Red Hat Enterprise Linux kernel 2.6.X and higher supports optimized direct and async I/O
for all supported
fi
lesystem EXT3/4, XFS, GFS and NFS.
Disadvantages
• Requires ASMLib kernel driver that is not included in the mainline Linux kernel.
• ASMLib delivers no known performance bene
fi
ts.
• Red Hat Enterprise Linux with ASMLib does not have government security certi
fi
cation.
• ASMLib is not compatible with SELinux.
• ASMLib is not multipath aware and can silently choose to work through a single path, causing
performance and reliability issues.
• Non POSIX system calls for device access lead to issues with trouble-shooting and performance
monitoring.
Can I run an Oracle single instance database with ASM and without ASMLib?
What are the advantages and disadvantages? What are the alternatives?
Yes. It is possible to run an Oracle Single Instance database with ASM and without ASMLib by
specifying udev rules and/or using device mapper multipathing to achieve persistent device
naming, both of which are a standard part of Red Hat Enterprise Linux 5 and Red Hat Enterprise
Linux 6 and higher .
ASM can use the following for storage resources:
• Block devices (SATA, SAS, FC, iSCSI, FCoE, regular LUNs and LUNs with thin provisioning) with
udev naming and/or multipathing.
• Raw Devices. • NFS v3 with veri
fi
ed NAS vendors.
Advantages
• Using ASM without ASMLib avoids the overhead resulting from an extra, non-mainline Linux
kernel driver.
• Supported and documented by Oracle.
• Using ASM without ASMLib provides the ability to use operating system's native I/O
multipathing.
• Using POSIX system calls for disk access enables improved performance monitoring and
troubleshooting.
Disadvantages •
Customers may have standardized on Oracle deployments using ASMLib.
Can I use the Oracle single instance database without ASM or ASMLib ? What are my
alternatives? How do I set it up?
Yes. There are two alternatives to using the Oracle single instance database without ASM or
ASMLib:
• Use a local
fi
le system such as ext4.
• Use logical volumes such as provided by lvm2 with dm-multipath or an optional third party
commercial multipathing software. Red Hat will address this con
fi
guration in a forthcoming
reference architecture whitepaper.
Can I use Oracle Real Application Clusters (RAC) with ASM and without ASMLib?
What are my alternatives? How do I set it up?
ASMLib is an optional component of either an Oracle single instance or RAC con
fi
guration. Below
are alternatives to using ASMLib for RAC:
• ASM with LVM: ASM + block devices + udev naming + multipathing.
• Cluster
fi
le systems with cluster volume manager: gfs/clvm (Red Hat Enterprise Linux 5) or
Symantec Cluster File System and Symantec Cluster Server (http://www.symantec.com/business/
storage-foundation-for-oracle-rac).
• NFS v3 with veri
fi
ed NAS vendors.
Red Hat will address this con
fi
guration in a forthcoming reference architecture whitepaper.
Can I use Oracle Real Application Clusters (RAC) without ASM or ASMLib? What are my
alternatives? How do I set it up?
Yes a preferred option is Udev rules.
Although most Oracle RAC installations with SAN-attached storage use ASM, RAC can be
deployed without ASM if database
fi
les are located on an NFS server, certi
fi
ed cluster
fi
le system,
or raw devices. (Note that Oracle discourages the use of raw devices.) Red Hat will address this
con
fi
guration in a forthcoming reference architecture whitepaper.
I already use ASM and ASMLib. How do I migrate from using them to something else?
This is a simple migration.
Perform the following:
1. The DBA stops all database instances using storage through ASM and ASMLib.
2. The system administrator con
fi
gures udev (or multipath) to assign permissions allowing ASM
processes to have read and write access to ASM devices
3. The DBA changes one ASM parameter to point ASM to the assigned devices.
4. The DBA restarts the ASM instance and databases.
5. As with all data-related changes, a backup is highly recommended.
Some theoretical bene
fi
ts of ASMLIB API:
• always uses direct, async i/o
• solves persistent device naming, even if underlying device moves across reboots
• solves
fi
le permissions and ownership
• reduced user mode to kernel mode context switches during I/O, possibly reducing CPU usage
• reduced
fi
le handle usage
• pass metadata such as I/O prioritization to storage device (don’t think this is implemented in the
Linux version)
Note :
using direct i/o and async i/o have dependencies on Oracle parameters Disk_asynch_io =true
and
fi
lesystemio_options=Set All .
----------------------------------
UDEV Rules:
What is Udev?
Udev is the mechanism used to create and name /dev device nodes corresponding to the devices
that are present in the system. Udev uses matching information provided by sysfs with rules
provided by the user to dynamically add the required device nodes.
Udev rules doesn't Linux kernel limitations on upgrade time instead of ASMLIB and AFD
kernel dependencies.
All udev
fi
le should be under /etc/udev/rules.d/
basic format for udev rule is.
key1=”value”, key2=”value”, … keyN=”value”, name=”value”, symlink=”value”
You can
fi
nd the key value by using udevadm command. Lets understand the environment key.
# multipath -ll mpathxy
mpathxy (wwn) dm-6 (vendor)
size=600G features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw
`-+- policy=’service-time 0′ prio=1 status=active
|- 1:0:0:6 sdj 8:1 active ready running
|- 1:0:1:6 sdk 65:2 active ready running
|- 2:0:0:6 sdl 65:14 active ready running
`- 2:0:1:6 sdm 66:24 active ready running
So we have multipath mpathxy and reference device mapper is dm-6.
# udevadm info –query=all –path=/devices/virtual/block/dm-6
Above command will give you list of variables which you can use in udev rules.
You can make the following entry in /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL==”dm-*”,ENV{DM_UUID}==”mpath-wwn”,OWNER=”username”,GROUP=”
groupname”,MODE=”0660″
Or you can use following script to create the /etc/udev/rules.d/99-oracle-asmdevices.rules
Generate udev rules for Physical and virtual server
/etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-
wwn",OWNER="oracle",GROUP="oinstall",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-
wwn1",OWNER="oracle",GROUP="oinstall",MODE="0660"
# /sbin/udevadm control –reload-rules
# /sbin/udevadm trigger –type=devices –action=change
Now verify the udev rules via
# ls -l /dev/dm*
UDEV Rules Advantages:
• Using ASM without ASMLib avoids the overhead resulting from an extra, non-mainline Linux
kernel driver.
• Supported and documented by Oracle.
• Using ASM without ASMLib provides the ability to use operating system’s native I/O
multipathing.
• Using POSIX system calls for disk access enables improved performance monitoring and
troubleshooting.
. There are no issues linux kernel upgrades on Asmlin & Asm
fi
lter drive.
UDEV Rules Disadvantages:
• Customers may have standardized on Oracle deployments using ASMLib.
-----------------------------------
♨ My experience:
You may
fi
nd i/o tests and some benchmarks on using ASMLIB or ASM Filter Drive that speaks
about performance better as a result .
Normally these i/o testing leads to AFD has better performance instead of ASMLIB. And ASMLIB
usage is better performance instead of UDEV Rules.
Generally, ASM Filter Drive is very dependent on Grid version and not always available to you, but
its features is noticeable and seductive for DBA.
Although isolation levels , security features on AFD is a good feature, But you should consider
that these performance benchmarks is very dependent on hardware and resources, so this not
meaning that using them also is better performance for your environment,
fi
nally with attention to
linux kernel and oracle grid upgrades and issues on AFD and ASMLIB, you can consider to use
only UDEVs + Multipathing on Linux and DBA must consider maintenance cost of there tools with
respect to its features also.
Therefore , on new kernel and Grid versions that support AFD, you can use it and enjoy its
features and when Grid version not supported you can use ASMLIB, but it is possible you force to
change and using Udev rules in the speci
fi
c time in future cause of upgrade your linux or
database.
So dont worry about performance e
ff
ective on using Udev rules instead of ASMLIB or AFD, if realy
there tools give us a performance rate, this feature instead of minimizing maintenance cost on
future is a right and rational decision.
About Migrating to Oracle ASM Filter Driver From ASMLIB
If Oracle ASMLIB was installed, but not used earlier, you must create disk labels to enable
migration of Oracle ASM disk groups to Oracle ASM Filter Driver (Oracle ASMFD) after installing
Oracle Grid Infrastructure 12c Release 1 (12.1.0.2).
Oracle recommends that you temporarily move Oracle Cluster Registry (OCR) and voting
fi
les to
another disk group if one is available, as described in "https://docs.oracle.com/en/database/
oracle/oracle-database/12.2/ostmg/administer-
fi
lter-driver.html#GUID-9C370239-C67D-4813-
BE83-B0528397C02D
and migrate the disk group to use Oracle ASMFD. After migrating the disk group to use Oracle
ASMFD, move OCR and voting
fi
les back to the disk group. You can similarly migrate any other
disk groups if they contain OCR or voting
fi
les to ensure online migration of all disk groups to
Oracle ASMFD.
Regarding
Alireza Kamrani.

More Related Content

Similar to 🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf

Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Markus Michalewicz
 
Oracle ACFS High Availability NFS Services (HANFS) Part-I
Oracle ACFS High Availability NFS Services (HANFS) Part-IOracle ACFS High Availability NFS Services (HANFS) Part-I
Oracle ACFS High Availability NFS Services (HANFS) Part-IAnju Garg
 
Less05 asm instance
Less05 asm instanceLess05 asm instance
Less05 asm instanceAmit Bhalla
 
My First 100 days with an Exadata (WP)
My First 100 days with an Exadata  (WP)My First 100 days with an Exadata  (WP)
My First 100 days with an Exadata (WP)Gustavo Rene Antunez
 
10g rac asm
10g rac asm10g rac asm
10g rac asmVictor
 
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesIOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesPini Dibask
 
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software ReleaseIsabella789
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices Filip Verloy
 
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12c
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12cE-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12c
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12cAndrejs Karpovs
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
 

Similar to 🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf (20)

Oracle on linux
Oracle on linuxOracle on linux
Oracle on linux
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
 
Oracle ACFS High Availability NFS Services (HANFS) Part-I
Oracle ACFS High Availability NFS Services (HANFS) Part-IOracle ACFS High Availability NFS Services (HANFS) Part-I
Oracle ACFS High Availability NFS Services (HANFS) Part-I
 
Less05 asm instance
Less05 asm instanceLess05 asm instance
Less05 asm instance
 
My First 100 days with an Exadata (WP)
My First 100 days with an Exadata  (WP)My First 100 days with an Exadata  (WP)
My First 100 days with an Exadata (WP)
 
10g rac asm
10g rac asm10g rac asm
10g rac asm
 
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesIOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
 
Rac&asm
Rac&asmRac&asm
Rac&asm
 
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
EBS on ACFS white paper
EBS on ACFS white paperEBS on ACFS white paper
EBS on ACFS white paper
 
61 Rac
61 Rac61 Rac
61 Rac
 
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12c
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12cE-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12c
E-Business Suite Rapid Provisioning Using Latest Features Of Oracle Database 12c
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
DevOps for database
DevOps for databaseDevOps for database
DevOps for database
 
les12.pdf
les12.pdfles12.pdf
les12.pdf
 
les01.pdf
les01.pdfles01.pdf
les01.pdf
 

More from Alireza Kamrani

Oracle database maximum performance on Exadata
Oracle database maximum performance on ExadataOracle database maximum performance on Exadata
Oracle database maximum performance on ExadataAlireza Kamrani
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfAlireza Kamrani
 
Flashback time travel vs Flash back Data Archive.pdf
Flashback time travel  vs Flash back Data Archive.pdfFlashback time travel  vs Flash back Data Archive.pdf
Flashback time travel vs Flash back Data Archive.pdfAlireza Kamrani
 
Import option in Oracle Database : tip & trick🧶.pdf
Import option in Oracle Database : tip & trick🧶.pdfImport option in Oracle Database : tip & trick🧶.pdf
Import option in Oracle Database : tip & trick🧶.pdfAlireza Kamrani
 
Recovering a Oracle datafile without backup.pdf
Recovering a Oracle datafile without backup.pdfRecovering a Oracle datafile without backup.pdf
Recovering a Oracle datafile without backup.pdfAlireza Kamrani
 
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdfAlireza Kamrani
 
♨️CPU limitation per Oracle database instance
♨️CPU limitation per Oracle database instance♨️CPU limitation per Oracle database instance
♨️CPU limitation per Oracle database instanceAlireza Kamrani
 
Out-of-Place Oracle Database Patching and Provisioning Golden Images
Out-of-Place Oracle Database Patching and Provisioning Golden ImagesOut-of-Place Oracle Database Patching and Provisioning Golden Images
Out-of-Place Oracle Database Patching and Provisioning Golden ImagesAlireza Kamrani
 
IO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performanceIO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performanceAlireza Kamrani
 
The Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAsThe Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAsAlireza Kamrani
 
What is Scalability and How can affect on overall system performance of database
What is Scalability and How can affect on overall system performance of databaseWhat is Scalability and How can affect on overall system performance of database
What is Scalability and How can affect on overall system performance of databaseAlireza Kamrani
 
🏗️Improve database performance with connection pooling and load balancing tec...
🏗️Improve database performance with connection pooling and load balancing tec...🏗️Improve database performance with connection pooling and load balancing tec...
🏗️Improve database performance with connection pooling and load balancing tec...Alireza Kamrani
 
Oracle Database 23c–Fine Grained locking features
Oracle Database 23c–Fine Grained locking featuresOracle Database 23c–Fine Grained locking features
Oracle Database 23c–Fine Grained locking featuresAlireza Kamrani
 
Store non-structured data in JSON column types and enhancements of JSON
Store non-structured data in JSON column types and enhancements of JSONStore non-structured data in JSON column types and enhancements of JSON
Store non-structured data in JSON column types and enhancements of JSONAlireza Kamrani
 
Enhancements in Oracle 23c Introducing the NewOld Returning Clause
Enhancements in Oracle 23c Introducing the NewOld Returning ClauseEnhancements in Oracle 23c Introducing the NewOld Returning Clause
Enhancements in Oracle 23c Introducing the NewOld Returning ClauseAlireza Kamrani
 
PostgreSQL vs Oracle a brief comparison
PostgreSQL vs Oracle a brief  comparisonPostgreSQL vs Oracle a brief  comparison
PostgreSQL vs Oracle a brief comparisonAlireza Kamrani
 
How to take a dump from a Wal file PostgreSQL
How to take a dump from a Wal file PostgreSQLHow to take a dump from a Wal file PostgreSQL
How to take a dump from a Wal file PostgreSQLAlireza Kamrani
 

More from Alireza Kamrani (17)

Oracle database maximum performance on Exadata
Oracle database maximum performance on ExadataOracle database maximum performance on Exadata
Oracle database maximum performance on Exadata
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
 
Flashback time travel vs Flash back Data Archive.pdf
Flashback time travel  vs Flash back Data Archive.pdfFlashback time travel  vs Flash back Data Archive.pdf
Flashback time travel vs Flash back Data Archive.pdf
 
Import option in Oracle Database : tip & trick🧶.pdf
Import option in Oracle Database : tip & trick🧶.pdfImport option in Oracle Database : tip & trick🧶.pdf
Import option in Oracle Database : tip & trick🧶.pdf
 
Recovering a Oracle datafile without backup.pdf
Recovering a Oracle datafile without backup.pdfRecovering a Oracle datafile without backup.pdf
Recovering a Oracle datafile without backup.pdf
 
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
 
♨️CPU limitation per Oracle database instance
♨️CPU limitation per Oracle database instance♨️CPU limitation per Oracle database instance
♨️CPU limitation per Oracle database instance
 
Out-of-Place Oracle Database Patching and Provisioning Golden Images
Out-of-Place Oracle Database Patching and Provisioning Golden ImagesOut-of-Place Oracle Database Patching and Provisioning Golden Images
Out-of-Place Oracle Database Patching and Provisioning Golden Images
 
IO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performanceIO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performance
 
The Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAsThe Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAs
 
What is Scalability and How can affect on overall system performance of database
What is Scalability and How can affect on overall system performance of databaseWhat is Scalability and How can affect on overall system performance of database
What is Scalability and How can affect on overall system performance of database
 
🏗️Improve database performance with connection pooling and load balancing tec...
🏗️Improve database performance with connection pooling and load balancing tec...🏗️Improve database performance with connection pooling and load balancing tec...
🏗️Improve database performance with connection pooling and load balancing tec...
 
Oracle Database 23c–Fine Grained locking features
Oracle Database 23c–Fine Grained locking featuresOracle Database 23c–Fine Grained locking features
Oracle Database 23c–Fine Grained locking features
 
Store non-structured data in JSON column types and enhancements of JSON
Store non-structured data in JSON column types and enhancements of JSONStore non-structured data in JSON column types and enhancements of JSON
Store non-structured data in JSON column types and enhancements of JSON
 
Enhancements in Oracle 23c Introducing the NewOld Returning Clause
Enhancements in Oracle 23c Introducing the NewOld Returning ClauseEnhancements in Oracle 23c Introducing the NewOld Returning Clause
Enhancements in Oracle 23c Introducing the NewOld Returning Clause
 
PostgreSQL vs Oracle a brief comparison
PostgreSQL vs Oracle a brief  comparisonPostgreSQL vs Oracle a brief  comparison
PostgreSQL vs Oracle a brief comparison
 
How to take a dump from a Wal file PostgreSQL
How to take a dump from a Wal file PostgreSQLHow to take a dump from a Wal file PostgreSQL
How to take a dump from a Wal file PostgreSQL
 

Recently uploaded

PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

🔴Oracle ASM Filter Driver & ASMLIB & UDEV🔴.pdf

  • 1. 🔴 Oracle ASM Filter Driver & ASMLIB & UDEV🔴 A complete review, recommendation usage About Oracle ASM Filter Driver Oracle ASM Filter Driver (Oracle ASMFD) is a kernel module that resides in the I/O path of the Oracle ASM disks. Oracle ASM uses the fi lter driver to validate write I/O requests to Oracle ASM disks. Oracle ASMFD simpli fi es the con fi guration and management of disk devices by eliminating the need to rebind disk devices used with Oracle ASM each time the system is restarted. Oracle ASM Filter Driver rejects any I/O requests that are invalid. This action eliminates accidental overwrites of Oracle ASM disks that would cause corruption in the disks and fi les within the disk group. For example, the Oracle ASM Filter Driver fi lters out all non-Oracle I/Os which could cause accidental overwrites. Note : AFD is not compatible with ASMLIB and these packages can't exist together on a OS. 1) Starting with Oracle Grid Infrastructure 12C Release 1 (12.1.0.2), Oracle ASM Filter Driver (Oracle ASMFD) is installed with an Oracle Grid Infrastructure installation. 2) Oracle Automatic Storage Management Filter Driver (Oracle ASMFD) rejects write I/O requests that are not issued by Oracle software. This fi lter helps to prevent users with administrative privileges from inadvertently overwriting Oracle ASM disks, thus preventing corruption in Oracle ASM disks and fi les within the disk group. For disk partitions, the area protected is the area on the disk managed by Oracle ASMFD, assuming the partition table is left untouched by the user. 3) Oracle ASMFD simpli fi es the con fi guration and management of disk devices by eliminating the need to rebind disk devices used with Oracle ASM each time the system is restarted. 4) ASMFD is a superset of ASMLIB; therefore it includes base-ASMLIB features (permissions persistence & sharing open handles). 5) The Oracle ASM fi lter driver (ASMFD) is a kernel module that resides in the I/O path of the
  • 2. Oracle ASM disks. Logically, ASMFD provides an interface between Oracle binaries and the underlying operating environment which includes the storage hardware interfaces. Following are descriptions of the key capabilities of ASMFD: • Reject non-Oracle I/Os. As a manager of Oracle storage, ASM is exposed to the capabilities of the Operating System (OS) when it comes to dealing with storage devices. In particular, non-Oracle commands have the ability to overwrite the contents of ASM disks which may lead to unrecoverable data loss. ASMFD only allows writes using an Oracle-speci fi c interface and prevents non-Oracle applications from writing to ASM disks. This protects ASM from accidental corruption. • Reduce OS resource usage. An ASM instance contains numerous processes, or threads on Windows. Without ASMFD, each process that is I/O capable needs to have its own dedicated open fi le descriptor for each disk. When a database has thousands of processes accessing hundreds of disks, there is an explosion of fi le descriptors leading to considerable OS resource consumption. ASMFD exposes a portal device that can be used for all I/O on a particular host. The same portal device can be shared by all the processes associated with multiple database instances. The result is that using ASMFD, the required number of open fi le descriptors is drastically reduced. • Enable device name persistence. ASMFD do not require additional con fi guration to ensure device name persistence by using udev rules or third-party storage drivers. • Faster node recovery. With the current implementation of Oracle Clusterware, init.d scripts panic the node in situations when Cluster Synchronization Services (CSS) is not functioning correctly. Using this mechanism, nodes are fenced to ensure the integrity of the rest of the cluster. While e ff ective, this solution is
  • 3. costly because of the time required to reboot the node and restart all the required processes. ASMFD allows Oracle Clusterware to perform node level fencing without a reboot. So with ASMFD, it is possible to achieve the same result by restarting the Oracle software stack instead of rebooting the entire node. This process is just as e ff ective, but far quicker. ----------------------
  • 4. ASMLIB: What is ASMLib? ASMLib is an optional set of tools and a kernel driver that can be inserted between ASM and the hardware, as well as an application library used by the Oracle database software to access ASM disks. It is a support library for the ASM feature of Oracle 10g and higher ,single instance
  • 5. database servers as well as RAC installations. ASM and regular database instances can use ASMLib as an alternative interface for disk access. ASMLib has three components: Kernel driver – oracleasm is a Linux kernel driver also known as the Oracle ASMLib kernel driver. This is an open-source (GPL) kernel driver and is available from Oracle as source and binary RPMs. Note that although this driver is provided under an open source license, it has not been accepted into the mainline Linux kernel. Support tools – oracleasm-support provides the utilities to manage the ASM library driver. Oracleasm-support is an open-source package (GPL) and is available from Oracle as source and binary RPMs. Application library – oracleasmlib package provides the actual ASM library. This is a closed source, binary-only RPM, available as a free download from Oracle. Oracle introduced ASMLib in 2004 to provide Oracle workloads on Linux with performance and stability comparable to equivalent workloads on UNIX. ASMLib addressed de fi ciencies – including a lack of async and direct I/O -- that existed in the 2.4 and higher Linux kernel. The Linux community addressed these de fi ciencies in the 2.6 Linux kernel with the addition of udev and device-mapper multipath which together with LVM provided native multipathing, scalable native volume management, and persistent device naming. Additionally, the 2.6 Linux kernel added tools for handling large numbers of disks, especially SAN-attached disks. How is ASMLib delivered? ASMLib is available as a free download from the Oracle ULN website. Unlike ASM, ASMLib is not included with the Oracle database product. ASMLib is available for Linux only; it does not exist for any other platform. When would I want to use ASM and ASMLib together? What are the advantages and disadvantages? Oracle recommends using ASM with ASMLib or AFD together for better manageability and persistent device naming. Note that Oracle makes no claims that ASM with ASMLib delivers performance bene fi ts over ASM without ASMLib. Advantages • Perceived better manageability. • Well documented and recommended by Oracle. • Some Oracle DBAs and SysAdmins are trained in how to use ASM with ASMLib and are comfortable with this environment. • Optimized for database applications via direct and async I/O provided by the ASMLib kernel driver. Note Red Hat Enterprise Linux kernel 2.6.X and higher supports optimized direct and async I/O for all supported fi lesystem EXT3/4, XFS, GFS and NFS. Disadvantages • Requires ASMLib kernel driver that is not included in the mainline Linux kernel. • ASMLib delivers no known performance bene fi ts. • Red Hat Enterprise Linux with ASMLib does not have government security certi fi cation. • ASMLib is not compatible with SELinux. • ASMLib is not multipath aware and can silently choose to work through a single path, causing performance and reliability issues. • Non POSIX system calls for device access lead to issues with trouble-shooting and performance monitoring. Can I run an Oracle single instance database with ASM and without ASMLib? What are the advantages and disadvantages? What are the alternatives? Yes. It is possible to run an Oracle Single Instance database with ASM and without ASMLib by specifying udev rules and/or using device mapper multipathing to achieve persistent device
  • 6. naming, both of which are a standard part of Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6 and higher . ASM can use the following for storage resources: • Block devices (SATA, SAS, FC, iSCSI, FCoE, regular LUNs and LUNs with thin provisioning) with udev naming and/or multipathing. • Raw Devices. • NFS v3 with veri fi ed NAS vendors. Advantages • Using ASM without ASMLib avoids the overhead resulting from an extra, non-mainline Linux kernel driver. • Supported and documented by Oracle. • Using ASM without ASMLib provides the ability to use operating system's native I/O multipathing. • Using POSIX system calls for disk access enables improved performance monitoring and troubleshooting. Disadvantages • Customers may have standardized on Oracle deployments using ASMLib. Can I use the Oracle single instance database without ASM or ASMLib ? What are my alternatives? How do I set it up? Yes. There are two alternatives to using the Oracle single instance database without ASM or ASMLib: • Use a local fi le system such as ext4. • Use logical volumes such as provided by lvm2 with dm-multipath or an optional third party commercial multipathing software. Red Hat will address this con fi guration in a forthcoming reference architecture whitepaper. Can I use Oracle Real Application Clusters (RAC) with ASM and without ASMLib? What are my alternatives? How do I set it up? ASMLib is an optional component of either an Oracle single instance or RAC con fi guration. Below are alternatives to using ASMLib for RAC: • ASM with LVM: ASM + block devices + udev naming + multipathing. • Cluster fi le systems with cluster volume manager: gfs/clvm (Red Hat Enterprise Linux 5) or Symantec Cluster File System and Symantec Cluster Server (http://www.symantec.com/business/ storage-foundation-for-oracle-rac). • NFS v3 with veri fi ed NAS vendors. Red Hat will address this con fi guration in a forthcoming reference architecture whitepaper. Can I use Oracle Real Application Clusters (RAC) without ASM or ASMLib? What are my alternatives? How do I set it up? Yes a preferred option is Udev rules. Although most Oracle RAC installations with SAN-attached storage use ASM, RAC can be deployed without ASM if database fi les are located on an NFS server, certi fi ed cluster fi le system, or raw devices. (Note that Oracle discourages the use of raw devices.) Red Hat will address this con fi guration in a forthcoming reference architecture whitepaper. I already use ASM and ASMLib. How do I migrate from using them to something else? This is a simple migration. Perform the following: 1. The DBA stops all database instances using storage through ASM and ASMLib. 2. The system administrator con fi gures udev (or multipath) to assign permissions allowing ASM processes to have read and write access to ASM devices 3. The DBA changes one ASM parameter to point ASM to the assigned devices. 4. The DBA restarts the ASM instance and databases.
  • 7. 5. As with all data-related changes, a backup is highly recommended. Some theoretical bene fi ts of ASMLIB API: • always uses direct, async i/o • solves persistent device naming, even if underlying device moves across reboots • solves fi le permissions and ownership • reduced user mode to kernel mode context switches during I/O, possibly reducing CPU usage • reduced fi le handle usage • pass metadata such as I/O prioritization to storage device (don’t think this is implemented in the Linux version) Note : using direct i/o and async i/o have dependencies on Oracle parameters Disk_asynch_io =true and fi lesystemio_options=Set All . ---------------------------------- UDEV Rules: What is Udev? Udev is the mechanism used to create and name /dev device nodes corresponding to the devices that are present in the system. Udev uses matching information provided by sysfs with rules provided by the user to dynamically add the required device nodes. Udev rules doesn't Linux kernel limitations on upgrade time instead of ASMLIB and AFD kernel dependencies. All udev fi le should be under /etc/udev/rules.d/ basic format for udev rule is. key1=”value”, key2=”value”, … keyN=”value”, name=”value”, symlink=”value” You can fi nd the key value by using udevadm command. Lets understand the environment key. # multipath -ll mpathxy mpathxy (wwn) dm-6 (vendor) size=600G features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw `-+- policy=’service-time 0′ prio=1 status=active |- 1:0:0:6 sdj 8:1 active ready running |- 1:0:1:6 sdk 65:2 active ready running |- 2:0:0:6 sdl 65:14 active ready running `- 2:0:1:6 sdm 66:24 active ready running So we have multipath mpathxy and reference device mapper is dm-6. # udevadm info –query=all –path=/devices/virtual/block/dm-6 Above command will give you list of variables which you can use in udev rules. You can make the following entry in /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL==”dm-*”,ENV{DM_UUID}==”mpath-wwn”,OWNER=”username”,GROUP=” groupname”,MODE=”0660″ Or you can use following script to create the /etc/udev/rules.d/99-oracle-asmdevices.rules Generate udev rules for Physical and virtual server /etc/udev/rules.d/99-oracle-asmdevices.rules
  • 8. KERNEL=="dm-*",ENV{DM_UUID}=="mpath- wwn",OWNER="oracle",GROUP="oinstall",MODE="0660" KERNEL=="dm-*",ENV{DM_UUID}=="mpath- wwn1",OWNER="oracle",GROUP="oinstall",MODE="0660" # /sbin/udevadm control –reload-rules # /sbin/udevadm trigger –type=devices –action=change Now verify the udev rules via # ls -l /dev/dm* UDEV Rules Advantages: • Using ASM without ASMLib avoids the overhead resulting from an extra, non-mainline Linux kernel driver. • Supported and documented by Oracle. • Using ASM without ASMLib provides the ability to use operating system’s native I/O multipathing. • Using POSIX system calls for disk access enables improved performance monitoring and troubleshooting. . There are no issues linux kernel upgrades on Asmlin & Asm fi lter drive. UDEV Rules Disadvantages: • Customers may have standardized on Oracle deployments using ASMLib. ----------------------------------- ♨ My experience: You may fi nd i/o tests and some benchmarks on using ASMLIB or ASM Filter Drive that speaks about performance better as a result . Normally these i/o testing leads to AFD has better performance instead of ASMLIB. And ASMLIB usage is better performance instead of UDEV Rules. Generally, ASM Filter Drive is very dependent on Grid version and not always available to you, but its features is noticeable and seductive for DBA. Although isolation levels , security features on AFD is a good feature, But you should consider that these performance benchmarks is very dependent on hardware and resources, so this not meaning that using them also is better performance for your environment, fi nally with attention to linux kernel and oracle grid upgrades and issues on AFD and ASMLIB, you can consider to use only UDEVs + Multipathing on Linux and DBA must consider maintenance cost of there tools with respect to its features also. Therefore , on new kernel and Grid versions that support AFD, you can use it and enjoy its features and when Grid version not supported you can use ASMLIB, but it is possible you force to change and using Udev rules in the speci fi c time in future cause of upgrade your linux or database. So dont worry about performance e ff ective on using Udev rules instead of ASMLIB or AFD, if realy there tools give us a performance rate, this feature instead of minimizing maintenance cost on future is a right and rational decision. About Migrating to Oracle ASM Filter Driver From ASMLIB If Oracle ASMLIB was installed, but not used earlier, you must create disk labels to enable migration of Oracle ASM disk groups to Oracle ASM Filter Driver (Oracle ASMFD) after installing Oracle Grid Infrastructure 12c Release 1 (12.1.0.2). Oracle recommends that you temporarily move Oracle Cluster Registry (OCR) and voting fi les to another disk group if one is available, as described in "https://docs.oracle.com/en/database/ oracle/oracle-database/12.2/ostmg/administer- fi lter-driver.html#GUID-9C370239-C67D-4813- BE83-B0528397C02D
  • 9. and migrate the disk group to use Oracle ASMFD. After migrating the disk group to use Oracle ASMFD, move OCR and voting fi les back to the disk group. You can similarly migrate any other disk groups if they contain OCR or voting fi les to ensure online migration of all disk groups to Oracle ASMFD. Regarding Alireza Kamrani.