最近遇到一个项目,是在AIX5.3上安装ORACLE 9i RAC,说实话,ORACLE俺压根就没有接触过,我也是临危受命。感觉如同当年实施AS400的XSM项目一般。无奈,下载了N多本REDBOOK开始研究,终于有了些眉目,找到了一份英文资料《Step-By-Step Installation of RAC on IBM AIX (RS/6000)》看后觉得很不错,闲暇之余翻译并修改了一些地方,发到这里与大家分享。
Oracle RAC的三种架构模式:
1、RAC+HACMP---最常见,但是其实安装HACMP只为了使用concurrent vg
2、RAC+GPFS---个人感觉应该是比较好的选择,减少了管理的复杂度
3、RAC+ASM---由于使用ASM管理磁盘系统,所以从系统层面来看存在一些弊端
以上是个人的粗略之见,不对之处,还望高手指教。这次项目是RAC+HACMP,希望有机会尝试一下另外两种模式,哈哈
马上就要实施这个项目,我将在实施的过程中随时上来与大家分享实战心得
? 1. Configuring the Cluster Hardware
o 1.1 Minimal Hardware list / System Requirements
§ 1.1.1 Hardware
§ 1.1.2 Software
§ 1.1.3 Patches
o 1.2 Installing Disk Arrays
o 1.3 Installing Cluster Interconnect and Public Network Hardware
? 2. Creating a cluster
o 2.1 HACMP/ES Software Installation
o 2.2 Configuring Cluster Topology
o 2.3 Synchronizing Cluster Topology
o 2.4 Configuring Cluster Resources
§ 2.4.1 Create volume groups to be shared concurrently on one node
§ 2.4.2 Create Shared RAW Logical Volumes
§ 2.4.3 Import the Volume Group on to the Other Nodes
§ 2.4.4 Add a Concurrent Cluster Resource Group
§ 2.4.5 Configure the Concurrent Cluster Resource Group
§ 2.4.6 Creating Parallel Filesystems (GPFS)
o 2.5 Synchronizing Cluster Resources
o 2.6 Joining Nodes Into the Cluster
o 2.7 Basic Cluster Administration
? 3. Preparing for the Installation of RAC
o 3.1 Configure the shared disks and UNIX preinstallation tasks
§ 3.2.1 Configure the shared disks
§ 3.2.2 UNIX preinstallation tasks
o 3.2 Using the Oracle Universal Installer for Real Application Clusters
o 3.3 Create a RAC Database using the Oracle Database Configuration Assistant
? 4. Administering Real Application Clusters Instances
? 5. References
1. 配置群集硬件
1.1 系统需求
至少需要两个节点
查看AIX和RAC的兼容性列表
1.1.1 硬件
? IBM 小型机 – 两台运行 AIX 4.3.3 或 5L (需要64位)
? 至少512MB内存,1G换页空间
1.1.2 软件
? 当使用IBM AIX 4.3.3时:
o HACMP/ES CRM 4.4.x
o 数据库文件仅支持RAW Logical Volumes (Raw Devices)
o Oracle数据库企业版 9i> ? 当使用IBM AIX 5.1 (5L)时:
o 数据库文件 RAW Logical Volumes (Raw Devices)和Parallel Filesystem (GPFS):
o HACMP/ES CRM 4.4.x(当使用GPFS时不需要HACMP)
o GPFS 1.5
o IBM Patch PTF12 and IBM patch IY34917 or IBM Patch PTF13
o Oracle Server Enterprise Edition 9i> o Oracle数据库企业版(含RAC)9i for AIX 4.3.3 和 5L 包含在不同的CD中
1.1.3 补丁
需要如下补丁:
? IBM AIX 操作系统环境补丁
? 存储firmware或者微码补丁
补丁考虑因素:
? 务必保证所有节点中的补丁版本一致
? 不要轻易安装firmware相关的补丁
? 尽量获得最新补丁的相关信息
1.2 安装磁盘阵列
参照磁盘阵列的初始安装说明完成安装步骤。
1.3 安装群集互联和公共网络硬件
该部分务必在群集被配置前配置完成并保证可用
? 如果尚未安装,则在群集节点中安装主机适配器。
? 如果群集中超过两个节点,则需要交换机进行连接
2. 创建群集
2.1 IBM HACMP/ES软件安装
大致步骤如下:
? 安装硬件
? 安装IBM AIX操作系统软件
? 安装最新的AIX操作系统补丁
? 在每个节点上安装HACMP/ES 4.X.X软件
? 安装HACMP/ES需要的补丁
? 配置群集拓扑
? 同步群集拓扑
? 配置群集资源
? 同步群集资源
在HACMP for AIX 4.X.X 的安装过程中,需要如下包被安装:
? cluster.adt.es.client.demos
? cluster.adt.es.client.include
? cluster.adt.es.server.demos
? cluster.clvm.rte HACMP for AIX Concurrent
? cluster.cspoc.cmds HACMP CSPOC commands
? cluster.cspoc.dsh HACMP CSPOC dsh and perl
? cluster.cspoc.rte HACMP CSPOC Runtime Commands
? cluster.es.client.lib ES Client Libraries
? cluster.es.client.rte ES Client Runtime
? cluster.es.client.utils ES Client Utilities
? cluster.es.clvm.rte ES for AIX Concurrent Access
? cluster.es.cspoc.cmds ES CSPOC Commands>;
? cluster.es.cspoc.dsh ES CSPOC dsh and perl
? cluster.es.cspoc.rte ES CSPOC Runtime Commands
? cluster.es.hc.rte ES HC Daemon
? cluster.es.server.diag ES Server Diags
? cluster.es.server.events ES Server Events
? cluster.es.server.rte ES Base Server Runtime
? cluster.es.server.utils ES Server Utilities
? cluster.hc.rte HACMP HC Daemon
? cluster.msg.En_US.cspoc HACMP CSPOC Messages - U.S.
? cluster.msg.en_US.cspoc HACMP CSPOC Messages - U.S.
? cluster.msg.en_US.es.client
? cluster.msg.en_US.es.server
? cluster.msg.en_US.haview HACMP HAView Messages - U.S.
? cluster.vsm.es ES VSM Configuration Utility
? cluster.clvm.rte HACMP for AIX Concurrent
? cluster.es.client.rte ES Client Runtime
? cluster.es.clvm.rte ES for AIX Concurrent Access
? cluster.es.hc.rte ES HC Daemon
? cluster.es.server.events ES Server Events
? cluster.es.server.rte ES Base Server Runtime
? cluster.es.server.utils ES Server Utilities
? cluster.hc.rte HACMP HC Daemon
? cluster.man.en_US.client.data
? cluster.man.en_US.cspoc.data
? cluster.man.en_US.es.data ES Man Pages - U.S. English
? cluster.man.en_US.server.data
? rsct.basic.hacmp RS/6000 Cluster Technology
? rsct.basic.rte RS/6000 Cluster Technology
? rsct.basic.sp RS/6000 Cluster Technology
? rsct.clients.hacmp RS/6000 Cluster Technology
? rsct.clients.rte RS/6000 Cluster Technology
? rsct.clients.sp RS/6000 Cluster Technology
? rsct.basic.rte RS/6000 Cluster Technology
你可以使用如下命令验证HACMP软件的安装情况
# /usr/sbin/cluster/diag/clverify
2.2 配置群集拓扑
使用如下命令:
# smit hacmp
添加群集定义:
Smit HACMP ->; Cluster Configuration ->; Cluster Topology ->; Configure Cluster ->; Add a Cluster Definintion
快捷路径:
# smit cm_config_cluster.add
在打开的界面中为群集指定一个名字,例如cluster01
配置节点:
Smit HACMP ->; Cluster Configuration ->; Cluster Topology ->; Configure Nodes ->; Add Cluster Nodes
快捷路径:
# smit cm_config_nodes.add
在打开的界面中为群集指定参与的节点,例如Node1和Node2
配置网络适配器[以每个节点两个网络适配器和一个串口为例]
Node Name address IP Label (/etc/hosts) Type
node1 192.168.0.1 node1srvc service服务IP
192.168.1.1 node1stby standby 启动IP
/dev/tty0 serial用于心跳
node2 192.168.0.2 node2srvc service 服务IP
192.168.1.2 node2stby standby 启动IP
/dev/tty0 serial用于心跳
将网络配置定义到群集配置中:
Smit HACMP ->; Cluster Configuration ->; Cluster Topology ->; Configure Nodes ->; Add an Adapter
快捷路径:
# smit cm_confg_adapters.add
在打开的界面中为群集指定参与节点的网络设置。务必保证Adapter IP Label与/etc/hosts中的定义一致,Network Name可以选择ipa或者rs232
例如:
Add an AdapterType or select values in entry fields.
* Adapter IP Label [node1stby]
* Network Type [ether] +
* Network Name [ipa] +
* Network Attribute public +
* Adapter Function standby +
Adapter> Adapter Hardware Address []
Node Name [node1] +
Add an AdapterType or select values in entry fields.
* Adapter IP Label [node1_tty]
* Network Type [rs232] +
* Network Name [serial] +
* Network Attribute serial +
* Adapter Function service +