SlideShare uma empresa Scribd logo
1 de 63
Baixar para ler offline
HOWTO:
Implementing Oracle ASM
Successfully
Alex Gorbachev
23 September, 2010
San Francisco, CA
© 2009/2010 Pythian
Alex Gorbachev
• CTO, The Pythian Group
• Blogger
• OakTable Network member
• Oracle ACE Director
• BattleAgainstAnyGuess.com
• President, Oracle RAC SIG
2
© 2009/2010 Pythian
Why Companies Trust Pythian
• Recognized Leader:
• Global industry-leader in remote database administration services and consulting for Oracle,
Oracle Applications, MySQL and SQL Server
• Work with over 150 multinational companies such as Forbes.com, Fox Interactive media, and
MDS Inc. to help manage their complex IT deployments
• Expertise:
• One of the world’s largest concentrations of dedicated, full-time DBA expertise.
• Global Reach & Scalability:
• 24/7/365 global remote support for DBA and consulting, systems administration, special
projects or emergency response
3
© 2009/2010 Pythian
Pre-ASM Oracle Storage
4
© 2009/2010 Pythian
Pre-ASM Oracle Storage
• Too complex
• 3rd party vendors
• Additional licensing cost
• Many groups involved
• Storage engineers
• SA’s
• DBA’s
• Loosing layout visibility
4
© 2009/2010 Pythian
Pre-ASM Oracle Storage
• Too complex
• 3rd party vendors
• Additional licensing cost
• Many groups involved
• Storage engineers
• SA’s
• DBA’s
• Loosing layout visibility
• Too simple
• Doesn’t scale
• Not reliable
• Not flexible
4
© 2009/2010 Pythian
Why ASM?
• Simplify
• Fewer vendors involved
• Fewer layers
• Move many operations under DBA umbrella
• oh well, Storage Administrator role
• Cost efficient
• No need to license volume manager
• Cheap storage boxes are good for ASM
• Manageable
5
© 2009/2010 Pythian
ASM Basic Principles
• Organizing Oracle files on physical disks
• “Purpose-built file system”
• Mirroring
• reliability & failure tolerance
• Striping
• performance & scalability
• Rebalancing
• manageability
6
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
file1
7
© 2009/2010 Pythian
ASM Striping
• Extents and Allocation Units
• Coarse striping & Fine striping
• Random striping -> equal distribution
• You cannot disable ASM striping
file1 file2
7
© 2009/2010 Pythian
What’s the Best Hardware Striping for ASM?
8
© 2009/2010 Pythian
What’s the Best Hardware Striping for ASM?
8
Hardware
striping
RAID
© 2009/2010 Pythian
What’s the Best Hardware Striping for ASM?
• Allocate disk spindles or partitions to ASM
• 1 physical disk = 1 LUN = 1 ASM disk
• Can mirror disks in RAID-1
• 2 x RAID-1 physical disks = 1 LUN
• If you really have to use RAID...
• Watch for striping conflicts
• stripe width 640K & AU size 1MB = bad
• Align AU with striping
• 1 AU = stripe size
• 1 AU = stripe width
• Avoid RAID-5
8
Hardware
striping
RAID
© 2009/2010 Pythian
What’s the Best Hardware Striping for ASM?
• Allocate disk spindles or partitions to ASM
• 1 physical disk = 1 LUN = 1 ASM disk
• Can mirror disks in RAID-1
• 2 x RAID-1 physical disks = 1 LUN
• If you really have to use RAID...
• Watch for striping conflicts
• stripe width 640K & AU size 1MB = bad
• Align AU with striping
• 1 AU = stripe size
• 1 AU = stripe width
• Avoid RAID-5
8
Hardware
striping
RAID
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
ASM Rebalancing
• asm_power_limit - rebalancing speed
• Async rebalancing in 11.2.0.2
• No auto-magic re-layout based on performance
• You can force rebalancing for a DG
• Intelligent Data Placement - Hot / Cold
9
© 2009/2010 Pythian
What’s the Best LUN Size for ASM?
• All disks in the same DG should be sized equally
• All disks in the same DG should perform the same
• LUN size is the increment of adding space
• Don’t make too big - harder to manage
• Bug for 2+ TB disks
• Size within 500GB-1TB is usually OK
• Don’t make disks too small & too many disks
• Don’t make DG more than few TB in 10g
10
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
ASM Mirroring
• Primary extent & mirror extent
• Write is done to all extent copies
• Read is done always from primary extent by default
• Silent corruptions?
• Use ASMCMD “remap” command
• Intelligent Data Placement for secondary extents
11
© 2009/2010 Pythian
• Group of disks can fail at once
• Mirror extents between failure groups
• Beware of space provisioning
• Beware of disk partnering (double disk failures)
SAN 1 SAN 2
ASM Failure Groups
12
© 2009/2010 Pythian
• Group of disks can fail at once
• Mirror extents between failure groups
• Beware of space provisioning
• Beware of disk partnering (double disk failures)
SAN 1
ASM Failure Groups
12
© 2009/2010 Pythian
• Group of disks can fail at once
• Mirror extents between failure groups
• Beware of space provisioning
• Beware of disk partnering (double disk failures)
SAN 1
ASM Failure Groups
12
© 2009/2010 Pythian
ASM 10g issues
• ASM upgrade requires full RAC outage
• Fixed 1MB allocation unit
• Overhead with multi-TB databases
• Recovery from failure is inefficient
• ASM Mirroring is not VLDB ready
• Extended clusters read IO is inefficient
• Limited FS functionality and tools
13
© 2009/2010 Pythian
ASM 11gR1 - variable extent size
• 10g
• 1 extent = 1 AU
• 11g
• 1-20,000 extents
1 extent = 1 AU
• 20,001 - 40,000
1 extent = 8 AU’s
• 40,001 - ...
1 extent = 64 AU’s
• 1 TB = 1+ mil. extents
• 1MB AU:
• 1 TB = 53,572 extents
• 64MB AU:
• 1 TB = 16,384 extents
• 100 TB = 66,788 extents
14
© 2009/2010 Pythian
ASM 11gR1 - recovery from failures
• Fast Mirror Resync
• OFFLINE disks
• disk_repair_time attribute
• ASM extent change tracking
• Suitable for transient failures and maintenance
• Fast Rebalancing in restricted mount
• Normal rebalancing => many lock/unlock extent map
• Restrict mode rebalancing => no locks
• Restrict mounted DG => service outage
© 2009/2010 Pythian
ASM 11gR1 - Preferred Mirror Read
• For extended clusters
• Storage mirrored across 2 or 3 datacenters
• 10g
• Read is first done on primary extent
• 11g
• Preferred read failure groups (to local disks)
• asm_preferred_read_failure_groups in init.ora
© 2009/2010 Pythian
ASM Instance
• Special kind of Oracle instance
• Clustered in RAC
• Manages metadata
• ASM disks and diskgroups
• ASM extent map
• Performs rebalancing
• Must be started before database instance
17
© 2009/2010 Pythian
ASM Software Stack
18
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
Multipathing
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
Multipathing
Grid Infrastructure
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
Multipathing
Grid Infrastructure
ASM
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
Multipathing
Grid Infrastructure
ASM
Database
© 2009/2010 Pythian
ASM Software Stack
18
Operating System
Multipathing
Grid Infrastructure
ASM
Database
ASMKernelModules
(ACFS)
© 2009/2010 Pythian19
ASMLib?
© 2009/2010 Pythian19
ASMLib?
ASMLib
© 2009/2010 Pythian19
ASMLib?
• Role of ASMLib
• supposedly simplified discovery
• covered by UDEV / dev mapper / MP
• reduced number of open
descriptors
• Originally designed as API for
storage vendors
• ASMLib on Linux - reference
implementation
• ASMLib is useless in vast
majority of deployments
ASMLib
© 2009/2010 Pythian
ASM Layers
20
Diagram from Oracle whitepaper
© 2009/2010 Pythian
ASM Overhead?
• ASM is not in the IO code path for Oracle Database
• ASM only operates extent maps and disk headers
• Database -> thousands IO’s per second vs ASM -> few IO’s per minute
• Additional ASM instance - memory and processes but not
much
• Database instance keeps ASM extent maps in SGA
• Mirroring generates additional write IO
• ADVM - another layer
• ACFS - yet another layer
21
© 2009/2010 Pythian
ASM Licensing
• Prior to 11.2.0.2 - ASM is “free”
• All ACFS features are part of “Oracle Cluster File System -
Cloud Edition” as of 11.2.0.2
• Restricted use license for Oracle database files included with all
database editions (SE/SE1/EE)
• I.e. all ASM features for the database are still free
• External-tables, DataPump exp/imp dumps, flat files for SQL Loader ??????
• Pricing is still not published
22
© 2009/2010 Pythian
How Many Diskgroups Do You Need?
• It depends...
• Use SAME (Stripe And Mirror Everything)
• Start with 2 - DATA + FRA for all databases
• Make conscious decision to split into more diskgroups
• need to be very convincing
• redo logs are often a candidate
• tiered storage is an option
• per database split (cold failover, database moves)
23
© 2009/2010 Pythian
DATA and FRA on the Shared Physical Disks?
• YES if following SAME principles (maximize perf/util)
• DATA on the outer tracks of disk and FRA on the inner tracks
• Exadata is a typical example
• NO if following resiliency & stability principles
• Performance degradation
• Exadata has IORM that prioritizes backup IO lower
• Disk failure makes both database and backup corrupted
24
© 2009/2010 Pythian
ASM Implementation Checklist
• Plan space and performance capacity (IOPS & MB/s)
• AWR or Statspack
• Write IO vs read IO
• Redo, tempfiles, datafiles, etc
• Create provisioning standards (DG naming, disk sizing)
• Performance of each LUN and total (ORION is great)
• Use OMF -- “We have standards” doesn’t cut it!
• Don’t screw up multipathing
• Very very careful with thin provisioning
• Master RMAN
• Use latest possible version
25
© 2009/2010 Pythian
ASM Implementation Checklist
• Plan space and performance capacity (IOPS & MB/s)
• AWR or Statspack
• Write IO vs read IO
• Redo, tempfiles, datafiles, etc
• Create provisioning standards (DG naming, disk sizing)
• Performance of each LUN and total (ORION is great)
• Use OMF -- “We have standards” doesn’t cut it!
• Don’t screw up multipathing
• Very very careful with thin provisioning
• Master RMAN
• Use latest possible version
25
© 2009/2010 Pythian
Operational Support Checklist
• Watch space usage
• Watch performance of each LUN
• Watch failed disks
• Monitor ASM instance alert.log
• Use REMAP regularly to check secondary extents
• Consider a separate role for ASM management
• Break the silos - bring ASM management to DBA team
• Avoid rebalancing in critical hours
• Every DBA and storage admin should practice failure
handling
26
© 2009/2010 Pythian
What’s next?
• Book draw
• Leave me your cards or email+phone
Q & A
Email me - gorbachev@pythian.com
Read my blog - http://www.pythian.com
Follow me on Twitter - @AlexGorbachev
Join Pythian fan club on Facebook & LinkedIn
27

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
Apache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic DatasetsApache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic Datasets
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
SQLd360
SQLd360SQLd360
SQLd360
 
