Академический Документы
Профессиональный Документы
Культура Документы
Top 10 Things You Always Wanted to Know About Automatic Storage Management Nitin Vengurlekar But Were Afraid to Ask RAC/ASM Engineering Grid Product Strategy
Agenda
ASM Overview 2 minute tour Top Ten Questions
ASM Architecture ASM Configuration & Performance Backups ACFS Migration 3rd Party Software
<Insert Picture Here>
Summary
Disk Groups
Logical grouping of disks Determines file mirroring options
ASM Disks
LUNs presented to ASM
ASM Files
Files that are stored in ASM disk groups are called ASM files, this includes database files
ASM Architecture
A Brief Overview
Oracle DB Instance
ASM Instance
Pool of Storage
Disk Group
Disk Group
Database
Database
Database
Disk Group
Disk Group
A. The default parameter settings work perfectly for ASM. The only parameters needed for 11g ASM:
PROCESSES ASM_DISKSTRING* ASM_DISKGROUPS* INSTANCE_TYPE*
A. ASM is not in the I/O path so ASM does not impede the database file access. Since the RDBMS instance is performing raw I/O, the I/O is as fast as possible.
(1A) OPEN
(1B) Extent Map
ASM
(3A) CREATE
(3C) Extent Map
(2A) READ
(3D) Commit
Operating System
A. No. The RDBMS does I/O directly to the raw disk devices, the FILESYSTEMIO_OPTIONS parameter is only for filesystems.
Striped COARSE
Sys Y
Name REGISTRY.255.718984285
ASMCMD> lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 4096 1048576 203824 193028 0 193028 0 Y DATA/
CSS
1. Get ASM disk string
GPnP
OHASD
Agents starts GPnP, CSS and ASM
CRS
A. Yes. ASM is now part of Grid Infrastructure, which includes, Clusterware, ASM and ACFS. So youll to Install GI to use ASM
In 11gR2 there are two options for install GI for Standalone Server (aka Oracle Restart) and GI for Clusterware
A. For VLDBs you will probably end up with different storage tiers; e.g with some of our large customers they have Tier1 (RAID10 FC), Tier2 (RAID5 FC), Tier3 (SATA), etc. Each one of these is mapped to a diskgroup.
A. Yes. But since ASM is now part of GI stack, it must be at the highest version. Keep in mind, theres two components of compatibility:
Software compatibility Diskgroup compatibility attributes: compatible.asm compatible.rdbms
ASMCMD Copy
ASMCMD> ls +fra/dumpsets/expdp_5_5.dat ASMCMD> cp expdp_5_5.dat sys@rac1.orcl1:+DATA/dumpsets/ex pdp_5_5.dat source +fra/dumpsets/expdp_5_5.dat target +DATA/dumpsets/expdp_5_5.dat copying file(s)... file, +DATA/dumpsets/expdp_5_5.dat, copy committed.
A. Given that the new and old storage are both visible to ASM, simply add the new disks to the ASM disk group and drop the old disks. ASM rebalance will migrate data online. For pre-11gR2, See Note 428681.1, which covers how to move OCR/Voting disks to the new storage array
ASM Rebalancing
Automatic online rebalance whenever storage configuration changes Only move data proportional to storage added No need for manual I/O tuning
ASM Rebalancing
Automatic online rebalance whenever storage configuration changes Online migration to new storage
ASM Rebalancing
Automatic online rebalance whenever storage configuration changes Online migration to new storage
ASM Rebalancing
Automatic online rebalance whenever storage configuration changes Online migration to new storage
ASM Rebalancing
Automatic online rebalance whenever storage configuration changes Online migration to new storage
A. No. Cross-platform disk group migration not supported. To move datafiles between endian-ness platforms, you need to use XTTS, Datapump or Streams.
ASM Files
Dynamic Volumes
46
Accessible through NAS protocols (NFS, CIFS) Leverages ASM technology Integrated with Oracle Clusterware for cluster support Multi OS platform (Linux and Windows at initial release) Integrated with Oracle system mgt tools
Oracle installation and configuration Enterprise Manager and ASM Storage mgt tools Native OS File System Management tools
47
ACFS Features
Provides filesystem snapshots (FCOW) File system integrity and fast recovery via ACFS metadata checksums and journaling. ACFS designed as a peer to peer, multi-node, shared file system model and delivers coherent data access ACFS file system is installed as a dynamically loadable OS VFS driver
Starting with RHEL5, Redhat now supports a 'white list' kernel APIs which they commit they will not change in updates or patches. APIs used by ACFS-ADVM were added to their 'white list'. Customers should be able to install an update or patch to the kernel and our drivers should not be impacted
48
A. No. Currently we will not support database file to be stored in ACFS. This is due to performance reasons. Though you can do this in test/Q&A environments where performance is not essential
A. Yes. ACFS is POSIX compliant filesystem, and thus can store any file data type (besides database files )
A. Yes. ACFS Replication will be introduced in the next patchset release. Other advanced features are part of the roadmap.
A. It works great! Multipathing software is at a layer lower than ASM, and thus is transparent. You may need to adjust ASM_DISKSTRING to specify only the path to the multipathing pseudo devices.
/dev/sda1
/dev/sdb1
IO cloud
Controller
A. NoNoNope!!
I/O Distribution
Average IOPS per disk during OLTP w orkload FG1: - cciss/c0d2 FG1: - cciss/c0d3 300 FG1: - cciss/c0d4 FG1: - cciss/c0d5 FG1: - cciss/c0d6 250 FG2: - cciss/c0d2 FG2: - cciss/c0d3 200 IOPS FG2: - cciss/c0d4 FG2: - cciss/c0d5 150 FG2: - cciss/c0d6 FG3: - cciss/c0d2 100 FG3: - cciss/c0d3 FG3: - cciss/c0d4 50 FG3: - cciss/c0d5 FG3: - cciss/c0d6 FG4: - cciss/c0d2 0 Total Disk FG4: - cciss/c0d3 FG4: - cciss/c0d4 FG4: - cciss/c0d5 FG4: - cciss/c0d6
ASM spreads file extents evenly across all disks in disk group
Since ASM distributes extents evenly, there are no hot spots
Summary:
ASM requires very few parameters to run ASM based databases inherently leverage raw disk performance No additional database parameters needed to support ASM Mixed ASM-database version support Facilitates online storage changes RMAN recommended for backing up ASM based databases Spreads I/O evenly across all disks to maximize performance and eliminates hot spots
ASM 11g New Features ASM Best Practices ASM vendor papers ASM-RAC Customer Case Studies
A. ASMLIB is not required to run ASM, but it is certainly recommended. ASMLIB has following benefits:
Simplified disk discovery Persistent disk names Efficient use of system resources
A. ASMLIB is independent of Oracle Clusterware and Oracle Database, and thus can be upgraded on its own