Documente Academic
Documente Profesional
Documente Cultură
TimothyMishek,ITT timothymishek@yahoo.com
Agenda
Introduction ASMOverview InstallingGridControl ASMConfigurationAssistant ASMCommandLineInterface IntegrationofClusterReadyServices ADVMandACFS UpgradingASM AdditionsandEnhancementswith11gR2
SessionGoals
Developanunderstandingofallthenewfeatures introducedin11gR2 HaveabetterunderstandingofwhatASMisand howitcanbenefityourorganization UnderstandhowASMworksinrelationtodisk storage Gooverdifferentplanningstrategies Easethefearsometimesassociatedwithanew technology BuildconfidencewithallaspectsofASM
ASMOverview
WhatisASM?
AutomaticStorageManagementorASMisOracles solutioninsimplifyingstoragemanagement. AllowsforsharedstorageinaRealApplicationClusters environment. ASMinstancesonlyallowOracledatabasefilestobe storedonASMmanagedvolumes. Physicaldiskscanbeaddedorremovedwhilea databaseisinanopenstate. ASMoffersthreemaintypesofmirroring. AnASMinstancehasthesamelookandfeelasa traditionaldatabaseinstance. AnOracledatabasecaneasilybeupgradedtoASM.
WhatsNew?
ASMisnowpartofthegridcontrolarchitecture IntroductionofOracleRestart ASMconfigurationassistant(asmca) ASMDynamicVolumeManager(ADVM) ASMclusterfilesystem(ACFS) StorageofOCRandVotingdisksdirectlyonan ASMdiskgroup NewcommandsaddedtotheASMCommand LineInterface(ASMCMD) VolumeSnapshots
WhatsNew?Continued
StorageoftheASMspfileondirectlyanASM diskgroup HotandColddiskregionscanbedefined ThenewSYSASMrole Enhancedsecurity sga_targetparameterisnowavailablefor ASMinstances
InstallingGridControl
InstallationDifferencesfromPrevious Versions
Before11gR2,theASMinstallationwaspart ofthedatabaseinstall. Inpreviousversions,theASMinstallation couldbepartofthedatabasehome. TheASMinstallationcouldbeinitsown home. OnlytheOracleClusterSynchronization serviceorCSSwasneededforASM.
InstallingASMin11gR2
ASMinstallationhastobeinstalledaspartof thegridcontrolinfrastructure. TheASMhomecannotbeinstalledinthe databasehome. TheASMhomemustbeinstalledinthegrid controlhome. Clusterservicesarenowinstalledaspartof thegridcontrolinfrastructure.
InstallingGridControl
Theinitialgridcontrolinfrastructureinstallationscreen
SettingUpASM
InstallationscreenforsettinguptheASMdiskgroup
ASMConfigurationAssistant
ASMCA
ASMConfigurationAssistantisnewto11gR2 UsedforASMadministrativefunctions Create,delete,mount,anddismountdisk groups ConfigureASMVolumes Create,mount,anddismountASMclusterfile systems UpgradeASMinstances
ASMCAInstancesTab
InaRACenvironment,theininstancestabshowsthestatusofeachnode.
ASMCADiskGroupsTab
TheASMCADiskGroupstaballowsconfigurationoftheASMdiskgroup.
ASMCAVolumesTab
ASMvolumesareconfiguredontheVolumestab.
ASMCAACFSTab
ASMClusterFileSystemsareconfiguredonthistab.
ASMCommandLineInterface
ASMCMD
Introducedin10gR2asacommandline interfaceforASMadministration Givesadministratorsanalternativeto queryingASMinstancesusingSQL*Plus Additionalcommandsandfunctionalityadded in11gR2 ASMVolumescanbeconfigured Newlyaddedcommandsforconfiguring security
ASMCMDAddedCommands
Additionalcommandsareaddedin11gR2.
VolumeInformation
Volumeinformationisshownusingthenewvolinfo command.
VolumeUsage
ASMvolumeusageisshownbyusingthevolstat command.
IntegrationofClusterReadyServices
OracleRestart
OracleHighAvailabilityServicesisnowrequiredfor allASMinstallations. OracleRestartistheclustercomponentfor standaloneinstances. OracleRestartusestheOracleLocalRepository(OLR) andLocalClusterRepository(OCR). Clustertoolsareusedforadministration(srvctl, crsctletc.). Ifafailureisdetected,OracleRestartattemptsto restarttheservice.
OracleRestartConfiguration
Configurationfilesolr.locandocr.locpointing tothelocalOCRandOLRarefound: Linux/etc/oracle Solaris/var/opt/oracle WindowsRegistryshowsthelocationsofthe OLRandOCR:
HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\ocr HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\olr
OracleRestartConfiguration
Unixinstallations,theocr.locfilehastheline local_only=TRUE Windowsinstallations,theregistrykey
HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\ocr "local_only"="TRUE Inadefaultinstallation,theolrandocrfilesare createdinthegridhomeundercdata/localhost. TheOracleUniversalInstallerincludingtheroot.sh createstheentireconfiguration.
CreatingOracleRestartManually
Theroot.shfilecreatesOracleRestartduring theGridinstallation.
CreatingtheListener
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 <spfile>.
InitialASMConfiguration
ASMConfiguration
In11gR2,thespfileforASMlivesdirectlyontheDisk Group. OracleRestartautomaticallyregistersthespfile whenitiscreatedinSQL*Plus. TheASMinstanceneedstobeshutdownand restartedwiththepfile.
SQL> startup pfile=initasm.ora;
TheASMspfilecannowbecreatedontheDisk Group.
SQL> create spfile=+DATA from pfile=initasm.ora
ASMCompleted
After the creation of the spfile, the new location is now showing up.
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
StartingTheDatabase
The database is started using srvctl start database -d RMOUG. The configuration is complete.
ADVMandACFS
ADVMandACFS
ASMnowoffersavolumemanagerforthe storageofregularoperatingsystemfiles. Introducedin11gR2 ASMDynamicVolumeManager(ADVM) ASMclusterfilesystem(ACFS) ora.registry.acfs nodeapplicationonly availableforRAC
ACFSDriver
Theacfsdriverhastobeloadedastheroot userusingtheacfsload command. OnaRACserver,theclusterloadsthedriver usingtheora.registry.acfs nodeapplication.
CreateVolumeusingASMCA
CreateTheASMVolumeusing ASMCA
NewVolume
CreateACFS
The ASM Cluster File Systems tab is used to create the clustered file system.
CreateACFS
The Create ASM Cluster File System screen shows configuration options.
ACFSCommandOptions
The show command button shows the commands to create the cluster file system.
ACFSCompleted
The ASM Cluster File Systems tab shows the completed clustered file system in a dismounted state.
MountACFS
The mount all command needs to be run on any standalone system as the root user to mount all acfs file systems. RAC mounts registered file systems using the ora.registry.acfs node application.
ACFSMounted
The clustered file system is mounted and can be used by the operating system.
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.
UpgradingASM
UpgradeOptions
Ifinitiallyinstallingthegridcontrol infrastructure,thereisanoptiontoupgrade ASMtothecurrentversion. AnalternateoptionrequiresusingtheASM configurationassistant(asmca). Aslongasthedatabasecompatibleversionis thesameversionasthedatabase,ASMcanbe upgradedtosupportthepreviousdatabase release.
OracleGridControlInstaller
UpgradeASMusingASMCA
AdditionsandEnhancements
11gR2Additionsand Enhancements
Introducedin11gR1,thesysasmroleallows fulladministrativefunctions. Enhancedsecurity Hotandcoldregionscanbedefinedondisks. ThespfilefortheASMinstanceisnowableto bestoreddirectlyonanASMdiskgroup. SizingoftheSGAnowsupportsthesga_target parameter.
SessionSummary
Lookingahead,ASMwillcontinuetogain popularitywithdatabaseprofessionals.Not onlyisASMaprovenstoragesolutionfor clusteredenvironments,butisprovenforthe generalmanagementofdatabasefileandfile systemstorage.Giveitatry!
Questions?
ThankYou!
TimothyMishek timothymishek@yahoo.com