IBM中国技术支持中心-非常棒的HACMP-5.X的培训文档_第1页
IBM中国技术支持中心-非常棒的HACMP-5.X的培训文档_第2页
IBM中国技术支持中心-非常棒的HACMP-5.X的培训文档_第3页
IBM中国技术支持中心-非常棒的HACMP-5.X的培训文档_第4页
IBM中国技术支持中心-非常棒的HACMP-5.X的培训文档_第5页
已阅读5页,还剩70页未读 继续免费阅读

下载本文档

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

文档简介

HACMP5.X概念和实施规划IBM中国技术支持中心80081018182024/12/10HACMP5.1conceptandplanning

目录

什么是HACMP?配置HACMP的规划和考虑HACMP的安装和配置HACMP的接管测试2024/12/102HACMP5.1conceptandplanning

目录

什么是HACMP?配置HACMP的规划和考虑HACMP的安装和配置HACMP的接管测试2024/12/103HACMP5.1conceptandplanningHACMP—(HighAvailabilityClusterMultiProcessing)为什么需要高可用性?越来越多的应用成为关键应用越来越多的业务提供7*24小时服务越来越多的客户意识到自己是上帝------IBM公司的解决方案:HACMP什么是HACMP?1)

HighAvailability:系统可用性或运行时间最大化系统宕机时间最小化

2)multi-processing?一个cluster里的各个节点上可以运行多个应用共享数据或并发访问数据.不是容错机(faulttolerance)2024/12/104HACMP5.1conceptandplanningHACMP软件模型2024/12/105HACMP5.1conceptandplanning

简化了HACMPCluster的配置与管理通过磁盘传输心跳信号(HeartbeatoverDisk)IPAT通过Alias实现(IPATviaAlias)(缺省方式)

用户自定义的资源组(CustomRG)快递磁盘接管(FastDiskTakeover)

HACMP-XDHACMPV5.x的新特点高可用性ALLINONE:在HACMPv5之前,每个版本的HACMP软件都有四个模块,HAS,CRM,ES和ESCRM,用户在定购的时候根据需要选择其中一个模块,从HACMPv5开始IBM只提供一个模块,包括以前四个模块的所有功能。2024/12/106HACMP5.1conceptandplanning

目录

什么是HACMP?配置HACMP的规划和考虑HACMP的安装和配置HACMP的接管测试2024/12/107HACMP5.1conceptandplanningConcept:Client:

提出请求,访问应用程序的客户端Node:

运行AIX和HACMP软件的服务器或LPARBootIP:

网卡的初始IP地址,AIX启动后使用的地址ServiceIP:

对外服务的地址,会从一块网卡切换到另一块网卡StandbyIP:

不再需要.Applicationserver:

运行在HACMP之上的应用软件,可以通过脚本启动/停止Resources:

