Overview of Oracle Automatic Storage
Management
Oracle
ASM is a volume manager and a file system for Oracle database files that supports single-instance Oracle Database
and Oracle Real Application Clusters (Oracle RAC) configurations. Oracle ASM is
Oracle's recommended storage management solution that provides an alternative
to conventional volume managers, file systems, and raw devices.
Oracle ASM uses disk groups to store data files; an Oracle ASM disk group is a collection of disks
that Oracle ASM manages as a unit. Within a disk group, Oracle ASM exposes a
file system interface for Oracle database files. The content of files that are
stored in a disk group is evenly distributed to eliminate hot spots and to
provide uniform performance across the disks. The performance is comparable to
the performance of raw devices.
You can add or remove disks from a disk
group while a database continues to access files from the disk group. When you
add or remove disks from a disk group, Oracle ASM automatically redistributes
the file contents and eliminates the need for downtime when redistributing the
content.
Oracle ASM also uses the Oracle Managed
Files (OMF) feature to simplify database file management. OMF automatically
creates files in designated locations. OMF also names files and removes them
while relinquishing space when tablespaces or files are deleted.
Oracle Automatic Storage Management Cluster
File System (Oracle ACFS) is a multi-platform, scalable file system, and
storage management technology that extends Oracle ASM functionality to support
customer files maintained outside of Oracle Database.
About Oracle ASM Instances
An
Oracle ASM instance is built on the same technology as an Oracle Database
instance. An Oracle ASM instance has a System Global Area (SGA) and background
processes that are similar to those of Oracle Database. However, because Oracle
ASM performs fewer tasks than a database, an Oracle ASM SGA is much smaller
than a database SGA. In addition, Oracle ASM has a minimal performance effect
on a server. Oracle ASM instances mount disk groups to make Oracle ASM files
available to database instances;
Oracle ASM is installed in the Oracle Grid
Infrastructure home before Oracle Database is installed in a separate Oracle
home. Oracle ASM and database instances require shared access to the disks in a
disk group. Oracle ASM instances manage the metadata of the disk group and
provide file layout information to the database instances.
Oracle ASM for Single-Instance Oracle Databases
About Mirroring and Failure Groups
Mirroring protects data integrity by storing copies of
data on multiple disks. When you create a disk group, you specify an Oracle ASM
disk group type based on one of the following three redundancy levels:
·
Normal for 2-way mirroring
·
High for 3-way mirroring
·
External to not use Oracle ASM mirroring, such as when you
configure hardware RAID for redundancy
The redundancy level controls how many disk failures are
tolerated without dismounting the disk group or losing data. The disk group
type determines the mirroring levels with which Oracle creates files in a disk
group.
About Oracle ASM Disks
Oracle
ASM disks are the storage devices that are provisioned to Oracle ASM disk
groups. Examples of Oracle ASM disks include:
·
A disk or partition from a
storage array
·
An entire disk or the
partitions of a disk
·
Logical volumes
·
Network-attached files (NFS)
When you add a disk to a disk group, you can assign an
Oracle ASM disk name or Oracle ASM assigns the Oracle ASM disk name
automatically. This name is different from the path name used by the operating
system. In a cluster, a disk may be assigned different operating system device
names on different nodes, but the disk has the same Oracle ASM disk name on all
of the nodes. In a cluster, an Oracle ASM disk must be accessible from all of
the instances that share the disk group.Oracle ASM spreads the files proportionally across all of the disks in the disk group. This allocation pattern maintains every disk at the same capacity level and ensures that all of the disks in a disk group have the same I/O load. Because Oracle ASM load balances among all of the disks in a disk group, different Oracle ASM disks should not share the same physical drive.
Allocation Units
Every Oracle ASM disk is divided into allocation units
(AU). An allocation unit is the fundamental unit of allocation within a disk
group. A file extent consists of one or more allocation units. An Oracle ASM
file consists of one or more file extents.When you create a disk group, you can set the Oracle ASM allocation unit size with the AU_SIZE disk group attribute. The values can be 1, 2, 4, 8, 16, 32, or 64 MB, depending on the specific disk group compatibility level. Larger AU sizes typically provide performance advantages for data warehouse applications that use large sequential reads.
About Oracle ASM Files
Files
that are stored in Oracle ASM disk groups are called Oracle ASM files. Each
Oracle ASM file is contained within a single Oracle ASM disk group. Oracle
Database communicates with Oracle ASM in terms of files. This is similar to the
way Oracle Database uses files on any file system. You can store the various
file types in Oracle ASM disk groups, including:
·
Control files
·
Data files, temporary data
files, and data file copies
·
SPFILEs
·
Online redo logs, archive logs,
and Flashback logs
·
RMAN backups
·
Disaster recovery
configurations
·
Change tracking bitmaps
·
Data Pump dumpsets
Oracle ASM automatically generates Oracle ASM file names
as part of file creation and tablespace creation. Oracle ASM file names begin
with a plus sign (+) followed by a disk group name. You can specify
user-friendly aliases for Oracle ASM files and create a hierarchical directory
structure for the aliases.
Extents
The contents of Oracle ASM files are stored in a disk
group as a set, or collection, of extents that are stored on individual disks within disk groups. Each extent
resides on an individual disk. Extents consist of one or more allocation units
(AU). To accommodate increasingly larger files, Oracle ASM uses variable size
extents.Variable size extents enable support for larger Oracle ASM data files, reduce SGA memory requirements for very large databases, and improve performance for file create and open operations. The initial extent size equals the disk group allocation unit size and it increases by a factor of 4 or 16 at predefined thresholds. This feature is automatic for newly created and resized data files when specific disk group compatibility attributes are set to 11.1 or higher.
The extent size of a file varies as
follows:
·
Extent size always equals the disk group AU
size for the first 20000 extent sets (0 - 19999).
·
Extent size equals 4*AU size for the next
20000 extent sets (20000 - 39999).
·
Extent size equals 16*AU size for the next
20000 and higher extent sets (40000+).
Figure 1-4 shows the Oracle ASM file extent relationship with allocation units. The
first eight extents (0 to 7) are distributed on four Oracle ASM disks and are
equal to the AU size. After the first 20000 extent sets, the extent size becomes 4*AU for the next 20000 extent
sets (20000 - 39999). This is shown as bold rectangles labeled with the extent
set numbers 20000 to 20007, and so on. The next increment for an Oracle ASM
extent is 16*AU (not shown in Figure 1-4).
Oracle ASM File Allocation in a Disk Group
Oracle ASM Striping
Oracle ASM striping has two primary purposes:
·
To balance loads across all of the
disks in a disk group
·
To reduce I/O latency
Coarse-grained striping provides load balancing for disk
groups while fine-grained striping reduces latency for certain file types by
spreading the load more widely.To stripe data, Oracle ASM separates files into stripes and spreads data evenly across all of the disks in a disk group. The fine-grained stripe size always equals 128 KB in any configuration; this provides lower I/O latency for small I/O operations. The coarse-grained stripe size is always equal to the AU size (not the data extent size).
No comments:
Post a Comment