Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 

 

Automatic and Manual ASM Disk Repair in 11g

Oracle 11g New Features Tips by Donald BurlesonJune 29, 2015

Oracle 11g New Features Tips

Oracle 11g ASM is capable of repairing broken blocks on the fly when reading them. When Oracle finds a broken block, it attempts to read it from the mirror copy of the respective extent and repairs the broken version automatically. This can only happen on disk groups with at least normal redundancy and it only happens for those blocks which are read.

The new remap command of asmcmd can be used to recover a range of unreadable blocks. ASM would read a bad block from the good copy and restore it to a new location on the disk.  This can also be run from the enterprise manager interface.

ASM Disk Group Checks Enhanced

The check command was already available in Oracle ASM 10g. It was necessary there to specify what to check with the check command. As of Oracle ASM 11g, this command has been simplified. It is not necessary to specify any more what to check because the command makes all available checks in one go now. The CHECK keyword performs the following operations without the need for specifications:

  • Checks if the disk is consistent

  • Cross checks the file extent maps and allocation tables for consistency

  • Checks if the metadata of the directories for alias and files are linked correctly

  • Checks if the directory tree of the aliases is linked correctly.

  • Checks that ASM metadata directories do not have unreadable allocated blocks.

SYS AS SYSDBA @ +ASM SQL> ALTER DISKGROUP data CHECK;

The above as well as the below command issued in an ASM instance would check all disks in the disk group and add a message into the ASM instance's alert log file with information about the successful run of the check and about found broken blocks. In addition, these commands would also recover the bad blocks. The repair option is the DEFAULT for the check command.

SYS AS SYSDBA @ +ASM SQL> ALTER DISKGROUP data CHECK REPAIR; 

The next command would only check for bad blocks but not recover them.

SYS AS SYSDBA @ +ASM SQL> ALTER DISKGROUP data CHECK NOREPAIR;

[oracle@rhas4 ~]$ tail -f /u01/app/oracle/diag/asm/+asm/+ASM/alert/log.xml

The below listing shows the message in the xml version of the alter log of the ASM instance:

 <txt>SUCCESS: check of diskgroup DATA found no errors
 </txt>
</msg>
<msg time='2007-10-22T10:26:33.700+02:00' org_id='oracle' comp_id='asm'
 client_id='' type='UNKNOWN' level='16'
 host_id='rhas4.mydomain' host_addr='192.168.1.1' module='OMS'
 pid='12810'>
 <txt>SUCCESS: ALTER DISKGROUP DATA CHECK
 </txt>
</msg>

The full check for all metadata packages into one single command makes the checks easier, but the drawback is the additional overhead which is burdening the I/O subsystem now and might slow down performance.

ASM metadata

ASM storage is described in a number of so called fixed tables. It is possible to view important parts of this metadata via (g)v$views which, in fact, read the information from these x$tables. In 11gR1, there are 28 x$tables which fully describe the ASM storage and there are 22 v$views which show information about ASM.

Some important x$tables are:

x$kffxpi:  mapping between files and allocation units

x$kfdpartner:   disk-to-partner  relationship of two disks
of a given ASM diskgroup which hold a mirror copy of the same extent

x$kfdat:  details of all free and used allocation units

List of Dynamic Performance Views related to ASM:

SYS AS SYSDBA @ +ASM SQL> select view_name from  v$fixed_view_definition
  2  where view_name like '%ASM%';

VIEW_NAME
------------------------------
GV$ASM_TEMPLATE
V$ASM_TEMPLATE
GV$ASM_ALIAS
V$ASM_ALIAS
GV$ASM_FILE
V$ASM_FILE
GV$ASM_CLIENT
V$ASM_CLIENT
GV$ASM_DISKGROUP
V$ASM_DISKGROUP
GV$ASM_DISKGROUP_STAT
V$ASM_DISKGROUP_STAT
GV$ASM_DISK
V$ASM_DISK
GV$ASM_DISK_STAT
V$ASM_DISK_STAT
GV$ASM_DISK_IOSTAT
V$ASM_DISK_IOSTAT
GV$ASM_OPERATION
V$ASM_OPERATION
GV$ASM_ATTRIBUTE
V$ASM_ATTRIBUTE

22 rows selected.

List of Fixed Tables related to ASM:

SYS AS SYSDBA @ +ASM SQL> select name from v$fixed_table where name like 'X$KF%';

NAME
------------------------------
X$KFALS
X$KFCBH
X$KFCCE
X$KFBH
X$KFDSK
X$KFDSK_STAT

X$KFDAT
X$KFDFS
X$KFDDD
X$KFGRP
X$KFGRP_STAT
X$KFGMG
X$KFGBRB
X$KFKID
X$KFKLIB
X$KFMDGRP
X$KFNCL
X$KFNSDSKIOST
X$KFTMTA
X$KFFIL

X$KFFXP
X$KFDPARTNER
X$KFCLLE
X$KFENV
X$KFVOL
X$KFVOLSTAT

X$KFVOFS
X$KFVOFSV

28 rows selected.
 

This is an excerpt from the new book Oracle 11g New Features: Expert Guide to the Important New Features by John Garmany, Steve Karam, Lutz Hartmann, V. J. Jain, Brian Carr.

You can buy it direct from the publisher for 30% off.

 

 
��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.