可以从一个节点移动到另一个节点、具有高可用性特点的逻辑组件,包括文件系统、裸设备、serviceIP等Resourcesgroup:把相关的Resource组织在一起,作为一个整体从一个节点移动到另一个节点来提供高可用性IPAddresstakeover:在同一个逻辑网络中,IP地址从一个网卡移动到另一个网卡Failover:当主节点失效,RG从主节点移动到备用节点的过程Fallback:当原来的节点修复后,RG从备用节点回到原来的节点的过程2024/12/108HACMP5.1conceptandplanning配置HACMP的规划和考虑Cluster规划Node规划Recourse规划IP网络及地址(ServiceIP、Non-ServiceIP、PersistentIP)Heartbeat网络(IP、串口、共享硬盘)VolumeGroupandFileSystemApplicationServerRecourseGroup规划Software的规划操作系统的版本和补丁要求HACMP的版本和补丁要求应用程序的兼容性2024/12/109HACMP5.1conceptandplanningCluster规划要求:性能考虑为了保证cluster的性能,一个cluster支持的最大组件数目如下:组件最大数目node32ResourceGroups64Networks48Networkinterface,devices,andlabels256Cluster2024/12/1010HACMP5.1conceptandplanningCluster规划(1):HACMP(local)Cluster2024/12/1011HACMP5.1conceptandplanningCluster规划(2):HACMPcross-siteLVMCluster2024/12/1012HACMP5.1conceptandplanningCluster规划(3):HACMP/XDHAGEOCluster2024/12/1013HACMP5.1conceptandplanningCluster规划(4):HACMP/XDGLVMCluster2024/12/1014HACMP5.1conceptandplanningCluster规划(5):HACMP/XDPPRCCluster2024/12/1015HACMP5.1conceptandplanningCluster规划(6):HACMP/XDDR方案汇总Cluster2024/12/1016HACMP5.1conceptandplanningNode规划:配置要求一个精心设计的cluster应该尽量避免单点故障(SPOF),为了达到这个目的,典型的cluster一般对硬件有如下要求:至少2个pseries服务器作为cluster的节点(安装并运行HACMP,每个节点的AIX版本和HACMP的版本要完全一致)内置硬盘:预留一定的硬盘空间满足HACMP的安装要求,MIRRORI/O插槽:要满足网卡、HBA卡(阵列和带库要分开)、串口卡至少一种non-IP网络,通常采用RS232网络,如果某些节点集成串口无法作心跳,要配#29438口异步卡,节点间要配串口线一个共享磁盘阵列(7133/FastT/ESS等)Node2024/12/1017HACMP5.1conceptandplanning用户的IP网络类型要求Support:Ethernet,Tokenring,FDDI,ATM,EtherchannelNotsupport:SOCC,SLIP,FCS用户的IP网络资源规划SwitchVLANIPAT方式IP地址规划Resource:IP网络规划Resource2024/12/1018HACMP5.1conceptandplanningIP网络规划:网络连接示意图Resource2024/12/1019HACMP5.1conceptandplanningIP网络规划:Etherchannel网络连接示意图Resource2024/12/1020HACMP5.1conceptandplanningNon-servicelabels在AIX启动时分配在HACMP启动后,serviceIPlabel作为一个alias添加到一块带有non-servicelabel的networkinterface上non-servicelabel从不会从一个NIC上移走如果节点失败,一个takeover节点会获得失败节点的serviceIPlabel,并作为一个alias添加到它的位于同一个HACMPnetwork里的一块带有non-servicelabel的networkinterface上IP网络规划:IPATviaIPaliases(一)Resource2024/12/1021HACMP5.1conceptandplanning设置IPATviaIPaliases功能#smittyhacmpExtendedConfiguration>ExtendedTopologyConfiguration>ConfigureHACMPNetworks>Change/ShowaNetworkintheHACMPCluster>Change/ShowanIP-BasedNetworkintheHACMPClusterChange/ShowanIP-BasedNetworkintheHACMPClusterTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*NetworkNamenet_ether_01NewNetworkName[]*NetworkType[ether]+*Netmask[]+*EnableIPAddressTakeoverviaIPAliases[Yes]+IPAddressOffsetforHeartbeatingoverIPAliases[]*NetworkAttributepublic+IP网络规划:IPATviaIPaliases(二)Resource2024/12/1022HACMP5.1conceptandplanningNon-servicelabels在AIX启动时分配HACMP启动后,serviceIPlabel替换(replaces)non-serviceIPlabel如果节点失败,一个takeover节点使用它的位于同一个HACMPnetwork里的一个non-serviceinterface来获得(acquire)失败节点的serviceIPlabelIP网络规划:IPATviaIPreplacementResource2024/12/1023HACMP5.1conceptandplanningPersistentNodeIPlabel

是一个

IPalias

,它可以分配给cluster里的一个特定节点Howconfig->extendconfiguration->总是位于同一个节点可以位于一块已经拥有service或non-serviceIPlabel的网卡上

