免费注册 查看新帖 |

Chinaunix

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

[HACMP集群] hacmp配置问题之一(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-27 11:39 |只看该作者 |倒序浏览
大家好:
今天在配置hacmp时遇到不知道是什么原因,请大家帮忙,谢谢!
环境描述:
a机器:p520,主机名node1
           en0:192.168.0.102
           en1:192.168.1.102
           svc:192.168.2.102

b机器:p55a,主机名node2
           en0:192.168.0.103
           en1:192.168.1.103
           svc:192.168.2.103
hacmp版本5.4
选择ip通信接口(心跳侦测)

基本安装过程如下:
1、安装操作系统、安装相关软件包(node1 and node2)
2、安装hacmp5.4(node1 and node2)
3、配置网络(node1 and node2)
4、配置hacmp(node1)
接下来在做“校验并同步HACMP配置”时,出现如下错误和警告:
Verification to be performed on the following:
        Cluster Topology
        Cluster Resources
Verification will interactively correct verification errors.
Retrieving data from available cluster nodes.  This could take a few minutes.....

Verifying Cluster Topology...

ERROR: Interface node2_std (192.168.1.103) is not configured in AIX on node: node2
Please check to ensure the interface is properly defined to AIX.  If theinterface is not defined to AIX then add the interface by running 'smitty chinet' and change network interface: en1 to the above IP definition.

WARNING: Multiple communication interfaces are recommended for networks thatuse IP aliasing in order to prevent the communication interface from becoming a single point of failure. There are fewer than the recommended number of communication interfaces defined on the following node(s) for the given network(s):

Node:                                Network:
    ----------------------------------   ----------------------------------
    node1                                net_ether_01
    node2                                net_ether_01
    node1                                net_ether_02

WARNING: To prevent the IP stack from being a single-point-of-failure,HACMP recommends a non-IP network topology in which each node in the cluster  can use non-IP networks to reach all other nodes in the cluster, either directly or via other nodes. This topology should be in addition to any configured IP-based networks.
The following node(s) or sets of "non-IP connected" nodes violate this recommendation:
node1
node2
It is recommended that these nodes or sets of nodes be inter-connected via additional non-IP networks, such as RS-232, shared disks for disk
heartbeating, etc.

WARNING: The service IP label: node2_svc is not configured to be part of a resource group. It will not be acquired and used as a service address by any node.

WARNING: Application monitors are required for detecting application failures in order for HACMP to recover from them.  Application monitors are tarted
by HACMP when the resource group in which they participate is activated. The following application(s), shown with their associated resource group,do not have an application monitor configured:
   Application Server                Resource Group
   --------------------------------  ---------------------------------
   appserver                         rg_node1

Verification exiting with error count: 1

cldare: Failures detected during verification.  Please correct the errors and retry this command.

Verification has completed normally.


第一个err报node2上没有配置en1(192.168.1.103),但是确实已经配置好了的,通过ping 192.168.1.103或ping node_std都是通的,不知道为啥会报错
另外后面那么多WARNING也搞不清楚是怎么回事,请大家帮助解释一下,看下一步我要如何调整?万分感谢!!!

[ 本帖最后由 onlywxw 于 2008-2-28 17:50 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-02-27 11:56 |只看该作者
你没有配完就同步了 , std ip , svc ip , app , rg 都没加

论坛徽章:
0
3 [报告]
发表于 2008-02-27 12:12 |只看该作者
我在node1上已经配置过了这些了的,才做的同步

我把我整理的文档放上来,我基本上就是按照这样的步骤做的,也许对大家帮助我有用
1.        软件环境
1.1  AIX 5300-07
1.2  HACMP 5.4
2.  硬件环境
2.1P520  and  P55A共两台机器
2.2无阵列(目前只是测试地址漂移,暂不做具体应用)
2.3心跳线一根(目前没用,使用ip方式侦测心跳,随后再测试其他方式)
3.  系统环境
3.1  /etc/hosts
        127.0.0.1       loopback    localhost    node1(另一节点为node2)

        192.168.0.102   node1_boot
        192.168.0.103   node2_boot

        192.168.1.102   node2_std
        192.168.1.103   node2_std

        192.168.2.102   node2_svc
        192.168.2.103   node2_svc
3.2  /.rhosts
        192.168.0.102
        192.168.0.103
        192.168.1.102
        192.168.1.103
        192.168.2.102
        192.168.2.103
3.3 /usr/es/sbin/cluster/etc/rhosts
            192.168.0.102
        192.168.0.103
        192.168.1.102
        192.168.1.103
        192.168.2.102
        192.168.2.103

4.  配置HACMP  以下操作只需在一个节点上操作即可
4.1 配置网络拓朴
4.1.1  配置Cluster Name
       # smitty hacmp                                       
         Extended Configuration                     
            Extended Topology Configuration   
              Configure an HACMP Cluster
                Add/Change/Show an HACMP Cluster  
                  * Cluster Name              [cluster1]                        
4.1.2  配置Cluster节点
      # smitty hacmp                                       
         Extended Configuration                     
            Extended Topology Configuration   
               Configure HACMP Nodes   
                 Add a Node to the HACMP Cluste
                    *NodeName                         [Node1]                  
                     Communication Path to Node          [node1_boot] +
以同样方法将Node2添加到Cluster中
                     *NodeName                        [Node2]                  
                     Communication Path to Node          [node2_boot] +
4.1.3  配置HACMP网络
4.1.3.1  创建IP网络
      # smitty hacmp                                       
         Extended Configuration                     
           Extended Topology Configuration
             Configure HACMP Networks
                Add a Network to the HACMP Cluster
                  * NetworkName                       [net_ether_01]           
                  * NetworkType                         ether                  
                  * Netmask                            [255.255.255.0] +
                  * Enable IP Address Takeover via IP Aliases  [Yes]        +
                    IP Address Offset for Heartbeating over IP Aliases []                       
      使用同样的方法创建[net_ether_02]
      * Enable IP Address Takeover via IP Aliases  [Yes]  此选项决定了HACMP的IP切换方式,但值得一提的是只有“boot”、“standby”、“service”三个IP分别为三个不同网段时必须选用IP Aliases方式。如果“boot”、“standby”其中一个与“service”为同一个网段时必须选用IP Replace,则此选项应选“NO”。
4.1.4  添加网络到Cluster
4.1.4.1  创建IP通信接口
      # smitty hacmp                                       
         Extended Configuration                     
           Extended Topology Configuration
               Configure HACMP Communication Interfaces/Devices
                 Add Communication Interfaces/Device
                    Add Pre-defined Communication Interfaces and Devices
                       Communication Interfaces
                         * IP Label/Address       [node1_boot] +
                         * Network Type          ether                    
                         * Network Name         net_ether_01            
                         * Node Name           [Node1]    +
                            Network Interface      []
      同样方法添加另一个通信接口到”net_ether_01”
                         * IP Label/Address       [node2_boot] +
                         * Network Type          ether                    
                         * Network Name         net_ether_01            
                         * Node Name           [Node2]    +
                            Network Interface      []
      同样方法创建另一个通信接口
                         * IP Label/Address       [node1_stb] +
                         * Network Type          ether                    
                         * Network Name         net_ether_02            
                         * Node Name           [Node1]    +
                            Network Interface      []

                         * IP Label/Address       [node2_stb] +
                         * Network Type          ether                    
                         * Network Name         net_ether_02            
                         * Node Name           [Node2]    +
                            Network Interface      []

4.2  配置HACMP资源
4.2.1  配置资源
4.2.1.1  创建Applications Servers
        # smitty hacmp                                       
         Extended Configuration                     
          Extended Resource Configuration
             HACMP Extended Resources Configuration
               Configure HACMP Applications Servers
                 Add an Application Server
                   * Server Name          [appserver]           
                   * Start Script         [/etc/hastart1.sh]
                   * Stop Script           [/etc/hastop1.sh]
需要手动在两个节点上建立“/etc/hastart1.sh”、“/etc/hastop1.sh”并保证其有执行权限。如果是双机互备的话需要建立两个App Server。方法相同。
4.2.1.2  创建Service IP
        # smitty hacmp                                       
         Extended Configuration                     
           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                  node1_svc   +
                      * Network Name                   net_ether_01  
      同样方法配置第二个Service IP
                      * IP Label/Address                  node2_svc   +
                      * Network Name                   net_ether_02  
                         Network Name:“net_ether_01”、“ net_ether_02” 决定了与之对应的Service IP默认在哪个网卡上启动。   
4.2.2  配置资源组
4.2.2.1  创建资源组
        # smitty hacmp                                       
         Extended Configuration                     
           Extended Resource Configuration
              HACMP Extended Resource Group Configuration
                 Add a Resource Group
                   * Resource Group Name                    [rg_node1]              
                      Participating Nodes (Default Node Priority)    [Node1 Node2] +                     
                      Startup Policy                 Online On Home Node O> +
                         Fallover Policy                Fallover To Next Prio> +
                         Fallback Policy                Fallback To Higher Pr> +
如果是双机互备的话以同样方法建立另一个资源组
           * Resource Group Name                    [rg_node2]              
              Participating Nodes (Default Node Priority)    [Node2 Node1] +           
“Participating Nodes”选项决定了资源组中节点的优先级,写在前面的节点其优先级高于后面的节点。
根据实际需求决定资源组的:“Startup Policy”、“Fallover Policy”、“Fallback Policy”。
Startup Policy:
           Online On Home Node Only: 只在主节点启动。在 “Participating Nodes”中写在第一位的节点启动。
           Online On First Available Node:在第一个启动的节点启动。在“Participating Nodes”中所选择的所有节点中最先启动的节点上启动。
           Online Using Distribution Policy:按照分布策略启动
           Online On All Available Nodes:在所有启动的节点中启动。做并发群集时选择此项。如:Oracle RAC
Fallover Policy:
           Fallover To Next Priority Node In The List:节点失败时资源组迁移到下一优先级节点
           Fallover Using Dynamic Node Priority:节点失败时动态选择迁移节点
           Bring Offline (On Error Node Only):将资源组下线
Fallback Policy:
           Fallback To Higher Priority Node In The List:节点恢复时资源组返回优先级高的节点
           Never Fallback:不进行资源组回迁
4.2.2.2  配置资源组属性
        # smitty hacmp                                       
         Extended Configuration                                            
           Extended Resource Configuration
             HACMP Extended Resource Group Configuration
               Change/Show Resources and Attributes for a Resource Group
                 Resource Group Name                         rg_node1               
                 Participating Nodes (Default Node Priority)        Node1 Node2            
                 Startup Policy                                Online On Home Node O>  
                 Fallover Policy                               Fallover To Next Prio>  
                 Fallback Policy                               Fallback To Higher Pr>  
                 Fallback Timer Policy (empty is immediate)         []+
                 Service IP Labels/Addresses                               [node1_svc] +
                 Application Servers                                             [appserver] +
                 Volume Groups                                                    []+
                 Use forced varyon of volume groups, if necessary    false+
                 Automatically Import Volume Groups                         ture+
                 Filesystems (empty is ALL for VGs specified)       []+
                 Filesystems Consistency Check                                  fsck+
                 Filesystems Recovery Method                                    sequential+
                 Filesystems mounted before IP configured                false+
                 Filesystems/Directories to Export                   []+
                 Filesystems/Directories to NFS Mount            []                       
                 Network For NFS Mount                                  []+
                 Tape Resources                                              []+
                 Raw Disk PVIDs                                              []+
                 Fast Connect Services                                    []+
                 Communication Links                                      []+
                 Primary Workload Manager Class                   []+
                 Secondary Workload Manager Class              []+
如果是双机互备以同样方法修改另一个资源组属性

5.  校验并同步HACMP配置
    # smitty hacmp                                       
      Extended Configuration
       Extended Verification and Synchronization
         * Verify, Synchronize or Both                            [Both] +
         * Automatically correct errors found during                 [Interactively] +
          verification?                                                               
         * Force synchronization if verification fails?                [No] +
         * Verify changes only?                                  [No] +
         * Logging

[ 本帖最后由 onlywxw 于 2008-2-27 12:45 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-02-27 14:08 |只看该作者
问题还没解决,自己顶一下

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
5 [报告]
发表于 2008-02-27 14:15 |只看该作者
1、HACMP5版本不在需要./rhosts文件,所以如果是为了HA不用该文件
2、添加网络接口部分这么做也可以,但最好的方法是先做discovery,然后在添加网络接口的时候选择发现的接口而不用手工添加,你的err可能是你这里配置不真确导致的
3、警告信息,可以不用过多考虑,不过最好用于生产环境的配置把这些警告都消除

论坛徽章:
0
6 [报告]
发表于 2008-02-27 14:42 |只看该作者
为什么不先用standard先配置下?之后用extended再配置列?

论坛徽章:
0
7 [报告]
发表于 2008-02-27 15:00 |只看该作者
我是第一次装,网上找了一份文档,按照上面写的安装的,目前还不熟练。
“先用standard先配置下?之后用extended再配置列?”这句话怎么理解,能说的详细点吗?

论坛徽章:
0
8 [报告]
发表于 2008-02-28 10:42 |只看该作者
问题解决了,考虑到在配置的时候不是很熟悉,有几个地方当时错了,发现后删除重新创建,表明上好像没什么问题(检查不出来),但系统内部也许哪个地方有毛病了,因此我重新又做了一遍,这一次是ok的。
谢谢大家的指点,我还会遇到很多问题,希望大家继续帮助我!

论坛徽章:
0
9 [报告]
发表于 2008-04-24 11:09 |只看该作者
楼主hastart1.sh     hastop1.sh都写些什么的 ?

论坛徽章:
0
10 [报告]
发表于 2008-04-24 11:20 |只看该作者
有应用写应用的起停脚本  
没有就是空脚本 , 你要觉得不好玩, 写个banner也可以 , 呵呵

建完 chmod 下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP