ASM 11g new features-How ASM disk Resync works. [ID 466326.1]

Source: Internet
Author: User

 

I. ASM fast disk Resync Overview

1) when we take a disk offline in case the disk is already upted or database is not able to read or write from the disk. in case of Oracle Database 10 Gb, Oracle engine use to balance the other disks with the content of offline disk. this process was a relatively costly operation, and cocould take hours to complete, even if the disk failure was only a transient failure.

2) Oracle Database 11g introduces the ASM fast mirror Resync feature that signiicantly CES the time required to resynchronize a transient failure of a disk. when a disk goes off line Oracle engine doesn't balance other disk, instead ASM tracks the allocation units that are modified during the outage. the content present in the failed disk is tracked by other disks and any modification that is made to the content of failed disk is actually made in other available disks. once we get the disk back and attach it, the data belonging to this disk and which got modified during that time will get resynchronized back again. this avoids the heavy re-balancing activity.

3) ASM fast disk Resync significantly CES the time required to resynchronize a transient failure of a disk. when a disk goes offline following a transient failure, ASM tracks the extents that are modified during the outage. when the transient failure is retried red, ASM can quickly resynchronize only the ASM disk extents that have been affected during the outage.

4) This feature assumes that the content of the affected ASM disks has not been damaged or modified.

5) when an ASM disk path fails, the ASM disk is taken offline but not dropped if you have set the disk_repair_time attribute for the corresponding disk group. the setting for this attribute determines the duration of a disk outage that ASM tolerates while still being able to resynchronize after you complete the repair.

Note: The tracking mechanism uses one bit for each modified allocation unit. This ensures that the tracking mechanism very efficient.


 

 

 

Ii. ASM 11g new features-How ASM disk Resync works.

Requirements:

1) This feature requires that the redundancy level for the disk shocould be set to normal or high.

2) compatible. ASM & compatible. RDBMS = 11.1.0.0.0 or higher

3) You need to set disk_repair_time parameter, which gives the time it takes for the disk to get retried red. The default time for this is set to 3.6 hours.

Examples:

SQL> alter diskgroup dgroupa set attribute 'disk _ repair_time '= '3h ';

4) the disk has to be offline (automatically due to the hardware failure or manually for maintenance operations) and shocould not be dropped.

To take the disk offline use:

SQL> alter diskgroup... Offline disks command.

Example:

Alter diskgroup dgroupa offline disks in failgroup controller2 drop after 5 h;


Repair Time for the disk is associated with diskgroup. You can override the repair time of diskgroup using following command:

SQL> alter diskgroup dgroupa set attribute 'disk _ repair_time '= '3h ';

Additional manual offline disk operations examples:

SQL> alter diskgroup DG1 offline disk dg00000003;
SQL> alter diskgroup DG1 offline disk dg00000003 drop after 1 h;
SQL> alter diskgroup DG1 offline disks in failgroup FG1;
SQL> alter diskgroup dgroupa offline disks in failgroup controller2 drop after 5 h;

 

5) after the transient failure was corrected on the affected disks, you will need to explain icitly online the disks.

Examples:

SQL> alter diskgroup DG1 online disk dg00000003;

SQL> alter diskgroup DG1 online disks in failgroup FG1 Power 8 wait;

 

6) If you cannot repair a failure group that is in the Offline state, you can use the alter diskgroup drop disks in failgroup command with the force option. this ensures that data originally stored on these disks is reconstructed from redundant copies of the data and stored on other disks in the same diskgroup.

Example:

 

SQL> alter diskgroup dgroupa drop disks in failgroup controller2;

 

 

 

 

 

Bytes -------------------------------------------------------------------------------------------------------

Blog: http://blog.csdn.net/tianlesoftware

Email: dvd.dba@gmail.com

Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)

Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823

Chat group: 40132017 chat 2 group: 69087192

-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.