免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1698 | 回复: 0
打印 上一主题 下一主题

HACMP 5的安装与配置(支持原创申请加精) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-27 17:18 |只看该作者 |倒序浏览
HACMP 5版本的安装配置基本相同,以下是安装配置范文,仅供参考:



HACMP5的安装与配置



一、客户环境

机器型号: IBM P630
操作系统: AIX5.1 ML06  
KERNEL  :  64 BIT
存储设备: IBM FAStT600



二、 HACMP安装前期准备

AIX所需要打的补丁包


三、HACMP安装前网络地址的配置

  a、生产地址(service IP)是:  192.192.168.4    192.192.168.5  
  b、A机将两块网卡的地址分别配成 192.192.0.1 【 网卡en0 】         193.193.1.1 【 网卡en2 】
  c、B机将两块网卡的地址分别配成 192.192.0.2 【 网卡en1 】         193.193.1.2 【 网卡en3 】
  d、分别在两台主机配置网卡alias地址,

    smitty tcpip -> Further Configure -> ***** >  configure alias ->       / 这里需要详细的写一下 /

  d、所有网卡的子网掩码都设置为:  255.255.255.0   

四、编辑 /etc/hosts文件,然后ftp到另外的节点

vi /etc/hosts         

127.0.0.1 loopback localhost rmyy1 # loopback (lo0) name/address
192.192.0.1    rmyy1_boot1   rmyy1      类似于以前的BOOT地址
193.193.1.1    rmyy1_boot2   rmyy1      类似于以前的STANDBY地址
192.192.168.4  rmyy1_svc     rmyy1     【 通过ip alias 将该地址配置在en0上 】类似于以前的SERVICE地址(成功起HA后分配的,无需在AIX中定义)
10.32.1.1      rmyy1_boot    rmyy1     【 通过ip alias 将该地址配置在en2上 】做为永久IP

192.192.0.2    rmyy2_boot1   rmyy2      类似于以前的BOOT地址
193.193.1.2    rmyy2_boot2   rmyy2      类似于以前的STANADBY地址
192.192.168.5  rmyy2_svc     rmyy2     【 通过ip alias 将该地址配置在en1上 】类似于以前的SERVICE地址(成功起HA后分配的,无需在AIX中定义)
10.32.1.2      rmyy2_boot    rmyy2     【 通过ip alias 将该地址配置在en3上 】做为永久IP

五、定义并测试心跳线

分别在两台主机定义tty 并测试心跳线

配置和定制方法:# smitty tty 然后添加响应的tty设备名,选择响应的端口

测试方法:

在rmyy1端:  # cat < /dev/tty0
在rmyy2端:  # cat /etc/hosts > /dev/tty0

如果心跳正常,此时可以在rmyy1上输出hosts文件的内容

六、配置HACMP拓扑

Topology

1.Configuring an HACMP Cluster
#smit hacmp
       Extended Configuration >
    Extended Topology Configuration >
    Configure an HACMP Cluster >
    Add/Change/Show an HACMP Cluster

2.Configuring HACMP Nodes
    Extended Configuration >
    Extended Topology Configuration >
    Configure HACMP Nodes >
    Add a Node to the HACMP Cluster

            Node name                [ rmyy1  ]  [  rmyy2  ]
            communication path to    [192.192.0.1] [192.192.0.2]
            node

3.Discover HACMP-Related Information
           Extended Configuration >
           Discover HACMP-related Information from Configured Nodes

这里要注意,在discover之前首先要在/usr/es/sbin/cluster/etc/rhosts文件中添加 rmyy1 和 rmyy2两条记录

成功后,系统会根据/etc/hosts里的信息自动找到IP拓扑信息


七、配置hacmp网络和IP-Based心跳

1、Configuring HACMP Networks and Heartbeat Paths
   Configuring IP-Based Networks
   Extended Configuration >
   Extended Topology Configuration >
   Configure HACMP Networks>
          Add a Network to the HACMP Cluster

          network name          [ether1]
          network type             ether
          netmask               [255.255.255.0]
          enable ip takeover           true
          via ip aliase  
          ip address offset for heartbeating   [10.10.10.1]此ip网段当cluster启动后会自动
          over ip aliase                                   添加到两个网卡上,用于IP-heartbeat
         

2、Configuring Point-to-Point Networks to HACMP
   Extended Configuration >
          Extended Topology Configuration >
          Configure HACMP Networks>
          Add a Network to the HACMP Cluster

           network name                     [net_rs232]
           network type                      rs232

3、Configuring Communication Interfaces/Devices to HACMP
  Extended Configuration >
         Extended Topology Configuration >
  Configure HACMP Communication Interfaces/Devices.
  Add discovered communication interface and devices
  communication interfaces
         Select One or More Discovered Communication Interfaces to Add
         选择刚才新建的ether1网络,应该可以看到a_boot1 a_boot2
                                               b_boot1 b_boot2,通过F7 将它们选上

  Communications Devices
  Select Point-to-Point Pair of Discovered Communication Devices to Add
         F7选上两台机器上的tty0



4、Configuring HACMP Persistent Node IP Labels/Addresses
         Extended Configuration >
  Extended Topology Configuration >
  Configure HACMP Persistent Node IP Labels/Addresses >
  Add a Persistent Node IP Label

              node name           [db1]           [db2]
              network name        [ether]  [ether]
              node ip label/address     [a_boot] [b_boot]

八、配置HACMP资源组

Resource

Configuring HACMP Resources (Extended)
1. Configuring Service IP Labels as HACMP Resources
Extended Configuration >
HACMP Extended Resource Configuration >
HACMP Extended Resources Configuration >
Configure HACMP Service IP Labels/Addresses >
Add a Service IP Label/Address
Configurable on multiple nodes

                  IP label/Address              [a_svr]
                  network  name                 [ether1]

2. Defining an HACMP Application Server
Extended Configuration >
HACMP Extended Resource Configuration >
HACMP Extended Resources Configuration >
Configure HACMP Application Servers >
Add an Application Server

Add an Application Server
                 server name                    [oracle_server]
                 start script                   [/usr/sbin/startha]
                 stop  script                   [/usr/sbin/stopha]

3. Defining an Resource group
Extended Configuration >
Extended Resource Configuration >
HACMP Resource Group Configuration >
Add a Resource Group
        
         resource group name             [rmyy_rg]
  Inter-site Management Policy    cascading
                Participating Node Names        [rmyy1 rmyy2]

Extended Configuration >
Extended Resource Configuration >
HACMP Resource Group Configuration >
Change/Show Resources for a Resource Group
  
  Resource Group Name [group1]
  Participating Node Names (Default Node Priority) db1 db2
  * Service IP Labels/Addresses [a_svr] +              // 注意这里如果定义的是concurrent模式就没有这个选项了
  Volume Groups [datavg] +
  Filesystems (empty is ALL for VGs specified) [] +
  Application Servers [oracle_server] +

4. 同步配置
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP