Professional Documents
Culture Documents
September 2010
Introduction............................................................................................ 3
Oracle Automated Storage Management (ASM) ................................... 4
Veritas Storage Foundation by Symantec .............................................. 4
Advantages in Migrating from Storage Foundation to Oracle ASM .......5
Migrating from Storage Foundation to Oracle ASM ...............................5
Conclusion............................................................................................. 8
References............................................................................................. 8
Migrating Oracle Database from Veritas Storage Foundation to Oracle Automatic Storage Management (ASM)
Introduction
This paper addresses migration of Oracle Database from Veritas Storage Foundation from Symantec
to Oracle Automatic Storage Management (ASM). ASM is a feature in Oracle Database that provides
functionality similar to Veritas Storage Foundation . An overview of ASM and examples of migrating
from Oracle databases located on Storage Foundation Filesystems to Oracle ASM storage will be
provided.
Oracle Automatic Storage Management (ASM) is a feature in Oracle Database 10g and 11g that
provides the database administrator with a simple storage management interface that is consistent
across all server and storage platforms. ASM combines a file system and volume manager which is
designed to hold Oracle database files.
Veritas Storage Foundation by Symantec has a history of being a popular third-party volume
manager and file system. It has been the choice in many high end applications and clusters.
However, it is also a separately licensed product which is placed in the middle of the application and
Operating System stack.
A migration from Veritas Storage Foundation to Oracle ASM can unify the administration and reduce
overall licensing costs of an Oracle Database system.
To ease the transition, Oracle supplies tools which can aid in database migration to Oracle
ASM. Oracle Recovery Manager (RMAN) is a supported tool which allows for database
backup and recovery into a new environment. In an example later, RMAN will be used to
backup a database built on a Storage Foundation filesystem and to migrate it to an ASM
based database.
Migrating Oracle Database from Veritas Storage Foundation to Oracle Automatic Storage Management (ASM)
Oracle ASM can be setup on Solaris using the standard Database Creation Assistant (dbca). After
that, disks are selected to be placed in the diskgroup which is a pool of disks that ASM will use for
database storage. Detailed setup instructions are in the Oracle Real Application Cluster installation
instructions.
Oracle Database provides tools to assist in database migration. Oracle Recovery Manager (RMAN) is
one such tool that contains specific commands for cloning databases across systems. The following
example shows how RMAN can be used to migrate a database from a Storage Foundation based
database to an Oracle ASM managed storage test environment
For testing database migration, a pair of Oracle's Sun SPARC Enterprise T5120s were used. Oracle
VM Server for SPARC (previously called Sun Logical Domains) was used to split the machines into
smaller virtual machines.
Migrating Oracle Database from Veritas Storage Foundation to Oracle Automatic Storage Management (ASM)
SUN SPARC ENTERPRISE T5120 SUN SPARC ENTERPRISE T5120 SUN STORAGE 6180 ARRAY
Two logical domains were setup in a two node Oracle RAC configuration using ASM on the storage
array volume. In another logical domain, a standalone Veritas Storage Foundation filesystem was used
to contain our test database.
Migrating the Veritas Storage Foundation database to ASM can be done using RMAN. A detailed
guide is available in the Oracle Database Backup and Recovery Advanced User's Guide. The guide is
available at:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006233
Migrating Oracle Database from Veritas Storage Foundation to Oracle Automatic Storage Management (ASM)
The basic steps for a migration from Veritas Storage Foundation to Oracle ASM are as follows:
• A new Oracle ASM instance must be started. Note it can be run on the same server or a remote
server.
• The new instance is created using a modified initialization parameter file.
• Connection as sysdba must be established between the Veritas based database and the ASM
database.
• The databases are started and placed in proper states for RMAN
• RMAN backup and duplication is performed.
• The duplicate database can then be used from ASM.
Detailed steps for a migration between two servers are listed below. The original database on Storage
Foundation is origdb and the new ASM based database is clonedb:
1. An oracle password file must be created to allow sysdba connection to the databases. Orapwd
is the utility for creating password files.
$ rman
RMAN> backup as copy format=’/backup/origdb/%U’ database plus
archivelog;
4. Copy over the backup files in the same directory structure from the origdb
server to the clonedb server.
5. Run rman duplicate database commands.
$ rman
Migrating Oracle Database from Veritas Storage Foundation to Oracle Automatic Storage Management (ASM)
6. When the duplicate command completes, the clonedb on ASM can then be
started and used.
Transitioning the database may have other difficulties. Some other documents which cover cloning
databases are available. A good best practices guide is available here:
http://www.oracle.com/technology/deploy/availability/pdf/asm_cloning.pdf
It is recommended that deployments are tested in an environment which closely resembles the
production database environment before transitioning the actual database from Storage Foundation to
ASM.
Conclusion
Migrating a database from Veritas Storage Foundation to Oracle ASM is a simple task which can
provide a significant upside by introducing a proven and reliable Oracle software solution for database
storage while reducing licensing costs. An Oracle only hardware/software stack is easier to maintain
while maintaining a similar feature set. Migration is eased by using commonly used Oracle tools.
Once a database has been migrated from Veritas Storage Foundation to Oracle ASM, it will be running
in a complete Oracle stack with the third party functionality removed and replaced with the integrated
volume manager of ASM.
References
Oracle® Database Backup and Recovery User's
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/toc.htm