不需在节点上安装额外的物理网卡不属于任何资源组能被用于对指定的节点进行管理每个节点可配置多个.在节点启动后即可用,当HACMP服务停止后也始终保持可用如果网卡失败,它只会迁移到相同网络的同一个节点上的其它网卡如果节点失败,该IP标识不会迁移到群集中的其它节点IP网络规划:PersistentNodeIPlabelResource2024/12/1024HACMP5.1conceptandplanningHeartbeat网络规划Non-IP网络(心跳)的作用确定用户的Non-IP网络(心跳)串口方式IP网络方式Targetmode方式硬盘方式Resource2024/12/1025HACMP5.1conceptandplanningHACMP5.1的新功能能够使用下列任何一种共享磁盘阵列(FibreChannel,SCSI或SSA)使用的磁盘是一个enhancedconcurrentvolumegroup的一部分,唯一的要求是这个VG必须在两个节点都有定义磁盘的这块特殊区域不能用作任何的LVM操作,而只能用来在两个节点间传递心跳消息Heartbeat网络规划:磁盘心跳(Heartbeatviadisk)Resource2024/12/1026HACMP5.1conceptandplanningVolumeGroupandFileSystem规划确定存储设备的连接类型SCSISSAFC了解用户需求划分存储资源划分RAID创建逻辑盘确定VG的类型Non-concurrentConcurrentEnhancedconcurrent确定文件系统类型jfs2JfsResource2024/12/1027HACMP5.1conceptandplanning使用RSCT进行通信支持ACTIVE和PASSIVE模式ACTIVEVaryon:类似通常的varyonPASSIVEVaryon:不允许高级操作(highleveloperations)HACMP协调节点间的活动,保证只有一个节点可以vary

onvolumegroupactivelyenhancedconcurrentvolumegroups能够被包含在一个non-concurrentresourcegroups里VolumeGroupandFileSystem规划:

EnhancedconcurrentVolumeGroupResource2024/12/1028HACMP5.1conceptandplanning通过提供快速资源组fallover,减少宕机时间对于2块硬盘的VG,接管时间一般不超过10秒。对于带有大数量磁盘的VG的资源组有显著的性能提高。需要enhancedconcurrentvolumegroups定义在non-concurrentresourcegroups里对于位于共享盘阵上enhancedconcurrentvolumegroups,如果是共享资源组的资源,HACMP会自动实现快速磁盘接管.VolumeGroupandFileSystem规划:

快速磁盘接管(fastdisktakeover)(一)Resource2024/12/1029HACMP5.1conceptandplanning你可以查看vg的状态通过

lsvg命令:VGSTATE无论是actively或者passively方式的varyon,都将显示active状态。VGPERMISSION如果是actively方式的varyon,将显示read/write,如果是passive方式的varyon,将显示passive-only。CONCURRENT将显示Capable或者Enhanced-Capable(对于concurrent

vg).VolumeGroupandFileSystem规划:

快速磁盘接管(fastdisktakeover)(二)Resource2024/12/1030HACMP5.1conceptandplanningResourceGroup规划

一些可管理的资源集合在一起,和特定的应用相关联,并可一同执行failover等行为的组.包含四种类型:CascadingresourcegroupRotatingresourcegroupConcurrentresourcegroupCustomresourcegroup(HA5.X新增的资源组类型)

ResourceGroup2024/12/1031HACMP5.1conceptandplanningCascadingResourceGroup资源移动按照一个从高到低的优先级顺序当发生失败节点重新加入(reintegration)时,资源会返回到优先级更高的节点缺省,资源会在优先级最高的节点上启动资源(Resources):ServiceIPLabels/AddressesVolumeGroupsFilesystemsApplicationServers优先级ResourceGroup2024/12/1032HACMP5.1conceptandplanningCascadingresourcegroup的接管过程ResourceGroup2024/12/1033HACMP5.1conceptandplanningCascadingresourcegroup的属性Cascadingwithoutfallback(false)Inactivetakeover(false)Dynamicnodepriority(false)Cl_highest_free_mem–selectthenodewiththehighestpercentageoffreememoryCl_highest_idle_cpu–selectthenodewiththemostavialableprocessortimeCl_lowest_disk_busy–selectthediskthatisleastbusy

Cascading资源组提供下面三种属性,这些属性需要在hacmp的Extendedconfiguration菜单中设置。ResourceGroup2024/12/1034HACMP5.1conceptandplanningCascadingresourcegroup的属性:DNPResourceGroup2024/12/1035HACMP5.1conceptandplanningRotatingresourcegroup资源移动按照一定顺序,一个接一个呈rotation当节点失败,第一个备(standby)节点会获得失败节点的资源组

一个失败节点重新加入cluster,将会作为备(standby)节点,不会重新获得原来的资源组

资源(Resources):ServiceIPLabels/AddressesVolumeGroupsFilesystemsApplicationServersResourceGroup2024/12/1036HACMP5.1conceptandplanningRotatingresourcegroup的接管过程ResourceGroup2024/12/1037HACMP5.1conceptandplanningConcurrentresourcegroup所有的节点共享且可并发访问数据应用在所有节点上并行运行有LockManager

