POWERHA常用心跳网络特点和配置_第1页
POWERHA常用心跳网络特点和配置_第2页
POWERHA常用心跳网络特点和配置_第3页
POWERHA常用心跳网络特点和配置_第4页
POWERHA常用心跳网络特点和配置_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、实用文案POWERHA 常用心跳网络特点和配置最近系统的复习了一下PowerHA,做了一些相关的试验,今天时间充裕,在博 客里把有关于心跳方面的知识总结一下。谈到PowerHA,不得不谈心跳。记得拜 读IBM官方网站上浅谈 HACMP心跳一文中,作者王荣说了一句颇幽默 的话:“我们可以看出使用HACMP集群,可谓玩的就是心跳。”的确如此,在个人的学习和实施的过程中,发现心跳的确是要玩的,而且要玩好。一、心跳作用及分类PowerHA通过以下三种手段,来监控节点是否运行正常:1、RSCT监控网络接口和设备。.2、AIX LVM 监控硬盘、逻辑卷、卷组状态。3、PowerHA应用监控应用状态。Pow

2、erHA 使用心跳keep alive (KA)包来监控网络接口、通信设备、和 ip地址 标签有效性。在PowerHA中用基于IP网络和non-IP网络来交换心跳包。其中 基于 IP 网络包括:Ethernet (ether) 、Token-ring (token) 、Fiber Distributed Data In terface - FDDI (fddi)、Asyn chro nous Tran sfer Mode- ATM and ATM LAN Emulatio n) (atm) 、EtherCha nnel (ether) 、IP Versio n 6 (IPV6)、InfiniB

3、and,其中enther网络心跳比较常用。基于设备的主要包括:目标模式SCSI (tmscsi)、目标模式 SSA (tmssa)、磁盘心跳信号(diskhb)、串行RS232。磁盘心跳信号(diskhb)和串行RS232在实际环境中用到比较多(个 人根据实施经验判断,不一定准确)。二、常用心跳网络配置1、RS232串口心跳配置硬件配置建议配置专门用作心跳网络的异步卡。异步卡及串口线的选择配置可以参考:PowerHA中异步卡和串口线的选择。配置方法:添加tty设备:smitty device 中找到tty.测试tty通信是否正常:在连接串口线后,在一台设备上输入:cat/etc/hosts/d

4、ev/ttyO 另外一台输入:catdbsvr1dbsvr2Create a Con curre nt Volume GroupType or select values in entry fields.Press En ter AFTER mak ing all desired cha nges.TOPNode NamesPVIDVOLUME GROUP n amePhysicalpartitio nSIZE inmegabytes4Volume group MAJOR NUMBEREnhan ced Con curre nt ModeEn able Cross-Site LVM Mirro

5、ri ngVerificatio nfalseEntry Fieldsdbsvr1,dbsvr20003714b1331a3edheartvg+56+#true+标准文档Warni ng:Changing the volume group major nu mber may result in the comma nd being un able to execute successfully on a node that does not have the major nu mber curre ntly available. Please checkMORE.3F仁HelpEsc+5=Re

6、setmageF2=RefreshEsc+6=Comma ndF3=Ca ncelEsc+7=EditF4=ListEsc+8=Idbsvr1#lspvhdiskO0003714ba5048a99rootvgactivehdisk10003714bd3cf768arootvgactivehdisk20003714b7d935335datavgactivehdisk30003714b27d6164fdatavg_1activehdisk4noneNonehdisk50003714b1331a3edheartvgdbsvr2#lspvhdisk1000531c9c977a892rootvgacti

7、vehdisk20003714b7d935335datavghdisk3noneNonehdisk4noneNonehdiskO000531c9a501da2arootvgactivehdisk50003714b1331a3edheartvgStep2:编辑环境变量dbsvr1#vi /etc/e nviro nmentPATH=/usr/bi n: /etc:/usr/sb in:/usr/ucb:/usr/bi n/X11:/sbi n: /usr/java14/jre /bin:/usr/java14/bi n:/usr/sbi n/rsct/bi nTZ=BEIST-8LANG=en_

8、USLOCPATH=/usr/lib/nls/locNLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.catLC_FASTMSG=truedbsvr2#vi /etc/e nvir onmentPATH=/usr/bi n: /etc:/usr/sb in:/usr/ucb:/usr/bi n/X11:/sbi n: /usr/java14/jre/bin:/usr/java14/bi n:/usr/sbi n/rsct/bi nTZ=BEIST-8LANG=en_USLOCPATH=/usr/lib/nls/locNLSPATH=/u

9、sr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.catLC_FASTMSG=trueStep3:测试并行卷组通讯dbsvr1#dhb_read -p hdisk5 -rDHB CLASSIC MODEFirst n ode byte offset: 61440Second node byte offset: 62976Han dshak ing byte offset: 65024Test byte offset: 64512Receive Mode:Waiti ng for resp onse .Magic number = 0x87654321Mag

10、ic number = 0x87654321Magic number = 0x87654321Magic number = 0x87654321Link operati ng no rmallydbsvr2#dhb_read -p hdisk5 -tDHB CLASSIC MODEFirst n ode byte offset: 61440Second node byte offset: 62976Han dshaki ng byte offset: 65024Test byte offset: 64512Tran smit Mode:Magic number = 0x87654321Dete

