1、安装软件、打补丁,通过lppchk -c cluster*检查安装是否正常,ha安装的时候2个包不装:cluster.hativoli、 cluster.haview
2、配ip、修改host、rhost文件/usr/es/sbin/cluster/etc/rhosts
rhost中只写两台机器的boot-ip地址,后面不需要写主机信息,rhost给777权限
例:
#more hosts
192.168.20.30 p630_boot1 p630
192.168.21.31 p630_boot2
192.168.22.218 p630_svc
192.168.20.214 p610_boot1 p610
192.168.21.215 p610_boot2
192.168.22.216 p610_svc
# more rhosts
192.168.20.30
192.168.21.31
192.168.20.214
192.168.21.215
说明:如果客户应用环境需要使用主机名称,可以在service IP之后在添加一个主机名称。
3、smitty hacmp/extended configuration/extended topology configuration下配置cluster名
4、配置nodes
5、发现topolopy:Discover HACMP-related Information from Configured Nodes
6、配置ip网络、串口网络或磁盘心跳网络
7、配置hacmp通信接口设备configure hacmp communication interfaces/devices,将发现的ip端口和串口设备加入到相应的网络中
8、配置资源,添加应用服务、应用起停脚本、service ip
9、创建资源组,将节点加入资源组、配置资源组切换策略
10、修改资源组,添加service ip、应用服务、vg、filesystems mount before ip configutred
11、在主机上同步hacmp,在另一台机器上查看log: tail -f /tmp/hacmp.out
同步完后cluster不会自动起来,需要命令启动smitty clstart
关闭:smitty clstop
cluster正常启动后cluster的进程有:
# ps -ef|grep cluster
root 270540 213134 0 14:42:48 - 0:00 /usr/es/sbin/cluster/clstrmgr
root 364654 213134 0 14:59:55 - 0:06 /usr/es/sbin/cluster/clcomd -d
root 368808 213134 0 16:13:50 - 0:00 haemd HACMP 2 drgcluster SECNOSUPPORT
root 581722 213134 0 16:13:54 - 0:00 harmad -t HACMP -n drgcluster
阅读(1449) | 评论(0) | 转发(0) |