Está en la página 1de 22

Configuring Exa.

data and
administer ASM: on Exadata

Gaurav Chandra Pandey 1


AIOUG Bangalore Chapter
20th Dec 2015
_,

Agenda

ASM Revisit
Exadata Architecture
Configure Cell, Celldisk and Griddisk
Session 1 Revisit
Exada. ta XS-2(2-socket)/XS-8(8-socket)
Exadata XS Storage Server (High Capacity/Extreme Flash)
4 x 1.6 iB FJash Accelerator Fl60 PCle Card b.4Td)
12 x 3.5.. 8TB SAS drives - 96 TB Ra Capacity
or
8 x 1.6 TB 2.5-inch Flash Accelerator F160 PCle Orives (12 8Te)
Exadata Configurations (Fu1: 1/Half/Quarter/One-Eight/Elastic)
Key Features overview
M:anage Exadata using EM 12c

4
ASM Revisit
1:n Oracle lOgRl, Oracle introduced ASM.
1.s a volume manager and1 file1 system for Oracle d
, atabase files
Supports both single instance and RAC instances
U1ses disk groups to store datafiles
Diskgroups are collecti:on, of disks.
Three different mirroring levels
Normal for 2 way mirroring
Hlgh for 3 way mlrroring
External to not use ASM mirrorlng
,

Exa ata
fl rchitectu re

6
Exadata Architecture
08 S.rvor OB S.rvor


lnstnce lnmnce ln.stance
DBRM ---_.....- DBRM DBRM
ASM
. -
ASM
.--
r
--L.
1
i1

.... .. '
Storage Server Storage Server Storge Server
C..Co,crd celJsrv cellsrv
tu
:
:11:11/d.tli)
ms rs ms rs

Exadata Configuration Files


The data base server host must be configured with the cellinit.ora and
the cellip.ora files to use the cell.
Configuration files are located in /etc/oracle/cell/network-config
directory
Cell1n1t.ora
contains database IP addresses.
contents are specific to a dartabase serve,
Cellip.ora
contans the storage cell lP addresses
contents are same on all database servers
Both files are located on the database server host

Note : Oo not cdt the ccll n,t.or-. o, celllp or ftlel wh n the d oib $e or Oreele ASM l'\$!anc ere runn1
.J
E

Ce// to fl

o
.J
r:
Exadata Storage Layout

Storage server also known as cell. Storagt C411

Each cell has 12 physical disks each.


Each cell disk repres-ents a physical disk and a
lU1 N
Cell disk can be partitioned and each partition,
known as grid disk.
Physlcal Disk Oisk Grid Disk
Each grid disk can be assigned
: to ASM Diskgroup. :! Cell Disk
Gr'oup
t

Exadata Cell Disk Relationships


- ,eeu Oislt
Grid Oisks
__....,. Assfgf\ed to
ASM

Data
Storace Gnd
Partrt1on Disk

Cell V1 lO
D1k A",M

LUN

Exadata Cell
1
_,
E

Configure Celldisk

Use the CREATE CELLDISK command to create the cell disks


The cell disks are created with names in the form
CD- lun/D-cellname
lun/D is ID att11butt- of LUN
ce/lnome is tht- name attribute of the cell

e llCLl> CRP..ATf! e U.DIALL


e ll01k co_oo_c 1101 ucc !ullv cr t
e 1101s CD_Ol_c 1101 ucc a fully cr
e 1101. co_o2_c 1101 uccafully cr t

llOlsk CC_lO_c 1101 eucc asfully cr t
e 11D1k cn_11_c 1101 ucc-fully er t
Configure Griddisk
Use the CREATE GRIDDISK command to
,create the grid disks.
Al HARODISK PRE IX option creates one
grid disk on each cell disk of the st, orage cell
Oracle ASM disk group name is used with
PREFIX to identify which grid disk belongs to
the disk group
Grid disk names must be unique across all
cells within a single deploym.ent
Grid disk names are composed of the grid
disk prefix followed by an underscore U
and then the cell disk name in the following
form:
gd;sk_name_pref,x_cdisk_name
Configure Celldisk

Use the CREATE CELLDISK command to create the cell disks


The cell disks are created with na mes in the form
CD-Jun/D-cellname
/un/O is ID att11bute of LUN

cellnome is the name attribute of the cell

e l lCLl> CRF.ATC e t.LDISY. ALL


e ll01ak co_oo_c 1101 auee fully er t
e 1101s CO_Ol_e 1101 uec afully cr t
e 1101. co_o2_e 1101 ucesafully er t
...
llOlak CO_lO_c 1101 BUCC aa{ully er t
e 1101ek CD_ll_c 1101 ucc ofully er t
Configure Griddisk
Use the CREA E GRIDDISK command to C. lC.b CR&A Clll 1t .r.u,, PPODl
Crid:lialt data_ctl OG cell 1 -=--!u
PS!UlX
ly =-tMS
ls )

