Oracle 10203 RAC環境添加新節點(二) CLUSTER軟體的建立

來源:互聯網
上載者:User

簡單描述一下,在Oracle 10203 for Solaris sparc的RAC雙節點環境中,新增一個節點的過程。共用儲存已經在第三個節點上配置完成,這裡主要介紹作業系統上和Oracle上的配置。

這一篇描述CLUSTER軟體的建立。

在新增節點racnode3上將共用儲存上的裸裝置授權給Oracle使用者:

bash-3.00# chown oracle:oinstall /dev/rdsk/c1t500601603022E66Ad*

建立和節點1、節點2上一致的/dev/rac/vot和/dev/rac/ocr連結,執行相同的裸裝置檔案:

bash-3.00# mkdir /dev/rac

bash-3.00# ln -s /dev/rdsk/c1t500601603022E66Ad2s1 /dev/rac/ocr

bash-3.00# ln -s /dev/rdsk/c1t500601603022E66Ad2s3 /dev/rac/vot

在安裝節點執行$ORA_CLS_HOME/out/bin/addNode.sh來啟動圖形化介面添加新的節點:

bash-2.03$ ./addNode.sh

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.8

 Passed

Checking Temp space: must be greater than 150 MB.   Actual 8715 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

All installer requirements met.

Oracle Universal Installer, Version 10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

在圖形介面中,填入新增節點的PUBLIC、PRIVATE和VIP對應的名稱。

安裝過程Oracle跳過了一些遠端執行碰到的錯誤,需要手工更正,在racnode3上執行下面的指令碼:

bash-3.00$ /data/oracle/product/10.2/crs/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/crs ORACLE_HOME_NAME=OraCrs10g_home1 CLUSTER_NODES=racnode1,racnode2,racnode3 CRS=true "INVENTORY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10

 Passed

Checking Temp space: must be greater than 250 MB.   Actual 10167 MB    Passed

Checking swap space: must be greater than 500 MB.   Actual 7415 MB    Passed

All installer requirements met.

'AttachHome' was successful.

在節點2上執行下面的指令碼:

bash-2.03$ /data/oracle/product/10.2/crs/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/crs CLUSTER_NODES=racnode1,racnode2,racnode3 CRS=true "INVENTROY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode2

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.8

 Passed

Checking Temp space: must be greater than 150 MB.   Actual 8233 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

All installer requirements met.

'UpdateNodeList' was successful.

節點3上運行類似的指令碼:

bash-3.00$ /data/oracle/product/10.2/crs/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/crs CLUSTER_NODES=racnode1,racnode2,racnode3 CRS=true "INVENTROY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.10

 Passed

Checking Temp space: must be greater than 250 MB.   Actual 10167 MB    Passed

Checking swap space: must be greater than 500 MB.   Actual 7415 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

All installer requirements met.

'UpdateNodeList' was successful.

隨後需要依次執行下面的指令碼:

1.節點3上的/data/oracle/oraInventory/orainstRoot.sh:

bash-3.00# ./data/oracle/oraInventory/orainstRoot.sh

Creating the Oracle inventory pointer file (/var/opt/oracle/oraInst.loc)

Changing permissions of /data/oracle/oraInventory to 770.

Changing groupname of /data/oracle/oraInventory to oinstall.

The execution of the script. is complete

2.節點1上的/data/oracle/product/10.2/crs/install/rootaddnode.sh:

# ./data/oracle/product/10.2/crs/install/rootaddnode.sh

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is10GRelease 2.

Attempting to add 1 new nodes to the configuration

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 3: racnode3 racnode3-priv racnode3

Creating OCR keys for user 'root', privgrp 'other'..

Operation successful.

/data/oracle/product/10.2/crs/bin/srvctl add nodeapps -n racnode3 -A racnode3-vip/255.255.255.0/ce0 -o /data/oracle/product/10.2/crs

查看本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.