Oracle ASM Migration To A New Storage Platform With No Downtime

If it's time to replace your old storage but you are worried about the extended downtime of migrating your ASM diskgroups to the new storage, you've landed on the right tech article.
database managed services asm migration remote dba support database management Oracle linux
Picture of Written by Sandeep Sampath

Written by Sandeep Sampath

Oracle Technical Consultant at Blue Crystal Solutions

Automatic Storage Management: ASM Migration

Is it about that time to replace your old storage – which stores your important business applications – but you are worried about the extended downtime of migrating your ASM diskgroups to the new storage? 

Oracle supports no downtime when migrating from your old storage platform to a new storage platform. Whether you are using direct attached storage (DAS), network attached storage (NAS) or storage area networks (SANs) the following process is available and well supported.

No downtime Oracle ASM migration will work for all ASM files including OCR, Votefiles and ASM spfile. ASM diskgroups are configured on creation to specify a level of redundancy of external, normal or high redundancy.  The process for migration to new storage is the same no matter the level of redundancy configured for the ASM diskgroup.

There are 3 possible methods:

  1. Adding all new disks and dropping all old disks – 2 commands and 2 rebalances.

alter diskgroup <diskgroup name> add disk

‘<new disk 1>’, ..,‘<new disk N>’ rebalance power <#>;

alter diskgroup <diskgroup name> drop disk

<old disk 1>, ..,<old disk N>  rebalance power <#>;

2  Adding all new disks and dropping all old disks – 1 command and 1 rebalance.

E.g. alter diskgroup <diskgroup name>

add disk ‘< new disk 1>’, .., ‘< new disk N >’

drop disk <old disk 1>, ..,<old disk N>  rebalance power <#>;

3 Using the replace command – 1 command and 1 rebalance.  Only available from Oracle 12c.

E.g. alter diskgroup <diskgroup name> replace disk <disk name> with ‘<new disk 1>’ power <#>;

Option 2 and 3 are more efficient as there is only 1 rebalance. Make sure the option selected above is tested before running in a production environment.

When disks are added/removed/resized ASM will rebalance the data across all disks in that ASM diskgroup.  The rebalance power defaults to the ASM_POWER_LIMIT parameter which has the default setting of 1.  The rebalance power can be modified dynamically, the higher the value the more likely the operation will complete sooner but also the likelihood that more I/O resources are used.  If using a high rebalance power then monitor your I/O as this could affect other systems if using shared storage.  The disable power limit depends on the setting of the disk group attribute COMPATIBLE.ASM, 11.2.0.2 or higher (power can be set from 0 to 1024) otherwise all earlier versions (power can bet set from 0 to 11).  After the rebalance is completed all disks should have the header_status of ‘FORMER’ from the v$asm_disk view.  Setting a power limit of 0 will disable rebalancing. E.g.  alter diskgroup diskgroup_name> rebalance power <#>;

Considerations during storage migrations:
  • Performance Tests against new storage using the likes of swingbench, Orion or Callibrate IO
  • ASM LUN size should be all the same size and characteristics.
  • Creating a temporary diskgroup to test new disks.
  • Use ‘kfed read’ utility to analyse ASM disk header information from each node.
  • Server Reboots to the new configuration and ensure clean restarts.
  • Backup the Oracle Cluster Register (OCR) – before any cluster changes.
Oracle
Our Oracle Expertise

BCS has been Oracle Partners since our beginning in 2004. Our long history has enabled us to become experts in Oracle technology and the innovations their tools can enable. We’ve compiled a series of tech articles and case studies to demonstrate exactly that.

Learn More.

Choosing between Postgres vs SQL Server? It all depends on business needs. Postgres SQL offers flexibility and cost savings, while SQL Server provides enterprise-level support within Microsoft ecosystems. Blue Crystal Solutions optimises database choices with setup, 24x7 monitoring, and migration. Learn more about your SQL Server alternatives and Postgres database comparison.

Your SQL Server backups are critical to ensuring business continuity, data protection, and compliance. Reviewing and optimising your backup and restore jobs with an expert team like ours can give you confidence in your data protection strategy, helping your business stay resilient and prepared.

We’re playing a proactive role in enabling Digital Transformation in Public Sector by building a future where technology benefits everyone - with a focus on Digital Identity. In our involvement with the GX5 series, we are part of the solution to making Government Services more efficient, secure, and accessible for all Australians.

Blue Crystal Solutions: your trusted & innovative IT partner.

Australian owned and operated since 2004, we provide information technology services locally, nationally and beyond.

We are a specialised supplier of Cloud, Application, Database & Infrastructure, Operating System Management, Modernisation and Transformation services. With security at the forefront of everything we do, we can also work with your cyber teams to significantly improve your security posture whilst ensuring all your services with us are fortified by our integrated outage protection and 24×7 monitoring tool, BlueDiamond

Scroll to Top