Exact steps to migrate ASM diskgroups to another San without downtime.

Source: Internet
Author: User

 

The present document explains in detail the exact steps to migrate ASM diskgroups from one San to another San without a downtime.

 

Solution

 

If 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:

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:

SQL> select path from V $ asm_disk;

4) Add the new disks to your desired diskgroup:

SQL> alter diskgroup <diskgroup Name> Add Disk
'<New Disk 1> ',
'<New Disk 2> ',
'<New Disk 3> ',
'<New disk 4> ',
.
.
.
'<New disk n>' rebalance power <#>;

5) Then wait until the rebalance operation completes:

SQL> select * from V $ asm_operation;
SQL> select * From GV $ asm_operation;


6) Finally, remove the old disks:

SQL> alter diskgroup <diskgroup Name> drop Disk
<Disk name a>,
<Disk name B>,
<Disk name d>,
<Disk name E>,
.
.
.
<Disk name x> rebalance power <#>;


7) Then wait until the rebalance operation completes:

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:

 

SQL> alter diskgroup <diskgroup Name> Add disk' <New Device physical name 1> ',.., '<New Device physical name n>' Drop disk <old disk logical name 1>, <old disk logical name 2> ,.., <old disk logical name n> rebalance power <#>;


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

 

 

 

 

 

 

From Oracle

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.