Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)
Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)
一、安装CRS补丁
在安装CRS之前,需要安装补丁p6718715_10203_AIX64-5L,否则在安装时会出现“无法发现node”的错误。
[root@aix203 /]#cd /home/oracle/p6718715_10203_AIX64-5L/
补丁解压后,只需要以root身份运行“root.sh”即可:
[root@aix203 p6718715_10203_AIX64-5L]#./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_16-03-15.17:51:20
Saving the original files in /etc/ora_save_16-03-15.17:51:20....
Copying new kernel extension to /etc....
./rootpre.sh[295]: test: argument expected
Loading the kernel extension from /etc
Oracle Kernel Extension Loader for AIX
Copyright (c) 1998,1999 Oracle Corporation
Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it
Unconfigured the kernel extension successfully
Unloaded the kernel extension successfully
Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
The kernel extension was successfuly loaded.
./rootpre.sh[360]: test: argument expected
Checking if group services should be configured....
Please confirm your Oracle userid is a member of the group: hagsuser
Configuring HACMP group services socket for possible use by Oracle.
二、安装CRS
以Oracle身份安装:
安装前检测:
[oracle@aix203cluvfy]$./runcluvfy.shUSAGE:cluvfy[-help]cluvfystage{-list|-help}cluvfystage{-pre|-post}<stage-name><stage-specificoptions>[-verbose]cluvfycomp{-list|-help}cluvfycomp<component-name><component-specificoptions>[-verbose][oracle@aix203cluvfy]$./runcluvfy.shstage-precrsinst-naix203,aix204-verbosePerformingpre-checksforclusterservicessetupCheckingnodereachability...Check:Nodereachabilityfromnode"aix203"DestinationNodeReachable?------------------------------------------------------------aix203yesaix204yesResult:Nodereachabilitycheckpassedfromnode"aix203".Checkinguserequivalence...Check:Userequivalenceforuser"oracle"NodeNameComment------------------------------------------------------------aix204passedaix203passedResult:Userequivalencecheckpassedforuser"oracle".Checkingadministrativeprivileges...Check:Existenceofuser"oracle"NodeNameUserExistsComment------------------------------------------------------------aix204yespassedaix203yespassedResult:Userexistencecheckpassedfor"oracle".Check:Existenceofgroup"oinstall"NodeNameStatusGroupID------------------------------------------------------------aix204exists300aix203exists300Result:Groupexistencecheckpassedfor"oinstall".Check:Membershipofuser"oracle"ingroup"oinstall"[asPrimary]NodeNameUserExistsGroupExistsUserinGroupPrimaryComment----------------------------------------------------------------------------aix204yesyesyesyespassedaix203yesyesyesyespassedResult:Membershipcheckforuser"oracle"ingroup"oinstall"[asPrimary]passed.Administrativeprivilegescheckpassed.Checkingnodeconnectivity...Interfaceinformationfornode"aix204"InterfaceNameIPAddressSubnet----------------------------------------------------------------------------en0192.168.8.204192.168.8.0en210.10.10.20410.10.10.0Interfaceinformationfornode"aix203"InterfaceNameIPAddressSubnet----------------------------------------------------------------------------en0192.168.8.203192.168.8.0en210.10.10.20310.10.10.0Check:Nodeconnectivityofsubnet"192.168.8.0"SourceDestinationConnected?----------------------------------------------------------------------------aix204:en0aix203:en0yesResult:Nodeconnectivitycheckpassedforsubnet"192.168.8.0"withnode(s)aix204,aix203.Check:Nodeconnectivityofsubnet"10.10.10.0"SourceDestinationConnected?----------------------------------------------------------------------------aix204:en2aix203:en2yesResult:Nodeconnectivitycheckpassedforsubnet"10.10.10.0"withnode(s)aix204,aix203.Suitableinterfacesfortheprivateinterconnectonsubnet"192.168.8.0":aix204en0:192.168.8.204aix203en0:192.168.8.203Suitableinterfacesfortheprivateinterconnectonsubnet"10.10.10.0":aix204en2:10.10.10.204aix203en2:10.10.10.203ERROR:CouldnotfindasuitablesetofinterfacesforVIPs.Result:Nodeconnectivitycheckfailed.Checkingsystemrequirementsfor'crs'...Nochecksregisteredforthisproduct.Pre-checkforclusterservicessetupwasunsuccessfulonallthenodes.
安装:
1)指定安装路径
2)检查安装环境
出现警告提示:对于AIX 6100-09,Oracle 10gR2不支持,不用理会,继续安装就可以
3)配置节点
4)配置OCR 和 Vote Disk
5)安装
6)运行Script
在运行脚本前可以通过dd,清理ocr和vote disk:
node1:
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#/u01/crs_1/root.sh
WARNING:directory'/u01'isnotownedbyrootCheckingtoseeifOracleCRSstackisalreadyconfiguredCheckingtoseeifany9iGSDisupSettingthepermissionsonOCRbackupdirectorySettingupNSdirectoriesOracleClusterRegistryconfigurationupgradedsuccessfullyWARNING:directory'/u01'isnotownedbyrootSuccessfullyaccumulatednecessaryOCRkeys.Usingports:CSS=49895CRS=49896EVMC=49898andEVMR=49897.node<nodenumber>:<nodename><privateinterconnectname><hostname>node1:aix203aix203-privaix203node2:aix204aix204-privaix204CreatingOCRkeysforuser'root',privgrp'system'..Operationsuccessful.Nowformattingvotingdevice:/dev/rrac_voteFormatof1votingdevicescomplete.Startupwillbequeuedtoinitwithin30seconds.AddingdaemonstoinittabAddingdaemonstoinittabExpectingtheCRSdaemonstobeupwithin600seconds.CSSisactiveonthesenodes.aix203CSSisinactiveonthesenodes.aix204Localnodecheckingcomplete.Runroot.shonremainingnodestostartCRSdaemons.
node2:
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix204 /]#/u01/crs_1/root.sh
WARNING:directory'/u01'isnotownedbyrootCheckingtoseeifOracleCRSstackisalreadyconfiguredCheckingtoseeifany9iGSDisup/etc/oracledoesnotexist.Creatingitnow.SettingthepermissionsonOCRbackupdirectorySettingupNSdirectoriesOracleClusterRegistryconfigurationupgradedsuccessfullyWARNING:directory'/u01'isnotownedbyrootclscfg:EXISTINGconfigurationversion3detected.clscfg:version3is10GRelease2.SuccessfullyaccumulatednecessaryOCRkeys.Usingports:CSS=49895CRS=49896EVMC=49898andEVMR=49897.node<nodenumber>:<nodename><privateinterconnectname><hostname>node1:aix203aix203-privaix203node2:aix204aix204-privaix204clscfg:Argumentscheckoutsuccessfully.NOKEYSWEREWRITTEN.Supply-forceparametertooverride.-forceisdestructiveandwilldestroyanypreviousclusterconfiguration.OracleClusterRegistryforclusterhasalreadybeeninitializedStartupwillbequeuedtoinitwithin30seconds.AddingdaemonstoinittabAddingdaemonstoinittabExpectingtheCRSdaemonstobeupwithin600seconds.CSSisactiveonthesenodes.aix203aix204CSSisactiveonallnodes.WaitingfortheOracleCRSDandEVMDtostartWaitingfortheOracleCRSDandEVMDtostartOracleCRSstackinstalledandrunningunderinit(1M)
Running vipca(silent) for configuring nodeapps
The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.
7)运行vipca配置CRS资源
[root@aix204 /]#cd /u01/crs_1/bin
[root@aix204 bin]#./vipca
三、查看CRS服务及资源
[root@aix203 /]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix203 /]#crs_stat -t
NameTypeTargetStateHost------------------------------------------------------------ora.aix203.gsdapplicationONLINEONLINEaix203ora.aix203.onsapplicationONLINEONLINEaix203ora.aix203.vipapplicationONLINEONLINEaix203ora.aix204.gsdapplicationONLINEONLINEaix204ora.aix204.onsapplicationONLINEONLINEaix204ora.aix204.vipapplicationONLINEONLINEaix204
[root@aix204 bin]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix204 bin]#crs_stat -t
NameTypeTargetStateHost------------------------------------------------------------ora.aix203.gsdapplicationONLINEONLINEaix203ora.aix203.onsapplicationONLINEONLINEaix203ora.aix203.vipapplicationONLINEONLINEaix203ora.aix204.gsdapplicationONLINEONLINEaix204ora.aix204.onsapplicationONLINEONLINEaix204ora.aix204.vipapplicationONLINEONLINEaix204
---- 至此,CRS安装配置成功 !
------未完,待续 !
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。