IBMacerun: yes"> P52A HACMP系统安装文档
一:系统环境准备
1:安装操作系统
分别在两台主机上安装AIX操作系统,版本号为AIX 5.3
主机名称:cd3 cd4
#oslevel –r
显示:5300-04
2:安装系统软件包
要求安装如下软件包:
|
bos.adt |
rsct.exp |
bos.clvm |
rsct.basic |
3:修改调页空间
#smitty chps
将系统调页空间更改为4096M(+30就可以了)
4:设置root密码
#passwd
用户名与密码同为root
5:修改系统时区
#smitty chtz
系统时区选择中华人民共和国PRC
6:更改最大进程数
#smitty chgsys
将最大进程数更改为512
7:更改异步IO
#smitty chaio
设置为30/60,并激活异步IO端口(把前两项改成30和60就可以了)
#mkdev –l aio0
8:配置存储阵列
FASrT600配置14块HDD硬盘,创建RAID5阵列,没有Hotspare
创建1个逻辑分区,定义为dataAvg
9:配置网络地址
修改/etc/hosts文件,添加如下内容
133.108.40.13 cd3_boot cd3
133.108.40.3 cd3_svc
10.0.0.1 cd3_stdby
133.108.40.14 cd4_boot cd4
133.108.40.4 cd4_svc
10.0.0.2 cd4_stdby
10:配置心跳线
#smitty tty
分别在两台主机上执行如下步骤:
|
TTY Move 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 a TTY Configure a Defined TTY Generate Error Report Trace a TTY |
|
Add a TTY Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] [Entry Fields] TTY type tty TTY interface rs232Description Asynchronous TerminalParent adapter sa0 * PORT number [0] Enable LOGIN 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 [xon] |
11:心跳线测试
|
序号 |
主机 |
内容 |
|
1. |
主机1 |
stty |
|
2. |
主机2 |
stty 这时在两台主机的命令行下会有内容的显示,否则,tty配置失败。示例如下: speed 9600 baud; -parity hupcl eol2 = ^? brkint -inpck -istrip icrnl -ixany ixoff onlcr tab3 echo echoe echok |
|
3. |
主机1 |
cat /etc/hosts > /dev/tty1 |
|
4. |
主机2 |
cat < /dev/tty1 这时在主机2的命令行下有主机1的/etc/hosts文件的内容,否则,tty配置失败。 |
1:安装HACMP软件
#smitty installp
以下模块不选择
cluster.haview,
cluster.hativoli,
cluster.man.en_US.haview 2:配置网络拓扑部分
首先配置一个hacmp cluster
|
#smit hacmp àExtend configuration àExtended Topology Configuration àConfiguration an hacmp Cluster àAdd/change/show an HACMP Cluster *Cluster Name [cluster1] |
|
#smitty hacmp àExtend configuration àExtended Topology Configuration àAdd a Node to the HACMP Cluster Node Names [ ] Communication Path to Node 加入两个Node:node01 node02,communication Path to Node填入相应的主机名cd3 cd4 |
|
Extend configuration àDiscover HACMP-related Information from Configuration Nodes Hacmp会自动找到有关其配置的网络参数 |
|
#smit hacmp àExtend configuration àExtended Topology Configuration àConfigure HACMP Networks àAdd a Network to the hacmp Cluster Select a network type #discovered IP-based Network Types *network [net_ether_01] *network Type ether *netmask 255.255.255.0 *Enable IP Address takeover via IP Aliases [no] 同样步骤增加#Discovered Serial Device Types Rs232 *Network Name [net_rs232_01] *Network Type rs232 |
以太网络接口:
|
Extend configuration àExtended Topology Configuration àConfigure hacmp Communication Interfaces/Devices àAdd communication interfaces/devices àAdd discovered communication interface and Devices àCommunication Interfaces àNet_ether_01 使用F7或者esc+7选择cd3_boot,cd3_stby,cd4_boot,cd4_stby共4个接口 |
|
Extend configuration àExtended Topology Configuration àAdd communication interfaces/devices àAdd Communication interfaces/devices àAdd pre-defined communication interfaces and devices àCommunication Devices àNet_rs232_01 *device name [cd3tty] *network type rs232 *network name net_rs232_01 *device path [/dev/tty1] *Node name [node01] 重复上述步骤,为节点2 node02同样增加device cd4tty [/dev/tty1] |
第一:我们需要配置第一个资源组,首先创建第一个应用服务器appserver1,指定第一个应用服务器服务地址的Service IP
|
extended configuration àhacmp extend resources configuration àconfigure hacmp service ip labels/address àadd a service ip label/address àconfigurable on multiple nodes ànet_ether_01 *ip label/address [cd3_svc] * network Name net_ether_01 |
|
extended configuration àhacmp extend resources configuration àconfig hacmp application servers *server name [appserver1] *start script [/etc/dbstart.sh] *start script [/etc/dbstop.sh] |
然后配置第一个资源组:
extended configuration
->hacmp extend resources configuration
|
*Resource Group Name [resource1] *Participating Node Names [node01 node02] |
extended configuration
àhacmp extend resources configuration
àconfiguration extend resource group
àchange/show resources and attributes for a resource group
第一个资源组resource1内容如下:
|
Resource Group Name resource1 Participating Node Names / Default Node Priority node01 node02 Service IP label [cd3_svr] Volume Groups [dataAvg] |
同步Topology
|
#smit hacmp àExtendconfiguration àverification and synchronization |
同步成功后,配置完成。
启动HACMP:
#smitty clstart
停止HACMP:
#smitty clstop启动或者停止HACMP,可以在一台机器上选中两个节点,也可以每个节点上分别启动或停止