您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > linux/Unix相关 > RAC安装配置注意文档(Linux版)
CRS安装配置注意文档工作环境:MicrosoftWindowsXPProfessionalServicePack3Vmware版本:VmwareGSXServer3.2.1build-19281Linux版本:OracleEnterprise-R5-U2-Servercrs:10201_clusterware_linux32.ziporacle_home:10201_database_linux32.zip关于PUBLICNODENAME和机器名相同,机器名应较短(原因详见FailedtoupgradeOracleClusterRegistryconfiguration报错)[修改机器名:/etc/sysconfig/network]网络组件配置多个虚拟机PrivateNIC引用同一个Vmnet(n)虚拟网卡(启动DHCP服务)然后使用固定IP不同的服务器绑定不同的地址。使用Vmware创建共享磁盘创建磁盘:vmware-vdiskmanager-c-s10Gb-alsilogic-t0E:\vm_linuxs\linuxserver1\shareddisk.vmdk设置共享:多个虚拟机文件的vmx都需要修改同样配置:scsi1.present=TRUEscsi1:0.present=TRUEscsi1:0.fileName=E:\vm_linuxs\linuxserver1\shareddisk.vmdkscsi1:0.mode=independent-persistentscsi1.virtualDev=lsilogicdisk.locking=FALSEscsi1.SharedBus=Virtual相关设置:OCR,VDISK裸设备配置磁盘分区:fdisk/dev/sdb/dev/sdb5(100M)/dev/sdb6(50M)添加映射文件:raw/dev/raw/raw1/dev/sdb5(OCR)raw/dev/raw/raw2/dev/sdb6(Vdisk)随系统自动映射:系统重启后raw后的映射文件会消失,所以需要在启动时完成映射工作(所有NODE):/etc/rc.localraw/dev/raw/raw1/dev/sdb5raw/dev/raw/raw2/dev/sdb6chownoracle:oinstall/dev/raw/*为用户等效性配置SSH每台服务器以Oracle身份执行:mkdir~/.sshchmod755~/.ssh/usr/bin/ssh-keygen-trsa/usr/bin/ssh-keygen-tdsa主服务器以Oracle身份执行:cat~/.ssh/id_rsa.pub~/.ssh/authorized_keyscat~/.ssh/id_dsa.pub~/.ssh/authorized_keyssshoracle@ds2cat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshoracle@ds2cat~/.ssh/id_dsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keys次服务器以Oracle身份执行:cat~/.ssh/id_rsa.pub~/.ssh/authorized_keyscat~/.ssh/id_dsa.pub~/.ssh/authorized_keyssshoracle@ds1cat~/.ssh/id_rsa.pub~/.ssh/authorized_keyssshoracle@ds1cat~/.ssh/id_dsa.pub~/.ssh/authorized_keyschmod644~/.ssh/authorized_keys测试连通性所有的机器都要测试,临时性,下次需要重新执行exec/usr/bin/ssh-agent$SHELL/usr/bin/ssh-addsshds2date确保Oracle用户之间的连通有效性在执行集群安装(./runInstaller,dbca,vipca等)前要执行:sshpublicnode1namedatesshpublicnode2namedatesshprivatenode1namedatesshprivatenode2namedate错误收集执行root.sh报错:FailedtoupgradeOracleClusterRegistryconfigurationthereisanorablebugcausallyforthedescribedproblem:bug4632899:CSSnotstartingupifhostnamehascapitalletters-OSSolarisAfterchanginghostnamestosmallercaseweretriedCRSinstallationsuccessfully.执行root.sh的OracleClusterVerificationUtilityFailed(是由于root.sh调用vipca执行失败,详情见下)执行vipca时报错:libpthread.so.0:cannotopensharedobjectfile:SRVCTLandVIPCAUtilitiesSettheLD_ASSUME_KERNELParameterTheSRVCTLandVIPCAutilitiesshippedwithOracleDatabase10grelease2andOracleClusterwaresoftwaresettheenvironmentalvariableLD_ASSUME_KERNEL.OnSUSELinuxEnterpriseServer10,becausetheolderLinuxthreadsAPIhasbeenremovedfromGLIBC,settingthisparametercausestheSRVCTLandVIPCAutilitiestoexitwiththefollowingerror:/opt/oracle/crs/jdk/jre/bin/java:errorwhileloadingsharedlibraries:libpthread.so.0:cannotopensharedobjectfile:NosuchfileordirectoryWorkaround:CommentoutthelinesthatsettheLD_ASSUME_KERNELvariablefromtheVIPCAandSRVCTLutilities.FortheVIPCAutilityalterthe$CRS_HOME/bin/vipcascriptcommentingoutlines119through123asfollows:arch='uname-m'#if[$arch=i686-o$arch=ia64-o$arch=x86_64]#then#LD_ASSUME_KERNEL=2.4.19#exportLD_ASSUME_KERNEL#fiWiththelinescommentedout,root.shshouldbeabletocallVIPCAsuccessfully.Ensurethatyoudonottocommentoutline118whichsetsthearchvariableasthatisneededbythescript.FortheSRVCTLutilityalterthe$CRS_HOME/bin/srvctlandthe$ORACLE_HOME/bin/srvctlscriptscommentingoutlines173and174asfollows:#Removethisworkaroundwhenthebug3937317isfixed#LD_ASSUME_KERNEL=2.4.19#exportLD_ASSUME_KERNEL执行vipca时报错:Runningvipca(silent)forconfiguringnodeappsError0(Native:listNetInterfaces:[3])[Error0(Native:listNetInterfaces:[3])]安装CRS过程中,请点击提示执行root.sh的窗口完成,进入最后的配置验证界面,然后再单独运行vipca(root图形化)。执行root.sh时报错:OracleCRSstackisalreadyconfiguredandwillberunningunderinit(1M)导致失败:解决办法:在每个节点上删除文件:/etc/oracle/scls_scr/rac1/oracle/cssfatal其他root.sh在次服务器上执行成功
本文标题:RAC安装配置注意文档(Linux版)
链接地址:https://www.777doc.com/doc-7027496 .html