Solaris10下Silent模式安裝Oracle1106RAC環境(二)

yangtingkun發表於2009-01-22

主機環境基本上和前面文章中描述的SOLARIS10安裝Oracle1106rac的環境基本完全一致,最主要的區別在於沒有了VOLUMN CLUSTER MANAGER,於是這裡打算使用OracleASM。由於安裝操作沒有什麼區別,所以這次安裝選擇了SILENT靜默模式來安裝RAC

描述安裝CLUSTER軟體的準備工作。

Solaris10Silent模式安裝Oracle1106RAC環境(一):http://yangtingkun.itpub.net/post/468/477442

 

 

在兩個節點分別執行下面的操作,將密碼新增到agent中:

$ exec ssh-agent $SHELL
$ ssh-add
Enter passphrase for /export/home/oracle/.ssh/id_rsa:
Identity added: /export/home/oracle/.ssh/id_rsa (/export/home/oracle/.ssh/id_rsa)

然後透過runcluvfy檢查是否滿足了CLUSTER安裝的需求:

$ ./runcluvfy.sh stage -pre crsinst -n ser1,ser2 -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "ser1"
  Destination Node                      Reachable?             
  ------------------------------------  ------------------------
  ser1                                  yes                    
  ser2                                  yes                    
Result: Node reachability check passed from node "ser1".


Checking user equivalence...

Check: User equivalence for user "oracle"
  Node Name                             Comment                
  ------------------------------------  ------------------------
  ser2                                  passed                 
  ser1                                  passed                 
Result: User equivalence check passed for user "oracle".

Checking administrative privileges...

Check: Existence of user "oracle"
  Node Name     User Exists               Comment                
  ------------  ------------------------  ------------------------
  ser2          yes                       passed                 
  ser1          yes                       passed                 
Result: User existence check passed for "oracle".

Check: Existence of group "oinstall"
  Node Name     Status                    Group ID               
  ------------  ------------------------  ------------------------
  ser2          exists                    100                    
  ser1          exists                    100                    
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    
  ----------------  ------------  ------------  ------------  ------------  ------------
  ser2              yes           yes           yes           yes           passed     
  ser1              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 "ser2"
  Interface Name    IP Address    Subnet        Subnet Gateway  Default Gateway  Hardware Address
  ----------------  ------------  ------------  ------------  ------------  ------------
  ce0               172.0.2.63    172.0.2.0     172.0.2.63    UNKNOWN       00:14:4f:ad:4f:b6
  ce1               10.0.2.2      10.0.2.0      10.0.2.2      UNKNOWN       00:14:4f:ad:4f:b6


Interface information for node "ser1"
  Interface Name    IP Address    Subnet        Subnet Gateway  Default Gateway  Hardware Address
  ----------------  ------------  ------------  ------------  ------------  ------------
  ce0               172.0.2.62    172.0.2.0     172.0.2.62    UNKNOWN       00:14:4f:ad:4a:a2
  ce1               10.0.2.1      10.0.2.0      10.0.2.1      UNKNOWN       00:14:4f:ad:4a:a2


Check: Node connectivity of subnet "172.0.2.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  ser2:ce0                        ser1:ce0                        yes            
Result: Node connectivity check passed for subnet "172.0.2.0" with node(s) ser2,ser1.

Check: Node connectivity of subnet "10.0.2.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  ser2:ce1                        ser1:ce1                        yes            
Result: Node connectivity check passed for subnet "10.0.2.0" with node(s) ser2,ser1.

Interfaces found on subnet "172.0.2.0" that are likely candidates for VIP:
ser2 ce0:172.0.2.63
ser1 ce0:172.0.2.62

Interfaces found on subnet "10.0.2.0" that are likely candidates for VIP:
ser2 ce1:10.0.2.2
ser1 ce1:10.0.2.1

WARNING:
Could not find a suitable set of interfaces for the private interconnect.

Result: Node connectivity check passed.


Checking system requirements for 'crs'...

Check: Total memory
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          32GB (33554432KB)         1GB (1048576KB)           passed   
  ser1          32GB (33554432KB)         1GB (1048576KB)           passed   
Result: Total memory check passed.

Check: Free disk space in "/tmp" dir
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          56.25GB (58979312KB)      400MB (409600KB)          passed   
  ser1          55.55GB (58245360KB)      400MB (409600KB)          passed   
Result: Free disk space check passed.

Check: Swap space
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          29.3GB (30721336KB)       1.5GB (1572864KB)         passed   
  ser1          29.3GB (30721336KB)       1.5GB (1572864KB)         passed   
Result: Swap space check passed.

Check: System architecture
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          64-bit sparcv9 kernel modules  64-bit                    passed   
  ser1          64-bit sparcv9 kernel modules  64-bit                    passed   
Result: System architecture check passed.

Check: Kernel version
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          10,REV=2007.08.16.13.29   10,REV=2005.01.22.19.14   passed   
  ser1          10,REV=2007.08.16.13.29   10,REV=2005.01.22.19.14   passed   
Result: Kernel version check passed.

Check: Package existence for "SUNWarc"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWarc:11.10.0                 passed         
  ser1                            SUNWarc:11.10.0                 passed         
Result: Package existence check passed for "SUNWarc".

Check: Package existence for "SUNWbtool"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWbtool:11.10.0               passed         
  ser1                            SUNWbtool:11.10.0               passed         
Result: Package existence check passed for "SUNWbtool".

Check: Package existence for "SUNWhea"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWhea:11.10.0                 passed         
  ser1                            SUNWhea:11.10.0                 passed         
