0% found this document useful (0 votes)
246 views17 pages

ASM Presentation

This document discusses Automatic Storage Management (ASM) in Oracle Database 10g. It provides an overview of ASM and how it can simplify and automate database storage management by acting as a volume manager, file system, and clustering capability without additional cost. ASM reduces complexity, increases storage utilization and agility, and delivers predictable performance and availability. It discusses best practices for configuring ASM disk groups and files.

Uploaded by

Subahan Shaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
246 views17 pages

ASM Presentation

This document discusses Automatic Storage Management (ASM) in Oracle Database 10g. It provides an overview of ASM and how it can simplify and automate database storage management by acting as a volume manager, file system, and clustering capability without additional cost. ASM reduces complexity, increases storage utilization and agility, and delivers predictable performance and availability. It discusses best practices for configuring ASM disk groups and files.

Uploaded by

Subahan Shaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 17

Automatic Storage Management - Mani Srikanth

Wissen MATTEL Internal

Typical Day for a DBA and System Admin


Design DB layout strategy How many volumes, data files Where data files reside Inventory of files: 2 control files, 2 log files, multiple datafiles per tablespace, backup files, temp files, etc 100s or 1000s of files to create, name, manage and not make mistakes! Multiplied by n number of Databases What about tuning, expanding/contracting your DB ?
Wissen MATTEL Internal

Choice for Storage Management?

Wissen MATTEL Internal

Whiteboard Management

Wissen MATTEL Internal

The Key Question


How should I configure and tune my Oracle Database 10g storage environment?

Conventional answer is:


Workloads Storage configurations RAC vs. single Instance FS/VM or RAW

It Depends
FS/VM/RAW choices: complicated slow Expensive

Conventional - Too - Too - Too

Right answer is:


Automatic Storage Management (ASM)
Wissen MATTEL Internal

Automatic Storage Management


A storage manager designed to manage Oracle Database 10g database files offered at no additional cost Volume Manager File System Clustering capabilities

Reduce Cost and Complexity Without Compromising Performance or Availability


Simplifies and Automates Database Storage Management Increases Storage Utilization and Agility
Wissen MATTEL Internal

Predictably Delivers on Performance & Availability SLAs

Oracle DB and ASM are designed to reduce the complexity


Complexity stems from Application types o OLTP, DW, batch, and mixed-workloads Many operation types o Scan, lookup, load, insert, create index, join, LOB, sort, backup, recovery, batch write, etc. Many file types o Data, log, archive, temp, undo, system, control, backup, etc.

Wissen MATTEL Internal

How Many Disk Groups per Database?


2 Disk Groups are recommended Backup for each other Leverage maximum of disk per disk group Exceptions Additional Disk Groups for different capacity or performance characteristics Different storage tiers

Data Disk Group Data, redo log, control file types

Flash Recovery Area Disk Group Archive log, backup, temp files types

Wissen MATTEL Internal

Should I Consolidate Multiple DBs in a Disk Group?


LAN

RAC ASM

10g ASM

10g ASM

A S M

Data DG

FRA DG ERP Database CRM Database HR Database

Yes Shared storage across several databases RAC and Single Instance Benefits: Higher storage utilization Lower cost Higher performance More LUNs / DG Simplified and Centralized management

Wissen MATTEL Internal

ASM Key Features


Volume Management Database File System with performance of RAW I/O Supports clustering and single instance Dynamic data distribution and rebalancing Automatic file management Flexible mirror protection

ASM Disk Group LUN LUN

LUN

Wissen MATTEL Internal

Benefits of ASM
Database storage management does not have to be complex any more Oracle Database 10g and ASM are designed to hide the complexity for all workload types

Large (1MB) I/O to optimize sequential performance


Parallelizes many operations

Distribute data evenly and widely for maximum performance

Wissen MATTEL Internal

ASM Background Processes


Background processes are an integral part of Automatic Storage Management. Following are the ASM background processes that play a major role in ASM administrative tasks :
RBAL performs rebalancing of disk resources controlled by ASM ARBn These processes are managed by the RBAL process and are used to do the actual rebalancing of ASM controlled disk resources.
The number of ARBx processes invoked is directly influenced by the asm_power_limit parameter. disk resources. It is also used to update statistics and provide a heartbeat mechanism.

ASMB The ASMB process is used to provide information to and from the Cluster Synchronization Services used by ASM to manage the

GMON will periodically (every 3 min) inspect all mounted disk groups for offline disks.
KATE performs proxy I/O to an ASM metafile when a disk goes offline. MARK marks ASM allocation units as stale following a missed write to an offline disk.

The information about these BG processes can be checked in V$BGPROCESS

Wissen MATTEL Internal

ASM Command-Line Utility (ASMCMD)


ASMCMD is a command-line utility that helps us to view, manage, manipulate, perform search, display space utilization of files and directories within ASM disk groups. Few Commands: cd - move up and down between these directories pwd - prints the name of the current directory ls - lists the contents of the current directory mkdir - We can create our own directories as sub-directories of systemgenerated directories (Note: ALTER DISKGROUP command can be used for the same purpose) mkalias - create file alias help Display help
Wissen MATTEL Internal

Naming Convention in ASM


File Name:

+diskGroupName/databaseName/fileType/fileTypeTag.fileNumber.incarnation
Example:

+dgroup6/sample/CONTROLFILE/Current.256.541952343 +dgroup6 - diskgroup


sample - database

CONTROLFILE - type of file current - file type tag 256 - file number 541952343 - incarnation
Wissen MATTEL Internal

Managing Files and Diskgroups in ASM


Create DiskGroup: CREATE DISKGROUP dg1 FAILGROUP fgroup1 DISK 'devices/disk1', 'devices/disk2' FAILGROUP fgroup2 DISK 'devices/disk3', 'devices/disk4'; Add Fail Group: ALTER DISKGROUP mydata ADD FAILGROUP mydata01 DISK '\\.\J:' FAILGROUP mydata01 DISK '\\.\K:'; Drop Fail Group: ALTER DISKGROUP mydata DROP DISK MYDATA_0004, MYDATA_0005;
Wissen MATTEL Internal

Create Tablespace: CREATE TABLESPACE tbs_01 DATAFILE '+dg1' SIZE 300MB;

Alter Tablespace:
ALTER TABLESPACE tbs_01 ADD DATAFILE '+MYDATA' SIZE 400M; Create Table: CREATE TABLE geo_names ( state VARCHAR2(2), feature_name VARCHAR2(80), feature_type VARCHAR2(9), county VARCHAR2(60) ) TABLESPACE tbs_01s;

Wissen MATTEL Internal

Q&A

Wissen MATTEL Internal

You might also like