协调各节点对数据的访问一个节点失败,会降低cluster性能,但不会发生接管。资源(Resources):ConcurrentVolumeGroupsApplicationServers共享盘阵ResourceGroup2024/12/1038HACMP5.1conceptandplanningCustomresourcegroupHACMP5.1

增加的新类型

HACMP5.2andlaterCUSTOMONLY通过参数设置,可以精确定义有关资源组的

startup,failover和fallback行为的策略资源(Resources):ServiceIPLabels/AddressesVolumeGroups

Useforcedvaryonofvolumegroups,ifnecessary[false]FilesystemsApplicationServersResourceGroup2024/12/1039HACMP5.1conceptandplanningCustomresourcegroup添加一个customresourcegroup:#smittyhacmpInitializationandStandardConfiguration>ConfigureHACMPResourceGroups>AddaResourceGroup>CascadingRotatingConcurrentCustomAddaCustomResourceGroupTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*ResourceGroupName[]*ParticipatingNodeNames(DefaultNodePriority)[]+StartupPolicyOnlineOnHomeNodeO>+FalloverPolicyFalloverToNextPrio>+FallbackPolicyFallbackToHigherPr>+ResourceGroup2024/12/1040HACMP5.1conceptandplanningStartup可设置的策略有:•OnlineonHomeNodeOnly.Theresourcegroupshouldbebroughtonlineonlyonitshome(highestpriority)nodeduringtheresourcegroupstartup.Thisrequiresthehighestprioritynodetobeavailable.•OnlineonFirstAvailableNode.Theresourcegroupactivatesonthefirstparticipatingnodethatbecomesavailable.•OnlineonAllAvailableNodes.Theresourcegroupisbroughtonlineonallnodes.•OnlineUsingDistributionPolicy.Onlyoneresourcegroupisbroughtonlineonanode,oronanodepernetwork,dependingonthedistributionpolicyspecified(nodeornetwork).Fallover可设置的策略有•FallovertoNextPriorityNodeintheList.Inthecaseoffallover,theresourcegroupthatisonlineononlyonenodeatatimefollowsthedefaultnodepriorityorderspecifiedintheresourcegroup’snodelist.•FalloverUsingDynamicNodePriority.Beforeselectingthisoption,configureadynamicnodeprioritypolicythatyouwanttouse.Oryoucanselectoneofthethreepredefineddynamicnodeprioritypolicies.•BringOffline(onErrorNodeOnly).SelectthisoptiontobringaresourcegroupofflineonanodeduringanerrorconditionFallback可设置的策略有•FallbacktoHigherPriorityNodeintheList.Aresourcegroupfallsbackwhenahigherprioritynodejoinsthecluster.Ifyouselectthisoption,youcanusethedelayedfallbacktimer.Ifyoudonotconfigureadelayedfallbackpolicy,theresourcegroupfallsbackimmediatelywhenahigherprioritynodejoinsthecluster.•NeverFallback.AresourcegroupdoesnotfallbackwhenahigherprioritynodejoinstheclusterCustomresourcegroupResourceGroup2024/12/1041HACMP5.1conceptandplanning在HACMP5.2以前资源组的定义在HACMP5.X中资源组的定义CascadingresourcegroupInactiveTakeover=FalseCascadingwithoutFallback(CWOF)=False•Startup:OnlineonHomeNodeOnly•Fallover:FallovertoNextPriorityNodeintheList•Fallback:FallbacktoHigherPriorityNodeintheListCascadingresourcegroupInactiveTakeover=TrueCWOF=False•Startup:OnlineonFirstAvailableNode•Fallover:FallovertoNextPriorityNodeintheList•Fallback:FallbacktoHigherPriorityNodeintheListCascadingresourcegroupInactiveTakeover=FalseCWOF=True•Startup:OnlineonHomeNodeOnly•Fallover:FallovertoNextPriorityNodeintheList•Fallback:NeverFallbackCascadingresourcegroupInactiveTakeover=TrueCWOF=True•Startup:OnlineonFisrtAvailableNode•Fallover:FallovertoNextPriorityNodeintheList•Fallback:NeverFallbackRotatingresourcegroup•Startup:OnlineUsingDistributionPolicy•ResourceGroupDistributionPolicy:Networkdistribution•Fallover:NextPriorityNodeintheList•Fallback:NeverFallbackConcurrentresourcegroup•Startup:OnlineonAllAvailableNodes•Fallover:BringOffline(OnErrorNodeOnly)•Fallback:NeverFallbackCustomresourcegroupResourceGroup2024/12/1042HACMP5.1conceptandplanningSoftware规划:配置要求(1)操作系统的版本和补丁要求Software2024/12/1043HACMP5.1conceptandplanning配置要求(2):(补丁)HACMP5.1HACMP5.2AIX5.2HACMPIY66556AIXML5200-06HACMPIY68370AIXML5200-06AIX5.3HACMPIY66556AIXML5300-02HACMPIY68370AIXML5300-02SoftwareHACMP的补丁要求

