Asm 2
Asm 2
ls -ltr /u01/app/11.2.0/grid/bin/oracle
ASM -
is an instance with out database.
connected with /as sysasm
using grid home
+ASM1
+ASM2
ASM Architecture
----------------
ASM is an instance , but not a database.
will have separate SGA and set of bg processes.
ASMB
RBAL
ARBn
GMON
MARK
PMON,SMON
ARBn
performs the actual rebalance data extent movements in an Automatic Storage
Management instance. There can be many of these processes running at a time, named
ARB0, ARB1, and so on.
ASMB runs in a database instance that is using an ASM disk group. ASMB
communicates with the ASM instance, managing storage and providing statistics. ASMB
can also run in the ASM instance. ASMB runs in ASM instances when the ASMCMD cp
command runs or when the database instance first starts if the SPFILE is stored in
ASM.
MARK marks ASM allocation units as stale following a missed write to an offline
disk. This essentially tracks which extents require resync for offline disks.
RBAL runs in both database and ASM instances. In the database instance, it does
a global open of ASM disks. In an ASM instance, it also coordinates rebalance
activity for disk groups.
Parameters :
----------
cluster_database=true
instance_type=ASM ( in database will find rdbms) - default
instance_name=+ASM1
ASM_POWER_LIMIT=1-11(from 12c - upto 1024) - to adjust rebalancing speed.
ASM_DISKGROUPS - DATA,FRA (default null)
ASM_DISKSTRING - ORCL:DISK1,ORCL:disk2( defa null - purpose to
discover/search for faster perf while instance startup)
DB_UNIQUE_NAME -
processes=35
memory_target=
memory_max_target=
INSTANCE_TYPE - Set to ASM or RDBMS depending on the instance type. The default is
RDBMS.
DB_UNIQUE_NAME - Specifies a globally unique name for the database. This defaults
to +ASM but must be altered if you intend to run multiple ASM instances.
ASM_DISKGROUPS - The list of disk groups that should be mounted by an ASM instance
during instance startup, or by the ALTER DISKGROUP ALL MOUNT statement. ASM
configuration changes are automatically reflected in this parameter.
ASM_DISKSTRING - Specifies a value that can be used to limit the disks considered
for discovery. Altering the default value may improve the speed of disk group mount
time and the speed of adding a disk to a disk group. Changing the parameter to a
value which prevents the discovery of already mounted disks results in an error.
The default value is NULL allowing all suitable disks to be considered.
Tool :
Finding instance status from gv$instance of every node from one single node of any.
select inst_id,instance_name,status from gv$instance;
------------------------------
asmca - configuration assistant
asmcmd (ASM file system - command mode)
$. grid_env
$asmcmd
asmcmd>
ls
cd
lsdg
du
mkdir
pwd
ARBn
ASMB
RBAL
GMON
MARK
Tools - ASM
-----------
asmca - automatic storage mgt configuration assistant
asmcmd - asm command line
About asmcmd
------------
$. grid_env
$asmcmd
$ascmd> ( this is the command line asm prompt )
where we can use few unix commands for asm storage)
#xhost +
$su - oracle
$. grid_env
$asmca
Diskgroup is a logical name associated with one or more physical asm disks.
eg: DATA - DISK1 - Can store ocr,votedisk,datafiles,redo,ctl.
FRA - DISK2 - can store archives,rman backup sets,redo,ctl
FAST Recovery Area
DATA
FRA
OCRVOTE - If multiplexed - store ocr files.