北京华胜天城科技股份有限公司第1页共58页HACMPOracleRac安装设置手册版本v1.0二零一二年十月北京华胜天成科技股份有限公司北京华胜天城科技股份有限公司第2页共58页文档控制更改记录版本创建/修改时间编制/修改者文件/修改内容审批人V1.02012.10审阅姓名职位发布姓名职位北京华胜天城科技股份有限公司第3页共58页目录目录...........................................................................................................................................3第1章HACMPv5.4安装配置..............................................................................................41.1、IP规划...................................................................................................................41.2、安装HACMP软件................................................................................................41.2.1、操作系统版本.............................................................................................41.2.2、安装依赖的软件包.....................................................................................41.2.3、安装HACMPv5.4......................................................................................61.3、HACMP配置规划.................................................................................................81.3.1、配置IP和网络...........................................................................................81.3.2、编辑/etc/hosts文件.....................................................................................81.3.3、创建共享卷组和文件系统.........................................................................91.4、HACMPStandard配置........................................................................................101.4.1、添加cluster和节点.................................................................................111.4.2、创建并配置资源组...................................................................................111.4.3、同步HACMP的配置...............................................................................131.5、HACMP启动......................................................................................................131.5.1、启动HACMP............................................................................................13第2章OracleRAC安装配置..............................................................................................132.1、规划......................................................................................................................132.2、安装检查..............................................................................................................152.3、安装前配置..........................................................................................................172.4、安装CRS.............................................................................................................202.5、安装数据库..........................................................................................................392.6、创建数据库..........................................................................................................462.7、数据测试..............................................................................................................57北京华胜天城科技股份有限公司第4页共58页第1章HACMPv5.4安装配置1.1、IP规划NodeInterfaceNameTypeIPAddressRegisteredInibm03ibm03Public192.168.1.48Hostsfileibm03ibm03-vipVirtual192.168.1.210Hostsfileibm03ibm03-privPrivate172.16.1.48Hostsfileibm04ibm04Public192.168.1.49Hostsfileibm04ibm04-vipVirtual192.168.1.211Hostsfileibm04ibm04-privPrivate172.16.1.49Hostsfile1.2、安装HACMP软件完成HACMP安装配置规划后,可以开始安装HACMP软件,安装版本为HACMPv5.4。1.2.1、操作系统版本#oslevel-r5300-061.2.2、安装依赖的软件包检查系统的软件安装包,请参照IBM红皮书中《HighAvailabilityClusterMulti-ProcessingforAIX5LInstallationGuide》。这里我们建议安装软件束APP-DEV和SERVER,其中包括的红皮书要求的大部分软件包。安装rsct软件包:rsct.basicrsct.compat.basicrsct.compat.clients北京华胜天城科技股份有限公司第5页共58页rsct.opt.storagerm(可选)安装其它软件包:bos.clvm(使用并行资源组时需要,RAC下必须安装此包)bos.data#smittyinstall_latestInstallSoftwareTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]INPUTdevice/directoryforsoftware/dev/cd0SOFTWAREtoinstall[_all_latest]PREVIEWonly?(installoperationwillNOToccur)noCOMMITsoftwareupdates?yesSAVEreplacedfiles?noAUTOMATICALLYinstallrequisitesoftware?yesEXTENDfilesystemsifspaceneeded?yesOVERWRITEsameornewerversions?noVERIFYinstallandcheckfilesizes?noIncludecorrespondingLANGUAGEfilesets?yesDETAILEDoutput?noProcessmultiplevolumes?yesACCEPTnewlicenseagreements?yesPREVIEWnewLICENSEagreements?no在“SOFTWAREtoinstall”一栏中选择要安装的软件包,“ACCEPTnewlicenseagreements”中接受许可协议,即完成安装软件包。或参考以下脚本命令:#安装软件包/usr/lib/instl/sm_instinstallp_cmd-a-Q-d'/dev/cd0'-f'bos.clvmALL@@I:bos.clvm_all_filesets,bos.dataALL@@I:bos.data_all_filesets,rsct.basicALL@@I:rsct.basic_all_filesets,rsct.compat.basicALL@@I:rsct.compat.basic_all_filesets,rsct.compat.clientsALL@@I:rsct.compat.clients_all_filesets,rsct.opt.storagermALL@@I:rsct.opt.storagerm_all_filesets''-c''-N''-g''-X''-G''-Y'#北京华胜天城科技股份有限公司第6页共58页1.2.3、安装HACMPv5.4除了haview,netwiew(Tivoli),的包以外,所有的HACMP的软件包都要安装,rsct.opt.storagerm为可选安装包,对于基本包在安装光盘或Expansion光盘上可以查找到。#smittyinstall_latestInstallSoftwareTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]INPUTdevice/directoryforsoftware/dev/cd0SOFTWAREtoinstall[