ASM & Storage Performance Troubleshooting
Part 22 focused on Cache Fusion, GC waits, hot blocks, SQL, and RAC workload locality.
Now we move one layer lower:
When RAC is slow, how do you prove whether ASM or the underlying storage is actually responsible?
This is an important distinction. A database can show high I/O waits while the real problem is:
- ASM disk-group imbalance
- Storage latency
- SAN/NAS issues
- overloaded disks
- ASM rebalance
- multipath problems
- filesystem or device errors
- insufficient I/O capacity
- badly designed storage layout
The goal of this part is to build a storage troubleshooting methodology, not simply memorize ASM commands.
1. The Oracle RAC Storage Stack
Think about the complete path:
Application
↓
SQL
↓
Oracle Database
↓
Datafile
↓
ASM
↓
ASM Disk Group
↓
ASM Disk
↓
Multipath / SAN / NVMe
↓
Storage Array
↓
Physical Storage
When you see:
db file sequential read db file scattered read direct path read direct path write
don’t immediately conclude:
“The database storage is slow.”
You need to identify where the latency is introduced.
2. ASM Architecture Refresher
Oracle ASM provides storage management for Oracle database files.
Typical RAC architecture:
RAC1
|
Oracle
|
↓
ASM1
|
+-------+-------+
| |
DATA RECO
| |
+-------+-------+
|
Storage
|
+-------+-------+
| |
SAN/NVMe SAN/NVMe
Each RAC node normally has ASM access to the shared storage.
3. The ASM Disk Group
Typical configuration:
+DATA +RECO +FRA
Check them with:
SELECT name,
state,
type,
total_mb,
free_mb,
usable_file_mb
FROM v$asm_diskgroup
ORDER BY name;
Example:
NAME STATE TYPE TOTAL_MB FREE_MB USABLE_FILE_MB ----- ------ ------- --------- -------- -------------- DATA MOUNTED NORMAL 204800 42000 18000 RECO MOUNTED NORMAL 102400 58000 50000
4. Don’t Look Only at FREE_MB
This is a common mistake.
You may see:
FREE_MB = 40 GB
and conclude:
“We have enough space.”
But ASM’s important metric is often:
USABLE_FILE_MB
because redundancy affects how much space is actually usable for new files.
For example:
NORMAL redundancy
requires mirrored copies.
So:
FREE_MB
and:
USABLE_FILE_MB
are not interchangeable.
5. ASM Disk Group Health
Start with:
SELECT name,
state,
type,
total_mb,
free_mb,
required_mirror_free_mb,
usable_file_mb
FROM v$asm_diskgroup
ORDER BY name;
Pay attention to:
STATE TYPE FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
A disk group can have apparently reasonable free space but still have a problematic storage configuration.
6. Check ASM Disks
SELECT group_number,
disk_number,
name,
path,
mount_status,
header_status,
mode_status,
state,
total_mb,
free_mb
FROM v$asm_disk
ORDER BY group_number,
disk_number;
Example:
GROUP DISK NAME PATH STATE ----- ---- ---------- ---------------- ---------------- 1 0 DATA_0000 /dev/mapper/d01 NORMAL 1 1 DATA_0001 /dev/mapper/d02 NORMAL 1 2 DATA_0002 /dev/mapper/d03 NORMAL 1 3 DATA_0003 /dev/mapper/d04 NORMAL
7. Understand the ASM Disk States
Important states include:
NORMAL
The disk is participating normally.
ADDING
The disk is being added to the disk group.
DROPPING
The disk is being removed.
HUNG
The disk is experiencing problems and requires investigation.
The exact state transitions should be interpreted together with ASM alert logs and V$ASM_OPERATION.
8. Check Header Status
SELECT name,
path,
mount_status,
header_status,
mode_status,
state
FROM v$asm_disk
ORDER BY name;
Healthy ASM disks typically show appropriate values such as:
MOUNTED MEMBER ONLINE NORMAL
An unexpected value such as:
FORMER CANDIDATE UNKNOWN
requires investigation before making any change.
9. RAC Means Shared Storage
In RAC, the same ASM disk groups are normally accessible from multiple nodes.
Check ASM clients:
SELECT inst_id,
instance_name,
status,
software_version
FROM gv$asm_client
ORDER BY inst_id;
This helps establish which database instances are using ASM.
10. ASM Client Relationship
Think:
+ASM1 | +---- PROD1 +---- PROD2
and:
+ASM2 | +---- PROD1 +---- PROD2
The database instances use ASM disk groups through the ASM instances.
11. ASM Operations
One of the first commands to run during a suspected ASM performance incident:
SELECT group_number,
operation,
state,
power,
actual,
sofar,
est_work,
est_rate,
est_minutes
FROM v$asm_operation;
If it returns rows, ASM may be performing an operation.
Typical operations include:
REBAL
12. Why ASM Rebalance Matters
Imagine:
+DATA
contains:
Disk 1 Disk 2 Disk 3
You add:
Disk 4
ASM needs to redistribute extents.
Conceptually:
Before D1 █████████ D2 █████████ D3 █████████ D4 ░░░░░░░░░
After rebalance:
D1 ███████ D2 ███████ D3 ███████ D4 ███████
That redistribution consumes I/O.
13. Rebalance Can Affect Production
Suppose:
Production workload
+
ASM REBALANCE
Both compete for storage resources.
If the underlying storage is already near capacity:
DB I/O + ASM rebalance I/O = higher latency
Therefore, during a performance incident, always check:
SELECT * FROM v$asm_operation;
14. ASM Rebalance Power
ASM uses a power setting to control rebalance activity.
You may see:
POWER
in:
SELECT group_number,
operation,
state,
power,
actual,
sofar,
est_work,
est_rate,
est_minutes
FROM v$asm_operation;
Higher power can accelerate the operation but potentially consume more storage I/O.
This is why:
Maximum ASM rebalance power is not automatically the best setting during peak production.
15. Example: Reduce Rebalance Impact
Suppose a rebalance is running:
POWER = 11
and production latency has increased.
Depending on the situation, you may choose to reduce the power:
ALTER DISKGROUP DATA REBALANCE POWER 4;
Or increase it during a maintenance window:
ALTER DISKGROUP DATA REBALANCE POWER 8;
The exact value should be based on your storage capacity and production workload.
Do not blindly change ASM power during a critical incident without understanding what else is running.
16. Stop Rebalance?
In some maintenance scenarios:
ALTER DISKGROUP DATA REBALANCE POWER 0;
can effectively pause automatic rebalance activity.
But this is a tactical action, not a generic performance fix.
Afterward, verify:
SELECT * FROM v$asm_operation;
and make sure you understand why the rebalance was started.
17. ASM Disk Imbalance
Check:
SELECT group_number,
disk_number,
name,
total_mb,
free_mb
FROM v$asm_disk
WHERE group_number <> 0
ORDER BY group_number,
free_mb;
You might see:
DISK TOTAL_MB FREE_MB -------- --------- ------- DATA_0000 102400 15000 DATA_0001 102400 48000 DATA_0002 102400 17000 DATA_0003 102400 47000
Don’t immediately assume that this means ASM is broken.
ASM normally manages extent placement, and temporary differences can exist.
Investigate the disk group and rebalance state before taking action.
18. ASM Allocation Units
ASM stores files using allocation units.
Check:
SELECT name,
allocation_unit_size
FROM v$asm_diskgroup;
Example:
NAME ALLOCATION_UNIT_SIZE ----- -------------------- DATA 1048576 RECO 1048576
Allocation unit size matters when thinking about ASM space allocation and workload characteristics.
19. Database I/O Waits
Now move from ASM to the database.
Start with:
SELECT inst_id,
event,
total_waits,
time_waited_micro / 1000000 time_waited_sec,
average_wait
FROM gv$system_event
WHERE wait_class = 'User I/O'
ORDER BY time_waited_micro DESC;
This shows the major I/O-related wait events.
20. Common Oracle I/O Wait Events
You should recognize:
db file sequential read db file scattered read direct path read direct path read temp direct path write direct path write temp db file parallel read
These events don’t all mean the same thing.
21. db file sequential read
Often associated with single-block reads.
Typical examples:
Index lookup Table access by rowid
Conceptually:
SQL ↓ Index ↓ ROWID ↓ Single block ↓ Storage
High latency here may indicate:
- slow storage
- inefficient SQL
- excessive random reads
- poor indexing
- large buffer cache misses
22. db file scattered read
Historically associated with multiblock reads.
Commonly seen with:
Full table scans Index fast full scans
Don’t interpret the word “scattered” literally as storage fragmentation.
The key question is:
Why is the SQL performing this amount of physical I/O?
23. direct path read
Often associated with operations that read directly into the PGA rather than the normal buffer cache path.
Possible workloads include:
Large scans Parallel execution Certain LOB operations Temporary operations
Again:
direct path read
doesn’t automatically mean:
storage problem.
24. First Measure the Wait
For a live system:
SELECT inst_id,
event,
total_waits,
time_waited_micro / 1000000 total_wait_seconds,
CASE
WHEN total_waits > 0
THEN time_waited_micro / total_waits / 1000
END avg_wait_ms
FROM gv$system_event
WHERE wait_class = 'User I/O'
ORDER BY time_waited_micro DESC;
The important values are:
Total waits Total time Average latency
25. Don’t Confuse I/O Volume With I/O Latency
Example A:
10 million reads average = 0.3 ms
Example B:
500,000 reads average = 15 ms
Example B can be much more damaging to application response time.
Always analyze:
IOPS + throughput + latency
26. Instance-Level Comparison
In RAC:
SELECT inst_id,
event,
total_waits,
time_waited_micro / 1000000 seconds
FROM gv$system_event
WHERE event IN
(
'db file sequential read',
'db file scattered read',
'direct path read',
'direct path write'
)
ORDER BY inst_id,
seconds DESC;
You may discover:
RAC1 → 2 ms RAC2 → 18 ms
That is a strong reason to investigate node-specific infrastructure.
27. Check File-Level I/O
Use:
SELECT inst_id,
file#,
phyrds,
phywrts,
readtim,
writetim,
singleblkrds,
singleblkrdtim
FROM gv$filestat
ORDER BY inst_id,
phyrds DESC;
Depending on release and platform, available statistics may vary.
The objective is to find:
Which files? Which instance? Read-heavy? Write-heavy? High latency?
28. Calculate Read Latency
For example:
SELECT inst_id,
file#,
phyrds,
CASE
WHEN phyrds > 0
THEN readtim / phyrds
END avg_read_time
FROM gv$filestat
WHERE phyrds > 0
ORDER BY avg_read_time DESC;
The units of some V$FILESTAT timing columns depend on the Oracle release/statistic semantics, so verify the exact interpretation for your environment before using the number in a formal SLA report.
The important idea is:
identify files with disproportionately high I/O latency.
29. Find the Datafile
Once you have:
FILE# = 17
run:
SELECT file_id,
file_name,
tablespace_name,
bytes/1024/1024 size_mb,
autoextensible
FROM dba_data_files
WHERE file_id = 17;
Now you have:
File ↓ Tablespace ↓ ASM file
30. ASM File Mapping
In ASM, database files are stored as ASM aliases or system-generated names.
You can investigate ASM files with:
SELECT file_number,
group_number,
type,
redundancy,
striped,
space,
block_size
FROM v$asm_file
ORDER BY group_number,
file_number;
This gives you the ASM-level view.
31. ASM Striping
ASM provides striping across disks.
Conceptually:
Database file
|
↓
+-------------------+
| ASM allocation |
+-------------------+
| | | |
↓ ↓ ↓ ↓
D1 D2 D3 D4
This is one reason ASM can distribute I/O effectively across a disk group.
But ASM striping doesn’t eliminate a slow storage subsystem.
32. ASM Redundancy
Common disk-group redundancy levels:
EXTERNAL NORMAL HIGH
EXTERNAL
Storage subsystem provides redundancy.
Oracle ASM ↓ Storage RAID
NORMAL
ASM provides two-way mirroring.
HIGH
ASM provides higher-level mirroring.
The appropriate choice depends on the storage architecture and availability requirements.
33. Don’t Mix Redundancy Responsibilities Accidentally
For example:
ASM NORMAL + Storage RAID + SAN replication
may create multiple layers of redundancy.
That isn’t automatically wrong, but you should understand:
Performance Capacity Failure domains Recovery Cost
rather than simply stacking redundancy everywhere.
34. Failure Groups
This is particularly important for RAC and ASM.
Check:
SELECT group_number,
disk_number,
name,
failgroup,
path
FROM v$asm_disk
WHERE group_number <> 0
ORDER BY group_number,
failgroup,
disk_number;
Example:
DISK FAILGROUP --------- --------- DATA_0000 FG_A DATA_0001 FG_A DATA_0002 FG_B DATA_0003 FG_B
ASM uses failure groups to avoid placing mirrored copies within the same failure domain.
35. What Is a Failure Domain?
A failure domain could represent:
Disk Controller Storage shelf SAN path Storage array
The exact design depends on your architecture.
The principle is:
Two mirrored copies should not fail together because they share the same underlying failure domain.
36. Check ASM Disk Paths
SELECT group_number,
disk_number,
name,
path,
failgroup,
mount_status,
header_status,
mode_status,
state
FROM v$asm_disk
WHERE group_number <> 0
ORDER BY group_number,
disk_number;
Investigate inconsistencies such as:
ONLINE / NORMAL
versus unexpected:
OFFLINE UNKNOWN HUNG
37. Multipath Is Critical
On Linux RAC systems, shared storage often uses multipathing.
Typical command:
multipath -ll
Look for:
active ready running
and investigate:
failed faulty ghost offline
depending on the multipath implementation.
38. Example Multipath Problem
Imagine:
Storage LUN
|
+---+---+
| |
Path A Path B
| |
OK FAILED
The database may continue working.
But now:
Path A ↓ 100% workload
If the remaining path becomes saturated, database latency can increase dramatically.
This is why redundancy does not automatically mean performance redundancy.
39. Check Linux Block Devices
Useful commands:
lsblk
and:
lsblk -o NAME,KNAME,TYPE,SIZE,FSTYPE,MOUNTPOINT
For device-level information:
udevadm info --query=all --name=/dev/...
The exact command depends on how your ASM devices are presented.
40. Check I/O Latency at the OS
One of the most useful tools:
iostat -xm 1
Example:
Device r/s w/s rMB/s wMB/s await %util dm-10 1200 800 180 90 12.4 85%
Pay attention to:
await %util r/s w/s MB/s
41. What Does await Tell You?
await represents average I/O request latency as reported by the Linux I/O statistics layer.
If you see:
await = 1 ms
that’s very different from:
await = 30 ms
But don’t interpret it without knowing:
Device type Storage architecture Workload Queue depth Read/write mix
42. %util
%util indicates how busy the device was servicing I/O during the measurement interval.
A value near:
100%
can indicate saturation for traditional devices.
But modern devices, especially highly parallel NVMe/storage systems, require more nuanced interpretation.
Don’t use:
%util > 80%
as a universal rule.
43. Queue Depth
If your storage supports high concurrency, inspect queue behavior.
For example:
iostat -x 1
Look at:
aqu-sz
and latency.
A growing queue combined with increasing latency can indicate that the storage subsystem cannot keep up with demand.
44. Check Device Errors
Depending on your infrastructure:
dmesg -T | egrep -i 'error|fail|scsi|multipath|blk|io'
Also inspect:
journalctl -k
for kernel/storage messages.
Be careful when filtering logs: not every message containing “error” represents a production storage failure.
45. Check Multipath Health
For environments using device-mapper multipath:
multipath -ll
You want to understand:
Number of paths Path status Path priority Active paths Failed paths
For example:
2 active paths
is very different operationally from:
1 active 1 failed
even if the database is currently still functioning.
46. ASM + OS Correlation
This is where the real troubleshooting starts.
Suppose Oracle shows:
db file sequential read average = 18 ms
OS shows:
await = 20 ms
and:
%util = 98%
Now the evidence strongly suggests storage pressure.
But suppose instead:
Oracle wait = 18 ms OS device await = 0.8 ms
Then the latency may be introduced elsewhere.
Potential areas:
Oracle contention CPU scheduling ASM multipath virtualization network storage
You need further evidence.
47. Storage Performance Must Be Correlated
A strong investigation compares:
Oracle ↓ ASM ↓ OS ↓ Storage
At approximately the same timestamp.
For example:
14:00–14:15
not:
Oracle at 14:00 OS at 16:00 Storage report yesterday
Time correlation matters.
48. Build a Timeline
For a real incident:
14:00 Application latency normal 14:05 DB I/O increases 14:07 ASM rebalance starts 14:08 Storage latency increases 14:10 db file sequential read increases 14:15 Application latency peaks 14:20 ASM rebalance completes 14:22 Storage latency returns to normal
That is strong evidence.
49. This Is Much Better Than:
“ASM rebalance caused the issue.”
You need to prove the relationship:
Rebalance started
↓
I/O increased
↓
Storage latency increased
↓
Oracle I/O waits increased
↓
Application latency increased
↓
Rebalance completed
↓
Latency decreased
That’s expert-level incident analysis.
50. ASM Alerts
Always inspect the ASM alert log during serious incidents.
Depending on your Oracle diagnostic environment:
adrci
Then:
show homes
Navigate to the ASM diagnostic home and inspect the alert log.
You can also query diagnostic locations from Oracle views where appropriate.
Look for:
disk offline disk drop disk add rebalance I/O errors CSS issues ASM instance events
51. Check ASM Alert Messages
Typical important events include:
WARNING: failed to read WARNING: failed to write disk offline disk dropped rebalance started rebalance completed
The exact wording varies by Oracle release and environment.
The important thing is to correlate messages with the incident timeline.
52. ASM Instance CPU
Don’t forget that ASM is itself an Oracle instance.
Check:
SELECT inst_id,
name,
value
FROM gv$sysstat
WHERE name IN
(
'CPU used by this session',
'physical reads',
'physical writes'
)
ORDER BY inst_id, name;
For detailed performance analysis, use AWR/ASH for ASM where licensed and configured appropriately.
53. ASM and CPU
Normally ASM CPU consumption is modest compared with the database workload.
If ASM shows unexpectedly high CPU, investigate:
Large rebalance Large number of disks High metadata activity Storage instability ASM operations
Again:
Measure before changing anything.
54. ASM Disk Group Capacity Planning
A common production mistake is waiting until:
+DATA = 95%
before extending storage.
Instead monitor:
Total Free Usable Growth rate
For example:
SELECT name,
total_mb/1024 total_gb,
free_mb/1024 free_gb,
usable_file_mb/1024 usable_gb
FROM v$asm_diskgroup
ORDER BY name;
55. Calculate Utilization
A simple report:
SELECT name,
ROUND(
(1 - free_mb / total_mb) * 100,
2
) pct_used
FROM v$asm_diskgroup
WHERE total_mb > 0;
Example:
DATA 82.50 RECO 43.10
This is useful for capacity reporting.
But remember:
Percentage used is not the same as performance.
A disk group at 30% utilization can still have terrible latency if the underlying storage is unhealthy.
56. ASM Space vs Performance
These are separate dimensions:
Capacity
and:
Performance
You can have:
+DATA 30% full
but:
storage latency = 25 ms
Conversely:
+DATA 90% full
may still have perfectly acceptable I/O latency.
Don’t mix capacity alarms with performance diagnosis.
57. Temporary Tablespace I/O
Don’t forget:
TEMP
Large sorts and hash operations may generate:
direct path read temp direct path write temp
Check:
SELECT tablespace_name,
file_name,
bytes/1024/1024 size_mb
FROM dba_temp_files
ORDER BY tablespace_name;
Then correlate with SQL activity.
58. TEMP Is Often Misdiagnosed
Suppose:
direct path write temp
is high.
The problem may be:
SQL plan ↓ large sort ↓ TEMP spill
rather than:
slow storage
The storage is simply servicing the temporary workload.
This is another example of why:
Wait event ≠ root cause.
59. Find TEMP Consumers
Using ASH:
SELECT sql_id,
instance_number,
COUNT(*) samples
FROM dba_hist_active_sess_history
WHERE sample_time BETWEEN
:start_time AND :end_time
AND event LIKE '%temp%'
GROUP BY sql_id,
instance_number
ORDER BY samples DESC;
Then investigate the SQL.
60. Large Full Scans
Another common situation:
db file scattered read
increases dramatically.
The application says:
“Storage is slow.”
But AWR shows a SQL suddenly performing:
10 million physical reads
The correct fix might be:
SQL tuning Index Partition pruning Statistics Execution plan
rather than adding disks.
61. Storage Is Often the Victim
This is an important DBA principle:
Bad SQL ↓ Excessive I/O ↓ Storage load ↓ Latency ↓ Database slow
The storage is not necessarily the root cause.
Therefore:
Always identify the workload generating the I/O.
62. Find Top I/O SQL
AWR/ASH is excellent for this.
For historical ASH:
SELECT sql_id,
instance_number,
COUNT(*) samples
FROM dba_hist_active_sess_history
WHERE sample_time BETWEEN
:start_time AND :end_time
AND wait_class = 'User I/O'
GROUP BY sql_id,
instance_number
ORDER BY samples DESC
FETCH FIRST 30 ROWS ONLY;
This gives you the SQL responsible for active I/O waits.
63. Find SQL With High Physical Reads
For currently cached SQL:
SELECT inst_id,
sql_id,
executions,
disk_reads,
buffer_gets,
elapsed_time/1000000 elapsed_sec
FROM gv$sql
ORDER BY disk_reads DESC
FETCH FIRST 30 ROWS ONLY;
Then ask:
Is the SQL executed frequently? Is the number of reads reasonable? Is the plan correct? Is it scanning too much data?
64. Physical Reads Per Execution
This is often more useful than total reads.
SELECT inst_id,
sql_id,
executions,
disk_reads,
CASE
WHEN executions > 0
THEN disk_reads / executions
END reads_per_exec
FROM gv$sql
WHERE executions > 0
ORDER BY reads_per_exec DESC
FETCH FIRST 30 ROWS ONLY;
A SQL executed 10 times with 10 million reads per execution deserves attention.
65. RAC Storage Troubleshooting Flow
Use this sequence:
Application slow
↓
AWR / ASH
↓
I/O wait?
↓
YES
↓
Which instance?
↓
Which SQL?
↓
Which datafile?
↓
Which ASM disk group?
↓
ASM operation running?
↓
OS latency?
↓
Multipath healthy?
↓
Storage array healthy?
↓
Root cause
This is the workflow I want you to memorize.
66. Practical Incident
Let’s simulate a production issue.
Symptom
At:
15:00
users report:
“The application is slow.”
AWR shows:
db file sequential read
with increased latency.
67. Step 1 — Identify the Instance
SELECT inst_id,
event,
total_waits,
time_waited_micro/1000000 seconds
FROM gv$system_event
WHERE event = 'db file sequential read'
ORDER BY seconds DESC;
Result:
RAC1 → 50,000 sec RAC2 → 8,000 sec
RAC1 is the main suspect.
68. Step 2 — Find the Files
SELECT inst_id,
file#,
phyrds,
readtim,
singleblkrds,
singleblkrdtim
FROM gv$filestat
WHERE inst_id = 1
ORDER BY readtim DESC;
Suppose:
FILE# = 17
dominates.
69. Step 3 — Identify the Datafile
SELECT file_id,
file_name,
tablespace_name,
bytes/1024/1024/1024 size_gb
FROM dba_data_files
WHERE file_id = 17;
Result:
+DATA/PROD/DATAFILE/sales.123.456
Now we know:
SQL ↓ File 17 ↓ +DATA
70. Step 4 — Check ASM
On the ASM instance:
SELECT name,
state,
type,
total_mb,
free_mb,
usable_file_mb
FROM v$asm_diskgroup
WHERE name = 'DATA';
Then:
SELECT * FROM v$asm_operation;
Suppose:
REBALANCE RUNNING
Now we have a possible correlation.
71. Step 5 — Check the OS
On RAC1:
iostat -xm 1
Suppose:
await = 24 ms %util = 97%
That’s suspicious.
Now compare RAC2.
RAC1 storage await = 24 ms RAC2 storage await = 2 ms
Now we have node-specific evidence.
72. Step 6 — Check Multipath
multipath -ll
Suppose:
Path A → active Path B → failed
Now the investigation becomes:
Path failure
↓
Reduced storage path capacity
↓
Higher I/O latency
↓
Oracle read latency
↓
Application slowdown
This is a much stronger root-cause hypothesis.
73. Step 7 — Check Kernel Logs
dmesg -T | egrep -i 'multipath|scsi|error|fail|timeout'
Suppose you find repeated storage path errors around:
14:58
while the application degradation began at:
15:00
That’s valuable correlation.
74. Step 8 — Check the Storage Team’s Side
At this point, you should provide the storage team with evidence:
Node: RAC1 LUN/device: XXXXX Time: 14:58–15:15 Oracle read latency: XX ms OS await: XX ms Path: failed ASM disk group: +DATA
This is much more useful than:
“Oracle storage is slow.”
75. The Difference Between DBA and Expert DBA
A junior report:
“Database has high I/O.”
A better report:
“RAC1 experienced increased
db file sequential readlatency.”
An advanced report:
“The increase was concentrated on datafile 17 in +DATA.”
An expert report:
“At 14:58, one storage path became unavailable on RAC1. OS I/O latency increased from approximately 2 ms to 24 ms, while Oracle
db file sequential readlatency increased during the same interval. RAC2 remained normal. The evidence indicates a node-specific storage path degradation rather than a SQL-wide workload increase.”
That’s the standard we’re aiming for in this series.
76. ASM Health Check Script
Here’s a practical starting script:
SET LINESIZE 240
SET PAGESIZE 100
PROMPT =========================================
PROMPT ASM DISKGROUPS
PROMPT =========================================
SELECT name,
state,
type,
total_mb,
free_mb,
required_mirror_free_mb,
usable_file_mb
FROM v$asm_diskgroup
ORDER BY name;
PROMPT =========================================
PROMPT ASM DISKS
PROMPT =========================================
SELECT group_number,
disk_number,
name,
path,
failgroup,
mount_status,
header_status,
mode_status,
state,
total_mb,
free_mb
FROM v$asm_disk
WHERE group_number <> 0
ORDER BY group_number,
disk_number;
PROMPT =========================================
PROMPT ASM OPERATIONS
PROMPT =========================================
SELECT group_number,
operation,
state,
power,
actual,
sofar,
est_work,
est_rate,
est_minutes
FROM v$asm_operation;
PROMPT =========================================
PROMPT ASM CLIENTS
PROMPT =========================================
SELECT inst_id,
instance_name,
status,
software_version
FROM gv$asm_client
ORDER BY inst_id;
77. Database I/O Health Check
SET LINESIZE 240
SELECT inst_id,
event,
total_waits,
ROUND(time_waited_micro/1000000,2) total_wait_sec,
ROUND(
CASE
WHEN total_waits > 0
THEN time_waited_micro / total_waits / 1000
END,
3
) avg_wait_ms
FROM gv$system_event
WHERE wait_class = 'User I/O'
ORDER BY total_wait_sec DESC;
This should become one of your standard RAC diagnostic queries.
78. File I/O Health Check
SELECT inst_id,
file#,
phyrds,
phywrts,
readtim,
writetim,
singleblkrds,
singleblkrdtim
FROM gv$filestat
ORDER BY inst_id,
phyrds DESC;
Then map important files:
SELECT file_id,
file_name,
tablespace_name,
bytes/1024/1024/1024 size_gb
FROM dba_data_files
ORDER BY file_id;
79. ASM Disk Group Capacity Report
SELECT name,
ROUND(total_mb/1024,2) total_gb,
ROUND(free_mb/1024,2) free_gb,
ROUND(usable_file_mb/1024,2) usable_gb,
ROUND((1-free_mb/total_mb)*100,2) pct_used
FROM v$asm_diskgroup
WHERE total_mb > 0
ORDER BY name;
This is useful for daily monitoring.
80. What to Monitor in Production
For a serious Oracle RAC environment, monitor:
ASM
Disk group state Disk state Free space Usable space Rebalance operations Disk failures
Database
I/O latency IOPS Throughput Wait events DB Time Physical reads Physical writes
OS
CPU Memory I/O latency Queue depth Device utilization Errors
Storage
LUN latency Controller load Path status Cache IOPS Throughput Capacity
81. One Important Rule
Never troubleshoot storage using Oracle alone.
And never troubleshoot Oracle storage performance using Linux alone.
You need:
Oracle + ASM + OS + Storage
all correlated by time.
82. Part 23 Summary
The key concepts from this part are:
ASM
V$ASM_DISKGROUP V$ASM_DISK V$ASM_OPERATION V$ASM_CLIENT V$ASM_FILE
Oracle I/O
V$SYSTEM_EVENT V$FILESTAT GV$SQL ASH AWR
OS
iostat -xm 1 multipath -ll lsblk dmesg journalctl
Troubleshooting chain
Wait Event
↓
Instance
↓
SQL
↓
Datafile
↓
ASM Disk Group
↓
ASM Operation
↓
OS Device
↓
Multipath
↓
Storage
Part 23 — Expert Takeaway
The most important lesson is this:
An Oracle I/O wait is a symptom, not a root cause.
Your job as an Oracle RAC expert is to prove where the time is being spent.
If you see:
db file sequential read
don’t stop there.
Ask:
Which instance? Which SQL? Which datafile? Which ASM disk group? Is ASM rebalance running? What is the OS latency? Are storage paths healthy? Is the storage saturated? Did the application suddenly increase I/O?
Once you can answer those questions systematically, you’re no longer simply monitoring Oracle.
You’re performing infrastructure-level Oracle performance diagnosis.


