1、HACMP安装手册说明:在实际安装过程中,本文中的主机名和IP地址需要根据实际情况进行调整;1. 安装前准备1.1. 硬件设备1.1.1. 主机主机两台,每台主机至少需要两块网卡,一个空闲的串口。如果主机中配了千兆以太网卡,建议使用该千兆网卡,不要使用内置网卡。(因为内置网卡是集成在主板上的,如果一旦出现故障,不容易更换,这样HACMP中的配置就需要修改,增加了工作量)1.1.2. 心跳线心跳线一根。如果心跳线的口和主机的串口不能对上,需要两根转接线,具体的长度由两台主机的相对位置决定。1.2. 操作系统环境主机内容文件集备注主机1OS:5200-02Kerl:64文件系统:JFS2bos.a
2、dt.*.*bos.rte.*rsct.basic.*pat.* rsct.core.*oslevel rprtconflslpp -l主机1与主机1一致1.3. 软件介质HACMP 4.5(CRM)1.4. 磁盘划分建立需要切换的VG等。如果是对ORACLE9i RAC数据库做双机系统,对存放数据库数据的VG(oradatavg)建立时不需要建立属性为concurrent的卷组。(在配置HACMP时设定为concurrent属性即可)1.5. 操作系统参数配置1.5.1. /sbin/rc.boot修改/sbin/rc.boot文件中: #Modified By Sinosoft For H
3、acmp Software Start#nohup /usr/sbin/syncd 60 /dev/null 2&1 &nohup /usr/sbin/syncd 10 /dev/null 2&1 Modified By Sinosoft For Hacmp Software End1.5.2. water marksmit system -Change / Show Characteristics of Operating SystemHIGH water mark for pending write I/Os per file 32 +LOW water mark for pendin
4、g write I/Os per file 24 + 或者直接用命令:chdev -l sys0 -a maxpout=32 -a minpout=241.6. 网络地址配置1.6.1. 主机名及IP地址主机内容备注主机1boot110.48.178.201serv110.48.178.202stby110.48.179.3主机2boot210.48.178.203serv210.48.178.204stby210.48.179.4具体的hosts文件参考附录中的“主机hosts文件”。1.6.2. 主机信任关系在两台主机的/目录下,建立.rhosts文件,注意改变文件权限:chmod 600
5、 /.rhosts文件内容如下:CZXCDB1boot1serv1stby1CZXCDB2boot2serv2stby21.6.3. 测试信任关系在两台主机上做以下操作,看结果是否正常:ping CZXCDB1ping CZXCDB2ping boot1ping boot2ping stdby1ping stdby2rlogin CZXCDB1rlogin CZXCDB21.7. 心跳线配置及测试在选择哪个串口作为心跳线的端口时,原则是这样:在串口富裕的情况下,尽量不要选择第1个和第2个。(因为第一个串口一般做console,第二个常用作远程维护程序使用)如果不这样,虽然同步和简单的测试没有问
6、题,但在实际应用中回出现HACMP经常自动切换,所以应该必须不使用第1和第2个串口(P630用最后一个,P650可以用最后两个)1.7.1. 心跳线配置1.7.1.1. 主机11.7.1.1.1. 第一步登录root用户smitty tty1.7.1.1.2. 第二步选择”Add a TTY” TTYMove cursor to desired item and press Enter. List All Defined TTYs Add a TTY Move a TTY to Another Port Change / Show Characteristics of a TTY Remove
7、 a TTY Configure a Defined TTY Generate Error Report Trace a TTY1.7.1.1.3. 第三步 Add a TTYType or select values in entry fields.Press Enter AFTER making all desired changes.TOP Entry Fields TTY type tty TTY interface rs232 Description Asynchronous Terminal Parent adapter sa2* PORT number 0 + Enable LO
8、GIN disable + BAUD rate 9600 PARITY none + BITS per character 8 + Number of STOP BITS 1 + TIME before advancing to next port setting 0 + TERMINAL type dumb FLOW CONTROL to be used xon1.7.1.2. 主机2步骤与主机1雷同。1.7.2. 心跳线测试在两台主机上,通过lsdev Cc tty查看新增的串行口,会有类似下面的内容:tty0 Available 00-00-S3-00 Asynchronous Term
9、inal序号主机内容1. 主机1stty /dev/tty02. 主机2stty /dev/tty04. 主机2cat Install Software-INPUT device / directory for software /dev/cd0SOFTWARE to install 不选择cluster.haview,cluster.hativoli, cluster.man.en_US.haview ACCEPT new license agreements? yes安装软件2.2. 主机2主机2上安装步骤和主机1一致。3. 配置HACMP3.1. 配置Topology3.1.1. hac
10、mp cluster #smit hacmp Cluster Configuration Cluster Topology Configure Cluster Add a Cluster Definition *Cluster ID 1 *Cluster Name cluster 3.1.2. hacmp node#smitty hacmp Cluster Configuration Cluster Topology Configure Node Add Cluster Nodes Node Names 加入两个Node:CZXCDB1 CZXCDB23.1.3. hacmp network#
11、smit hacmp Cluster Configuration Cluster Topology Configure Networks Configure IP-based Networks Configure Non IP-based Networks 分别增加cz_ether和cz_serial cz_ether的subnets为10.48.178.0 10.48.179.03.1.4. hacmp adapter适配器有两种类型(网卡、串口),每台节点4个,共8个。3.1.4.1. 主机13.1.4.1.1. service适配器IP Label serv1New IP Label *
12、 Network Type ether* Network Name cz_ether * Network Attribute public* Interface / IP-Label Function serviceIP Address 10.48.178.202Hardware Address Node Name CZXCDB1Netmask 255.255.255.0Interface Name 3.1.4.1.2. boot适配器IP Label boot1New IP Label * Network Type ether* Network Name cz_ether * Network
13、 Attribute public* Interface / IP-Label Function bootIP Address 10.48.178.201Hardware Address Node Name CZXCDB1Netmask 255.255.255.0Interface Name en13.1.4.1.3. standby适配器IP Label stby1New IP Label * Network Type ether* Network Name cz_ether * Network Attribute public* Interface / IP-Label Function
14、standbyIP Address 10.48.179.3Hardware Address Node Name CZXZDB1Netmask 255.255.255.0 Interface Name en23.1.4.1.4. rs232适配器Adapter Label tty1New Adapter Label Network Type rs232* Network Name cz_serial* Device Name /dev/tty0* Node Name CZXCDB13.1.4.2. 主机23.1.4.2.1. service适配器IP Label serv2New IP Labe
15、l * Network Type ether* Network Name cz_ether * Network Attribute public* Interface / IP-Label Function serviceIP Address 10.48.178.204Hardware Address Node Name CZXCDB2Netmask 255.255.255.0Interface Name 3.1.4.2.2. boot适配器IP Label boot2New IP Label * Network Type ether* Network Name cz_ether * Netw
16、ork Attribute public* Interface / IP-Label Function bootIP Address 10.48.178.204Hardware Address Node Name CZXCDB2Netmask 255.255.255.0Interface Name en13.1.4.2.3. standby适配器IP Label stby2New IP Label * Network Type ether* Network Name cz_ether * Network Attribute public* Interface / IP-Label Functi
17、on standbyIP Address 10.48.179.4Hardware Address Node Name CZXZDB2Netmask 255.255.255.0 Interface Name en23.1.4.2.4. rs232适配器Adapter Label tty2New Adapter Label Network Type rs232* Network Name cz_serial* Device Name /dev/tty0* Node Name CZXCDB23.2. 配置Resource Group3.2.1. hacmp resource group增加三个资源组
18、:3.2.1.1. 1orares*Resource Group Name orares*Node Relationship concurant*Site Relationship ignore*Participating Node Names CZXCDB1 CZXCDB2 *Service IP lable *Volume Groups oradatavg3.2.1.2. 2serv1net*Resource Group Name serv1net*Node Relationship cascading*Site Relationship ignore*Participating Node
19、 Names CZXCDB1 CZXCDB2 *Service IP lable 3.2.1.3. 3serv2net*Resource Group Name serv2net*Node Relationship cascading*Site Relationship ignore*Participating Node Names CZXCDB2 CZXCDB1*Service IP lable 3.2.2. hacmp app server增加一个app server*Server Name app1 *start script /usr/es/script/start.sh*stop sc
20、ript /usr/es/script/stop.sh在两台主机创建目录:mkdir p /usr/es/scripttouch /usr/es/script/start.shtouch /usr/es/script/stop.shtouch /usr/es/script/oracle_starttouch /usr/es/script/oracle_stopchown R 777 /usr/es/script/*.sh脚本的内容可以参考如下:3.2.2.1.1. start.sh查看附录中的Application的启动和关闭脚本/start.sh脚本。3.2.2.1.2. stop.sh查看
21、附录中的Application的启动和关闭脚本/stop.sh脚本。3.2.2.1.3. oracle_start查看附录中的Application的启动和关闭脚本/oracle_start.sh脚本。3.2.2.1.4. oracle_stop查看附录中的Application的启动和关闭脚本/oracle_stop脚本。3.2.3. hacmp resource group attribute3.2.3.1. oraresResource Group Name oraresNode Relationship concurantSite Relationship ignoreParticip
22、ating Node Names / Default Node Priority CZXCDB1 CZXCDB2Dynamic Node Priority Service IP label Filesystems (default is All) Filesystems Consistency Check fsck Filesystems Recovery Method sequential Filesystems/Directories to Export Filesystems/Directories to NFS mount Network For NFS Mount Volume Gr
23、oups Concurrent Volume groups oradatavgRaw Disk PVIDs Connections Services Fast Connect Services Tape Resources Application Servers app1 Communication Links Primary Workload Manager Class Secondary Workload Manager Class Miscellaneous Data Automatically Import Volume Groups false3.2.3.2. serv1netRes
24、ource Group Name serv1netNode Relationship cascadingSite Relationship ignoreParticipating Node Names / Default Node Priority CZXCDB1 CZXCDB2Dynamic Node Priority Service IP label serv1 Filesystems (default is All) Filesystems Consistency Check fsck Filesystems Recovery Method sequential Filesystems/
25、Directories to Export Filesystems/Directories to NFS mount Network For NFS Mount Volume Groups Concurrent Volume groups Raw Disk PVIDs Connections Services Fast Connect Services Tape Resources Application Servers Communication Links Primary Workload Manager Class Secondary Workload Manager Class Mis
26、cellaneous Data Automatically Import Volume Groups false3.2.3.3. serv2netResource Group Name serv2netNode Relationship cascadingSite Relationship ignoreParticipating Node Names / Default Node Priority CZXCDB2 CZXCDB1Dynamic Node Priority Service IP label serv2 Filesystems (default is All) Filesystem
27、s Consistency Check fsck Filesystems Recovery Method sequential Filesystems/Directories to Export Filesystems/Directories to NFS mount Network For NFS Mount Volume Groups Concurrent Volume groups Raw Disk PVIDs Connections Services Fast Connect Services Tape Resources Application Servers Communication Links Primary Workload Manage
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1