Result: Package existence check passed for "SUNWhea".

Check: Package existence for "SUNWlibm"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibm:5.10                   passed         
  ser1                            SUNWlibm:5.10                   passed         
Result: Package existence check passed for "SUNWlibm".

Check: Package existence for "SUNWlibms"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibms:5.10                  passed         
  ser1                            SUNWlibms:5.10                  passed         
Result: Package existence check passed for "SUNWlibms".

Check: Package existence for "SUNWsprot"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWsprot:5.10                  passed         
  ser1                            SUNWsprot:5.10                  passed         
Result: Package existence check passed for "SUNWsprot".

Check: Package existence for "SUNWtoo"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWtoo:11.10.0                 passed         
  ser1                            SUNWtoo:11.10.0                 passed         
Result: Package existence check passed for "SUNWtoo".

Check: Package existence for "SUNWxwfnt"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWxwfnt:6.6.2.7400            passed         
  ser1                            SUNWxwfnt:6.6.2.7400            passed         
Result: Package existence check passed for "SUNWxwfnt".

Check: Package existence for "SUNWlibC"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibC:5.10                   passed         
  ser1                            SUNWlibC:5.10                   passed         
Result: Package existence check passed for "SUNWlibC".

Check: Group existence for "dba"
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  ser2          exists                    passed                 
  ser1          exists                    passed                 
Result: Group existence check passed for "dba".

Check: Group existence for "oinstall"
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  ser2          exists                    passed                 
  ser1          exists                    passed                 
Result: Group existence check passed for "oinstall".

Check: User existence for "nobody"
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  ser2          exists                    passed                 
  ser1          exists                    passed                 
Result: User existence check passed for "nobody".

System requirement passed for 'crs'

Pre-check for cluster services setup was successful.

下面就可以開始SILENT安裝了。

可以透過編輯Oracle Cluster自帶的response檔案的方式,來定製silent安裝模式的選項,新建一個my_crs.rsp檔案,新增下面的內容,並設定檔案屬性為700

$ vi my_crs.rsp
"my_crs.rsp" [New file]
RESPONSEFILE_VERSION=2.2.1.0.0

UNIX_GROUP_NAME="oinstall"

FROM_LOCATION="/data/clusterware/stage/products.xml"

ORACLE_HOME="/data/oracle/product/11.1/crs"

ORACLE_HOME_NAME="OraClusterware11ghome1"

TOPLEVEL_COMPONENT={"oracle.crs","11.1.0.6.0"}

DEINSTALL_LIST={"oracle.crs","11.1.0.6.0"}

SHOW_SPLASH_SCREEN=false

SHOW_WELCOME_PAGE=false

SHOW_NODE_SELECTION_PAGE=false

SHOW_SUMMARY_PAGE=false

SHOW_INSTALL_PROGRESS_PAGE=false

SHOW_CONFIG_TOOL_PAGE=false

SHOW_XML_PREREQ_PAGE=false

SHOW_ROOTSH_CONFIRMATION=true

SHOW_END_SESSION_PAGE=false

SHOW_EXIT_CONFIRMATION=false

NEXT_SESSION=false

NEXT_SESSION_ON_FAIL=false

SHOW_DEINSTALL_CONFIRMATION=false

SHOW_DEINSTALL_PROGRESS=false

RESTART_SYSTEM=false

RESTART_REMOTE_SYSTEM=false

SHOW_END_OF_INSTALL_MSGS=false

COMPONENT_LANGUAGES={"en","zh_CN"}

s_clustername=ora11_cluster

sl_tableList={"ser1:ser1-priv:ser1-vip:N:Y","ser2:ser2-priv:ser2-vip:N:Y"}

ret_PrivIntrList={"ce0:255.255.255.0:1","ce1:255.255.255.0:2"}

n_storageTypeOCR=1
s_ocrpartitionlocation="/dev/rdsk/emcpower0d"
s_ocrMirrorLocation=""

n_storageTypeVDSK=1
s_votingdisklocation="/dev/rdsk/emcpower0e"
s_OcrVdskMirror1RetVal=""
s_VdskMirror2RetVal=""

"my_crs.rsp" [New file] 65 lines, 1190 characters
$ chmod 700 my_crs.rsp

簡單描述一下一些重要引數:

FROM_LOCATION引數是Oracle提供的一個XML檔案,透過這個檔案告訴Oracle從什麼位置開始安裝,這個引數預設的地址資訊指向有誤,這裡最好透過絕對路徑的方式指向這個xml檔案。

ORACLE_HOME由於這裡是安裝CLUSTER,所以ORACLE_HOME給出的是ORACLE_CRS_HOME的地址。

SHOW_ROOTSH_CONFIRMATION由於安裝完成後需要用root執行兩個指令碼,因此這裡選擇在安裝過程中提示這兩個指令碼的執行資訊。其他的以SHOW開頭的引數可以設定為FALSE,遮蔽沒有必要的顯示資訊。

COMPONENT_LANGUAGES設定安裝的語言,這裡將簡體中文新增上。

s_clustername設定crs的名稱。

sl_tableList這個列表比較設定的是各個節點的主機名(hostname)、私有主機名(hostname-priv)和虛擬主機名(hostname-vip)。第4個和第5個引數預設為NY

ret_PrivIntrList設定interface的名稱,子網掩碼已經網路卡型別,1表示PUBLIC2表示PRIVATE

s_ocrpartitionlocation設定ocr對應的裸裝置儲存位置。

s_votingdisklocation設定voting磁碟對應的裸裝置儲存位置。

下面準備開始SILENT安裝。

 

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

相關文章