对Oracle数据库进行容灾
2008-12-16 13:02:33 来源:WEB开发网■ Data Change Map (DCM)
■ Replicated Data Set (RDS)
一个RDS包括了所有的主节点和备用节点的复制卷组(RVG)。RDS不是一个具体存在的对象,而是一个VVR复制技术中的一个概念。
在异步模式下VVR的数据复制和数据流向
在同步模式下VVR的数据复制和数据流向
另外,VVR是Veritas Volume Manager (VxVM)的一个单独的option,需要单独的license。
Veritas Volume Replicator 的安装
主备节点硬件和软件配置和版本如下:
主节点 机器名:lxsfrac01
Sun Microsystems Sun Fire X4100 Server
操作系统 solaris10u4 x86_64
VVR版本: Veritas Volume Replicator 5.0 GA
Oracle 版本: Oracle 10gR2 Enterprise Edition
磁盘阵列:SAN/ HDS AMS 1000
Public网卡:e1000g0 私有(复制)网卡:e1000g1
备用节点机器名:lxsfrac02
软硬件环境与主节点相同
两个节点分别安装VVR和vxfs,安装方法相同,以lxsfrac02为例:
放入安装介质,一般Solaris都由vold进程自动mount CD,
如果需要手工
mount:mount–Fhsfs–oro/dev/dsk/c0t6d0s2/cdrom
root@lxsfrac02#cd./volume_replicator/
root@lxsfrac02#ls
copyrightdocsinstallvvrpkgsrelease_notesscriptstoolsuninstallvvr
root@lxsfrac02#ls-l
total24
-rw-r--r--1rootroot476Dec152006copyright
drwxrwxr-x2rootroot512Jun2110:13docs
-rwxr-xr-x1rootroot2283Apr142007installvvr
drwxrwxr-x3rootroot1024Jun2110:13pkgs
drwxrwxr-x2rootroot512Jun2110:13release_notes
drwxrwxr-x3rootroot512Jun2110:13scripts
drwxrwxr-x3rootroot512Jun2110:13tools
-rwxr-xr-x1rootroot2283Apr142007uninstallvvr
root@lxsfrac02#./installvvrlxsfrac02
VeritasVolumeReplicator5.0InstallationProgram
Copyright(c)2007SymantecCorporation.Allrightsreserved.Symantec,theSymantecLogoaretrademarksorregisteredtrademarksofSymantecCorporationoritsaffiliatesintheU.S.andothercountries.Othernamesmaybetrademarksoftheirrespectiveowners.
TheLicensedSoftwareandDocumentationaredeemedtobe"commercialcomputersoftware"and"commercialcomputersoftwaredocumentation"asdefinedinFARSections12.212andDFARSSection227.7202.
Logsforinstallvvrarebeingcreatedin/var/tmp/installvvr-mrk46Y.
Initialsystemcheck:
CheckingVVRinstallationonlxsfrac02............................................notinstalled
Checkingarchitectureonlxsfrac02................................................i386
VeritasVolumeReplicator5.0InstallationProgram
Checkingsystemlicensing
Installinglicensingpackages
VVRisnotlicensedonlxsfrac02
EnteraVVRlicensekeyforlxsfrac02:******************
******************successfullyregisteredonlxsfrac02
PermanentVVRlicenseregisteredonlxsfrac02
Doyouwanttoenteranotherlicensekeyforlxsfrac02?[y,n,q](n)
VeritasVolumeReplicator5.0InstallationProgram
Checkinginstalledpackagesonlxsfrac02
VeritasVolumeReplicator5.0InstallationProgram
VVRcanbeinstalledwithoutoptionalpackagestoconservediskspace.
Additionalpackagesaretypicallyinstalledtosimplifyfutureupgrades.
1)RequiredVeritasVolumeReplicatorpackages-855MBrequired
2)AllVeritasVolumeReplicatorpackages-861MBrequired
3)StorageFoundationEnterprisepackages-911MBrequired
Selectthepackagestobeinstalledonallsystems?[1-3,q,?](3)2
VeritasVolumeReplicator5.0InstallationProgram
ThefollowingVVRpackageswillbeinstalled:
VRTSperlVeritasPerl5.8.8Redistribution
VRTSvlicVeritasLicensing
VRTSicscoSymantecCommonInfrastructure
VRTSpbxSymantecPrivateBranchExchange
VRTSsmfSymantecServiceManagementFramework
VRTSatSymantecProductAuthenticationService
VRTSobc33VeritasEnterpriseAdministratorCoreService
VRTSobVeritasEnterpriseAdministratorService
VRTSobguiVeritasEnterpriseAdministrator
VRTSccgVeritasEnterpriseAdministratorCentralControlGrid
VRTSmhVeritasStorageFoundationManagedHostbySymantec
VRTSaaVeritasEnterpriseAdministratorActionAgent
VRTSsptVeritasSoftwareSupportTools
SYMClmaSymantecLicenseInventoryAgent
VRTSvxvmVeritasVolumeManagerBinaries
VRTSdsaVeritasDatacenterStorageAgent
VRTSfsproVeritasFileSystemManagementServicesProvider
VRTSvmmanVeritasVolumeManagerManualPages
VRTSvmdocVeritasVolumeManagerDocumentation
Press[Return]tocontinue:
...continued:
VRTSdcliVeritasDistributedCommandLineInterface
VRTSallocVeritasVolumeManagerIntelligentStorageProvisioning
VRTSvmproVeritasVolumeManagerManagementServicesProvider
VRTSddlprVeritasDeviceDiscoveryLayerServicesProvider
VRTSvrproVeritasVolumeReplicatorClientExtensionandProviderfor
VeritasEnterpriseAdministrator
VRTSvcsvrVeritasClusterServerAgentsforVVR
VRTSjreVeritasJavaRuntimeEnvironmentRedistribution
VRTSjre15VeritasJavaRuntimeEnvironmentRedistribution
VRTSwebVeritasJavaWebServer
VRTSvrwVeritasVolumeReplicatorWebConsole
VRTSvrdocVeritasVolumeReplicatorDocumentation
Press[Return]tocontinue:
CheckingforanyAPdriverissuesonlxsfrac02...................................None
AcopyofapreviousVxVMconfigurationispresentonthesystemlxsfrac02.
DoyouwanttorestoreandreusethepreviousVxVMconfigurationofsystemlxsfrac02[y,n,q,?](y)n
VeritasVolumeReplicator5.0InstallationProgram
InstallingVVR:100%■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Installationcompletedsuccessfullyonallsystems
ItisoptionaltoconfigureVVRnow.IfyouchoosetoconfigureVVRlater,youcaneitherdosomanually,orruntheinstallvvr-configurecommand.Theproductinstallationscriptscanbefoundin/opt/VRTS/installdirectory
AreyoureadytoconfigureVVR?[y,n,q](y)
Theenclosure-basednamingschemeisafeatureofVeritasVolumeManager.Itallowsonetoreferencedisksusingasymbolicnamethatismoremeaningfulthantheoperatingsystem'snormaldeviceaccessname.Thissymbolicnameistypicallyderivedfromthearrayname.
Doyouwanttosetuptheenclosure-basednamingscheme?[y,n,q,?](n)y
VeritasVolumeReplicator5.0InstallationProgram
VeritasVolumeManagerdefaultdiskgroupnameconfiguration:
ManyVeritasVolumeManagercommandsaffectthecontentsorconfigurationofadiskgroup.Suchcommandsrequirethattheuserspecifyadiskgroup.Thisisaccomplishedbyusingthe-goptionofacommandorsettingtheVXVM_DEFAULTDGenvironmentvariable.Analternativetothesetwomethodsforsomecommandsistoconfigurethenameofthedefaultdiskgroupofasystem.
Note:ThedefaultdiskgroupfeatureisnotavailablewiththeDCLIvxadm(1M)andvxquery(1M)commands.Whenusingthesecommands,arequireddiskgroupmustbeexplicitlyidentifiedusingthe-goption.
Doyouwanttosetupadefaultdiskgroupforeachsystem?[y,n,q,?](y)n
VeritasVolumeReplicator5.0InstallationProgram
FollowingarethedefaultportsthatwillbeusedbyVVRonlxsfrac02:
PortforVVRheartbeatcommunication:4145
Portforvradminddaemon:8199
Portforvxrsyncddaemon:8989
Portsfordatareplication:Anonymous-Ports
TheportsindicatedforVVRheartbeatsandvradmindareIANAassigned.
TheportsettingsshouldbeidenticalforsystemsthatwillbepartofthesameReplicatedDataSet.Theyshouldalsobeidenticalforallthesystemsinacluster.
DoyouwanttochangeanyoftheVVRportsonlxsfrac02?[y,n,q](n)
VeritasVolumeReplicator5.0InstallationProgram
VVRStatisticsCollectionTool
TheVVRadministrativedaemonvradmindcancollectandmaintainvarious
statisticswhicharehelpfulinsolvingVVRperformanceissues.This
collectioncanbetunedusingafewtunableslikethefrequencyfor
gatheringthestatisticsandthenumberofdaysforwhichthecollected
statisticsshouldbepreserved,afterwhichtheearlierstatisticsare
automaticallydeleted.
ThefrequencyofVVRstatisticscollectiononlxsfrac02issettoper10seconds.
DoyouwanttochangethefrequencyofVVRstatisticscollectiononlxsfrac02?[y,n,q](n)
ThemaximumnumberofdaysforwhichVVRstatisticscanberetainedissetto3onlxsfrac02
DoyouwanttochangethemaximumnumberofdaysforretainingVVRstatisticsonlxsfrac02?[y,n,q](n)
VeritasVolumeReplicator5.0InstallationProgram
ConfigurationofVVRtunables(Fortheadvanceduser)
DoyouwanttoviewormodifyVVRtunablesonlxsfrac02?[y,n,q,?](n)
VeritasVolumeReplicator5.0InstallationProgram
VerifytheinstallsystemsFullyQualifiedHostnames.
Queryingfullyqualifieddomainnameofhost"lxsfrac02".............................fail
Press[Return]tocontinue:
UnabletofindFQHNforlxsfrac02!
Enterthefullyqualifiedhostnameof"lxsfrac02"or'QUIT'toquitinstall.
Enterthefullyqualifiedhostname:lxsfrac02
VeritasVolumeReplicator5.0InstallationProgram
Choosehowthisinstallwillbemanaged.
Thisproductcanconfiguredoneofthetwofollowingways:
*StorageFoundationManagementServermanagedhost(Recommended)
*Standalonehost
Pre-requisitesforStorageFoundationManagementServermanagedhost:
*AStorageFoundationManagementServer(SFMS)isconfigured
*SFMSshouldbecurrentlyrunningandfullyoperational.
*AuthenticationBrokerthatisusedbySFMSshouldberunning.
Thefollowinginformationwouldberequestedduringconfiguration:
*ThehostnameoftheSFMS
*PreviouslysetSFMSagentaccountpassword
Therearenopre-requisitesfordeployingasastandalonehost.
EnablingStorageFoundationManagementServermanagementsimplifiesandimprovesmanagementofthecomplexdatacenter
resources,reducingplannedandunplanneddowntime.
EnableStorageFoundationManagementServerManagement?[y,n,q](y)n
VeritasVolumeReplicator5.0InstallationProgram
VerifytheinstallsystemsFullyQualifiedHostnames.
ConfiguringVEAinSTANDALONEmodeon"lxsfrac02".....................................ok
Configuringgridnodeon"lxsfrac02"...................................................ok
Registeringgridnodeon"lxsfrac02"...................................................ok
Configuringactionagenton"lxsfrac02"................................................ok
Registeringactionagenton"lxsfrac02"................................................ok
RegisteringStorageAgenton"lxsfrac02"...............................................ok
DoyouwanttostartVeritasVolumeReplicatorprocessesnow?[y,n,q](y)
VeritasVolumeReplicator5.0InstallationProgram
StartingVVR:100%■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Startupcompletedsuccessfullyonallsystems
Youdeclinedtosetupthenameofthedefaultdiskgroupforlxsfrac02.
Installationlogfiles,summaryfile,andresponsefilearesavedat:
/opt/VRTS/install/logs/installvvr-mrk46Y
ToenableDynamicMulti-Pathing(DMP),MPxIOmustbedisabled.RefertotheStorageFoundationReleaseNotesforfurtherdetailsondisablingMPxIO.
检查vradmindeamon:
root@lxsfrac02#ps-ef|grepvrad|grep-vgrep
root98081016:24:47?0:00/usr/sbin/vradmind
安装VeritasFileSystem:安装过程略
root@lxsfrac02#cdfile_system/
root@lxsfrac02#ls-l
total22
-rw-r--r--1rootroot476Dec152006copyright
drwxrwxr-x2rootroot512Jun2110:12docs
-rwxr-xr-x1rootroot2283Apr142007installfs
drwxrwxr-x3rootroot1024Jun2110:12pkgs
drwxrwxr-x2rootroot512Jun2110:12release_notes
drwxrwxr-x3rootroot512Jun2110:12scripts
-rwxr-xr-x1rootroot2283Apr142007uninstallfs
root@lxsfrac02#./installfslxsfrac02
更多精彩
赞助商链接