Bare Bones ASM: What Every DBA Needs To Know
Bare Bones ASM: What Every DBA Needs To Know
Topics
Largest Healthcare IS Company Oracle Solutions Partner McKesson Clinicals Applications 17 Applications Suites Meds Manager ER Billing/Revenue Management Nursing NICU/PICU
About Me
Oracle DBA for 20 years Senior Engineering DBA and Oracle Infrastructure Architect for McKesson Provider Technologies Administered Oracle from v5.1 11g
Starting disk space per installation: 400GB+ Growth 20%30% year over year
Why ASM
What is ASM?
Replaces conventional file systems and volume managers
Capacity on demand
Add/drop disks online
Automatic mirroring
Automatic Storage Management
ASM - Setup
Install in own Oracle Home
Determine redundancy/mirroring
Determine LUN/Disk size Partition devices
The mini-cluster
The Oracle Cluster Synchronization Services Daemon is required for ASM even for a single (non-RAC) database
Used for communication between ASM and database instances Root.sh will create an entry in /etc/inittab to respawn cssd
ASMlib
Defines disk/luns for use with ASM --------------------------------
---- ----------- -------------- Only available on Linux --------------asm_diskgroups service oracleasm string DGROUP1 asm_diskstring /dev/oracleasm string ORCL:VOL*
init+ASM.ora
Only one ASM instance per node
----------------------------------- ----------*.asm_diskgroups=DATA' ----------------------------*.asm_diskstring='ORCL:* -- linux *.asm_diskstring=/dev/asm_disk* -- unix asm_diskgroups *.asm_diskstring=/dev/c0t1d1* unix string DGROUP1 *.asm_diskstring=/dev/sda1 asm_diskstring *.instance_type='asm' string ORCL:VOL*
Diskgroups
Diskgroups are the logical storage units for ASM
Often, two diskgroups are created, one for tablespace and another for FRA
Redundancy
Normal
the default two way mirroring, each stripe is written to two extents three way mirroring each stripe written to one primary and two mirrored extents
High
Failgroups
Failgroups cannot be removed without recreating the diskgroup. If one failgroup is lost or offline for a period of time, it will be re-synced when available again Fail groups should be across different controllers or SANs
ASMCMD
Grid Control / Database Control SRVCTL RAC only
Drop a diskgroup
DROP DISKGROUP dgroup1;
Rebalancing
Redistribution only occurs when adding or dropping disk
Caveats
If ASM goes down, all instance that use ASM will immediately crash. Normal or high redundancy may not show the actual disk use Databases can remain unnoticed if not dropped Loss of a disk (when using external redundancy) will result in the loss of the diskgroup
Database RAC
Application
3rd Party FS
ASM Files
Dynamic Volumes
ASM
Disk Group
DB Datafiles DB Datafiles DB Datafiles
OCR & Voting files
ACFS FS Oracle Bin 3rd Party FS
`
SOA IMDB OC4J APACHE
Siebel Web
DW ODS
DB Datafiles
New in 11gR2
ASM part of the clusterware
ACFS
ASMCA, ASMCMD RAC - OCR/Voting disks in ASM Diskgroup rename
Recommended Reading
More information
Personal: www.grumpy-dba.com