asm on windows jul2015

Upload: baban-chakraborty

Post on 25-Feb-2018

238 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 ASM on Windows Jul2015

    1/29

    How to create ASM diskgroups on Windows

    Software Used:

    Sl. No. Component Product Used

    1 Software for ASM creation Oracle Grid Infrastructure 11.2.0.4 for Windows

    64-bit (fro Oracle !atc" 1##$06%%&

    2 O!eratin' Sste Windows Ser)er 200*+2 ,nter!rise ,diton 64

    # est ,n)ironent /ro)ision Oracle M irtualbo .0.0 r101%#

    Purpose of document:

    "e !ur!ose of t"is docuent is to enable an adinistrator to !ro)ide for Oracle ASM ared stora'e on a Windows

    Ser)er sste usin' onl Oracle software and its local diss. 3orall Oracle ASM (Autoatic Stora'e

    Mana'eent& s"ould be confi'ured on clustered stora'e sstes e'. SA35 "owe)er an ties ASM is needed

    wit"out t"e a)ailabilit of a SA3. "is et"od can be used in suc" cases.

    "is docuent was created in res!onse to a client reuireent for Oracle Maiu A)ailabilit Arc"itecture !lan onWindows Ser)er200*+2 usin' 11'+2 7 a !lan in)ol)in' a 2-node +A8 !riar database and a sin'le node !"sical

    standb confi'ured )ia Oracle 9ata'uard !rinci!les.

    As !riar +A8 will be in ASM "ence a siilar stora'e confi'uration is needed at standb end.

    Process Outline:

    "e followin' ste!s are in)ol)ed in t"is !rocess.

    (A& 3ew stora'e edia setu! on ac"ine

    (:& ;orattin' t"e stora'e

    (8& Sta!in' diss for ASM(9& Installin' and 8onfi'urin' Grid Infrastructure

    (,& 8reatin' Additional ASM dis'rou!s.

    (;& Status 8"ec

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    2/29

    A! New storage media setup on mac"ine

    In case of a !"sical ac"ine t"e stora'e will alread be !resent and t"e adinistrators "a)e to be notified to forat

    t"e dis and create !artitions accordin'l. >ere since we are testin' in a )irtual en)ironent5 we?ll add etra diss.

    1& Add new @"ard dis stora'e to t"e eistin' M.

    2& Select @8reate 3ew 9is to add ore diss.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    3/29

    #& ;ro t"e !o!u! enu select a dis of t"e sae t!e as t"e eistin' )irtual dis files. >ere @M9B

    is c"osen as t"e M ori'inall "as a M9B dis.

    4& 8"oose a "ard dis of @;ied SiCe because e!ansion of t"e Oracle ASM ana'ed )irtual edia

    a not cause actual e!ansion of dis file5 "ence we alread allocate t"e full s!ace

    to t"e )irtual "ard dis.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    4/29

    & ,nter !at" for M9B file and reuired siCe and clic on @8reate to create t"e irtual 9is.

    6& After +euired 9is Addition we now "a)e a ac"ine wit" # local diss (3ot inde!endentD!ersistent&

    9is 0 E 9efault (40 G:&

    9is 1 E ;or

  • 7/25/2019 ASM on Windows Jul2015

    5/29

    #! $ormatting t"e storage

    We now "a)e # diss attac"ed to t"e /8. One dis w"ic" contains t"e OS will be left undisturbed.

    Alt"ou'" )ia t"e o!tion @S"rin olue fro t"e in-built 9is Mana'eent ool of Windows (diskmgmt.msc& we

    can e)en use t"at5 but it is best not to.

    >ere we s"all forat t"e diss to create one dis wit" solel +AW forat and anot"er dis

    to "a)e 3;S forattin' F +AW content.

    ASM can be set u! o)er +AW edia but if soeone also needs !art of a dis for additional local stora'e5 soefilesste forattin' on t"e reainder of t"e dis s!ace will be needed. "is is w" t"e followin' acti)it is done

    ain' one of t"e tar'et diss "a)e +AW area as well as a filesste (3;S& area.

    "e coand line diskpartutilit and t"e GI based (and si!ler& %isk Management Utilit&!resent in t"e

    Windows Ser)er 200*+2 OS are used in t"e forattin' acti)it.

    '! Using (diskpart) to format a disk for t"e OC*+,oting %isk.

    In 11'+2 t"e Oracle 8luster +e'istr and t"e otin' 9is data are stored in ASM dis'rou! b default.

    We?ll forat t"e G: "ard dis to be a full +AW de)ice for t"is !ur!ose.

    (a& O!en t"e diskparttilit fro t"e coand line

    (b& ,nter coand @list disk to s"ow t"e !"sical diss attac"ed.

    (c& ,nter @select disk -N to select t"e dis to be forattedD!artitioned. H 9is 2 in t"is case

    (d& ,nter (create partition primar&)to create a !riar +AW !artition on t"e dis.

    (e& se coand (list /olume)to see t"e )olues in t"e diss H 9is 2 of G: will be full +AW

    (f& ,it dis!art tool

    +efer to t"e screens"ot below for t"e o!erations done to create t"e +AW area.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    6/29

    0! $ormatting t"e 0nd %isk using 1U2 from (diskmgmt.msc)

    "e 2nddis will be !artitioned usin' t"e 9is Mana'eent ool. ,nter @dis't.sc in t"e +un bo.

    (i& At first launc" it will as to initialiCe t"e reainin' dis (9is 1&. Acce!t M#*.

    Once intialised t"e state of t"e diss on t"e sste will be )isible. "e 1 G: dis will be +AW w"ile t"e dis in useb t"e OS binaries will be s"own as Acti)e /riar !artition.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    7/29

    (ii& +i'"t-clic on 9is 1 and c"oose @3ew Si!le olue to create new )olue.

    (iii& Set a )olue siCe at desired )alue ("ere #G: or #0%2 M:&

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    8/29

    (i)& 3ow assi'n a dri)e letter to t"e !artition

    ()& Select file sste on t"e !artition as 3;S (default for Windows 200*+2&

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    9/29

    ()i& 8onfir for dis creation

    ()ii& "is is t"e state after creatin' t"e !artition.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    10/29

    ()iii& 3ow be'in creatin' !artitions fro t"e reainin' area on 9is1

    (i& 8"oose 6 G: out of t"e 12 G: reainin' for +AW !artition 1

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    11/29

    (& ;or t"is !artition do not assi'n a dri)e letter.

    (i& Also do not forat t"e !artition5 "ence ain' it raw.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    12/29

    (ii& 8onfir on creation of !artition.

    (iii& +e!eat raw!artition creation on reainin' s!ace of 9is 1. "e final laout loos lie t"isJ

    (i)& ,it t"e 9is Mana'eent tilit.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    13/29

    C! Stamping %isks for ASM

    1& nCi! t"e 'rid installation software to 'et t"e gridfolder. +un t"e asmtoolgutilit

    wit"in t"e sub-folder @astool of t"e etracted folder (grid).

    2& Select @Add or 8"an'e

  • 7/25/2019 ASM on Windows Jul2015

    14/29

    %! 2nstalling and Configuring 1rid 2nfrastructure

    1& +un t"e file setup.e6efro t"e etracted foldergridof t"e Oracle installation edia.

    2& 8"oose @Si! Software !dates and !roceed.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    15/29

    #& Select (Configure Oracle 1rid 2nfrastructure for a Standalone Ser/er)

    ;ro Oracle 11'+2 onwards ASM confi'uration tools are a !art of Grid Infrastructure w"ereas t"e ASM

    confi'uration tools were a !art of 9atabase software in 10' and 11'+1. As t"is ac"ine is 'oin' to "a)e

    Oracle?s Autoatic Stora'e Mana'eent (ASM& Grid Infrastructure installation and confi'uration is bein' done.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    16/29

    4& Select t"e dis sta!ed for O8+O, to create t"e O8+O, ASM dis'rou!.

    Select t"e dis sta!ed for O8+O, to create t"e O8+O, ASM dis'rou!. +edundanc is selected as

    @,ternal so t"at "ardware irrorin'Dstri!in' is used to aintain re!licas ee!in' less load on Oracle software

    !rocesses.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    17/29

    & ,nter !assword for SKS and ASMS3M/ users. "e !assword entered "ere is s&s'07

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    18/29

    6& S!ecif @O+A8OM, locations.

    Oracle #ase 8 C:3app3Administrator

    1rid Home 8 C:3app3Administrator3product3''.0.93grid

  • 7/25/2019 ASM on Windows Jul2015

    19/29

    %& "e !rereuisite c"ecs "a)e succeeded.

    Obser)e !rescribed and detected settin's if need be and t"en clic on @3et to !roceed.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    20/29

    *& "e final confiration screen is seen. Sa)e t"eresponse fileand t"en be'in installation.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    21/29

    $& iew t"e !ro'ress of installation and confi'uration.

    10& "e success screen is s"own on co!letion.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    22/29

    5! Creation of additional ASM %isks

    After t"e 'rid infrastructure installation and confi'uration for a standalone ser)er is done we can now create

    additional ASM dis'rou!s for use b future databases.

    1&

  • 7/25/2019 ASM on Windows Jul2015

    23/29

    2& See t"at t"ere is onl one ASM dis'rou!. 8lic on @8reate to add furt"er ASM dis'rou!s.

    #& ASM dis'rou! creation reuires dis sta!in'. 8lic on @Sta! 9iss.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    24/29

    4& "e failiar window fro asmtoolgo!ens u!. Select @Add or c"an'e label.

    & Select t"e reuired dis(s& and set desired label.

    >ere we are creatin' t"e sta!in' for t"e diss to a!!ear in t"e 9AA dis'rou!.>ence sta! t"e wit" 9AA.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    25/29

    6& 8onfir on t"e ASM lin nae siCe and 9e)ice and clic 3et to a!!ro)e.

    %& 8onfir b clicin' on @;inis"

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    26/29

    *& +e!eat t"ese ste!s to sta! t"e reainin' rawde)ice for t"e ;+A dis'rou!.

    $& 3ow t"e two sta!ed diss are seen.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    27/29

    10& 8reate dis'rou! %A4Ab selectin' t"e a!!ro!riatel sta!ed dis.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    28/29

    11& Siilarl create t"e dis'rou! $*A for fast reco)er area&.

    12& 3ow t"ere are t"reeASM dis'rou!s OC*,O45; %A4A; $*A!. We can now eit.

    ata 8onsultanc Ser)ices

  • 7/25/2019 ASM on Windows Jul2015

    29/29

    $! Status C"eck

    "e status of t"e 'rid infrastructure ser)ices can be c"eced on t"e "ost b usin' t"e 'rid infrastructure

    software coands.

    1& asmtool