Exact Steps To Migrate ASM Diskgroups To Another SAN Without Downtime

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:635

Exact Steps To Migrate ASM Diskgroups To Another SAN Without Downtime

这篇文章的目的是实现asm磁盘组更换存储的解决方法,这种方法不用停机。 [table=98%]
[td=4,1]Steps To Migrate ASM Diskgroups To Another SAN Without Downtime. [ID 837308.1][td=2,1]
[td=6,1]
[td=2,1,25%][td=3,1,50%][i]修改时间 15-JUN-2009 [i]类型 HOWTO [i]状态 PUBLISHED

In this Document
[size=-1]https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=837308.1#GOAL]Goal
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=837308.1#FIX]Solution

Applies to: Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.7
Information in this document applies to any platform.

GoalThe present document explains in detail the exact steps to migrate ASM diskgroups from one SAN to another SAN without a downtime.
SolutionIf your plans are replacing the current disks associated to your diskgroups with a new storage, this operation can be accomplished without any downtime, so you can follow the next steps

1) Backup all your databases and valid the backup (always required to protect your data).

2) Add the new path (new disks from the new storage) to your asm_disktring to be recognized by ASM:

Example:

[font=NSimsun]SQL> alter system set asm_disktring = '/dev/emcpowerc*' , '/dev/emcpowerh*';

Where: '/dev/emcpowerc*' are the current disks.
Where: '/dev/emcpowerh*' are the new disks.

3) Confirm that the new disks are being detected by ASM:

[font=NSimsun]SQL> select path from v$asm_disk;

4) Add the new disks to your desired diskgroup:

[font=NSimsun]SQL> alter diskgroup add disk
’,
’,
’,
’,
.
.
.
’;

5) Then wait until the rebalance operation completes:

[font=NSimsun]SQL> select * from v$asm_operation;
SQL> select * from gv$asm_operation;

6) Finally, remove the old disks:

[font=NSimsun]SQL> alter diskgroup drop disk
,
,
,
,
.
.
.
;

7) Then wait until the rebalance operation completes:

[font=NSimsun]SQL> select * from v$asm_operation;
SQL> select * from gv$asm_operation;

8) Done, your ASM diskgroups and database have been migrated to the new storage.

Note: Alternatively, we can execute add disk & drop disk statements in one operation, in that way only one rebalance operation will be started as follow:

[font=NSimsun]SQL> alter diskgroup
add disk '', .., ''
drop disk , , .., rebalance <#>;

This is more efficient than separated commands (add disk & drop disk statements).

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】