11、cted remote utility in receive mode. Waiting for response .Magic number = 0x87654321Magic number = 0x87654321Link operati ng no rmallyStep4:配置磁盘心跳网络dbsvr1#smitty hacmpInitialization and Standard ConfigurationExtended ConfigurationSystem Ma nageme nt (C-SPOC)Problem Determ in ati on ToolsDiscover HAC

12、MP-related In formatio n from Con figured NodesExte nded Topology Con figurati onExte nded Resource Con figurati onExte nded Cluster Service Sett ingsExte nded Eve nt Con figurati onExte nded Performa nee Tuning Parameters Con figuratio nSecurity and Users Con figurati onSn apshot Con figurati onExp

13、ort Definition File for Online Planning WorksheetsCon figure an HACMP ClusterCon figure HACMP NodesCon figure HACMP SitesCon figure HACMP NetworksCon figure HACMP Communi cati on In terfaces/DevicesCon figure HACMP Persiste nt Node IP Label/AddressesCon figure HACMP Global NetworksCon figure HACMP N

14、etwork ModulesCon figure Topology Services and Group ServicesShow HACMP TopologyAdd a Network to the HACMP ClusterCha nge/Show a Network in the HACMP ClusterRemove a Network from the HACMP ClusterSelect a Network TypeMove cursor to desired item and press Enter.TOP# Discovery last performed: (Apr 03

15、15:13)# Discovered IP-based Network Typesether# Discovered Serial Device Typesrs232# Pre-defi ned IP-based Network TypesXD_dataXD_ipatmetherfddihpsibtoke n# Pre-defi ned Serial Device TypesXD_rs232diskhbAdd a Serial Network to the HACMP ClusterType or select values in entry fields.Press En ter AFTER

16、 mak ing all desired cha nges.Entry FieldsNetwork NameNetwork Typen et_diskhb_01diskhbCon figure an HACMP ClusterCon figure HACMP NodesCon figure HACMP SitesCon figure HACMP NetworksCon figure HACMP Communi cati on In terfaces/DevicesCon figure HACMP Persiste nt Node IP Label/AddressesCon figure HAC

17、MP Global NetworksCon figure HACMP Network ModulesCon figure Topology Services and Group ServicesCon figure HACMP NetworksSelect a categoryMove cursor to desired item and press Enter.Add Discovered Communi cati on In terface and DevicesAdd Pre-defi ned Communi catio n In terface and DevicesCommuni c

18、atio n In terfacesCommuni catio n devicesSelect a Device NetworkMove cursor to desired item and press Enter.n et_diskhb_O1* Device Nameheartdbsvr1* Network Typediskhb* Network Name* Device Path*Noden ame* Device Name* Network Type* Network Name* Device Path*Noden amen et_diskhb_/dev/hdisk5heartdbsvr

19、2diskhbn et_diskhb_/dev/hdisk5dbsvr1dbsvr2Step5:检查集群网络结构Show Cluster TopologyShow Cluster DefinitionShow Topology Information by NodeShow Topology In formatio n by NetworkShow Topology In formatio n by Communi cati on In terfaceCluster Name: gyjtCluster Conn ecti on Authe nticati on Mode:Sta ndardCl

20、uster Message Authe nticati on Mode:NoneCluster Message En crypti on:NoneUse Persiste nt Labels for Commu ni cati on:NoNODE dbsvr1:heartdbsvr1/dev/hdisk5dbsvr1_svc158.1.1.126dbsvr1_boot 158.1.1.127dbsvr1_stb192.168.1.1Network net_diskhb_01Networkdbsvr1_stbheartdbsvr1 /dev/hdisk5net_ether_01192.168.1

21、.1Network net_rs232_01dbsvr1_ttyO /dev/tty0NODE dbsvr2:Step6:同步集群配置Exte ndedCon figurati onMove cursor to desired item and pressEn ter.Discover HACMP-related In formatio n from Con figuredNodesExte nded TopologyCon figurati onExte nded ResourceCon figurati onExte nded Cluster Service Sett ingsExte n

22、ded Eve nt Con figurati onExte nded Performa nee Tuning ParametersCon figurati onSecurity and UsersCon figurati onSn apshot Con figurati onExport Definition File for Online PlanningWorksheetsExtended Verification andSynchroni zati onHACMP Cluster Test Tool3、IP网络心跳IP网络心跳 可以使用IP别名心跳即在boot网卡上添加别名IP,来跑心

23、跳。也可以用专门的网卡用作心跳通信a、IP别名心跳配置注意:心跳地址没有子网限制,但是要注意和bootip在不同的子网中。配置方法:在 hacmp 配置完成后 smitty hacmp - Extended ConfigurationExte nded TopologyCon figurati on-change a Network to the HACMP ClusterCon figure HACMP Networks下的 IP Address Offset forHeartbeating over IP Aliase填入需要用作心跳传输的别名IP地址。当你输入hacmp 会自动在四个 b

24、oot ip上生成四个private的ip地址,做心跳用。生成的规则如下:引用cookbook原文:When PowerHA starts, it buildsup an alias heartbeat n etwork start ing from this address, by calculat ingan IP address for each node based on the node nu mber.举例说明:当你输入10.0.0.1,机器会在启动HACMP时,在a主机上boot1生成 10.0.0.1,boot2 上生成 10.0.1.1,备机上 boot1 生成 10.0.0.2,boot2 生成10.0.1.2。这四个ip就是做心跳用的。b、单独网卡心跳配置准备:如果

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论