Pini Dibask presented on Oracle ASM concepts, architecture, and best practices. Some key points:
- ASM is Oracle's recommended storage management solution and provides high performance storage for single-instance and RAC databases.
- ASM uses disk groups and stripes and mirrors data across disks for redundancy and load balancing. It also rebalances data automatically during storage changes.
- Administering ASM involves tasks like starting and stopping the ASM instance, managing disk groups and disks, and monitoring storage usage and I/O balance.
- Best practices for ASM include using separate disk groups for data and recovery files, ensuring consistent disk performance, monitoring I/O balance, and in
Knowledge engineering: from people to machines and back
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
1. ASM Concepts, Architecture & Best PracticesProduct Manager for Database Tools
April 24th , 2018
Pini Dibask
IOUG
Collaborate
2018
2. Confidential2
• Pini Dibask, Product Manager for Database Tools, Quest Software
• Oracle ACE
• Oracle Certified Professional DBA (OCP)
• Public Speaker: Oracle OpenWorld, IOUG Collaborate, DOAG, OUGN, AOUG
• Blogger: OracleDBPro.BlogSpot.com
Pini.Dibask@Quest.com
http://Linkedin.com/in/pinidibask
@pini_dibask
About the Speaker
3. Confidential3
Who is Quest Software?
9 0 % o f
F o r t u n e 1 0 0
using our
software
1 , 5 0 0
engineers building
quality products
4 M
c o m m u n i t y
m e m b e r s
sharing best practices
3 , 5 0 0
employees focused
on customers
Quest is a global software provider trusted by
100,000 customers and 6,000 partners in 100
countries.
We help IT organizations spend less time on
administration and more time on innovation.
6 , 0 0 0
partners selling
our software
7. Confidential7
Oracle Deployment Options – Single Instance vs. RAC
D1
D2
I1 I2 I3
D
Clustered System
(= Real Application Clusters
Nonclustered System
(= Single Instance)
Local
Storage
Shared Storage
In today’s
presentation we
will focus on this
area
8. Confidential8
Storage Options for RAC
ASM - Oracle’s recommended storage for Oracle Database
DNFS (Direct Network File System)
Unformatted partitions (aka “raw devices”) are no longer supported
No longer supported since 12c
Local storage is obviously not supported
RAC requires “shared storage”
9. Confidential9
What is ASM?
Stands for Automatics Storage Management
Introduced in 2003 (Oracle 10gR1)
Volume manager and file system for Oracle database files
Supports single-instance and Real Application Clusters (RAC)
Oracle’s recommended storage management solution
11. Confidential11
About Oracle ASM Instance
Oracle ASM is built on the same technology as an Oracle Database instance
Has SGA and background processes
Installed in the Grid Infrastructure home
ASM instance mounts disk groups to make ASM files available
Does not have data files, uses control file
12. Confidential12
About Oracle ASM Instance
Processes
RBAL – coordinates rebalance activity
ARBn – One or more processes that do the rebalance activity
DMON – Managing disk-level activities (e.g. drop)
Memory components
Shared Pool - metadata information
Large Pool – parallel operations
ASM Cache – read/write blocks during rebalance
22. Confidential22
RAID
Redundant Array for Independent/Inexpensive disks
Employs techniques of disk mirroring or disk striping (or both)
Let’s see the most common RAID options…
27. Confidential27
ASM Striping
The goal of striping is to maximize storage subsystem throughput
Balances I/O load across disks
Reduces I/O latency by removing bottleneck from one specific disk
Fine-grained striping - small chunks (128KB) for small I/O operations
Coarse-grained striping – bigger chunks (equal to the AU size) for data files
28. Confidential28
ASM Mirroring
Protects data by storing copies of data on multiple disks
ASM mirrors data based on file extents
ASM supports 3 redundancy-levels
Normal redundancy - each file extent has a single copy (2-way mirroring)
High redundancy - each file extent has two copies (3-way mirroring)
External redundancy - No mirroring
30. Confidential30
Mirroring Cont’d
ASM Mirrors copies of file extents in separate failure groups
External redundancy used in environments that use smart storage solutions
ASM can be more flexible than traditional RAID storage mirroring
2 Files in the same ASM Disk Group
One file being mirrored, while the other one is not (ASM templates)
34. Confidential34
ASM Extents
Extents are stored in individual disks in ASM
Consists of one or more allocation units
Extent size = AU size for the first 20,000 extents
Extent size = AU size * 4 for the next 20,000 extents
Extent size = AU size * 16 for the next 20,000 extents (and higher)
36. Confidential36
From where does Oracle read the data?
Example: File with 5 extents striped across eight disks in the disk group
Reads are made against the primary extents (red blocks)
38. Confidential38
Disk Group Rebalancing
Automatic online rebalance during storage changes
Only moves data proportional to storage added
No need for manual I/O tuning
Online migration to new storage
40. Confidential40
Accessing an ASM Instance
SYSASM was introduced in 11gR1
11gR1
SYSDBA still had full administrative permissions
Every administrative command was reported in alert log
11gR2
Administrative tasks can only be performed by SYSASM
ASMSNMP should be used for read-only operations
43. Confidential43
Starting and Stopping using srvctl
Server Control Utility (srvctl) can be used to start/stop ASM instances
Server Control Utility (srvctl) can be used to check the status of ASM instances
50. Confidential50
Example of monitoring I/O activity balance
The query below returns a value in the range of 0% - 100% to indicate the I/O balance
DATA - Balanced
RECO - Imbalanced
Balanced (over 80%)
Imbalanced
51. Confidential51
Storage Preparation
Configure at least 2 disk groups, one for Data and the other for the FRA
Ensure all ASM disks in disk group have same performance characteristics
Make sure all the disks in the same Oracle ASM disk group are the same size
Minimize I/O contention ASM disks and other applications (dedicated ASM disks)
Monitor the I/O activity balance across disks
See: https://community.oracle.com/docs/DOC-995178
External redundancy when using high-end storage
53. Confidential53
Mirroring via Dynamic Performance Views
ASM instance hosts memory-based metadata tables (dynamic performance views)
Below you can find the most common and useful dynamic performance views
57. Confidential57
References and additional information
Oracle Documentation
https://docs.oracle.com/database/121/OSTMG/toc.htm
My article on Oracle Developer community - “Verifying I/O activity across disks in ASM”
https://community.oracle.com/docs/DOC-995178
My favorite blog - Tim Hall’s Blog (ORACLE-BASE.com)
https://oracle-base.com/
58. Confidential58
Quest provides your team with the tools to cover all of your
database platforms…
* Platform support varies from tool to tool