HACMPV5.1IY45695HACMPV5.2IY58496

补丁包的下载中心

2024/12/1044HACMP5.1conceptandplanning(3)Reference(fromweb-site)HACMPV5.1with

AIXV5.2HACMPV5.1with

AIXV5.3HACMPV5.2with

AIXV5.2HACMPV5.2with

AIXV5.3HACMPAPARIY53044

AIX5200-04RMP

AIXAPARIY56554

AIXAPARIY61014HACMPAPARIY53044

RSCTAPARIY61770

AIXAPARIY60930

AIXAPARIY61034

AIXAPARIY62191HACMPAPARIY58496

AIX5200-04RMP

AIXAPARIY56554

AIXAPARIY61014HACMPAPARIY58496

RSCTAPARIY61770

AIXAPARIY60930

AIXAPARIY61034

AIXAPARIY62191Software2024/12/1045HACMP5.1conceptandplanning配置要求(4)操作系统上需要打的一些额外的包:

bos.adt.libbos.adt.libmbos.adt.syscalls.tcp.client.tcp.serverbos.rte.SRCbos.rte.libcbos.rte.libcfgbos.rte.libcur

bos.rte.libpthreadsbos.rte.odmbos.data如果需要安装并行的资源组,需要打下面的包:

bos.rte.lvm.orhigherbos.clvm.enh.Software2024/12/1046HACMP5.1conceptandplanningAIX的各个版本和HACMP的各个版本兼容表配置要求(5)AIX4.3.3AIX5.1(32-bit)AIX5.1(64-bit)AIX5.2AIX5.3HACMP4.4YESYESNONONOHACMP4.4.1YESYESNONONOHACMP/ES4.4.1

YESYESYESNONOHACMP4.5NOYESNOYESNOHACMP/ES4.5NOYESYESYESNOHACMP5.1NOYESYESYESYESHACMP5.2NOYESYESYESYESHACMP5.3NONONOYESYESSoftware2024/12/1047HACMP5.1conceptandplanning

目录

什么是HACMP?配置HACMP的规划和考虑HACMP的安装和配置HACMP的接管测试2024/12/1048HACMP5.1conceptandplanning需要安装的组件

操作系统的补丁HACMP软件

HACMP软件的补丁软件的安装方法

NIM

光盘安装本地硬盘安装验证安装

HACMP软件的安装2024/12/1049HACMP5.1conceptandplanningHACMP软件的配置过程

HACMP配置前的准本工作

配置IP地址

编辑/etc/hosts文件编辑/usr/es/sbin/cluster/etc/rhosts文件编写应用程序的启动/停止脚本创建共享的vg和文件系统配置串口设备HACMP的Standard配置过程

添加Cluster和节点

配置Cluster资源创建并配置Cluster资源组同步HACMP的配置HACMP的Extended配置过程

添加心跳

定制Cluster资源

2024/12/1050HACMP5.1conceptandplanningHACMP软件配置方案拓扑图test1test2test1_boot2test1_boot1test2_boot1test2_boot22024/12/1051HACMP5.1conceptandplanningHACMP配置前的准备工作:配置IP地址test1:/>netstat-inNameMtuNetworkAddressIpktsIerrsOpktsOerrsCollen01500link#20.4.ac.49.f2.d57796004780500en01500100.17796004780500en11500link#30.6.29.ec.44.d63301100en11500192.168.03301100test2:/>netstat-inNameMtuNetworkAddressIpktsIerrsOpktsOerrsCollen01500link#20.4.ac.49.60.233113808258200en01500100.13113808258200en11500link#30.4.ac.3e.b9.4b3601300en11500192.168.036013002024/12/1052HACMP5.1conceptandplanningHACMP配置前的准备工作:编辑配置文件编辑/etc/hosts文件test1_boot1test1test2_boot1test2test1_boot2test2_boot2test1_svctest2_svctest1_pertest2_per编辑/usr/es/sbin/cluster/etc/rhosts文件

