1. 准备
    1. 安装系统rhel5.8,两台系统分区完全一样。
    2. 关闭防火墙

      chkconfig iptables off

      service iptables stop

    3. 更改主机名

      hostname

      vi /etc/sysconfig/network

      vi /etc/hosts

      ifcfg-eth0中HOSTNAME=

    4. 分区

      cluster分区 20M 无需格式化

      Cluster Data分区 需要格式化 无需挂载

    分区ID采用83.

    1. 时间同步设置

      安装ntp

ntpdate time.nist.gov //与一个已知的时间服务器同步

删除本地时间并设置时区为上海:

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

vi /etc/crontab //添加一行

rhel5.8安装sureHA Cluster_justify

  1. 安装telnet
  2. 安装vnc
  1. 网络设置

    SrvHA01 公网IP 192.168.187.141 私网IP 10.0.0.141

    SrvHA02 192.168.187.142 10.0.0.142

    vi /etc/sysconfig/network-scripts/ifcfg-eth0

    vi /etc/sysconfig/network-scripts/ifcfg-eth1

ping测试

  1. 软件安装
    1. rpm -ivh xxxxx.rpm

      软件路径:

      /Linux/2.1.1/server/

      rhel5.8安装sureHA Cluster_style_02

    查看所有sureHA服务:

    chkconfig --list |grep ha

    chkconfig xxxxxx on

    service xxxxx start

重启服务器

  1. 卸载方法

执行 chkconfig --del name,按照以下顺序禁用服务。
surehacluster_alertsync
surehacluster_webmgr
surehacluster
surehacluster
_md
surehacluster_trn
surehacluster_evt

使用 WebManager clpstdn 命令关闭集群,重启服务器。

执行 rpm -e surehacluster

  1. 输入license

clplcnsc -v #查看已安装license

rhel5.8安装sureHA Cluster_style_03

默认会有90天的试用

  1. 启动webmgr

    需要JRE环境

    如果不能启动则重启服务器

    http://ip_address:29003

  2. 创建集群
    1. 输入群集名称cluster01,管理ip为192.168.187.140

    rhel5.8安装sureHA Cluster_防火墙_04

    1. 添加服务器节点,注意主从顺序。

    rhel5.8安装sureHA Cluster_防火墙_05

  1. 心跳ip设置。先是私网地址,再是公网地址。

rhel5.8安装sureHA Cluster_justify_06

  1. 网络分区跳过。

rhel5.8安装sureHA Cluster_style_07

  1. 添加组资源managementGroup自动生成,添加一个failover组即可。

rhel5.8安装sureHA Cluster_防火墙_08rhel5.8安装sureHA Cluster_style_09

选择要添加的到集群的服务器

rhel5.8安装sureHA Cluster_防火墙_10