本文链接:
http://www.eygle.com/ha/Install.Oracle9iRac.On.Veritas.EMC.htm
本案例用到的次要软硬件如下:
主机:Sun-Fire-V210
操作系统:SunOS 5.9 Generic_117171-07
光纤卡:Emulex LightPulse FC9002L
阵列:EMC CLARiiON CX500
Cluster软件:VERITAS STORAGE FOUNDATION FOR ORACLE RAC 4.0
Oracle版本:Oracle9.2.0.4
1.安装操作系统
安装基本系统当前,使用到最新的补丁
# uname -a
SunOS cluster1 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Fire-V210
配置hosts文件,设置相应别名,配置一个浮动ip(配置Cluster时需求)
# cat /etc/hosts## Internet host table#127.0.0.1 localhost 172.16.33.71 cluster2 cluster2.hurray.com.cn loghost172.16.33.70 cluster1 cluster1.hurray.com.cn 172.16.33.74 cluster cluster.hurray.com.cn
2.安装光纤卡
本例使用的是Emulex的光线卡,Emulex LightPulse FC9002L光线卡需求到网站上下载最新的驱动安装
使用光盘上的驱动系统会莫明其妙的循环重起,极度郁闷
光线卡安装日志参考:
Emulex_LightPulse_FC9002L_Solaris9_Install
光纤卡安装当前需求配置两个参数文件:
Emulex光纤卡lpfc配置文件的修正
完成这个步骤后重新启动机器,使配置生效,把主机和光纤交换机及EMC阵列相连接
3.安装EMC Navisphere AGENT(NAVIAGENT)
安装EMC Navisphere AGENT(NAVIAGENT)
安装完成后,重新启动服务器,此时agent会自动启动,自EMC阵列控制器上应该可以看到主机节点
4.分配磁盘组
在EMC阵列端,把划好的磁盘组分配给主机
分配磁盘组(EMC阵列)
分配磁盘组后,重起主机
5.安装VERITAS STORAGE FOUNDATION FOR ORACLE RAC 4.0软件
安装Veritas Storage Fundation For Oracle Rac4.0
6.配置共享磁盘
使用Volume Manager配置共享磁盘
7.修正系统内核参数
为安装Oracle做预备
在/etc/system文件末尾追加以下参数,两台主机都需求修正:
* kernal parameter for Oracle database add by:gqgaiset shmsys:shminfo_shmmax=4294967295set shmsys:shminfo_shmmin=1set shmsys:shminfo_shmmni=100set shmsys:shminfo_shmseg=10set semsys:seminfo_semmni=1024set semsys:seminfo_semmsl=1510set semsys:seminfo_semmns=3010set semsys:seminfo_semopm=100set semsys:seminfo_semvmx=32767
修正后重新启动主机
8.划分裸设备
依据实际需求划分裸设备
vxassist -g oradg -U gen make system 800mvxassist -g oradg -U gen make temp 1000mvxassist -g oradg -U gen make users 1000mvxassist -g oradg -U gen make redo101 100mvxassist -g oradg -U gen make redo102 100mvxassist -g oradg -U gen make redo103 100mvxassist -g oradg -U gen make redo201 100mvxassist -g oradg -U gen make redo202 100mvxassist -g oradg -U gen make redo203 100mvxassist -g oradg -U gen make undo11 1000mvxassist -g oradg -U gen make undo21 1000mvxassist -g oradg -U gen make spfile 100mvxassist -g oradg -U gen make ctlfile1 100mvxassist -g oradg -U gen make ctlfile2 100mvxassist -g oradg -U gen make srvcfg 500m
修正属主信息:
vxedit -g oradg set user=oracle mode=644 systemvxedit -g oradg set user=oracle mode=644 temp vxedit -g oradg set user=oracle mode=644 users vxedit -g oradg set user=oracle mode=644 redo101vxedit -g oradg set user=oracle mode=644 redo102vxedit -g oradg set user=oracle mode=644 redo103 vxedit -g oradg set user=oracle mode=644 redo201vxedit -g oradg set user=oracle mode=644 redo202vxedit -g oradg set user=oracle mode=644 redo203vxedit -g oradg set user=oracle mode=644 undo11 vxedit -g oradg set user=oracle mode=644 undo21 vxedit -g oradg set user=oracle mode=644 spfile vxedit -g oradg set user=oracle mode=644 ctlfile1 vxedit -g oradg set user=oracle mode=644 ctlfile2vxedit -g oradg set user=oracle mode=644 srvcfg
9.复制相应的库文件
# cd /opt/ORCLcluster/lib# ls9iR2# cd *# lslibskgxn2_32.so libskgxn2_32.so.1 libskgxn2_64.so libskgxn2_64.so.1 libskgxp92_32.so libskgxp92_64.so# cp libskgxn2_64.so ../libskgxn2.so# lslibskgxn2_32.so libskgxn2_32