HA常用心跳网络特点和配置.docx
- 文档编号:30393379
- 上传时间:2023-08-14
- 格式:DOCX
- 页数:11
- 大小:19.85KB
HA常用心跳网络特点和配置.docx
《HA常用心跳网络特点和配置.docx》由会员分享,可在线阅读,更多相关《HA常用心跳网络特点和配置.docx(11页珍藏版)》请在冰豆网上搜索。
HA常用心跳网络特点和配置
POWERHA常用心跳网络特点和配置
最近系统的复习了一下PowerHA,做了一些相关的试验,今天时间充裕,在博客里把有关于心跳方面的知识总结一下。
谈到PowerHA,不得不谈心跳。
记得拜读IBM官方网站上《浅谈HACMP心跳 》一文中,作者王荣说了一句颇幽默的话:
“我们可以看出使用HACMP集群,可谓玩的就是心跳。
”的确如此,在个人的学习和实施的过程中,发现心跳的确是要玩的,而且要玩好。
一、心跳作用及分类
PowerHA通过以下三种手段,来监控节点是否运行正常:
1、RSCT 监控网络接口和设备。
.
2、AIXLVM监控硬盘、逻辑卷、卷组状态。
3、PowerHA 应用监控应用状态。
PowerHA使用心跳keepalive(KA)包来监控网络接口、通信设备、和ip地址标签有效性。
在PowerHA中用基于IP网络和non-IP网络来交换心跳包。
其中基于IP网络包括:
Ethernet(ether)、Token-ring(token)、FiberDistributedDataInterface-FDDI(fddi)、 AsynchronousTransferMode-ATMandATMLANEmulation)(atm)、 EtherChannel(ether)、 IPVersion6(IPV6)、InfiniBand,其中enther网络心跳比较常用。
基于设备的主要包括:
目标模式SCSI(tmscsi)、目标模式SSA(tmssa)、磁盘心跳信号(diskhb)、串行RS232。
磁盘心跳信号(diskhb)和串行RS232在实际环境中用到比较多(个人根据实施经验判断,不一定准确)。
二、常用心跳网络配置
1、RS232串口心跳配置
硬件配置建议配置专门用作心跳网络的异步卡。
异步卡及串口线的选择配置可以参考:
PowerHA中异步卡和串口线的选择。
配置方法:
添加tty设备:
smittydevice中找到tty.
测试tty通信是否正常:
在连接串口线后,在一台设备上输入:
cat/etc/hosts>/dev/tty0 另外一台输入:
cat
在PowerHA中添加:
a、添加网络smittyhacmp ---ExtendedConfiguration ----ExtendedTopologyConfiguration ----ExtendedTopologyConfiguration----ExtendedTopologyConfiguration-----#Pre-definedSerialDeviceTypes 中rs232
b、添加设备 smittyhacmp ---ExtendedConfiguration ----ExtendedTopologyConfiguration ----ExtendedTopologyConfiguration----ConfigureHACMPCommunicationInterfaces/Devices----AddCommunicationInterfaces/Devices----AddPre-definedCommunicationInterfacesandDevices ----CommunicationDevices ----选择添加的网络----选择相应的端口
2、磁盘心跳配置方法
磁盘心跳简单说就是用共享磁盘来跑心跳。
磁盘心跳从HACMP5.1中开始支持。
优点:
不占用插槽,磁盘总线上的心跳网络能够在TCP/IP网络资源有限的情况下提供额外的HACMP节点间的通信手段,并且能够防止HACMP节点之间由于TCP/IP软件出现问题而无法相互通信。
缺点:
需要操作系统和存储支持,如使用增强型卷组,此外对于I/O读写负荷高的应用,也需要慎用。
使用磁盘心跳需要安装操作系统bos.clvm.enh 包以支持增强性并发卷组。
配置方法:
摘自:
文中描述的是HACMP5.4中操作,经验证和
PowerHA配置方法完全一样。
Step1:
配置并行卷组
[dbsvr1]#smittyhacmp
InitializationandStandardConfiguration
ExtendedConfiguration
SystemManagement(C-SPOC)
ProblemDeterminationTools
ManageHACMPServices
HACMPCommunicationInterfaceManagement
HACMPResourceGroupandApplicationManagement
HACMPLogViewingandManagement
HACMPFileCollectionManagement
HACMPSecurityandUsersManagement
HACMPLogicalVolumeManagement
HACMPConcurrentLogicalVolumeManagement
HACMPPhysicalVolumeManagement
ConfigureGPFS
ConcurrentVolumeGroups
ConcurrentLogicalVolumes
SynchronizeConcurrentLVMMirrors
ListAllConcurrentVolumeGroups
CreateaConcurrentVolumeGroup
CreateaConcurrentVolumeGroupwithDataPathDevices
SetCharacteristicsofaConcurrentVolumeGroup
ImportaConcurrentVolumeGroup
MirroraConcurrentVolumeGroup
NodeNames
MovecursortodesireditemandpressEsc+7.
ONEORMOREitemscanbeselected.
PressEnterAFTERmakingallselections.
>dbsvr1
>dbsvr2
CreateaConcurrentVolumeGroup
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[TOP] [EntryFields]
NodeNames dbsvr1,dbsvr2
PVID 0003714b1331a3ed
VOLUMEGROUPname [heartvg]
PhysicalpartitionSIZEinmegabytes 4 +
VolumegroupMAJORNUMBER [56] +#
EnhancedConcurrentMode true +
EnableCross-SiteLVMMirroringVerification false +
Warning:
Changingthevolumegroupmajornumbermayresult
inthecommandbeingunabletoexecute
successfullyonanodethatdoesnothavethe
majornumbercurrentlyavailable.Pleasecheck
[MORE...3]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
[dbsvr1]#lspv
hdisk0 0003714ba5048a99 rootvg active
hdisk1 0003714bd3cf768a rootvg active
hdisk2 0003714b7d935335 datavg active
hdisk3 0003714b27d6164f datavg_1 active
hdisk4 none None
hdisk5 0003714b1331a3ed heartvg
[dbsvr2]#lspv
hdisk1 000531c9c977a892 rootvg active
hdisk2 0003714b7d935335 datavg
hdisk3 none None
hdisk4 none None
hdisk0 000531c9a501da2a rootvg active
hdisk5 0003714b1331a3ed heartvg
Step2:
编辑环境变量
[dbsvr1]#vi/etc/environment
PATH=/usr/bin:
/etc:
/usr/sbin:
/usr/ucb:
/usr/bin/X11:
/sbin:
/usr/java14/jre/bin:
/usr/java14/bin:
/usr/sbin/rsct/bin
TZ=BEIST-8
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:
/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
[dbsvr2]#vi/etc/environment
PATH=/usr/bin:
/etc:
/usr/sbin:
/usr/ucb:
/usr/bin/X11:
/sbin:
/usr/java14/jre/bin:
/usr/java14/bin:
/usr/sbin/rsct/bin
TZ=BEIST-8
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:
/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
Step3:
测试并行卷组通讯
[dbsvr1]#/usr/sbin/rsct/bin/dhb_read-phdiskx-r
DHBCLASSICMODE
Firstnodebyteoffset:
61440
Secondnodebyteoffset:
62976
Handshakingbyteoffset:
65024
Testbyteoffset:
64512
ReceiveMode:
Waitingforresponse...
Magicnumber=0x87654321
Magicnumber=0x87654321
Magicnumber=0x87654321
Magicnumber=0x87654321
Linkoperatingnormally
[dbsvr2]#/usr/sbin/rsct/bin/dhb_read-phdiskx–t(这两个命令需要同时执行)
DHBCLASSICMODE
Firstnodebyteoffset:
61440
Secondnodebyteoffset:
62976
Handshakingbyteoffset:
65024
Testbyteoffset:
64512
TransmitMode:
Magicnumber=0x87654321
Detectedremoteutilityinreceivemode. Waitingforresponse...
Magicnumber=0x87654321
Magicnumber=0x87654321
Linkoperatingnormally
Step4:
配置磁盘心跳网络
[dbsvr1]#smittyhacmp
InitializationandStandardConfiguration
ExtendedConfiguration
SystemManagement(C-SPOC)
ProblemDeterminationTools
DiscoverHACMP-relatedInformationfromConfiguredNodes
ExtendedTopologyConfiguration
ExtendedResourceConfiguration
ExtendedClusterServiceSettings
ExtendedEventConfiguration
ExtendedPerformanceTuningParametersConfiguration
SecurityandUsersConfiguration
SnapshotConfiguration
ExportDefinitionFileforOnlinePlanningWorksheets
ConfigureanHACMPCluster
ConfigureHACMPNodes
ConfigureHACMPSites
ConfigureHACMPNetworks
ConfigureHACMPCommunicationInterfaces/Devices
ConfigureHACMPPersistentNodeIPLabel/Addresses
ConfigureHACMPGlobalNetworks
ConfigureHACMPNetworkModules
ConfigureTopologyServicesandGroupServices
ShowHACMPTopology
AddaNetworktotheHACMPCluster
Change/ShowaNetworkintheHACMPCluster
RemoveaNetworkfromtheHACMPCluster
SelectaNetworkType
MovecursortodesireditemandpressEnter.
[TOP]
#Discoverylastperformed:
(Apr0315:
13)
#DiscoveredIP-basedNetworkTypes
ether
#DiscoveredSerialDeviceTypes
rs232
#Pre-definedIP-basedNetworkTypes
XD_data
XD_ip
atm
ether
fddi
hps
ib
token
#Pre-definedSerialDeviceTypes
XD_rs232
diskhb
AddaSerialNetworktotheHACMPCluster
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
*NetworkName [net_diskhb_01]
*NetworkType diskhb
ConfigureanHACMPCluster
ConfigureHACMPNodes
ConfigureHACMPSites
ConfigureHACMPNetworks
ConfigureHACMPCommunicationInterfaces/Devices
ConfigureHACMPPersistentNodeIPLabel/Addresses
ConfigureHACMPGlobalNetworks
ConfigureHACMPNetworkModules
ConfigureTopologyServicesandGroupServices
ConfigureHACMPNetworks
Selectacategory
MovecursortodesireditemandpressEnter.
AddDiscovered
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HA 常用 心跳 网络 特点 配置