,create the grid disks. ..,,...,.., .- a.-.


, -,-.1 ll
lt _,,,._.,1,_y4:,.11
f
___ ,
y r.,.,,""
ly " .,
Al HARODISI\ PREF IX option creates one

-
grid disk on each cell disk of the sto
, rage cell lll x 1:a ,
.et
Oracle ASM disk group name is used with
PREFIX to identify which grid disk belongs to ... .et

the disk group __ , )' - ed

Grid disk names must be uncque across all 11

cells within a single deployment


Grid disk names are composed of the grid . . ,,.
disk prefix followed by an underscore U
and tihen the cell disk name in the following
form:
n u
gdislc_name_prefix_cdisk_name
LIST GRIOOISK command shows the grid
disks that are created
lnterleaved Grid Disks
Gnd Disk A Gnd Disk C
Fastt..it T ks Fast Traro fastcst Traro Slow r ifraoo

Grid Dis'k A beneflts from


the hlgher performance
outer tracks of the disk
S rTrad:s Slowest Tr dts Fest Tr d:s Slo'lteSt Tt'IKb
Grid Disk B Grid Disk O
'
_1

Configure Flash
F1ash i----1 LUN i----t CiLLOISK ......,_ GRIODISK t----1 ASM disk
OR

Flash LUN CellDisk


V, ble'
ASM

Exadata Cell Grid Disk



Configure Flash
By default, the CREATE CELL command creates flash cell disks on all
flash disks, and then creates Exadata Smart Flash Cache on the flash
cell disks.
Use the CREATE GRIDDISK ALL FLASHDISK PREFIX='FLASH' comman1d
to create the flash disks on flash
Use the CREATE FLASHCACHE command to cr,eate flash cache
To change the size of Smart Flash Cache
drop the flashcache
create the flashcac;he with new size or
optionalty create flash based grid disks.

1 Cellc:t.l>
1
Administer ASM on Exadata
Creating Disk Group
Exadata cell discovery string o/cell_lpaddress/griddisk_name
SQL> CREATE 0ISKGROUP data
ceU_IPoddrns as the IP address o Oracle Exadata Storage Server, and
gndd,sk_nom, is the name of lhe a,1d dsk NORMAL REDUNDANCY DISK
11 d1very stnnes a1n Wlth the o/ 'o/ /DATA_
ATTRIBUTE 'AU_SIZE' '4M',
Can not include conventional storage to get Exadata Storage
'cell.sman_5CGn_capable'-'TRUE',
features. 'compatibl.rdbms' = '12.1.0.2',
name of the grid disk should cantain the cell disk name to make 'compattbl.asm' = 12.1.0.2";
t easier to determine which gdd dist<s betong to a cell disk.
a subset of the grid disk name should match all or part of the
name of the Oracle ASM disk g,roup
Verify that the tablespace is in an Oracle Exadata Storage Server
disk group
P1'1'.0tCAlt EVAI.UATION ilumn ol TBw:w lrdctn lr.a:l's .e
ewliwfd I, host CH()SlI Of b (5if0AAGl)
ASM Failure Group Configurations
Normal Redundancy- tolerate.s a single storage server failure or multiple falures within
the sa me storage server

H igh Redundancy- toterates two storage server fallures or muttiple failures confned to
two storage servers.

Exadata Cell f.>Qdata Cell


------------------Q,-------------.
Adding a Disk to Disk Group

Determine the disks which are available by querying the V$ASM_DISK view.
SQ '> SE:Lt-Cl PATn, he1der_statu$ STAlUS ROM VAS"'1_DISK WHERE path K of'u,
header status CANOIOATE can be added
Use ALTER DISKGROUP command with the AOD DISK clause to add the disk
to the Oracle ASM disk group
SQL> ALTER OISKGROUP disk_group_name AOO DISK 'o/cell_lPaddress/data;
Oracle ASM rebalances the disk group
Query the V$ASM_OPERATION view for the status of the rebalance
operation
_,

Changing the disk to offline/online

Determine the disk which you want to offl'ine or online by querying


the V$ASM-DISK and V$AS,M-DISKGROUP
To 1make a disk inactive, use the following com1mand:
CellCU> ALTER GRIOOISK gdsk INACTIVE

To ;make a disk active, use t,he following command:


CellCU> ALTER GRIOOISK gdlsk ACTIVE

As soon as the disk is on


, line, the disk group ts rebalanced
_1

Changing the disk to offline/online

Determine the disk which you want to offHne or online by querying


the V$ ASM-DISK and V$ AS, M-DISKGROUP
To make
a disk inactive, use th.e following comm
i and:
CellCLI> ALTER GRIOOISK gdisk INACTIVf

To 1make a disk active, use the following command:


CIICU> ALTER GRIOOISK gdlsk ACTIVE

As soon as the disk is o,nJine, the disk gr,o u


, p is rebalanced