2024/12/1053HACMP5.1conceptandplanningHACMP配置前的准备工作:编写脚本查看节点上的应用服务器的启动/停止脚本test2:/ha51>ls–l-rwxr-xr-x1rootsystem65Apr1313:51start-rw-r--r--1rootsystem31Apr1311:49start.log-rwxr-xr-x1rootsystem66Apr1314:01start1-rw-r--r--1rootsystem31Apr1314:01start1.log-rwxrwxrwx1rootsystem64Apr1311:48stop-rw-r--r--1rootsystem31Apr1311:48stop.log-rwxr-xr-x1rootsystem66Apr1314:01stop1-rw-r--r--1rootsystem31Apr1314:01stop1.log启动脚本举例:vistartdate>>/ha51/start.logbanner"startapp1">>/tmp/hacmp.out2024/12/1054HACMP5.1conceptandplanningHACMP配置前的准备工作:创建共享的VG和FStest1vg是共享VG:test1:hdisk00004383268b07574rootvgactivehdisk3000438325e22bca7test1vghdisk4e5aa8Nonehdisk5000438323d0e4487Nonetest2:hdisk0000ddrootvgactivehdisk5000438325e22bca7test1vghdisk6e5aa8Nonehdisk7000438323d0e4487None2024/12/1055HACMP5.1conceptandplanningHACMP配置前的准备工作:创建串口设备通过smittytty命令来添加串口设备:2024/12/1056HACMP5.1conceptandplanningHACMP的Standard配置过程:添加CLUSTER和节点

*ClusterName[ha51tsc]NewNodes(viaselectedcommunicationpaths)[test2_boot1test1_boot1]CurrentlyConfiguredNode(s)通过smittyhacmp命令,按照下列路径来添加Cluster和节点:->InitializationandStandardConfiguration->AddNodestoanHACMPCluster。

注:这一步很重要,一般我们都是把每个节点的boot1作为communicationpath.当回车以后,系统会自己discoverhacmp的资源,并有详细的信息显示输出。2024/12/1057HACMP5.1conceptandplanningHACMP的Standard配置过程:

添加高可用资源ServiceIP通过smittyhacmp命令,按照下列路径来添加ServiceIP:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureServiceIPLabels/Addresses->AddaServiceIPLabel/Address*IPLabel/Address[test1_svc]NetworkName[net_ether_02]*IPLabel/Address[test2_svc]NetworkName[net_ether_02]注:如果有多个应用服务器,则添加多个ServiceIP。2024/12/1058HACMP5.1conceptandplanningHACMP的Standard配置过程:

添加高可用资源ApplicationServer通过smittyhacmp命令,按照下列路径来添加ApplicationServer:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureApplicationServers->AddanApplicationServer*ServerName[app1]*StartScript[/ha51/start]*StopScript[/ha51/stop]注:如果有多个应用服务器,则添加多个ApplicationServer。2024/12/1059HACMP5.1conceptandplanning注意在前面的步骤中我们看到已经有一个共享VGtest1vg存在了,它使用传统的方法:在test1节点上创建test1vg,lv,jfsVaryoffvg在test2上importvgVaryoffvg我们也可以用hacmp的功能去创建test2vg和文件系统HACMP的Standard配置过程:

添加高可用资源VG和FS(一)2024/12/1060HACMP5.1conceptandplanningHACMP的Standard配置过程:

添加高可用资源VG和FS(二)通过smittyhacmp命令,按照下列路径来添加共享VG:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureVolumeGroups,LogicalVolumesandFilesystems->SharedVolumeGroups->CreateaSharedVolumeGroup

NodeNamestest1,test2PVIDe5aa8VOLUMEGROUPname

[test2vg]PhysicalpartitionSIZEinmegabytes

4VolumegroupMAJORNUMBER[49]2024/12/1061HACMP5.1conceptandplanningHACMP的Standard配置过程:

