Real Time Automatic Storage Management (ASM) Interview Questions and Answers PDF
• What Is Asm?
In Oracle Database 10g/11g there are two types of instances: database and ASM instances. The ASM instance, which is generally named +ASM, is started with the INSTANCE_TYPE=ASM init.ora parameter. This parameter, when set, signals the Oracle initialization routine to start an ASM instance and not a standard database instance. Unlike the standard database instance, the ASM instance contains no physical files; such as logfiles, controlfiles or datafiles, and only requires a few init.ora parameters for startup.
Upon startup, an ASM instance will spawn all the basic background processes, plus some new ones that are specific to the operation of ASM. The STARTUP clauses for ASM instances are similar to those for database instances. For example, RESTRICT prevents database instances from connecting to this ASM instance. NOMOUNT starts up an ASM instance without mounting any disk group. MOUNT option simply mounts all defined diskgroups For RAC configurations, the ASM SID is +ASMx instance, where x represents the instance number.
• What Are The Key Benefits Of Asm?
ASM provides filesystem and volume manager capabilities built into the Oracle database kernel. Withthis capability, ASM simplifies storage management tasks, such as creating/laying out databases and disk space management. Since ASM allows disk management to be done using familiar create/alter/drop SQL statements, DBAs do not need to learn a new skill set or make crucial decisions on provisioning.
The following are some key benefits of ASM:
o ASM spreads I/O evenly across all available disk drives to prevent hot spots and maximize performance.
o ASM eliminates the need for over provisioning and maximizes storage resource utilization facilitating database consolidation.
o Inherent large file support.
o Performs automatic online redistribution after the incremental addition or removal of storage capacity.
o Maintains redundant copies of data to provide high availability, or leverages 3rd party RAID functionality.
o Supports Oracle Database as well as Oracle Real Application Clusters (RAC).
o Capable of leveraging 3rd party multipathing technologies.
o For simplicity and easier migration to ASM, an Oracle database can contain ASM and non-ASM files.
o Any new files can be created as ASM files whilst existing files can also be migrated to ASM.
o RMAN commands enable non-ASM managed files to be relocated to an ASM disk group.
o Enterprise Manager Database Control or Grid Control can be used to manage ASM disk and file activities.
• Describe About Asm Architecture.?
Automatic Storage Management (ASM) instance. Instance that manages the diskgroup metadata
Disk Groups:
o Logcal grouping of disks
o Determines file mirroring options
ASM Disks:
o LUNs presented to ASM
ASM Files:
Files that are stored in ASM disk groups are called ASM files, this includes database files
Notes:
o Many databases can connect as clients to single ASM instances
o ASM instance name should only be +ASM only
o One diskgroup can serve many databases
• How Does Database Connects To Asm Instance?
The database communicates with ASM instance using the ASMB (umblicus process) process. Once the database obtains the necessary extents from extent map, all database IO going forward is processed through by the database processes, bypassing ASM. Thus we say ASM is not really in the IO path.
• What Init.ora Parameters Does A User Need To Configure For Asm Instances?
The default parameter settings work perfectly for ASM.
The only parameters needed for 11g ASM:
o PROCESSES*
o ASM_DISKSTRING*
o ASM_DISKGROUPS
o INSTANCE_TYPE
• How Does The Database Interact With The Asm Instance And How Do I Make Asm Go Faster?
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.
• Do I Need To Define The Rdbms Filesystemio_options Parameter When I Use Asm?
No. The RDBMS does I/O directly to the raw disk devices, the FILESYSTEMIO_OPTIONS parameter is only for filesystems.
• Why Oracle Recommends Two Disk Groups?
Oracle recommends two disk groups to provide a balance of manageability, utilization, and performance.
• We Have A 16 Tb Database. I’m Curious About The Number Of Disk Groups We Should Use; E.g. 1 Large Disk Group, A Couple Of Disk Groups, Or Otherwise?
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.
• We Have A New App And Don’t Know Our Access Pattern, But Assuming Mostly Sequential Access, What Size Would Be A Good Au Fit?
For 11g ASM/RDBMS it is recommended to use 4MB ASM AU for disk groups. See Metalink Note 810484.1
• Would It Be Better To Use Bigfile Tablespaces, Or Standard Tablespaces For Asm?
The use of Bigfile tablespaces has no bearing on ASM (or vice versa). In fact most database object related decisions are transparent to ASM.
• What Is The Best Lun Size For Asm?
There is no best size! In most cases the storage team will dictate to you based on their standardized LUN size. The ASM administrator merely has to communicate.
the ASM Best Practices and application characteristics to storage folks :
o Need equally sized / performance LUNs
o Minimum of 4 LUNs
o The capacity requirement
o The workload characteristic (random r/w, sequential r/w) & any response time SLA
Using this info , and their standards, the storage folks should build a nice LUN group set for you.
• In 11g Rac We Want To Separate Asm Admins From Dbas And Create Different Users And Groups. How Do We Set This Up?
For clarification:
o Separate Oracle Home for ASM and RDBMS.
o RDBMS instance connects to ASM using OSDBA group of the ASM instance.
o Thus, software owner for each RDBMS instance connecting to ASM must bea member of ASM's OSDBA group.
o Choose a different OSDBA group for ASM instance (asmdba) than forRDBMS instance (dba)
o In 11g, ASM administrator has to be member of a separate SYSASM group toseparate ASM Admin and DBAs.
• Can My Rdbms And Asm Instances Run Different Versions?
Yes. ASM can be at a higher version or at lower version than its client databases. There’s two
o -components of compatiblity
o -Software compatibility
Diskgroup compatibility attributes:
o compatible.asm
o compatible.rdbms
• Where Do I Run My Database Listener From; I.e., Asm Home Or Db Home?
It is recommended to run the listener from the ASM HOME. This is particularly important for RAC env, since the listener is a node-level resource. In this config, you can create additional [user] listeners from the database homes as needed.
• How Do I Backup My Asm Instance?
Not applicable! ASM has no files to backup, as its does not contain controlfile,redo logs etc.
• When Should I Use Rman And When Should I Use Asmcmd Copy?
RMAN is the recommended and most complete and flexible method to backup and transport database files in ASM.
ASMCMD copy is good for copying single files:
o Supports all Oracle file types
o • Can be used to instantiate a Data Guard environment
o • Does not update the controlfile
o • Does not create OMF files
• I’m Going To Do Add Disks To My Asm Diskgroup, How Long Will This Rebalance Take?
Rebalance time is heavily driven by the three items
1. Amount of data currently in the diskgroup
2. IO bandwidth available on the server
3. ASM_POWER_LIMIT or Rebalance Power Level
• We Are Migrating To A New Storage Array. How Do I Move My Asm Database From Storage A To Storage B?
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.
Note 428681.1 covers how to move OCR/Voting disks to the new storage array
• Is It Possible To Unplug An Asm Disk Group From One Platform And Plug Into A Server On Another Platform (for Example, From Solaris To Linux)?
No. Cross-platform disk group migration not supported. To move datafiles between endian-ness platforms, you need to use XTTS, Datapump or Streams.
• How Does Asm Work With Multipathing Software?
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.
• Is Asm Constantly Rebalancing To Manage “hot Spots”?
No, ASM provides even distribution of extents across all disks in a disk group. Since each disk will equal number of extents, no single disk will be hotter than another. Thus the answer NO, ASM does not dynamically move hot spots, because hot spots simply do not occur in ASM configurations. Rebalance only occurs on storage configuration changes (e.g. add, drop, or resize disks).
• What Are The File Types That Asm Support And Keep In Disk Groups?
Control files:
o Flashback logs
o Data Pump dump sets
Data files:
o DB SPFILE
o Data Guard configuration
Temporary data files:
o RMAN backup sets
o Change tracking bitmaps
Online redo logs:
o RMAN data file copies
o OCR files
Archive logs:
o Transport data files
o ASM SPFILE
• List Key Benefits Of Asm?
o Stripes files rather than logical volumes
o Provides redundancy on a file basis
o Enables online disk reconfiguration and dynamic rebalancing
o Reduces the time significantly to resynchronize a transient failure by tracking changes while disk is offline
o Provides adjustable rebalancing speed
o Is cluster-aware
o Supports reading from mirrored copy instead of primary copy for extended clusters
o Is automatically installed as part of the Grid Infrastructure
• What Is Asm Striping?
o ASM can use variable size data extents to support larger files, reduce memory requirements, and improve performance.
o Each data extent resides on an individual disk.
o Data extents consist of one or more allocation units.
The data extent size is:
o Equal to AU for the first 20,000 extents (0–19999)
o Equal to 4 × AU for the next 20,000 extents (20000–39999)
o Equal to 16 × AU for extents above 40,000
ASM stripes files using extents with a coarse method for load balancing or a fine method to reduce latency.
o Coarse-grained striping is always equal to the effective AU size.
o Fine-grained striping is always equal to 128 KB.
• How Many Asm Disk Groups Can Be Created Under One Asm Instance?
ASM imposed the following limits:
o 63 disk groups in a storage system
o 10,000 ASM disks in a storage system
o Two-terabyte maximum storage for each ASM disk (non-Exadata)
o Four-petabyte maximum storage for each ASM disk (Exadata)
o 40-exabyte maximum storage for each storage system
o 1 million files for each disk group
ASM file size limits (database limit is 128 TB):
6. External redundancy maximum file size is 140 PB.
7. Normal redundancy maximum file size is 42 PB.
8. High redundancy maximum file size is 15 PB.
• What Is A Diskgroup?
A disk group consists of multiple disks and is the fundamental object that ASM manages. Each disk group contains the metadata that is required for the management of space in the disk group. The ASM instance manages the metadata about the files in a Disk Group in the same way that a file system manages metadata about its files. However, the vast majority of I/O operations do not pass through the ASM instance. In a moment we will look at how file I/O works with respect to the ASM instance.
• Can My Disks In A Diskgroup Can Be Varied Size? For Example One Disk Is Of 100gb And Another Disk Is Of 50gb. If So How Does Asm Manage The Extents?
Yes, disk sizes can be varied, Oracle ASM will manage data efficiently and intelligent by placing the extents proportional to the size of the disk in the disk group, bigger diskgroups have more extents than lesser ones.
No comments:
Post a Comment