ASM Config
Transcript of ASM Config
-
8/4/2019 ASM Config
1/57
ASM TheNextGeneration
TimothyMishek,
ITT
-
8/4/2019 ASM Config
2/57
Agenda
Introduction
ASMOverview InstallingGridControl
ASMConfigurationAssistant ASMCommandLineInterface IntegrationofClusterReadyServices ADVMandACFS UpgradingASM AdditionsandEnhancementswith11gR2
-
8/4/2019 ASM Config
3/57
SessionGoals Developanunderstandingofallthenewfeatures
introducedin11gR2 HaveabetterunderstandingofwhatASMisand
howitcanbenefityourorganization Understand
how
ASM
works
in
relation
to
disk
storage
Gooverdifferentplanningstrategies Easethefearsometimesassociatedwithanewtechnology BuildconfidencewithallaspectsofASM
-
8/4/2019 ASM Config
4/57
ASMOverview
-
8/4/2019 ASM Config
5/57
WhatisASM? AutomaticStorageManagementorASMisOracles
solutioninsimplifyingstoragemanagement. AllowsforsharedstorageinaRealApplicationClustersenvironment. ASMinstancesonlyallowOracledatabasefilestobe
storedonASMmanagedvolumes. Physicaldiskscanbeaddedorremovedwhilea
databaseisinanopenstate. ASMoffersthreemaintypesofmirroring. AnASMinstancehasthesamelookandfeelasatraditionaldatabaseinstance. AnOracledatabasecaneasilybeupgradedtoASM.
-
8/4/2019 ASM Config
6/57
WhatsNew? ASMisnowpartofthegridcontrolarchitecture Introduction
of
Oracle
Restart ASMconfigurationassistant(asmca)
ASMDynamicVolumeManager(ADVM) ASMclusterfilesystem(ACFS) StorageofOCRandVotingdisksdirectlyonan
ASMdiskgroup NewcommandsaddedtotheASMCommand
LineInterface (ASMCMD) VolumeSnapshots
-
8/4/2019 ASM Config
7/57
WhatsNew?Continued StorageoftheASMspfileondirectlyanASM
diskgroup HotandColddiskregionscanbedefined ThenewSYSASMrole Enhancedsecurity sga_targetparameterisnowavailableforASMinstances
-
8/4/2019 ASM Config
8/57
InstallingGridControl
-
8/4/2019 ASM Config
9/57
InstallationDifferencesfromPreviousVersions
Before11gR2,theASMinstallationwaspartofthedatabaseinstall.
Inpreviousversions,theASMinstallationcould
be
part
of
the
database
home.
TheASMinstallationcouldbeinitsownhome.
OnlytheOracleClusterSynchronizationserviceorCSSwasneededforASM.
-
8/4/2019 ASM Config
10/57
InstallingASMin11gR2 ASMinstallationhastobeinstalledaspartof
thegridcontrolinfrastructure. TheASMhomecannotbeinstalledinthe
databasehome.
TheASMhomemustbeinstalledinthegridcontrolhome.
Clusterservicesarenowinstalledaspartofthegridcontrolinfrastructure.
-
8/4/2019 ASM Config
11/57
InstallingGridControl
Theinitialgridcontrolinfrastructureinstallationscreen
-
8/4/2019 ASM Config
12/57
SettingUpASM
InstallationscreenforsettinguptheASMdiskgroup
-
8/4/2019 ASM Config
13/57
ASMConfigurationAssistant
-
8/4/2019 ASM Config
14/57
ASMCA
ASMConfigurationAssistantisnewto11gR2 UsedforASMadministrativefunctions Create,delete,mount,anddismountdisk
groups ConfigureASMVolumes Create,mount,anddismountASMclusterfilesystems UpgradeASMinstances
-
8/4/2019 ASM Config
15/57
ASMCAInstancesTab
InaRACenvironment,theininstancestabshowsthestatusofeachnode.
-
8/4/2019 ASM Config
16/57
ASMCADiskGroupsTab
TheASMCADiskGroupstaballowsconfigurationoftheASMdiskgroup.
-
8/4/2019 ASM Config
17/57
ASMCAVolumesTab
ASMvolumesareconfiguredontheVolumestab.
-
8/4/2019 ASM Config
18/57
ASMCAACFSTab
ASMClusterFileSystemsareconfiguredonthistab.
-
8/4/2019 ASM Config
19/57
ASMCommandLineInterface
-
8/4/2019 ASM Config
20/57
ASMCMD
Introducedin10gR2asacommandlineinterface
for
ASM
administration
GivesadministratorsanalternativetoqueryingASMinstancesusingSQL*Plus
Additionalcommandsandfunctionalityaddedin11gR2
ASMVolumescanbeconfigured Newlyaddedcommandsforconfiguringsecurity
-
8/4/2019 ASM Config
21/57
ASMCMDAddedCommands
Additionalcommandsareaddedin11gR2.
-
8/4/2019 ASM Config
22/57
VolumeInformation
Volumeinformationisshownusingthenewvolinfo
command.
-
8/4/2019 ASM Config
23/57
VolumeUsage
ASMvolumeusageisshownbyusingthevolstat
command.
-
8/4/2019 ASM Config
24/57
IntegrationofClusterReadyServices
-
8/4/2019 ASM Config
25/57
OracleRestart OracleHighAvailabilityServicesisnowrequiredfor
allASM
installations.
OracleRestartistheclustercomponentforstandaloneinstances.
OracleRestartusestheOracleLocalRepository(OLR)andLocalClusterRepository(OCR).
Clustertools
are
used
for
administration
(srvctl,
crsctletc.).
Ifafailureisdetected,OracleRestartattemptstorestarttheservice.
-
8/4/2019 ASM Config
26/57
OracleRestartConfiguration Configurationfilesolr.locandocr.locpointing
tothelocalOCRandOLRarefound:Linux/etc/oracleSolaris/var/opt/oracle
WindowsRegistryshowsthelocationsoftheOLRandOCR:HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\ocr
HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\olr
-
8/4/2019 ASM Config
27/57
OracleRestartConfiguration Unixinstallations,theocr.locfilehastheline
local_only=TRUE Windowsinstallations,theregistrykey
HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\ocr"local_only"="TRUE
Inadefaultinstallation,theolrandocrfilesarecreatedinthegridhomeundercdata/localhost.
TheOracleUniversalInstallerincludingtheroot.shcreatestheentireconfiguration.
-
8/4/2019 ASM Config
28/57
CreatingOracleRestartManually Theroot.shfilecreatesOracleRestartduring
theGridinstallation.
Cluster components created immediately after the root.sh is run
-
8/4/2019 ASM Config
29/57
CreatingtheListener
The listener is created and started using the srvctl command.
-
8/4/2019 ASM Config
30/57
CreatingASMinOracleRestart
An existing ASM instance is added to the Oracle Restart configuration.
If an spfile is already in place on the ASM instance, add p .
-
8/4/2019 ASM Config
31/57
InitialASMConfiguration
The initial ASM configuration shows ASM without an spfile defined.
-
8/4/2019 ASM Config
32/57
ASMConfiguration In11gR2,thespfileforASMlivesdirectlyontheDisk
Group. OracleRestartautomaticallyregistersthespfile
whenitiscreatedinSQL*Plus. TheASMinstanceneedstobeshutdownand
restartedwiththepfile.SQL> startup pfile=initasm.ora;
TheASMspfilecannowbecreatedontheDiskGroup.
SQL> create spfile=+DATA from pfile=initasm.ora
-
8/4/2019 ASM Config
33/57
ASMCompleted
After the creation of the spfile, the new location is now showing up.
-
8/4/2019 ASM Config
34/57
DatabaseAddedtoOracleRestart
The database is added to finalize the configuration using srvctl add database
-d RMOUG -n RMOUG -o /u01/app/oracle/product/11.2.0/db_1 -p+DATA/rmoug/spfilermoug.ora -s open -t immediate
-
8/4/2019 ASM Config
35/57
StartingTheDatabase
The database is started using srvctl start database -d RMOUG. The
configuration is complete.
-
8/4/2019 ASM Config
36/57
ADVMandACFS
-
8/4/2019 ASM Config
37/57
ADVMandACFS ASMnowoffersavolumemanagerforthe
storageofregularoperatingsystemfiles. Introducedin11gR2 ASMDynamicVolumeManager(ADVM) ASMclusterfilesystem(ACFS) ora.registry.acfs nodeapplicationonlyavailableforRAC
-
8/4/2019 ASM Config
38/57
ACFSDriver Theacfsdriverhastobeloadedastheroot
userusingtheacfsload command. OnaRACserver,theclusterloadsthedriverusingtheora.registry.acfs nodeapplication.
-
8/4/2019 ASM Config
39/57
CreateVolumeusingASMCA
The ASM volume is created under the Volumes tab.
h l
-
8/4/2019 ASM Config
40/57
CreateTheASMVolumeusingASMCA
Using asmca, the volume name ACFS is created here.
-
8/4/2019 ASM Config
41/57
NewVolume
The Volumes tab shows the newly created volume.
-
8/4/2019 ASM Config
42/57
CreateACFS
The ASM Cluster File Systems tab is used to create the clustered file system.
-
8/4/2019 ASM Config
43/57
CreateACFS
The Create ASM Cluster File System screen shows configuration options.
-
8/4/2019 ASM Config
44/57
ACFSCommandOptions
The show command button shows the commands to create the cluster file system.
-
8/4/2019 ASM Config
45/57
ACFSCompleted
The ASM Cluster File Systems tab shows the completed clustered filesystem in a dismounted state.
-
8/4/2019 ASM Config
46/57
MountACFS
The mount all command needs to be run on any standalone systemas the root user to mount all acfs file systems. RAC mounts
registered file systems using the ora.registry.acfs node application.
-
8/4/2019 ASM Config
47/57
ACFSMounted
The clustered file system is mounted and can be used by the operating system.
-
8/4/2019 ASM Config
48/57
ACFSMountedandAvailable
The file system is mounted and showing up as a mount point to the operating
system. If this were a RAC node, the file system /acfs would be shared.
-
8/4/2019 ASM Config
49/57
UpgradingASM
-
8/4/2019 ASM Config
50/57
UpgradeOptions Ifinitiallyinstallingthegridcontrol
infrastructure,thereisanoptiontoupgradeASMtothecurrentversion. AnalternateoptionrequiresusingtheASM
configurationassistant(asmca). Aslongasthedatabasecompatibleversionis
thesameversionasthedatabase,ASMcanbeupgradedtosupportthepreviousdatabaserelease.
O l G id C l I ll
-
8/4/2019 ASM Config
51/57
OracleGridControlInstaller
ASM can be upgraded during the grid control installation.
-
8/4/2019 ASM Config
52/57
UpgradeASMusingASMCA
If asmca detects a previous version, ASM can be upgraded here.
-
8/4/2019 ASM Config
53/57
AdditionsandEnhancements
11gR2 Additions and
-
8/4/2019 ASM Config
54/57
11gR2AdditionsandEnhancements
Introducedin11gR1,thesysasmroleallowsfulladministrativefunctions.
Enhancedsecurity Hot
and
cold
regions
can
be
defined
on
disks.
ThespfilefortheASMinstanceisnowabletobestoreddirectlyonanASMdiskgroup.
SizingoftheSGAnowsupportsthesga_targetparameter.
-
8/4/2019 ASM Config
55/57
SessionSummaryLookingahead,ASMwillcontinuetogainpopularitywithdatabaseprofessionals. NotonlyisASMaprovenstoragesolutionforclusteredenvironments,butisprovenforthegeneralmanagementofdatabasefileandfilesystemstorage. Giveitatry!
-
8/4/2019 ASM Config
56/57
Questions?
-
8/4/2019 ASM Config
57/57
ThankYou!TimothyMishek