Oracle Database Appliance 12.1.2.3.0 アップデート及びパッチ管理について
Oracle Database Appliance 12.1.2.3.0 アップデート及びパッチ管理についてOracle Database Appliance 12.1.2.3.0 アップデート及びパッチ管理について
Oracle Database Appliance 12.1.2.3.0 アップデート及びパッチ管理について
 
Oracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPMOracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPM
 
Oracle MAA (Maximum Availability Architecture) 18c - An Overview
Oracle MAA (Maximum Availability Architecture) 18c - An OverviewOracle MAA (Maximum Availability Architecture) 18c - An Overview
Oracle MAA (Maximum Availability Architecture) 18c - An Overview
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
Enterprise manager 13c
Enterprise manager 13cEnterprise manager 13c
Enterprise manager 13c
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
 

Semelhante a Presentation implementing oracle asm successfully

[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
Insight Technology, Inc.
 

Semelhante a Presentation implementing oracle asm successfully (20)

[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
[INSIGHT OUT 2011] B16 analysis of oracle asm failability(alex)
 
Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The Evolution
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Mega Launch Recap Slide Deck
Mega Launch Recap Slide DeckMega Launch Recap Slide Deck
Mega Launch Recap Slide Deck
 
Presentation database on flash
Presentation   database on flashPresentation   database on flash
Presentation database on flash
 
MySQL and MariaDB
MySQL and MariaDBMySQL and MariaDB
MySQL and MariaDB
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
 
What's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS SummitWhat's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS Summit
 
Handling Increasing Load and Reducing Costs Using Aerospike NoSQL Database - ...
Handling Increasing Load and Reducing Costs Using Aerospike NoSQL Database - ...Handling Increasing Load and Reducing Costs Using Aerospike NoSQL Database - ...
Handling Increasing Load and Reducing Costs Using Aerospike NoSQL Database - ...
 
What's new in Amazon Aurora - ADB207 - New York AWS Summit
What's new in Amazon Aurora - ADB207 - New York AWS SummitWhat's new in Amazon Aurora - ADB207 - New York AWS Summit
What's new in Amazon Aurora - ADB207 - New York AWS Summit
 
Scalable Relational Databases with Amazon Aurora. Madrid Summit 2019
Scalable Relational Databases with Amazon Aurora. Madrid Summit 2019Scalable Relational Databases with Amazon Aurora. Madrid Summit 2019
Scalable Relational Databases with Amazon Aurora. Madrid Summit 2019
 
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use CasesVMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
 
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red Hat Ceph Storage Acceleration Utilizing Flash Technology Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
 
Splunk-EMC
Splunk-EMCSplunk-EMC
Splunk-EMC
 
MySQL and MariaDB
MySQL and MariaDBMySQL and MariaDB
MySQL and MariaDB
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?
 
les12.pdf
les12.pdfles12.pdf
les12.pdf
 
Stabilizing Ceph
Stabilizing CephStabilizing Ceph
Stabilizing Ceph
 
Migrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for OracleMigrating and Running DBs on Amazon RDS for Oracle
Migrating and Running DBs on Amazon RDS for Oracle
 

Mais de xKinAnx

Mais de xKinAnx (20)

Engage for success ibm spectrum accelerate 2
Engage for success   ibm spectrum accelerate 2Engage for success   ibm spectrum accelerate 2
Engage for success ibm spectrum accelerate 2
 
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep diveAccelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
 
Software defined storage provisioning using ibm smart cloud
Software defined storage provisioning using ibm smart cloudSoftware defined storage provisioning using ibm smart cloud
Software defined storage provisioning using ibm smart cloud
 
Ibm spectrum virtualize 101
Ibm spectrum virtualize 101 Ibm spectrum virtualize 101
Ibm spectrum virtualize 101
 
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive dee...Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive dee...
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
 
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
04 empalis -ibm_spectrum_protect_-_strategy_and_directions04 empalis -ibm_spectrum_protect_-_strategy_and_directions
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
 
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
 
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
 
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
 
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
 
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
 
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
 
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
 
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
 
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
 
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
 
Presentation disaster recovery in virtualization and cloud
Presentation   disaster recovery in virtualization and cloudPresentation   disaster recovery in virtualization and cloud
Presentation disaster recovery in virtualization and cloud
 
Presentation disaster recovery for oracle fusion middleware with the zfs st...
Presentation   disaster recovery for oracle fusion middleware with the zfs st...Presentation   disaster recovery for oracle fusion middleware with the zfs st...
Presentation disaster recovery for oracle fusion middleware with the zfs st...
 
Presentation differentiated virtualization for enterprise clouds, large and...
Presentation   differentiated virtualization for enterprise clouds, large and...Presentation   differentiated virtualization for enterprise clouds, large and...
Presentation differentiated virtualization for enterprise clouds, large and...
 
Presentation desktops for the cloud the view rollout
Presentation   desktops for the cloud the view rolloutPresentation   desktops for the cloud the view rollout
Presentation desktops for the cloud the view rollout
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

Presentation implementing oracle asm successfully

  • 1. HOWTO: Implementing Oracle ASM Successfully Alex Gorbachev 23 September, 2010 San Francisco, CA
  • 2. © 2009/2010 Pythian Alex Gorbachev • CTO, The Pythian Group • Blogger • OakTable Network member • Oracle ACE Director • BattleAgainstAnyGuess.com • President, Oracle RAC SIG 2
  • 3. © 2009/2010 Pythian Why Companies Trust Pythian • Recognized Leader: • Global industry-leader in remote database administration services and consulting for Oracle, Oracle Applications, MySQL and SQL Server • Work with over 150 multinational companies such as Forbes.com, Fox Interactive media, and MDS Inc. to help manage their complex IT deployments • Expertise: • One of the world’s largest concentrations of dedicated, full-time DBA expertise. • Global Reach & Scalability: • 24/7/365 global remote support for DBA and consulting, systems administration, special projects or emergency response 3
  • 4. © 2009/2010 Pythian Pre-ASM Oracle Storage 4
  • 5. © 2009/2010 Pythian Pre-ASM Oracle Storage • Too complex • 3rd party vendors • Additional licensing cost • Many groups involved • Storage engineers • SA’s • DBA’s • Loosing layout visibility 4
  • 6. © 2009/2010 Pythian Pre-ASM Oracle Storage • Too complex • 3rd party vendors • Additional licensing cost • Many groups involved • Storage engineers • SA’s • DBA’s • Loosing layout visibility • Too simple • Doesn’t scale • Not reliable • Not flexible 4
  • 7. © 2009/2010 Pythian Why ASM? • Simplify • Fewer vendors involved • Fewer layers • Move many operations under DBA umbrella • oh well, Storage Administrator role • Cost efficient • No need to license volume manager • Cheap storage boxes are good for ASM • Manageable 5
  • 8. © 2009/2010 Pythian ASM Basic Principles • Organizing Oracle files on physical disks • “Purpose-built file system” • Mirroring • reliability & failure tolerance • Striping • performance & scalability • Rebalancing • manageability 6
  • 9. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 10. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 11. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 12. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 13. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 14. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping 7
  • 15. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping file1 7
  • 16. © 2009/2010 Pythian ASM Striping • Extents and Allocation Units • Coarse striping & Fine striping • Random striping -> equal distribution • You cannot disable ASM striping file1 file2 7
  • 17. © 2009/2010 Pythian What’s the Best Hardware Striping for ASM? 8
  • 18. © 2009/2010 Pythian What’s the Best Hardware Striping for ASM? 8 Hardware striping RAID
  • 19. © 2009/2010 Pythian What’s the Best Hardware Striping for ASM? • Allocate disk spindles or partitions to ASM • 1 physical disk = 1 LUN = 1 ASM disk • Can mirror disks in RAID-1 • 2 x RAID-1 physical disks = 1 LUN • If you really have to use RAID... • Watch for striping conflicts • stripe width 640K & AU size 1MB = bad • Align AU with striping • 1 AU = stripe size • 1 AU = stripe width • Avoid RAID-5 8 Hardware striping RAID
  • 20. © 2009/2010 Pythian What’s the Best Hardware Striping for ASM? • Allocate disk spindles or partitions to ASM • 1 physical disk = 1 LUN = 1 ASM disk • Can mirror disks in RAID-1 • 2 x RAID-1 physical disks = 1 LUN • If you really have to use RAID... • Watch for striping conflicts • stripe width 640K & AU size 1MB = bad • Align AU with striping • 1 AU = stripe size • 1 AU = stripe width • Avoid RAID-5 8 Hardware striping RAID
  • 21. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 22. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 23. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 24. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 25. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 26. © 2009/2010 Pythian ASM Rebalancing • asm_power_limit - rebalancing speed • Async rebalancing in 11.2.0.2 • No auto-magic re-layout based on performance • You can force rebalancing for a DG • Intelligent Data Placement - Hot / Cold 9
  • 27. © 2009/2010 Pythian What’s the Best LUN Size for ASM? • All disks in the same DG should be sized equally • All disks in the same DG should perform the same • LUN size is the increment of adding space • Don’t make too big - harder to manage • Bug for 2+ TB disks • Size within 500GB-1TB is usually OK • Don’t make disks too small & too many disks • Don’t make DG more than few TB in 10g 10
  • 28. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 29. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 30. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 31. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 32. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 33. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 34. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 35. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 36. © 2009/2010 Pythian ASM Mirroring • Primary extent & mirror extent • Write is done to all extent copies • Read is done always from primary extent by default • Silent corruptions? • Use ASMCMD “remap” command • Intelligent Data Placement for secondary extents 11
  • 37. © 2009/2010 Pythian • Group of disks can fail at once • Mirror extents between failure groups • Beware of space provisioning • Beware of disk partnering (double disk failures) SAN 1 SAN 2 ASM Failure Groups 12
  • 38. © 2009/2010 Pythian • Group of disks can fail at once • Mirror extents between failure groups • Beware of space provisioning • Beware of disk partnering (double disk failures) SAN 1 ASM Failure Groups 12
  • 39. © 2009/2010 Pythian • Group of disks can fail at once • Mirror extents between failure groups • Beware of space provisioning • Beware of disk partnering (double disk failures) SAN 1 ASM Failure Groups 12
  • 40. © 2009/2010 Pythian ASM 10g issues • ASM upgrade requires full RAC outage • Fixed 1MB allocation unit • Overhead with multi-TB databases • Recovery from failure is inefficient • ASM Mirroring is not VLDB ready • Extended clusters read IO is inefficient • Limited FS functionality and tools 13
  • 41. © 2009/2010 Pythian ASM 11gR1 - variable extent size • 10g • 1 extent = 1 AU • 11g • 1-20,000 extents 1 extent = 1 AU • 20,001 - 40,000 1 extent = 8 AU’s • 40,001 - ... 1 extent = 64 AU’s • 1 TB = 1+ mil. extents • 1MB AU: • 1 TB = 53,572 extents • 64MB AU: • 1 TB = 16,384 extents • 100 TB = 66,788 extents 14
  • 42. © 2009/2010 Pythian ASM 11gR1 - recovery from failures • Fast Mirror Resync • OFFLINE disks • disk_repair_time attribute • ASM extent change tracking • Suitable for transient failures and maintenance • Fast Rebalancing in restricted mount • Normal rebalancing => many lock/unlock extent map • Restrict mode rebalancing => no locks • Restrict mounted DG => service outage
  • 43. © 2009/2010 Pythian ASM 11gR1 - Preferred Mirror Read • For extended clusters • Storage mirrored across 2 or 3 datacenters • 10g • Read is first done on primary extent • 11g • Preferred read failure groups (to local disks) • asm_preferred_read_failure_groups in init.ora
  • 44. © 2009/2010 Pythian ASM Instance • Special kind of Oracle instance • Clustered in RAC • Manages metadata • ASM disks and diskgroups • ASM extent map • Performs rebalancing • Must be started before database instance 17
  • 45. © 2009/2010 Pythian ASM Software Stack 18
  • 46. © 2009/2010 Pythian ASM Software Stack 18 Operating System
  • 47. © 2009/2010 Pythian ASM Software Stack 18 Operating System Multipathing
  • 48. © 2009/2010 Pythian ASM Software Stack 18 Operating System Multipathing Grid Infrastructure
  • 49. © 2009/2010 Pythian ASM Software Stack 18 Operating System Multipathing Grid Infrastructure ASM
  • 50. © 2009/2010 Pythian ASM Software Stack 18 Operating System Multipathing Grid Infrastructure ASM Database
  • 51. © 2009/2010 Pythian ASM Software Stack 18 Operating System Multipathing Grid Infrastructure ASM Database ASMKernelModules (ACFS)
  • 54. © 2009/2010 Pythian19 ASMLib? • Role of ASMLib • supposedly simplified discovery • covered by UDEV / dev mapper / MP • reduced number of open descriptors • Originally designed as API for storage vendors • ASMLib on Linux - reference implementation • ASMLib is useless in vast majority of deployments ASMLib
  • 55. © 2009/2010 Pythian ASM Layers 20 Diagram from Oracle whitepaper
  • 56. © 2009/2010 Pythian ASM Overhead? • ASM is not in the IO code path for Oracle Database • ASM only operates extent maps and disk headers • Database -> thousands IO’s per second vs ASM -> few IO’s per minute • Additional ASM instance - memory and processes but not much • Database instance keeps ASM extent maps in SGA • Mirroring generates additional write IO • ADVM - another layer • ACFS - yet another layer 21
  • 57. © 2009/2010 Pythian ASM Licensing • Prior to 11.2.0.2 - ASM is “free” • All ACFS features are part of “Oracle Cluster File System - Cloud Edition” as of 11.2.0.2 • Restricted use license for Oracle database files included with all database editions (SE/SE1/EE) • I.e. all ASM features for the database are still free • External-tables, DataPump exp/imp dumps, flat files for SQL Loader ?????? • Pricing is still not published 22
  • 58. © 2009/2010 Pythian How Many Diskgroups Do You Need? • It depends... • Use SAME (Stripe And Mirror Everything) • Start with 2 - DATA + FRA for all databases • Make conscious decision to split into more diskgroups • need to be very convincing • redo logs are often a candidate • tiered storage is an option • per database split (cold failover, database moves) 23
  • 59. © 2009/2010 Pythian DATA and FRA on the Shared Physical Disks? • YES if following SAME principles (maximize perf/util) • DATA on the outer tracks of disk and FRA on the inner tracks • Exadata is a typical example • NO if following resiliency & stability principles • Performance degradation • Exadata has IORM that prioritizes backup IO lower • Disk failure makes both database and backup corrupted 24
  • 60. © 2009/2010 Pythian ASM Implementation Checklist • Plan space and performance capacity (IOPS & MB/s) • AWR or Statspack • Write IO vs read IO • Redo, tempfiles, datafiles, etc • Create provisioning standards (DG naming, disk sizing) • Performance of each LUN and total (ORION is great) • Use OMF -- “We have standards” doesn’t cut it! • Don’t screw up multipathing • Very very careful with thin provisioning • Master RMAN • Use latest possible version 25
  • 61. © 2009/2010 Pythian ASM Implementation Checklist • Plan space and performance capacity (IOPS & MB/s) • AWR or Statspack • Write IO vs read IO • Redo, tempfiles, datafiles, etc • Create provisioning standards (DG naming, disk sizing) • Performance of each LUN and total (ORION is great) • Use OMF -- “We have standards” doesn’t cut it! • Don’t screw up multipathing • Very very careful with thin provisioning • Master RMAN • Use latest possible version 25
  • 62. © 2009/2010 Pythian Operational Support Checklist • Watch space usage • Watch performance of each LUN • Watch failed disks • Monitor ASM instance alert.log • Use REMAP regularly to check secondary extents • Consider a separate role for ASM management • Break the silos - bring ASM management to DBA team • Avoid rebalancing in critical hours • Every DBA and storage admin should practice failure handling 26
  • 63. © 2009/2010 Pythian What’s next? • Book draw • Leave me your cards or email+phone Q & A Email me - gorbachev@pythian.com Read my blog - http://www.pythian.com Follow me on Twitter - @AlexGorbachev Join Pythian fan club on Facebook & LinkedIn 27