在vmwarevsphereesxi上安装oracleRACWord文件下载.docx
《在vmwarevsphereesxi上安装oracleRACWord文件下载.docx》由会员分享,可在线阅读,更多相关《在vmwarevsphereesxi上安装oracleRACWord文件下载.docx(36页珍藏版)》请在冰豆网上搜索。
![在vmwarevsphereesxi上安装oracleRACWord文件下载.docx](https://file1.bdocx.com/fileroot1/2022-12/17/26fc6569-9f62-47ed-bcce-541251b34fed/26fc6569-9f62-47ed-bcce-541251b34fed1.gif)
2
CiscoUCSB440
4x10-coreCPUs,256GBRAM,and4NICs
Storage
1
NetAppF3240双路控制器
EthernetSwitches
CiscoFI6248
FCSwitches
1
CiscoNexus7000
HostBasedAdapters
4
每个刀片两个,与网卡共享流量
2.2软件环境
版本
作用
vSphere
5.1
Hypervisorhostingallvirtualmachines
VMwarevCenter™
管理vSphere
OracleEnterpriseLinuxx86_64
6.3
GuestoperatingsystemforvirtualmachinesrunningOracleDatabaseserver
OracleDatabase11g(withOracleRACandOracleGridInfrastructure)EnterpriseEdition
11.2.0.3
MicrosoftWindowsServer
2008R2
用于vCenterServer
2.3虚拟机配置
虚拟机用途
OracleRACnodes
20vCPU,120GBRAM,
OracleEnterpriseLinuxx86_646.3
vCenter
2vCPUs,8GBRAM,WindowsServer2008R2
2.4共享存储配置
DatastoreName
VirtualDiskonESX
Linux路径
虚拟路径
驱动类型
VMDKSize(GB)
用途
VMDATASTORE
VMDK–Harddisk1
/dev/sda
SCSI0:
LSILogic
150
OracleEnterpriseLinux5.5OSandOraclebinaries
CRS1
VMDK–Harddisk2
Shareddisk
/dev/sdb1
SCSI1:
Paravirtual
20
CRSandvotingdisk
REDO1
VMDK–Harddisk3
/dev/sdc1
900
REDOandArchieve
DATA01
VMDK–Harddisk4
/dev/sdd1
SCSI2:
1000
RACdatabaseDATA
DATA02
VMDK–Harddisk5
/dev/sde1
DATA03
VMDK–Harddisk6
/dev/sdf1
SCSI3:
DATA04
VMDK–Harddisk7
/dev/sdg1
2.5OracleRAC数据库环境
NodeName
ASMInstance
RACInstance
Database
ASMStorage
RAC1
+ASM1
RAC
ASMfilesystem
RAC2
+ASM2
2.6网络配置
按照OracleRAC的实施惯例,每个RAC节点都提供一个Public网口用于承载业务,并在其上捆绑虚拟IP地址(VIP)用于HA切换..
各RAC节点之间还需要一个私有网络进行节点之间的通信。
在物理环境中,通常需要考虑链路的冗余以消除单点鼓掌。
而在虚拟化环境中,冗余问题由底层虚拟化软件处理,所以对于每个RAC节点,只是简单地需要两个网口就可以工作,大大简化了配置和安装工作.
我们这次测试的网络配置如下三:
∙UCS底层软件配置出三个物理网口(均为10Gb)–vmnic0和vmnic1用于OraclePublicandOraclePrivate网络,vmnic2用于vSphere®
vMotion®
工作.
∙两个分布式虚拟交换机–OraclePublic(VMNet)andOraclePrivate(OracleHB).
∙每个RAC节点配置3个IP地址–以节点1(RAC1)为例:
oOnepublicstaticIPaddress(eth0):
162.16.3.101
oOneprivatestaticIPaddress(eth1):
192.168.2.30
oOnevirtualstaticIPaddress(VIP):
162.16.3.111(由CRS软件配置和管理)
还有三个虚拟IP用于节点间负载均衡(SCAN):
162.16.3.200,162.16.3.201,162.16.3.202(由CRS配置和管理)
物理网口vmnic0连接到分布式交换机VMNet,vmnic1连接到分布式交换机OracleHB,vMotion使用标准交换机vSwitch3.这样区分概念上比较清晰,也可以只建一个分布式网络,用不同的端口组区分数据网络和心跳网。
Figure1.NetworkConfiguration
2.7
2.8
逻辑结构图
Figure3.LogicalArchitectureofTwo-NodeOracleRAConvSphere
3.部署流程概览
部署流程大体按照下面的流程图进行.
Figure4.DeploymentStepsforFour-NodeOracleRAConvSpherewithVMFS
4.为第一个RAC节点准备虚拟机环境
本节安装步骤简介如下:
∙使用vSphereClient创建第一个虚拟机。
添加公网和心跳网卡,挑选适当的LUN创建仲裁盘CRS(VMDK模式)。
∙安装RedhatLinux操作系统,安装VMwaretools,按照OracleRAC要求安装相应补丁.
∙在Linux中配置NTP客户端.
4.1创建第一个虚拟机
1.使用vSphereClient登录vCenter.
2.选中一台主机,在GettingStarted页面单击Createanewvirtualmachine.
3.IntheCreateNewVirtualMachinewizard,selectTypicalfortheConfiguration,andclickNext.
4.OntheNameandLocationpage,enterRAC1fortheName,andclickNext.
5.OntheDatastorepage,selectVMDATASTORE,andclickNext.
6.OntheGuestOperatingSystempage,selectLinuxfromtheGuestOperatingSystemlist.FortheVersion,selectOracleLinux6(64-bit)fromthedrop-downmenu.ClickNext.
7.OntheCreateaDiskpage,settheVirtualDiskSizeto20GB,andclickNext.
8.OntheReadytoCompletepage,selectEditthevirtualmachinesettingsbeforecompletion.ClickContinue.
9.OntheVirtualMachinePropertiespagefortheRAC1virtualmachine,select8CPUsand128GBMemory.
10.ClickFinish.
4.2增加两个虚拟网卡
现在需要增加两块网卡.一块用于公共数据网络,另一块用于心跳网络.添加这两块网卡的过程基本相同,差别仅在于添加公网网卡时选择标签:
VMNet而添加心跳网卡时选择OracleHB.
添加公网网卡的步骤:
1.Selectavirtualmachine.
2.ClickEditsettingstodisplaytheVirtualMachinePropertiespane.
3.ClickAdd.
4.SelectEthernetAdaptorandclickNexttodisplaytheAddHardwarewizard.
5.OntheNetworkconnectionpage,selectVMXNET3fromtheAdapterTypedrop-downmenu.
6.IntheNetworkConnectionsectionoftheNetworkconnectionpage,selectNamednetworkwithspecifiedlabel.
7.IntheNamednetworkwithspecifiedlabeldrop-downmenu,selectVMNet.
8.IntheDeviceStatussectionoftheNetworkconnectionpage,selectConnectatpoweron.
9.OntheReadytoCompletepage,clickFinish,andthenclickOK.
添加心跳网卡的步骤:
1.Repeatsteps1through6fromtheprecedingprocedure.
2.IntheNamednetworkwithspecifiedlabeldrop-downmenu,selectOracleHB.
3.Continuewithsteps8and9fromtheprecedingprocedure.
4.3添加仲裁盘
OracleRAC需要至少一个共享的仲裁盘存放clusterware信息和节点投票信息。
存储管理员需要事先为仲裁盘分配好单独的LUN,然后我们需要创建单独的SCSI控制器并设为Paravirtual驱动.SCSI总线sharingpolicy设为none.
下面描述创建共享存储的步骤.
为虚拟机创建20GBdatastore:
1.InvSphereClient,selectavirtualmachine.
2.Right-clickthenameofthevirtualmachineandselectEditSettingstodisplaytheVirtualMachinePropertiespane.
3.ClickAddtodisplaytheAddHardwarewizard.
4.IntheAddHardwarewizardselectHardDiskfortheDeviceType,andclickNext.
5.IntheDisksectionoftheSelectaDiskpage,selectCreateanewvirtualdisk.Setthedisksizeto20GB,selecttheSupportclusteringfeaturessuchasFaultTolerancecheckbox,andselectCRS1tospecifyadatastore.Also,forvSphere5,intheDiskProvisioningsectionselectThickProvisionEagerZeroed.ClickNext.
6.OntheCompatibilityModepage,clickNext.
7.OntheAdvancedOptionspage,intheVirtualDeviceNodesection,selectSCSI(1:
0).IntheModesection,selectIndependent.ClickNext.
8.OntheReadytoCompletepage,clickFinish.
9.ClickOK.
AddconfigurationparametersforeachOracleRACvirtualmachineasdescribedinDisablingsimultaneouswriteprotectionprovidedbyVMFSusingthemulti-writerflag(
手工修改虚拟机参数
3.ClicktheOptionstab,clickAdvanced,andclickGeneral.
4.ClickConfigurationParameters.
5.OntheConfigurationParameterspage,addrowsandentriesfortheshareddisksinthevirtualmachine'
sconfigurationparametersasshowninthefollowingscreenshot.
6.Repeatsteps1through5foreachoftheremainingvirtualmachines.
YoucanviewthevirtualmachinepropertiesfortheRAC1virtualmachineinvCenterasinthefollowingscreenshot.
webclient显示如下图:
4.4
安装操作系统
将OEL6.4安装介质ISO文件上传到datastore,然后进行安装。
Note:
ThisdocumentisspecifictoLinuxguestoperatingsystem.OracleRAC11.2.0.2andaboveversionscanbedeployedandsupportedonthelistofguestoperationsystemsusingVMwaremulti-writerflag(
在虚拟机上安装Linux操作系统
2.ClickEditsettings.
3.IntheHardwaretaboftheVirtualMachinePropertiespane,selectCD/DVDDrive1.
4.IntheDeviceStatussectionofthispane,selecttheConnectatpoweroncheckbox.
5.IntheDeviceTypesectionofthispane,selectDatastoreISOFileandenterthepathtoyourLinuxISOimagefile.
6.IntheVirtualDeviceNodesectionofthispane,selectCD/DVDDrive1fromthedrop-downmenu.
7.ClickOK.
8.Poweronthevirtualmachine.
9.InstallLinuxwiththefollowingsettings.
Custompartitioningscheme:
/dev/sda1ext3150GBmountedon/
Installedpackages–usethedefaultpackageselection,plusthefollowing:
∙kernel-uek.x86_64
∙kmod-oracleasm
∙oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64(downloadfrom
∙oracleasm-support-2.1.3-1.el5.x86_64
∙systat-7.0.2-3.el5.x86_64
10.Usebelowscripttoinstallremainingpackages:
yuminstallbinutils\
compat-libcap1\
compat-libstdc++-33\
compat-libstdc++-33.i686\
gcc.x86_64\
gcc-c++.x86_64\
glibc.x86_64\
glibc.i686\
glibc-devel.x86_64\
glibc-devel.i686\
unixODBC.i686\
unixODBC.x86_64\
unixODBC-devel.x86_64\
unixODBC-devel.i686\
libgcc.x86_64\
libgcc.i686\
libstdc++.x86_64\
libstdc++.i686\
libstdc++-devel.x86_64\
libstdc++-devel.i686\
compat-libstdc++-33.x86_64\
libaio.x86_64\
libaio.i686\
libaio-devel.x86_64\
libaio-devel.i686\
sysstat.x86_64\
ksh\
libXtst-devel.x86_64\
libXtst.i686\
compat-db.x86_64\
xorg-x11-utils.x86_64\
xorg-x11-xinit.x86_64\
make
11.
Viewtheinstalledpackageswiththiscommand:
runcommand“rpm–q<
packagename>
12.Confirmthatthefollowingpackageshavebeeninstalled:
∙binutils-2.20.51.0.2-5.11.el6(x86_64)
∙compat-libcap1-1.10-1(x86_64)
∙compat-libstdc++-33-3.2.3-69.el6(x86_64)
∙compat-libstdc++-33-3.2.3-69.el6.i686
∙gcc-4.4.4-13.el6(x86_64)
∙gcc-c++-4.4.4-13.el6(x86_64)
∙glibc-2.12-1.7.el6(i686)
∙glibc-2.12-1.7.el6(x86_64)
∙glibc-devel-2.12-1.7.el6(x86_64)
∙glibc-devel-2