添加高可用资源VG和FS(三)通过smittyhacmp命令,按照下列路径来添加共享FS:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureVolumeGroups,LogicalVolumesandFilesystems->SharedFileSystems->JournaledFileSystems->AddaJournaledFileSystem->AddaStandardJournaledFileSystem

NodeNamestest1,test2Volumegroupnametest1vg*SIZEoffilesystem[10]*MOUNTPOINT[/test1jfs]PERMISSIONSread/writeMountOPTIONS[]StartDiskAccounting?noFragmentSize(bytes)4096Numberofbytesperinode4096AllocationGroupSize(MBytes)82024/12/1062HACMP5.1conceptandplanningHACMP的Standard配置过程:创建Cluster资源组通过smittyhacmp命令,按照下列路径来添加资源组:->InitializationandStandardConfiguration->ConfigureHACMPResourceGroups->AddaResourceGroupCascadingRotatingConcurrentCustom

*ResourceGroupName[res1]*ParticipatingNodeNames/DefaultNodePriority[test1test2]注:如果有多个资源组,则按照同样方法添加即可。2024/12/1063HACMP5.1conceptandplanningHACMP的Standard配置过程:配置Cluster资源组通过smittyhacmp命令,按照下列路径来配置资源组:->InitializationandStandardConfiguration->ConfigureHACMPResourceGroups->Change/ShowResourcesforaResourceGroup(standard)ResourceGroupNameres1ParticipatingNodeNames(DefaultNodePriority)test1test2*ServiceIPLabels/Addresses[test1_svc]VolumeGroups[mtest1vg]Filesystems(emptyisALLforVGsspecified)[/test1jfs]ApplicationServers[mapp1]注:如果有多个资源组,则按照同样方法配置即可。2024/12/1064HACMP5.1conceptandplanningHACMP的Standard配置过程:同步HACMP的配置通过smittyhacmp命令,按照下列路径来检查HACMP的配置:->InitializationandStandardConfiguration->DisplayHACMPConfiguration显示输出如右图所示。如果检查没有问题,就可以做同步了:->InitializationandStandardConfiguration->VerifyandSynchronizeHACMPConfigurationClusterDescriptionofCluster:ha51tscClusterSecurityLevel:StandardThereare2node(s)and1network(s)definedNODEtest1:Networknet_ether_02test2_svctest1_svcNODEtest2:…ResourceGroupres1BehaviorcascadingParticipatingNodestest1test2ServiceIPLabeltest1_svc2024/12/1065HACMP5.1conceptandplanning在ExtendedConfiguration中我们还可以配置tty心跳网络,hdisk心跳网络,PersistentNodeIP,applicationmonitor等等。

HACMP的Extended配置过程2024/12/1066HACMP5.1conceptandplanning

首先,我们要一个EnhancedconcurrentVG,这个concurrentvg可以通过两种方法来建立。方法一:Mkvg–cconvg;在一个节点上varyoffvg,另一个节点上importvg方法二:

通过smittyhacmp命令,按照下列路径来添加hdisk心跳盘:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureConcurrentVolumeGroupsandLogicalVolumes->ConcurrentVolumeGroups->CreateaConcurrentVolumeGroupHACMP的Extended配置过程:设置hdisk心跳网络(一)2024/12/1067HACMP5.1conceptandplanningHACMP的Extended配置过程:设置hdisk心跳网络(二)NodeNamestest1,test2PVID000438323d0e4487VOLUMEGROUPnameconvgPhysicalpartitionSIZEinmegabytes4VolumegroupMAJORNUMBER[49]EnhancedConcurrentModetrue其次,检查hdisk网络的状况,在一个节点上向hdisk写数据,从另一个节点上读数据,很像我们在配置tty网络之前,检查一下tty是否连通。Add/usr/sbin/rsct/bin/to/etc/environment里的path中重新logintest1和test2使path生效在test1上运行:dhb_read-phdisk5–r在test2上运行:dhb_read-phdisk7–t2024/12/1068HACMP5.1conceptandplanningHACMP的Extended配置过程:设置hdisk心跳网络(三)通过smittyhacmp命令,按照下列路径来添加hdisk心跳网络:->Exten

温馨提示

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

评论

0/150

提交评论