在sun t2000上安裝rac概要

wisdomone1發表於2009-11-24
1,確認兩個節點的主機名 /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost       
172.16.31.72    capitek1        loghost capitek1.com
172.16.31.73    capitek2        loghost capitek2.com

172.16.31.156   capitek1_vip
172.16.31.158   capitek2_vip

172.16.0.1      capitek1_priv
172.16.0.2      capitek2_priv
2,確認同上的/etc/netmask
bash-3.00# more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
172.16.0.0      255.255.0.0


3,同上/etc/defaultrouter
4,配置public和private網路卡 /etc/hostname.網路卡名和/etc/netmask
  ifconfig -a  --檢視e1000g0和e1000g1是否啟用
  ifconfig e1000g1 plumb
  ifconfig e1000g1 172.16.0.1 netmask 255.255.0.0 up  --第二個節點是2,配置完private兩節點互ping
 bash-3.00# more /etc/hostname*
::::::::::::::
/etc/hostname.e1000g0   --注意不同節點
::::::::::::::
capitek2
::::::::::::::
/etc/hostname.e1000g1   --注意不同節點
::::::::::::::
capitek2-priv


  測試下兩個節點的private網路是否可以ping

5,建oracle使用者及oinstall,dba組,注意group  id和user id在兩個節點要一樣
  同時建立對應的home目錄,配置目錄許可權及使用者和屬組

  groupadd -g 100 oinstall
  groupadd -g 101 dba
  mkdir -p /orainstall
  useradd -u 200 -g oinstall -G dba -s /usr/bin/bash -d /orainstall -m oracle
  chown -R oracle:oinstall /orainstall
  chmod -R 775 /orainstall
  passwd oracle
  id -a oracle --檢視uid ,groupid是否正常,對應兩節點
6,構建節點互信關係:/etc/.rhosts或者/.rhosts內容為+吧,及/etc/hosts.equiv為+
  然後rsh capitek1 date;rsh capitek2 date測試下互通性
7,在第二個節點上配置儲存在主機上的對映
  bash-3.00# ls -l /dev/rdsk/c2t1d0s3
  lrwxrwxrwx   1 root     root          89 11月 17日 16:51 /dev/rdsk/c2t1d0s3 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
  bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
  crw-r-----   1 root     sys      118, 19 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
  bash-3.00# mknod /dev/rdsk/c2t125d0s3 c 118 19
  bash-3.00# ls -l /dev/rdsk/c2t125d0s3
  crw-r--r--   1 root     root     118, 19 11月 17日 20:14 /dev/rdsk/c2t125d0s3
  bash-3.00# ls -l /dev/rdsk/c2t1d0s4
  lrwxrwxrwx   1 root     root          89 11月 17日 16:51 /dev/rdsk/c2t1d0s4 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
  bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
  crw-r-----   1 root     sys      118, 20 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
  bash-3.00# mknod /dev/rdsk/c2t125d0s4 c 118 20
  bash-3.00#

--以下在兩個節點上執行
   chown -RL oracle:oinstall /dev/rdsk/c2t125d0s3    
   chmod -R 660 /dev/rdsk/c2t125d0s3

   chown -RL oracle:oinstall /dev/rdsk/c2t125d0s4
   chmod -R 660 /dev/rdsk/c2t125d0s4
7,/etc/profile和/etc/system的配置,
  oracle使用者下的$HOME/.profile,參考下左華的諾西rac 文件
umask 022
ORACLE_BASE=/orainstall
export ORACLE_BASE
export ORA_CRS_HOME=$ORACLE_BASE/oracle/product/10.2.0/crs  --注意export後面的變數不加$
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/cts/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre/lib:$ORACLE_HOME/jre/lib/rt.jar:$$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
PATH=$ORACLE_HOME/bin:$PATH:/usr/sbin
export PATH
NLS_LANG=american.zhs16gbk
export NLS_LANG
ORACLE_SID=ora10g1
export ORACLE_SID
   

set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=8589934590
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
8, cpio -idmv < oracle包.(具體用法查下google or baidu),在第一個節點上
9,在第一個節點上,執行runcluvfy檢視安裝clusterware的相關條件是否具備
       su - oracle
       cd cluvify
       ./runcluvfy.sh stage -pre crsinst -n capitek1,capitek2
   
 
10,同上在第一個節點上用xmanager,以oracle使用者登陸,啟動runinstaller安裝clusterware

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

相關文章