ASM Provides Striping and Mirroring.: 1. What Is The Use of ASM (Or) Why Is ASM Preferred Over File System?
ASM Provides Striping and Mirroring.: 1. What Is The Use of ASM (Or) Why Is ASM Preferred Over File System?
ASM Provides Striping and Mirroring.: 1. What Is The Use of ASM (Or) Why Is ASM Preferred Over File System?
What is the use of ASM (or) Why is ASM preferred over file system?
ASM striping is the process of dividing a file into 1 MB extents and spreading the extents
evenly across all disks in the disk group
ASM provides automatic mirroring of ASM files and allows the mirroring level to be
specified by group. This mirroring occurs at the extent level. If a disk group is mirrored, each
extent has one or more mirrored copies, and mirrored copies are always kept on different
disks in the disk group.
There are three ASM mirroring options:
Normal redundancy (Two-way mirroring) - Each extent has one mirrored copy in this option
High redundancy (Three-way mirroring) - Each extent has two mirrored copies in this option.
External redundancy(Unprotected mirroring) - ASM provides no mirroring in this option,
which is used when mirroring is provided by the disk subsystem.
3. Where ASM pfile will be stored?
ASM pfile normally will be located in GRID_HOME/dbs and it contains location of spfile
which in ASM disk groups.
we can store CRD files, archivelog files, spfile, rman backup files, flashback logs in ASM
re-balancing is process of striping, when ever disk is added or removed to ASM diskgroup
asm will start rebalancing data accross all disks. if you add disk, rebalancing will take some
data from all the disks and store into new disk so that all disks in ASM diskgroup will fill
equally.
Yes, we can copy files from ASM using cp commands in ASMCMD command prompt.
Normal redundancy - for 2-way mirroring, requiring two failure groups, when ASM
allocates an extent for a normal redundancy file, ASM allocates a primary copy and a
secondary copy. ASM chooses the disk on which to store the secondary copy in a different
failure group other than the primary copy.
High redundancy - for 3-way mirroring, requiring three failure groups, in this case,
the extent is mirrored across 3 disks.
External redundancy - to not use ASM mirroring. This is used if you are using
hardware mirroring or third-party redundancy mechanisms like RAID, Storage arrays.
5. When you will use external redundancy and what are the advantages of it?
Answer :
7. How to find out the databases, which are using the ASM instance?
Answer :
ASMCMD> lsct
SQL> select DB_NAME from V$ASM_CLIENT;
8. What are the different types of stripings in ASM & their differences?
Answer:
Fine-grained striping
Coarse-grained striping
9. What happens if you miss "+" sign while adding datafile in ASM diskgroup ?
Answer :
10. What is the allocation unit and what is the default value of au_size and how to change it?
Answer:
Every ASM disk is divided into allocation units (AU). An AU is the fundamental unit of
allocation within a disk group. A file extent consists of one or more AU. An ASM file
consists of one or more file extents.
CREATE DISKGROUP disk_group_2 EXTERNAL REDUNDANCY DISK '/dev/sde1'
ATRRIBUTE 'au_size' = '32M';
lsdg
select NAME,ALLOCATION_UNIT_SIZE from v$asm_diskgroup;
11. What are the background processes in ASM?
Answer:
ASMB - This ASMB process is used to provide information to and from cluster
synchronization services used by ASM to manage the disk resources. It's also used to update
statistics and provide a heartbeat mechanism.
RBAL, Re-Balance - RBAL is the ASM related process that performs rebalancing of
disk resources controlled by ASM.
ARBx, Actual Rebalance - ARBx is configured by ASM_POWER_LIMIT, a slave
for rebalancing operations.
13. How to dismount the ASM disk group from a particular instance in RAC?
Answer :
Answer:
ALTER DISKGROUP data1 ADD DISK '/devices/diska5';
ALTER DISKGROUP disk_group_1 DROP DISK diska2;