我的JAVA

从头来
随笔 - 19, 文章 - 0, 评论 - 6, 引用 - 0
数据加载中……

HACMP配置(-)

                                                    HACMP的配置(-)

HacmpHigh Availability Cluster Multi-Processing)双机热备份软件的主要功能是提高客户计算机系统及其应用的可靠性,而不是单台主机的可靠性。

   HACMP的工作原理是利用LAN来监控主机及网络、网卡的状态。在一个HACMP环境中有TCP/IP网络和非TCP/IP网络。TCP/IP网络即应用客户端访问的公共网,该网可以是大多数AIX所支持的网络,如EthernetT.R.FDDIATMSOCCSLIP,等等。 TCP/IP网络用来为HACMPHA环境(Cluster)中的各节点进行监控而提供的一个替代TCP/IP的通讯路径,它可以是用RS232串口线将各节点连接起来,也可以是将各节点的SCSI卡或SSA卡设置成Target Mode方式。

 

o_hacmp.JPG 

一、在两台服务器上分别安装HACMP软件

    #smit installp

二、分别检查两台主机上安装的软件是否成功

#/usr/sbin/cluster/diag/clverify

software

cluster

clverify>software        

Valid Options are:

lpp

clverify.software> lpp

若没有error出现则安装成功

三、分别配置两台服务器的boot IP地址和Standby IP地址,保证boot 网和Standby网能ping通(用smit  tcpip命令)

    netstat命令检查配置是否正确:

    #netstat -i

四、利用smit tty在两台主机上增加一个TTY接口,配置心跳线(RS232)

#smitty tty

  Type or select values in entry fields.

Press Enter AFTER making all desired changes.

 

[TOP]                                                   [Entry Fields]

  TTY                                                 tty0

  TTY type                                            tty

  TTY interface                                       rs232

  Description                                         Asynchronous Terminal

  Status                                              Available

  Location                                            04-08-01-00

  Parent adapter                                      sa0

  PORT number                                        [0]                     +

  Enable LOGIN                                        disable                +

  BAUD rate                                          [38400]                 +

  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]                   +

  OPEN DISCIPLINE to be used                         [dtropen]               +

lsdev –Cc tty查看tty是否配置好

#lsdev –Cc tty

在两台上分别输入如下命令:

erp# cat /etc/hosts >/dev/tty0

erpdata# cat

如果在erpdata能接收到信息,则表明心跳线已经配置好

五、在erp上运行smit hacmp,然后按照下面的步骤进行配置:

 #smit hacmp

 配置Cluster Name                            [erpcluster]

 配置Configure Nodes,增加两个Node

* Node Names                                         [erp]

* Node Names                                         [erpdata]

配置Configure Adapters,分别配置两台机的service地址,boot地址,standby地址及ttyerp_svcerpdata_svcerp_en1erpdata_en1erp_en2erpdata_en2,erp_tty0_01,erpdata_tty0_01)

修改/etc/hosts/.rhosts文件,如:

修改/etc/hosts文件,增加以下内容:

192.168.112.11  erpdata_en2

192.168.113.11  erpdata_en1

10.80.14.11     erpdata_svc

192.168.112.12  erp_en2

192.168.113.12  erp_en1

10.80.14.12     erp_svc

     

 

配置完毕显示状态为

 

  COMMAND STATUS

 

Command: OK            stdout: yes           stderr: no

 

Before command completion, additional instructions may appear below.

 

[TOP]

Cluster Name: erpcluster

Cluster Connection Authentication Mode: Standard

Cluster Message Authentication Mode: None

Cluster Message Encryption: None

Use Persistent Labels for Communication: No

There are 2 node(s) and 2 network(s) defined

 

NODE erp:

        Network net_ether_01

                erp_svc 10.80.14.12

                erpdata_svc     10.80.14.11

                erp_en1 192.168.113.12

                erp_en2 192.168.112.12

        Network net_rs232_01

                erp_tty0_01     /dev/tty0

NODE erpdata:

        Network net_ether_01

                erp_svc 10.80.14.12

                erpdata_svc     10.80.14.11

                erpdata_en1     192.168.113.11

                erpdata_en2     192.168.112.11

        Network net_rs232_01

                erpdata_tty0_01   /dev/tty0

 

Resource Group dbrg

        Startup Policy   Online On Home Node Only

        Fallover Policy  Fallover To Next Priority Node In The List

        Fallback Policy  Fallback To Higher Priority Node In The List

        Participating Nodes      erpdata erp

        Service IP Label                 erpdata_svc

Resource Group apprg

        Startup Policy   Online On Home Node Only

        Fallover Policy  Fallover To Next Priority Node In The List

        Fallback Policy  Fallback To Higher Priority Node In The List

        Participating Nodes      erp erpdata

        Service IP Label                 erp_svc

 

六、同步cluster

      在进行同步的时候可以先进行模拟(Emulate)同步,当模拟同步

       OK后再进行实际(actual)同步

                             Synchronize Cluster Topology

 

 

 

 

 

 

posted on 2005-11-01 22:59 周斌 阅读(1130) 评论(0)  编辑  收藏 所属分类: AIX


只有注册用户登录后才能发表评论。


网站导航: