Oracle Study之-AIX6.1構建Oracle 10gR2 RAC(4)

來源:互聯網
上載者:User

標籤:安裝路徑   get   nod   suitable   active   targe   operation   nload   existing   

Oracle Study之-AIX6.1構建Oracle 10gR2 RAC(4) 一、安裝CRS補丁 在安裝CRS之前,須要安裝補丁p6718715_10203_AIX64-5L,否則在安裝時會出現“無法發現node”的錯誤。 [[email protected] /]#cd /home/oracle/p6718715_10203_AIX64-5L/ 補丁解壓後,僅僅須要以root身份執行“root.sh”就可以:
[[email protected] p6718715_10203_AIX64-5L]#./rootpre.sh

./rootpre.sh output will be logged in /tmp/rootpre.out_16-03-15.17:51:20Saving the original files in /etc/ora_save_16-03-15.17:51:20....Copying new kernel extension to /etc...../rootpre.sh[295]: test: argument expectedLoading 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: 0x50e5d000The kernel extension was successfuly loaded../rootpre.sh[360]: test: argument expectedChecking if group services should be configured....Please confirm your Oracle userid is a member of the group: hagsuserConfiguring HACMP group services socket for possible use by Oracle.
二、安裝CRS 以Oracle身份安裝: 安裝前檢測: [[email protected] cluvfy]$./runcluvfy.sh?
USAGE:cluvfy [ -help ]cluvfy stage { -list | -help }cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]cluvfy comp  { -list | -help }cluvfy comp  <component-name> <component-specific options>  [-verbose]

[[email protected] cluvfy]$./runcluvfy.sh stage -pre crsinst -n aix203,aix204 -verbose
Performing pre-checks for cluster services setup Checking node reachability...Check: Node reachability from node "aix203"  Destination Node                      Reachable?

------------------------------------ ------------------------ aix203 yes aix204 yes Result: Node reachability check passed from node "aix203".Checking user equivalence...Check: User equivalence for user "oracle" Node Name Comment ------------------------------------ ------------------------ aix204 passed aix203 passed Result: User equivalence check passed for user "oracle".Checking administrative privileges...Check: Existence of user "oracle" Node Name User Exists Comment ------------ ------------------------ ------------------------ aix204 yes passed aix203 yes passed Result: User existence check passed for "oracle".Check: Existence of group "oinstall" Node Name Status Group ID ------------ ------------------------ ------------------------ aix204 exists 300 aix203 exists 300 Result: Group existence check passed for "oinstall".Check: Membership of user "oracle" in group "oinstall" [as Primary] Node Name User Exists Group Exists User in Group Primary Comment ---------------- ------------ ------------ ------------ ------------ ------------ aix204 yes yes yes yes passed aix203 yes yes yes yes passed Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.Administrative privileges check passed.Checking node connectivity...Interface information for node "aix204" Interface Name IP Address Subnet ------------------------------ ------------------------------ ---------------- en0 192.168.8.204 192.168.8.0 en2 10.10.10.204 10.10.10.0 Interface information for node "aix203" Interface Name IP Address Subnet ------------------------------ ------------------------------ ---------------- en0 192.168.8.203 192.168.8.0 en2 10.10.10.203 10.10.10.0 Check: Node connectivity of subnet "192.168.8.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------- aix204:en0 aix203:en0 yes Result: Node connectivity check passed for subnet "192.168.8.0" with node(s) aix204,aix203.Check: Node connectivity of subnet "10.10.10.0" Source Destination Connected?

------------------------------ ------------------------------ ---------------- aix204:en2 aix203:en2 yes Result: Node connectivity check passed for subnet "10.10.10.0" with node(s) aix204,aix203.Suitable interfaces for the private interconnect on subnet "192.168.8.0":aix204 en0:192.168.8.204aix203 en0:192.168.8.203Suitable interfaces for the private interconnect on subnet "10.10.10.0":aix204 en2:10.10.10.204aix203 en2:10.10.10.203ERROR: Could not find a suitable set of interfaces for VIPs.Result: Node connectivity check failed.Checking system requirements for ‘crs‘...No checks registered for this product.Pre-check for cluster services setup was unsuccessful on all the nodes.


安裝: 1)指定安裝路徑
2)檢查安裝環境
出現警告提示:對於AIX 6100-09,Oracle 10gR2不支援,不用理會,繼續安裝就能夠
3)配置節點

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" />

4)配置OCR 和 Vote Disk

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" />

5)安裝

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" />
6)執行Script

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" />

在執行指令碼前能夠通過dd。清理ocr和vote disk:
node1:[[email protected] /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[[email protected] /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[[email protected] /]#/u01/crs_1/root.sh

WARNING: directory ‘/u01‘ is not owned by rootChecking to see if Oracle CRS stack is already configuredChecking to see if any 9i GSD is upSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory ‘/u01‘ is not owned by rootSuccessfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: aix203 aix203-priv aix203node 2: aix204 aix204-priv aix204Creating OCR keys for user ‘root‘, privgrp ‘system‘..Operation successful.Now formatting voting device: /dev/rrac_voteFormat of 1 voting devices complete.Startup will be queued to init within 30 seconds.Adding daemons to inittabAdding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.        aix203CSS is inactive on these nodes.        aix204Local node checking complete.Run root.sh on remaining nodes to start CRS daemons.
node2:
[[email protected] /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in
2560+0 records out
[[email protected] /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[[email protected] /]#/u01/crs_1/root.sh
WARNING: directory ‘/u01‘ is not owned by rootChecking to see if Oracle CRS stack is already configuredChecking to see if any 9i GSD is up/etc/oracle does not exist. Creating it now.Setting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory ‘/u01‘ is not owned by rootclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: aix203 aix203-priv aix203node 2: aix204 aix204-priv aix204clscfg: Arguments check out successfully.NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 30 seconds.Adding daemons to inittabAdding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.        aix203        aix204CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startWaiting for the Oracle CRSD and EVMD to start<span style="color:#cc0000;">Oracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeappsThe given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.</span>

7)執行vipca配置CRS資源 [[email protected] /]#cd /u01/crs_1/bin
[[email protected] bin]#./vipca



watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" />

三、查看CRS服務及資源

<strong>[[email protected] /]#crsctl check crs</strong>CSS appears healthyCRS appears healthyEVM appears healthy<strong>[[email protected] /]#crs_stat -t</strong>Name           Type           Target    State     Host        ------------------------------------------------------------ora.aix203.gsd application    ONLINE    ONLINE    aix203      ora.aix203.ons application    ONLINE    ONLINE    aix203      ora.aix203.vip application    ONLINE    ONLINE    aix203      ora.aix204.gsd application    ONLINE    ONLINE    aix204      ora.aix204.ons application    ONLINE    ONLINE    aix204      ora.aix204.vip application    ONLINE    ONLINE    aix204<strong>[[email protected] bin]#crsctl check crs</strong>CSS appears healthyCRS appears healthyEVM appears healthy<strong>[[email protected] bin]#crs_stat -t</strong>Name           Type           Target    State     Host        ------------------------------------------------------------ora.aix203.gsd application    ONLINE    ONLINE    aix203      ora.aix203.ons application    ONLINE    ONLINE    aix203      ora.aix203.vip application    ONLINE    ONLINE    aix203      ora.aix204.gsd application    ONLINE    ONLINE    aix204      ora.aix204.ons application    ONLINE    ONLINE    aix204      ora.aix204.vip application    ONLINE    ONLINE    aix204  

---- 至此,CRS安裝配置成功 。
------未完,待續 !





Oracle Study之-AIX6.1構建Oracle 10gR2 RAC(4)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.