Chinaunix首页 | 论坛 | 博客
  • 博客访问: 24855866
  • 博文数量: 271
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 3358
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:28
文章分类

全部博文(271)

文章存档

2010年(71)

2009年(164)

2008年(36)

我的朋友

分类:

2009-06-23 22:53:09

如何在 HACMP 中使用 EtherChannel

内容提要:
介绍HACMP使用EtherChannel的实施方案


说明:

    1, 测试环境描述
    本文介绍HACMP 使用EtherChannel 的实现方案,使用设备如下:
    两台pSeries 服务器p630 ,分别命名为neotrinity
    操作系统为AIX 5.2 ,系统补丁为5200-03 ,或以上版本
    HACMP 5.1 版本(5.1.0.5 ,或以上版本)
    以太网络适配器,从ent0ent6 ,使用如下:
    -> ent1 网络管理连接
    -> ent4 未使用
    -> ent6 EtherChannel ,有适配器ent2ent3ent0 组成

    2, 实施步骤概述
    使用EtherChannel 配置HACMP 的基本如下,以服务器neo 为例:
    1 ) 检查以太网适配卡的配置,并物理的连接各适配卡
    2 ) 创建EtherChannel ,逻辑标示为ent6
    3 ) 配置EtherChannelen6 )的IP
    4 ) 在HACMP 的拓扑结构中添加bootservice IP
    5 ) 创建资源组,并分配相应的service IP
    6 ) 同步HACMP 的配置
    7 ) 启动HACMP
    8 ) 测试NIC 的冗余,确定HACMPEtherChannel 中各组成网络适配器的失败事件不敏感

    2 为测试环境采用的物理拓扑结构,按图所示配置,连接使用的以太网卡。注意,未避免
    HACMP 自动发现配置以太适配卡en# ,,应使用smitty inet 删除未使用的标示,或者使用ifconfig
    命令下载、分离(down and detach )相应的标示,并使用rmdev 命令从ODM 库中删除对应的定义。

    如使用千兆以太适配卡,可以配置jumbo 的值提高数据传输。激活jumbo ,参考步骤1 和步骤2
    在步骤3 中,使用smitty chif 配置MTU 的值为9000



    2

    3, 详细步骤

    步骤 1. 检查以太适配器的配置,并连接使用的网卡
    配置EtherChannel 的以太适配卡,应当具有同样的传输速度和传输模式,此例中,配置
    ent0ent2ent3100Mbps ,全双工:
    1 ) 使用smitty ethernet 菜单配置传输速度和传输模式
    2 ) 确定组成EtherChannel 的三组以太适配卡如图2 所示连接

    步骤 2. 配置 EtherChannel
    使用smitty etherchannel 菜单配置EtherChannel ,使用F7 功能键选择相应的以太适配卡,
    在此方案中选择ent2ent3 组成主通道,ent0 为备份适配卡。这一步骤中,将生成
    EtherChannel ,相应的标示符为ent6



    步骤 3. 配置 EtherChannel IP 地址
    使用smitty chinet 菜单配置EtherChannelIP 地址,逻辑标示为en6 。在服务器trinity 上重复此
    步骤,配置IP 地址为2.2.2.2



    注意:
      此界面将创建en6 逻辑标示,组成EtherChannel 的独立的网卡逻辑标示en0en2en3 不存在

    步骤 4. 配置 HACMP 拓扑

    测试中,使用IP 别名配置HACMP 网络,IP 地址如下:
    配置boot IP 地址:
    服务器neo neo_boot 2.2.2.1
    服务器trinity trinity_boot 2.2.2.2
    服务IP 地址,采用如下方式:
    Configurable on Multiple Nodes 192.168.43.4
    Persistent IP 地址:
    服务器neo192.168.43.x
    服务器trinity192.168.43.x
    注意:
    在生产环境中,还应当配置非IP 的串行网络(serial network )传输心跳信号。

    步骤 5. 配置 HACMP 的资源组
    配置包含单个服务IP 地址的cascading 资源组,测试的重点是NIC 的冗余测试,所以
    我们只是配置网络部分,忽略掉磁盘等资源。

    5.1) 如下过程,创建cascading 的资源组
    smitty hacmp
    I itialization and Standard Configuration
    Con figure HACMP Resource Groups
    Add a Resource Group Cascading (from pick list)


    以上过程将创建资源组

    Step 5b.
    5.2 )在创建的资源组中添加服务IP 地址,过程如下:
    smitty hacmp
    Initialization and Standard Configuration
    Configure HACMP Resource Group
    Change/Show Resources for a Resource Group (standard)
    Choose previously created resource Group




    Step 6. Synchronize the cluster.
    步骤 6. 同步 HACMP 集群
    使用如下菜单同步HACMP 集群的配置
    smitty hacmp
    Initialization and Standard Configuration
    Verify and Synchronize HACMP
    将显示如下的信息:
    Verifying Cluster Topology...
    WARNING: There may be an insufficient number of communication interfaces defined
    on node: neo, network: net_ether_01. Multiple communication interfaces are
    recommended for networks that will use IP aliasing.
    WARNING: There may be an insufficient number of communication interfaces defined
    on node: trinity, network: net_ether_01. Multiple communication interfaces are
    recommended for networks that will use IP aliasing.

    可以预测到以上的警告信息,因为配置的是单适配卡的网络。

    步骤 7. 启动 HACMP 的服务进程
    执行smitty clstart 命令启动HACMP 的服务


    Step 8. Test procedures.
    步骤 8. 测试配置
    测试的重点是测试拔掉网线查看HACMP 对这一事件的反映,确定HACMP 未检测
    到此事件的产生。测试通过从客户端发送ping 数据包,查看是否有数据包的丢失。
    1 , 拔掉ent3 的网线,ent2 将继续提供服务,可以通过netstatentsta 确定网络的
    服务、连接状态,同时从客户端发送ping 数据包。AIX 能检测到相应的错误,但
    HACMP 继续提供不间断的服务。
      部分netstat –v 的输出结果为,请参考红色字体标注的部分:
    -------------------------------------------------------------
    ETHERNET STATISTICS (ent6) :
    Device Type: EtherChannel
    Hardware Address: 00:09:6b:4e:70:a5
    Elapsed Time: 0 days 1 hours 34 minutes 19 seconds
    Transmit Statistics: Receive Statistics:
    -------------------- -------------------
    Packets: 4403 Packets: 4352
    Bytes: 754772 Bytes: 1653330
    ……
    Adapter Data Rate: 200
    Driver Flags: Up Broadcast Running
    Simplex 64BitSupport PrivateSegment
    DataRateSet
    ……
    Statistics for every adapter in the EtherChannel:
    -------------------------------------------------
    Number of adapters: 3
    Active channel: primary channel
    Operating mode: Round-robin mode
    -------------------------------------------------------------
    ETHERNET STATISTICS (ent2) :
    Device Type: IBM 4-Port 10/100 Base-TX Ethernet PCI Adapter (23100020)
    Hardware Address: 00:09:6b:4e:70:a5
    ……
    RJ45 Port Link Status : up
    Media Speed Selected: 100 Mbps Full Duplex
    Media Speed Running: 100 Mbps Full Duplex
    ……
    ETHERNET STATISTICS (ent3) :
    Device Type: IBM 4-Port 10/100 Base-TX Ethernet PCI Adapter (23100020)
    Hardware Address: 00:09:6b:4e:70:a5
    ……
    RJ45 Port Link Status : down
    Media Speed Selected: 100 Mbps Full Duplex
    Media Speed Running: Unknown

    AIX 系统报告的错误为:
    F77ECAC2 0624145904 T H ent3 ETHERNET NETWORK RECOVERY MODE
    8650BE3F 0624145904 I H ent6 ETHERCHANNEL RECOVERY
    F77ECAC2 0624145904 T H ent2 ETHERNET NETWORK RECOVERY MODE

    2. 拔掉ent2 的网线,ent0 接管服务,AIX 系统将此错误信息提供给系统的错误报告系统,
    但并不通知HACMP.
    注意:
    AIX 5.22004 年七月后的版本)和5.3 系统可以使用以下命令强制产生这一错误:
    /usr/lib/methods/ethchan_config –f ent6 command.
    3. 拔掉ent0 的网线,将导致整个EtherChannel 的失败,HACMP 将产生网络错误事件,
    备机接管网络
    4. 停止HACMP 集群服务,恢复对应的网线,重新引导系统,并重新启动HACMP 服务,
    恢复初始测试状态

    4 .参考资料
    在以上的实施过程中,只是粗略的说明如何使用 EtherChannel 配置 HACMP 集群,在
    实际的实施中,可能会碰到更多的问题,请参考以下资料:
    <>
    HACMP <>
阅读(1471) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~