签到成功

知道了

CNDBA社区CNDBA社区

ASM 11g New Features - How ASM Disk Resync Works. [ID 466326.1]

2016-11-25 15:50 1681 0 原创 Oracle 11g
作者: dave

 http://www.cndba.cn/Dave/article/849

. ASM Fast Disk Resync Overview

    1) When we take a disk offline in case the disk is corrupted or database is not able to read or write from the disk. In case of Oracle database 10g, oracle engine use to balance the other disks with the content of offline disk. This process was a relatively costly operation, and could 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 significantly reduces 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 reduces 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 repaired, 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. 

    

    
 

 

http://www.cndba.cn/Dave/article/849

 

.      ASM 11g New Features - How ASM Disk Resync Works.

 Requirements:

1) This feature requires that the redundancy level for the disk should 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 repaired. The default time for this is set to 3.6 hours.

Examples:
http://www.cndba.cn/Dave/article/849

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 should not be dropped.

To take the disk offline use:
http://www.cndba.cn/Dave/article/849

SQL> ALTER DISKGROUP … OFFLINE DISKS command.



Example:

ALTER DISKGROUP dgroupA OFFLINE DISKS IN FAILGROUP controller2 DROP AFTER 5H;


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:

http://www.cndba.cn/Dave/article/849

SQL>ALTER DISKGROUP DG1 OFFLINE DISK DG1_0003 ;
SQL>ALTER DISKGROUP DG1 OFFLINE DISK DG1_0003 DROP AFTER 1H;
SQL>ALTER DISKGROUP DG1 OFFLINE DISKS IN FAILGROUP FG1;
SQL> ALTER DISKGROUP dgroupA OFFLINE DISKS IN FAILGROUP controller2 DROP AFTER 5H;

 

5) After the transient failure was corrected on the affected disks, you will need to explicitly online the disks.

Examples:

SQL>ALTER DISKGROUP DG1 ONLINE DISK DG1_0003;

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;

 http://www.cndba.cn/Dave/article/849

 

http://www.cndba.cn/Dave/article/849

 

 

 

-------------------------------------------------------------------------------------------------------http://www.cndba.cn/Dave/article/849

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

Email: dvd.dba@gmail.comhttp://www.cndba.cn/Dave/article/849

DBA1 群:62697716();   DBA2 群:62697977()   DBA3 群:62697850()  

DBA 超级群:63306533();  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请http://www.cndba.cn/Dave/article/849

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle 11g

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2261
    原创
  • 3
    翻译
  • 578
    转载
  • 191
    评论
  • 访问:7983265次
  • 积分:4346
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