Professional Documents
Culture Documents
Migrate Rac 10g From Ocfs To Asm On Emc San
Migrate Rac 10g From Ocfs To Asm On Emc San
Related Categories:
Database
Dell/EMC storage
File systems
required that data files, control files, and redo log files be
Oracle
Visit www.dell.com/powersolutions
for the complete category index.
Linux
x
have the same view of the Oracle database files and can
www.dell.com/powersolutions
Reprinted from Dell Power Solutions, August 2005. Copyright 2005 Dell Inc. All rights reserved.
105
DATABASE TECHNOLOGY
access to archived log files. Finally, OCFS can enable lower total cost
mv, cp, ln (softlinks only), tar, and cpiowork the same way on
Limitations of OCFS
include redo log files, archive log files, control files, and database data
files. OCFS also supports the shared quorum disk file for the Oracle
tages. First, it eliminates the need to manage and set up raw devices,
OCFS for files that are not accessed by the Oracle relational database
Second, raw devices limit the number of database files that can be
based systems could not take advantage of the Async IO feature for
OCFS releases before version 1.0.14 and Red Hat Enterprise Linux 3
within the database cluster can share archive logs, which helps
with the e57 kernel release. Oracle plans to release OCFS version 2 in
summer 2005, and this version is expected to support the shared Oracle
Disk
Partition
Raw device
Symbolic links
/dev/raw/raw1
srvcongle
/dev/raw/raw2
/dev/raw/raw3
cmdiskle
Extended Partition
/dev/raw/raw4
sple.ora
Extended Partition
system.dbf
/dev/raw/raw5
/dev/raw/raw6
users.dbf
temp.dbf
/dev/raw/raw7
/dev/raw/raw8
undotbs1.dbf
undotbs2.dbf
sdb1
sdb2
sdb3
sdb4
sdb7
sdb8
sdb9
sdb10
Mount point
sdb1
/u01
Database le
srvcongle
cmdiskle
/dev/raw/raw9
/dev/raw/raw10
undotbs3.dbf
undotbs4.dbf
sdb11
sdb12
/dev/raw/raw11
example.dbf
sdb13
sdb14
/dev/raw/raw12
/dev/raw/raw13
cwmlite.dbf
odm.dbf
sdb15
/dev/raw/raw14
xml.dbf
/dev/raw/raw15
indx.dbf
/dev/raw/raw16
/dev/raw/raw17
tools.dbf
Extended Partition
/dev/raw/raw18
drsys.dbf
Extended Partition
control1.ctl
/dev/raw/raw19
/dev/raw/raw20
control2.ctl
control3.ctl
/dev/raw/raw21
/dev/raw/raw22
redo1_1.log
redo1_2.log
sdc9
sdc10
sdc11
/dev/raw/raw23
/dev/raw/raw24
redo2_1.log
redo2_2.log
sdc12
/dev/raw/raw25
redo3_1.log
control3.ctl
sdc13
sdc14
/dev/raw/raw26
/dev/raw/raw27
redo3_2.log
redo4_1.log
xdb.dbf
sdc15
/dev/raw/raw28
redo4_2.log
redo1_1.log
sdd1
/dev/raw/raw29
xdb.dbf
sdc3
sdc4
sdc5
sdc6
sdc7
sdc8
sple.ora
system.dbf
users.dbf
temp.dbf
undotbs1.dbf
undotbs2.dbf
undotbs3.dbf
undotbs4.dbf
sdc1
/u02
cwmlite.dbf
Disk 2 (sdc)
odm.dbf
xml.dbf
indx.dbf
tools.dbf
drsys.dbf
control1.ctl
control2.ctl
/u03
redo1_2.log
redo2_1.log
redo2_2.log
Recovery log
sdd1
Disk 3 (sdd)
sdd2
example.dbf
Application environment
sdc1
sdc2
Disk 2 (sdc)
Partition
Disk 1 (sdb)
Symbolic links to raw devices under /opt/oracle/oradata/DBNAME /
Disk 1 (sdb)
Disk
Application
sdb5
sdb6
Disk 3 (sdd)
Figure 1. Using raw devices to associate physical block devices with Oracle RAC
database files
106
Figure 2. Using OCFS to associate physical storage partitions and mount points with
Oracle RAC database files
Reprinted from Dell Power Solutions, August 2005. Copyright 2005 Dell Inc. All rights reserved.
August 2005
DATABASE TECHNOLOGY
EMC PowerPath
devices with
external redundancy
Disk 1
(emcpowera)
Partition
Quorum
emcpowera1-->/dev/raw/quorum
emcpowera2-->/dev/raw/ocr
emcpowera3-->/dev/raw/spleASM
OCR location
ASM sple
sple.ora
system.dbf
SQL*Plus
sysaux.dbf
temp.dbf
interface that
undotbs1.dbf
undotbs2.dbf
undotbs3.dbf
undotbs4.dbf
Database le
example.dbf
DATADG
users.dbf
Disk 2
(emcpowerb)
redo1_1.log
redo1_2.log
redo2_1.log
redo2_2.log
control1.ctl
control2.ctl
control3.ctl
built-in capability to automatically tune, rebalance, and rebuild storage devices on demand.1
Database administrators can save a significant
amount of time by using ASM because ASM
enables automatic management of these data-
emcpowerc1
RECOVERYDG
Disk 3
(emcpowerc)
Figure 3. Using ASM disk groups on Dell/EMC Fibre Channel storage for Oracle 10g RAC database files
powersolutions.
Administrators should take into account the following considerations before performing a database or storage migration:
eter files. In addition, the cluster voting disk and the Oracle Cluster
base files, but it does not provide a file systemlike view from the OS
greater than the existing database files and the archive log files.
file storage and its properties. Best practices also recommend that the
1 For detailed information about the architecture, benefits, and implementation of Oracle ASM, see Enabling a Highly Scalable and Available Storage Environment Using Oracle Automatic Storage Management by Zafar Mahmood,
Joel Borellis, Mahmoud Ahmadian, and Paul Rad in Dell Power Solutions,
s June 2004; www.dell.com/downloads/global/power/ps2q04-008.pdf.
www.dell.com/powersolutions
Reprinted from Dell Power Solutions, August 2005. Copyright 2005 Dell Inc. All rights reserved.
107
DATABASE TECHNOLOGY
ASM instance instead of the raw device interface, because the ASM
library interface offers enhanced user-friendliness.
home. This way, they can upgrade only the ASM binaries when
In Oracle 10g
0g environments, Oracle Automatic Storage Management is
well suited for managing database storage. ASM is designed not only
the automatic deletion of ASM files when database files are dropped.
the ASM instance to help ensure that the ASM instance always
starts before the database instance and that the ASM instance
Acknowledgments
lowing command:
The authors would like to thank their colleagues Ramesh Rajagopalan and CS Prasanna Nanda from the Dell Database Solutions
Group for their valuable comments and help with this article.
the database area from the flashback area and make sure that both
areas do not share the same physical spindles. They should use as
many disk spindles of similar size and characteristics as possible
in a single disk group.
If adding external redundancy by using storage arrays, administrators should make sure that the LUN stripe size is as close to
1 MB as possible to match the ASM stripe size. The disk partition
boundary should start at 1 MB to help ensure proper I/O alignment because ASM writes to storage volumes in 1 MB stripes. In
addition, administrators can use multiple initiators or host bus
adapters and multipath software to enable high availability and
load balancing for I/O.
Finally, administrators should set parameters according to the
preceding best practices. The default value of the SHARED_POOL_SIZE
parameter should be increased using the following formula:
Extra shared pool size required = (1 MB per 100 GB
108
Reprinted from Dell Power Solutions, August 2005. Copyright 2005 Dell Inc. All rights reserved.
August 2005