ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris10下Silent模式安装Oracle1106RAC环境(二)

Solaris10下Silent模式安装Oracle1106RAC环境(二)

原创 Linux操作系统 作者:yangtingkun 时间:2009-01-22 22:38:27 0 删除 编辑

主机环境基本上和前面文章中描述的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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10523299