安裝三節點RAC11202 on Solaris10 sparc64(二)

yangtingkun發表於2011-05-03

由於11.2.0.2ORACLE RAC on Solaris 10才支援acfs,因此測試一下Oracle 11.2.0.2三節點RAC的安裝過程。

這一篇描述CLUSTER的安裝。

安裝三節點RAC11202 on Solaris10 sparc64(一):http://yangtingkun.itpub.net/post/468/517282

 

 

需要注意11.2.0.2補丁比較特殊,Solaris10 sparc 64上的11.2.0.25個多G包括了7個檔案,其中檔案12是資料庫,檔案3grid,檔案4client,檔案5gateway,檔案6example,檔案7deinstall。因此11.2.0.2不需要在已有的11.2.0.1上升級,而是可以直接進行安裝。

登陸圖形化介面執行:

# xhost +
access control disabled, clients can connect from any host
# su - oracle
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ bash
bash-3.00$ cd /data/software/11.2.0.2/grid/
bash-3.00$ ./runInstaller

11.2.0.1不同,第一個頁面是下載軟體更新:這裡配置軟體更新資訊和metalink帳號的配置選項;

然後是安裝選項的配置,這裡選擇:安裝和配置叢集的網格基礎結構;

安裝型別選擇高階安裝,這樣擁有更多的選擇權;

產品語言:預設就是英文和簡體中文;

網格即插即用:不要配置GNS,叢集名稱為racnode-clusterSCAN名稱配置為racnode-cluster

叢集節點資訊:新增另兩個節點172.25.198.223172.25.198.226。並輸入這三個地址對應的VIP地址。然後選擇SSH連線,輸入oracle使用者對應的密碼,點選配置,輸出“已在所選節點之間成功建立無口令SSH連線。”證明SSH配置成功;

網路介面配置:oracle預設選擇了ce0,作為共用網路介面,選擇ce1作為專用網路介面,這裡不需要額外的配置;

儲存選項:選擇自動儲存管理(ASM);

建立ASM磁碟組:名稱為DATA,由於使用了RAID 0+1,這裡選擇外部冗餘,列出所有的候選磁碟,選擇ASM磁碟組使用的磁碟;

ASM口令:為ASM使用者輸入口令;

作業系統組:由於建立組使用者的時候沒有分別建立多個組,所以這裡所有的組都選擇dba組;

安裝位置:Oracle基目錄選擇/data/oracleCLUSTER安裝目錄選擇/data/grid

建立產品清單:Oracle會建立/data/oraInventory目錄;

檢查安裝先決條件:忽略錯誤繼續安裝;

概要:這裡可以選擇儲存Oracle生成的響應檔案,點選完成,Oracle開始安裝工作。

安裝到最後一部,需要在三個節點用root分別執行兩個shell指令碼。

第一個指令碼:

# /data/oraInventory/orainstRoot.sh
更改許可權/data/oraInventory.
新增組的讀取和寫入許可權。
刪除全域性的讀取, 寫入和執行許可權。

更改組名/data/oraInventory oinstall.
指令碼的執行已完成。

節點1上執行第二個指令碼:

bash-3.00# /data/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding daemon to inittab
錯誤字串
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9312: Existing ADVM/ACFS installation detected.
ACFS-9314: Removing previous ADVM/ACFS installation.
ACFS-9315: Previous ADVM/ACFS components successfully removed.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'racnode1'
CRS-2676: Start of 'ora.mdnsd' on 'racnode1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'racnode1'
CRS-2676: Start of 'ora.gpnpd' on 'racnode1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'racnode1'
CRS-2672: Attempting to start 'ora.gipcd' on 'racnode1'
CRS-2676: Start of 'ora.cssdmonitor' on 'racnode1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'racnode1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'racnode1'
CRS-2672: Attempting to start 'ora.diskmon' on 'racnode1'
CRS-2676: Start of 'ora.diskmon' on 'racnode1' succeeded
CRS-2676: Start of 'ora.cssd' on 'racnode1' succeeded

已成功建立並啟動 ASM

已成功建立磁碟組DATA

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 823f8fbc349b4fdfbffc8770ed953926.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   823f8fbc349b4fdfbffc8770ed953926 (/dev/rdsk/c0t500601603022E66Ad0s6) [DATA]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'racnode1'
CRS-2676: Start of 'ora.asm' on 'racnode1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'racnode1'
CRS-2676: Start of 'ora.DATA.dg' on 'racnode1' succeeded
ACFS-9200: Supported
ACFS-9200: Supported
CRS-2672: Attempting to start 'ora.registry.acfs' on 'racnode1'
CRS-2676: Start of 'ora.registry.acfs' on 'racnode1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

節點2和節點3上執行第二個指令碼:

# /data/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
錯誤字串
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9312: Existing ADVM/ACFS installation detected.
ACFS-9314: Removing previous ADVM/ACFS installation.
ACFS-9315: Previous ADVM/ACFS components successfully removed.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4402: CSS
守護程式已在獨佔模式下啟動, 但在節點 racnode1 (編號為 1) 上發現活動 CSS 守護程式, 因此正在終止
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

至此,CLUSTER軟體以及ASM磁碟配置完成。

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-694381/,如需轉載,請註明出處,否則將追究法律責任。

相關文章