IBM中國(guó)技術(shù)支持中心-非常棒的HACMP-5.X的培訓(xùn)文檔_第1頁(yè)
IBM中國(guó)技術(shù)支持中心-非常棒的HACMP-5.X的培訓(xùn)文檔_第2頁(yè)
IBM中國(guó)技術(shù)支持中心-非常棒的HACMP-5.X的培訓(xùn)文檔_第3頁(yè)
IBM中國(guó)技術(shù)支持中心-非常棒的HACMP-5.X的培訓(xùn)文檔_第4頁(yè)
IBM中國(guó)技術(shù)支持中心-非常棒的HACMP-5.X的培訓(xùn)文檔_第5頁(yè)
已閱讀5頁(yè),還剩70頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

HACMP5.X概念和實(shí)施規(guī)劃IBM中國(guó)技術(shù)支持中心80081018182024/12/10HACMP5.1conceptandplanning

目錄

什么是HACMP?配置HACMP的規(guī)劃和考慮HACMP的安裝和配置HACMP的接管測(cè)試2024/12/102HACMP5.1conceptandplanning

目錄

什么是HACMP?配置HACMP的規(guī)劃和考慮HACMP的安裝和配置HACMP的接管測(cè)試2024/12/103HACMP5.1conceptandplanningHACMP—(HighAvailabilityClusterMultiProcessing)為什么需要高可用性?越來(lái)越多的應(yīng)用成為關(guān)鍵應(yīng)用越來(lái)越多的業(yè)務(wù)提供7*24小時(shí)服務(wù)越來(lái)越多的客戶意識(shí)到自己是上帝------IBM公司的解決方案:HACMP什么是HACMP?1)

HighAvailability:系統(tǒng)可用性或運(yùn)行時(shí)間最大化系統(tǒng)宕機(jī)時(shí)間最小化

2)multi-processing?一個(gè)cluster里的各個(gè)節(jié)點(diǎn)上可以運(yùn)行多個(gè)應(yīng)用共享數(shù)據(jù)或并發(fā)訪問(wèn)數(shù)據(jù).不是容錯(cuò)機(jī)(faulttolerance)2024/12/104HACMP5.1conceptandplanningHACMP軟件模型2024/12/105HACMP5.1conceptandplanning

簡(jiǎn)化了HACMPCluster的配置與管理通過(guò)磁盤(pán)傳輸心跳信號(hào)(HeartbeatoverDisk)IPAT通過(guò)Alias實(shí)現(xiàn)(IPATviaAlias)(缺省方式)

用戶自定義的資源組(CustomRG)快遞磁盤(pán)接管(FastDiskTakeover)

HACMP-XDHACMPV5.x的新特點(diǎn)高可用性ALLINONE:在HACMPv5之前,每個(gè)版本的HACMP軟件都有四個(gè)模塊,HAS,CRM,ES和ESCRM,用戶在定購(gòu)的時(shí)候根據(jù)需要選擇其中一個(gè)模塊,從HACMPv5開(kāi)始IBM只提供一個(gè)模塊,包括以前四個(gè)模塊的所有功能。2024/12/106HACMP5.1conceptandplanning

目錄

什么是HACMP?配置HACMP的規(guī)劃和考慮HACMP的安裝和配置HACMP的接管測(cè)試2024/12/107HACMP5.1conceptandplanningConcept:Client:

提出請(qǐng)求,訪問(wèn)應(yīng)用程序的客戶端Node:

運(yùn)行AIX和HACMP軟件的服務(wù)器或LPARBootIP:

網(wǎng)卡的初始IP地址,AIX啟動(dòng)后使用的地址ServiceIP:

對(duì)外服務(wù)的地址,會(huì)從一塊網(wǎng)卡切換到另一塊網(wǎng)卡StandbyIP:

不再需要.Applicationserver:

運(yùn)行在HACMP之上的應(yīng)用軟件,可以通過(guò)腳本啟動(dòng)/停止Resources:

可以從一個(gè)節(jié)點(diǎn)移動(dòng)到另一個(gè)節(jié)點(diǎn)、具有高可用性特點(diǎn)的邏輯組件,包括文件系統(tǒng)、裸設(shè)備、serviceIP等Resourcesgroup:把相關(guān)的Resource組織在一起,作為一個(gè)整體從一個(gè)節(jié)點(diǎn)移動(dòng)到另一個(gè)節(jié)點(diǎn)來(lái)提供高可用性IPAddresstakeover:在同一個(gè)邏輯網(wǎng)絡(luò)中,IP地址從一個(gè)網(wǎng)卡移動(dòng)到另一個(gè)網(wǎng)卡Failover:當(dāng)主節(jié)點(diǎn)失效,RG從主節(jié)點(diǎn)移動(dòng)到備用節(jié)點(diǎn)的過(guò)程Fallback:當(dāng)原來(lái)的節(jié)點(diǎn)修復(fù)后,RG從備用節(jié)點(diǎn)回到原來(lái)的節(jié)點(diǎn)的過(guò)程2024/12/108HACMP5.1conceptandplanning配置HACMP的規(guī)劃和考慮Cluster規(guī)劃Node規(guī)劃Recourse規(guī)劃IP網(wǎng)絡(luò)及地址(ServiceIP、Non-ServiceIP、PersistentIP)Heartbeat網(wǎng)絡(luò)(IP、串口、共享硬盤(pán))VolumeGroupandFileSystemApplicationServerRecourseGroup規(guī)劃Software的規(guī)劃操作系統(tǒng)的版本和補(bǔ)丁要求HACMP的版本和補(bǔ)丁要求應(yīng)用程序的兼容性2024/12/109HACMP5.1conceptandplanningCluster規(guī)劃要求:性能考慮為了保證cluster的性能,一個(gè)cluster支持的最大組件數(shù)目如下:組件最大數(shù)目node32ResourceGroups64Networks48Networkinterface,devices,andlabels256Cluster2024/12/1010HACMP5.1conceptandplanningCluster規(guī)劃(1):HACMP(local)Cluster2024/12/1011HACMP5.1conceptandplanningCluster規(guī)劃(2):HACMPcross-siteLVMCluster2024/12/1012HACMP5.1conceptandplanningCluster規(guī)劃(3):HACMP/XDHAGEOCluster2024/12/1013HACMP5.1conceptandplanningCluster規(guī)劃(4):HACMP/XDGLVMCluster2024/12/1014HACMP5.1conceptandplanningCluster規(guī)劃(5):HACMP/XDPPRCCluster2024/12/1015HACMP5.1conceptandplanningCluster規(guī)劃(6):HACMP/XDDR方案匯總Cluster2024/12/1016HACMP5.1conceptandplanningNode規(guī)劃:配置要求一個(gè)精心設(shè)計(jì)的cluster應(yīng)該盡量避免單點(diǎn)故障(SPOF),為了達(dá)到這個(gè)目的,典型的cluster一般對(duì)硬件有如下要求:至少2個(gè)pseries服務(wù)器作為cluster的節(jié)點(diǎn)(安裝并運(yùn)行HACMP,每個(gè)節(jié)點(diǎn)的AIX版本和HACMP的版本要完全一致)內(nèi)置硬盤(pán):預(yù)留一定的硬盤(pán)空間滿足HACMP的安裝要求,MIRRORI/O插槽:要滿足網(wǎng)卡、HBA卡(陣列和帶庫(kù)要分開(kāi))、串口卡至少一種non-IP網(wǎng)絡(luò),通常采用RS232網(wǎng)絡(luò),如果某些節(jié)點(diǎn)集成串口無(wú)法作心跳,要配#29438口異步卡,節(jié)點(diǎn)間要配串口線一個(gè)共享磁盤(pán)陣列(7133/FastT/ESS等)Node2024/12/1017HACMP5.1conceptandplanning用戶的IP網(wǎng)絡(luò)類(lèi)型要求Support:Ethernet,Tokenring,FDDI,ATM,EtherchannelNotsupport:SOCC,SLIP,FCS用戶的IP網(wǎng)絡(luò)資源規(guī)劃SwitchVLANIPAT方式IP地址規(guī)劃Resource:IP網(wǎng)絡(luò)規(guī)劃Resource2024/12/1018HACMP5.1conceptandplanningIP網(wǎng)絡(luò)規(guī)劃:網(wǎng)絡(luò)連接示意圖Resource2024/12/1019HACMP5.1conceptandplanningIP網(wǎng)絡(luò)規(guī)劃:Etherchannel網(wǎng)絡(luò)連接示意圖Resource2024/12/1020HACMP5.1conceptandplanningNon-servicelabels在AIX啟動(dòng)時(shí)分配在HACMP啟動(dòng)后,serviceIPlabel作為一個(gè)alias添加到一塊帶有non-servicelabel的networkinterface上non-servicelabel從不會(huì)從一個(gè)NIC上移走如果節(jié)點(diǎn)失敗,一個(gè)takeover節(jié)點(diǎn)會(huì)獲得失敗節(jié)點(diǎn)的serviceIPlabel,并作為一個(gè)alias添加到它的位于同一個(gè)HACMPnetwork里的一塊帶有non-servicelabel的networkinterface上IP網(wǎng)絡(luò)規(guī)劃:IPATviaIPaliases(一)Resource2024/12/1021HACMP5.1conceptandplanning設(shè)置IPATviaIPaliases功能#smittyhacmpExtendedConfiguration>ExtendedTopologyConfiguration>ConfigureHACMPNetworks>Change/ShowaNetworkintheHACMPCluster>Change/ShowanIP-BasedNetworkintheHACMPClusterChange/ShowanIP-BasedNetworkintheHACMPClusterTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*NetworkNamenet_ether_01NewNetworkName[]*NetworkType[ether]+*Netmask[]+*EnableIPAddressTakeoverviaIPAliases[Yes]+IPAddressOffsetforHeartbeatingoverIPAliases[]*NetworkAttributepublic+IP網(wǎng)絡(luò)規(guī)劃:IPATviaIPaliases(二)Resource2024/12/1022HACMP5.1conceptandplanningNon-servicelabels在AIX啟動(dòng)時(shí)分配HACMP啟動(dòng)后,serviceIPlabel替換(replaces)non-serviceIPlabel如果節(jié)點(diǎn)失敗,一個(gè)takeover節(jié)點(diǎn)使用它的位于同一個(gè)HACMPnetwork里的一個(gè)non-serviceinterface來(lái)獲得(acquire)失敗節(jié)點(diǎn)的serviceIPlabelIP網(wǎng)絡(luò)規(guī)劃:IPATviaIPreplacementResource2024/12/1023HACMP5.1conceptandplanningPersistentNodeIPlabel

是一個(gè)

IPalias

,它可以分配給cluster里的一個(gè)特定節(jié)點(diǎn)Howconfig->extendconfiguration->總是位于同一個(gè)節(jié)點(diǎn)可以位于一塊已經(jīng)擁有service或non-serviceIPlabel的網(wǎng)卡上

不需在節(jié)點(diǎn)上安裝額外的物理網(wǎng)卡不屬于任何資源組能被用于對(duì)指定的節(jié)點(diǎn)進(jìn)行管理每個(gè)節(jié)點(diǎn)可配置多個(gè).在節(jié)點(diǎn)啟動(dòng)后即可用,當(dāng)HACMP服務(wù)停止后也始終保持可用如果網(wǎng)卡失敗,它只會(huì)遷移到相同網(wǎng)絡(luò)的同一個(gè)節(jié)點(diǎn)上的其它網(wǎng)卡如果節(jié)點(diǎn)失敗,該IP標(biāo)識(shí)不會(huì)遷移到群集中的其它節(jié)點(diǎn)IP網(wǎng)絡(luò)規(guī)劃:PersistentNodeIPlabelResource2024/12/1024HACMP5.1conceptandplanningHeartbeat網(wǎng)絡(luò)規(guī)劃Non-IP網(wǎng)絡(luò)(心跳)的作用確定用戶的Non-IP網(wǎng)絡(luò)(心跳)串口方式IP網(wǎng)絡(luò)方式Targetmode方式硬盤(pán)方式Resource2024/12/1025HACMP5.1conceptandplanningHACMP5.1的新功能能夠使用下列任何一種共享磁盤(pán)陣列(FibreChannel,SCSI或SSA)使用的磁盤(pán)是一個(gè)enhancedconcurrentvolumegroup的一部分,唯一的要求是這個(gè)VG必須在兩個(gè)節(jié)點(diǎn)都有定義磁盤(pán)的這塊特殊區(qū)域不能用作任何的LVM操作,而只能用來(lái)在兩個(gè)節(jié)點(diǎn)間傳遞心跳消息Heartbeat網(wǎng)絡(luò)規(guī)劃:磁盤(pán)心跳(Heartbeatviadisk)Resource2024/12/1026HACMP5.1conceptandplanningVolumeGroupandFileSystem規(guī)劃確定存儲(chǔ)設(shè)備的連接類(lèi)型SCSISSAFC了解用戶需求劃分存儲(chǔ)資源劃分RAID創(chuàng)建邏輯盤(pán)確定VG的類(lèi)型Non-concurrentConcurrentEnhancedconcurrent確定文件系統(tǒng)類(lèi)型jfs2JfsResource2024/12/1027HACMP5.1conceptandplanning使用RSCT進(jìn)行通信支持ACTIVE和PASSIVE模式ACTIVEVaryon:類(lèi)似通常的varyonPASSIVEVaryon:不允許高級(jí)操作(highleveloperations)HACMP協(xié)調(diào)節(jié)點(diǎn)間的活動(dòng),保證只有一個(gè)節(jié)點(diǎn)可以vary

onvolumegroupactivelyenhancedconcurrentvolumegroups能夠被包含在一個(gè)non-concurrentresourcegroups里VolumeGroupandFileSystem規(guī)劃:

EnhancedconcurrentVolumeGroupResource2024/12/1028HACMP5.1conceptandplanning通過(guò)提供快速資源組fallover,減少宕機(jī)時(shí)間對(duì)于2塊硬盤(pán)的VG,接管時(shí)間一般不超過(guò)10秒。對(duì)于帶有大數(shù)量磁盤(pán)的VG的資源組有顯著的性能提高。需要enhancedconcurrentvolumegroups定義在non-concurrentresourcegroups里對(duì)于位于共享盤(pán)陣上enhancedconcurrentvolumegroups,如果是共享資源組的資源,HACMP會(huì)自動(dòng)實(shí)現(xiàn)快速磁盤(pán)接管.VolumeGroupandFileSystem規(guī)劃:

快速磁盤(pán)接管(fastdisktakeover)(一)Resource2024/12/1029HACMP5.1conceptandplanning你可以查看vg的狀態(tài)通過(guò)

lsvg命令:VGSTATE無(wú)論是actively或者passively方式的varyon,都將顯示active狀態(tài)。VGPERMISSION如果是actively方式的varyon,將顯示read/write,如果是passive方式的varyon,將顯示passive-only。CONCURRENT將顯示Capable或者Enhanced-Capable(對(duì)于concurrent

vg).VolumeGroupandFileSystem規(guī)劃:

快速磁盤(pán)接管(fastdisktakeover)(二)Resource2024/12/1030HACMP5.1conceptandplanningResourceGroup規(guī)劃

一些可管理的資源集合在一起,和特定的應(yīng)用相關(guān)聯(lián),并可一同執(zhí)行failover等行為的組.包含四種類(lèi)型:CascadingresourcegroupRotatingresourcegroupConcurrentresourcegroupCustomresourcegroup(HA5.X新增的資源組類(lèi)型)

ResourceGroup2024/12/1031HACMP5.1conceptandplanningCascadingResourceGroup資源移動(dòng)按照一個(gè)從高到低的優(yōu)先級(jí)順序當(dāng)發(fā)生失敗節(jié)點(diǎn)重新加入(reintegration)時(shí),資源會(huì)返回到優(yōu)先級(jí)更高的節(jié)點(diǎn)缺省,資源會(huì)在優(yōu)先級(jí)最高的節(jié)點(diǎn)上啟動(dòng)資源(Resources):ServiceIPLabels/AddressesVolumeGroupsFilesystemsApplicationServers優(yōu)先級(jí)ResourceGroup2024/12/1032HACMP5.1conceptandplanningCascadingresourcegroup的接管過(guò)程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菜單中設(shè)置。ResourceGroup2024/12/1034HACMP5.1conceptandplanningCascadingresourcegroup的屬性:DNPResourceGroup2024/12/1035HACMP5.1conceptandplanningRotatingresourcegroup資源移動(dòng)按照一定順序,一個(gè)接一個(gè)呈rotation當(dāng)節(jié)點(diǎn)失敗,第一個(gè)備(standby)節(jié)點(diǎn)會(huì)獲得失敗節(jié)點(diǎn)的資源組

一個(gè)失敗節(jié)點(diǎn)重新加入cluster,將會(huì)作為備(standby)節(jié)點(diǎn),不會(huì)重新獲得原來(lái)的資源組

資源(Resources):ServiceIPLabels/AddressesVolumeGroupsFilesystemsApplicationServersResourceGroup2024/12/1036HACMP5.1conceptandplanningRotatingresourcegroup的接管過(guò)程ResourceGroup2024/12/1037HACMP5.1conceptandplanningConcurrentresourcegroup所有的節(jié)點(diǎn)共享且可并發(fā)訪問(wèn)數(shù)據(jù)應(yīng)用在所有節(jié)點(diǎn)上并行運(yùn)行有LockManager

協(xié)調(diào)各節(jié)點(diǎn)對(duì)數(shù)據(jù)的訪問(wèn)一個(gè)節(jié)點(diǎn)失敗,會(huì)降低cluster性能,但不會(huì)發(fā)生接管。資源(Resources):ConcurrentVolumeGroupsApplicationServers共享盤(pán)陣ResourceGroup2024/12/1038HACMP5.1conceptandplanningCustomresourcegroupHACMP5.1

增加的新類(lèi)型

HACMP5.2andlaterCUSTOMONLY通過(guò)參數(shù)設(shè)置,可以精確定義有關(guān)資源組的

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

Useforcedvaryonofvolumegroups,ifnecessary[false]FilesystemsApplicationServersResourceGroup2024/12/1039HACMP5.1conceptandplanningCustomresourcegroup添加一個(gè)customresourcegroup:#smittyhacmpInitializationandStandardConfiguration>ConfigureHACMPResourceGroups>AddaResourceGroup>CascadingRotatingConcurrentCustomAddaCustomResourceGroupTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*ResourceGroupName[]*ParticipatingNodeNames(DefaultNodePriority)[]+StartupPolicyOnlineOnHomeNodeO>+FalloverPolicyFalloverToNextPrio>+FallbackPolicyFallbackToHigherPr>+ResourceGroup2024/12/1040HACMP5.1conceptandplanningStartup可設(shè)置的策略有:?OnlineonHomeNodeOnly.Theresourcegroupshouldbebroughtonlineonlyonitshome(highestpriority)nodeduringtheresourcegroupstartup.Thisrequiresthehighestprioritynodetobeavailable.?OnlineonFirstAvailableNode.Theresourcegroupactivatesonthefirstparticipatingnodethatbecomesavailable.?OnlineonAllAvailableNodes.Theresourcegroupisbroughtonlineonallnodes.?OnlineUsingDistributionPolicy.Onlyoneresourcegroupisbroughtonlineonanode,oronanodepernetwork,dependingonthedistributionpolicyspecified(nodeornetwork).Fallover可設(shè)置的策略有?FallovertoNextPriorityNodeintheList.Inthecaseoffallover,theresourcegroupthatisonlineononlyonenodeatatimefollowsthedefaultnodepriorityorderspecifiedintheresourcegroup’snodelist.?FalloverUsingDynamicNodePriority.Beforeselectingthisoption,configureadynamicnodeprioritypolicythatyouwanttouse.Oryoucanselectoneofthethreepredefineddynamicnodeprioritypolicies.?BringOffline(onErrorNodeOnly).SelectthisoptiontobringaresourcegroupofflineonanodeduringanerrorconditionFallback可設(shè)置的策略有?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規(guī)劃:配置要求(1)操作系統(tǒng)的版本和補(bǔ)丁要求Software2024/12/1043HACMP5.1conceptandplanning配置要求(2):(補(bǔ)丁)HACMP5.1HACMP5.2AIX5.2HACMPIY66556AIXML5200-06HACMPIY68370AIXML5200-06AIX5.3HACMPIY66556AIXML5300-02HACMPIY68370AIXML5300-02SoftwareHACMP的補(bǔ)丁要求

HACMPV5.1IY45695HACMPV5.2IY58496

補(bǔ)丁包的下載中心

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)操作系統(tǒng)上需要打的一些額外的包:

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的各個(gè)版本和HACMP的各個(gè)版本兼容表配置要求(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的規(guī)劃和考慮HACMP的安裝和配置HACMP的接管測(cè)試2024/12/1048HACMP5.1conceptandplanning需要安裝的組件

操作系統(tǒng)的補(bǔ)丁HACMP軟件

HACMP軟件的補(bǔ)丁軟件的安裝方法

NIM

光盤(pán)安裝本地硬盤(pán)安裝驗(yàn)證安裝

HACMP軟件的安裝2024/12/1049HACMP5.1conceptandplanningHACMP軟件的配置過(guò)程

HACMP配置前的準(zhǔn)本工作

配置IP地址

編輯/etc/hosts文件編輯/usr/es/sbin/cluster/etc/rhosts文件編寫(xiě)應(yīng)用程序的啟動(dòng)/停止腳本創(chuàng)建共享的vg和文件系統(tǒng)配置串口設(shè)備HACMP的Standard配置過(guò)程

添加Cluster和節(jié)點(diǎn)

配置Cluster資源創(chuàng)建并配置Cluster資源組同步HACMP的配置HACMP的Extended配置過(guò)程

添加心跳

定制Cluster資源

2024/12/1050HACMP5.1conceptandplanningHACMP軟件配置方案拓?fù)鋱Dtest1test2test1_boot2test1_boot1test2_boot1test2_boot22024/12/1051HACMP5.1conceptandplanningHACMP配置前的準(zhǔn)備工作:配置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配置前的準(zhǔn)備工作:編輯配置文件編輯/etc/hosts文件test1_boot1test1test2_boot1test2test1_boot2test2_boot2test1_svctest2_svctest1_pertest2_per編輯/usr/es/sbin/cluster/etc/rhosts文件

2024/12/1053HACMP5.1conceptandplanningHACMP配置前的準(zhǔn)備工作:編寫(xiě)腳本查看節(jié)點(diǎn)上的應(yīng)用服務(wù)器的啟動(dòng)/停止腳本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啟動(dòng)腳本舉例:vistartdate>>/ha51/start.logbanner"startapp1">>/tmp/hacmp.out2024/12/1054HACMP5.1conceptandplanningHACMP配置前的準(zhǔn)備工作:創(chuàng)建共享的VG和FStest1vg是共享VG:test1:hdisk00004383268b07574rootvgactivehdisk3000438325e22bca7test1vghdisk4e5aa8Nonehdisk5000438323d0e4487Nonetest2:hdisk0000ddrootvgactivehdisk5000438325e22bca7test1vghdisk6e5aa8Nonehdisk7000438323d0e4487None2024/12/1055HACMP5.1conceptandplanningHACMP配置前的準(zhǔn)備工作:創(chuàng)建串口設(shè)備通過(guò)smittytty命令來(lái)添加串口設(shè)備:2024/12/1056HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:添加CLUSTER和節(jié)點(diǎn)

*ClusterName[ha51tsc]NewNodes(viaselectedcommunicationpaths)[test2_boot1test1_boot1]CurrentlyConfiguredNode(s)通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加Cluster和節(jié)點(diǎn):->InitializationandStandardConfiguration->AddNodestoanHACMPCluster。

注:這一步很重要,一般我們都是把每個(gè)節(jié)點(diǎn)的boot1作為communicationpath.當(dāng)回車(chē)以后,系統(tǒng)會(huì)自己discoverhacmp的資源,并有詳細(xì)的信息顯示輸出。2024/12/1057HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:

添加高可用資源ServiceIP通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加ServiceIP:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureServiceIPLabels/Addresses->AddaServiceIPLabel/Address*IPLabel/Address[test1_svc]NetworkName[net_ether_02]*IPLabel/Address[test2_svc]NetworkName[net_ether_02]注:如果有多個(gè)應(yīng)用服務(wù)器,則添加多個(gè)ServiceIP。2024/12/1058HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:

添加高可用資源ApplicationServer通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加ApplicationServer:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureApplicationServers->AddanApplicationServer*ServerName[app1]*StartScript[/ha51/start]*StopScript[/ha51/stop]注:如果有多個(gè)應(yīng)用服務(wù)器,則添加多個(gè)ApplicationServer。2024/12/1059HACMP5.1conceptandplanning注意在前面的步驟中我們看到已經(jīng)有一個(gè)共享VGtest1vg存在了,它使用傳統(tǒng)的方法:在test1節(jié)點(diǎn)上創(chuàng)建test1vg,lv,jfsVaryoffvg在test2上importvgVaryoffvg我們也可以用hacmp的功能去創(chuàng)建test2vg和文件系統(tǒng)HACMP的Standard配置過(guò)程:

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

添加高可用資源VG和FS(二)通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加共享VG:->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureVolumeGroups,LogicalVolumesandFilesystems->SharedVolumeGroups->CreateaSharedVolumeGroup

NodeNamestest1,test2PVIDe5aa8VOLUMEGROUPname

[test2vg]PhysicalpartitionSIZEinmegabytes

4VolumegroupMAJORNUMBER[49]2024/12/1061HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:

添加高可用資源VG和FS(三)通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加共享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配置過(guò)程:創(chuàng)建Cluster資源組通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加資源組:->InitializationandStandardConfiguration->ConfigureHACMPResourceGroups->AddaResourceGroupCascadingRotatingConcurrentCustom

*ResourceGroupName[res1]*ParticipatingNodeNames/DefaultNodePriority[test1test2]注:如果有多個(gè)資源組,則按照同樣方法添加即可。2024/12/1063HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:配置Cluster資源組通過(guò)smittyhacmp命令,按照下列路徑來(lái)配置資源組:->InitializationandStandardConfiguration->ConfigureHACMPResourceGroups->Change/ShowResourcesforaResourceGroup(standard)ResourceGroupNameres1ParticipatingNodeNames(DefaultNodePriority)test1test2*ServiceIPLabels/Addresses[test1_svc]VolumeGroups[mtest1vg]Filesystems(emptyisALLforVGsspecified)[/test1jfs]ApplicationServers[mapp1]注:如果有多個(gè)資源組,則按照同樣方法配置即可。2024/12/1064HACMP5.1conceptandplanningHACMP的Standard配置過(guò)程:同步HACMP的配置通過(guò)smittyhacmp命令,按照下列路徑來(lái)檢查HACMP的配置:->InitializationandStandardConfiguration->DisplayHACMPConfiguration顯示輸出如右圖所示。如果檢查沒(méi)有問(wèn)題,就可以做同步了:->InitializationandStandardConfiguration->VerifyandSynchronizeHACMPConfigurationClusterDescriptionofCluster:ha51tscClusterSecurityLevel:StandardThereare2node(s)and1network(s)definedNODEtest1:Networknet_ether_02test2_svctest1_svcNODEtest2:…ResourceGroupres1BehaviorcascadingParticipatingNodestest1test2ServiceIPLabeltest1_svc2024/12/1065HACMP5.1conceptandplanning在ExtendedConfiguration中我們還可以配置tty心跳網(wǎng)絡(luò),hdisk心跳網(wǎng)絡(luò),PersistentNodeIP,applicationmonitor等等。

HACMP的Extended配置過(guò)程2024/12/1066HACMP5.1conceptandplanning

首先,我們要一個(gè)EnhancedconcurrentVG,這個(gè)concurrentvg可以通過(guò)兩種方法來(lái)建立。方法一:Mkvg–cconvg;在一個(gè)節(jié)點(diǎn)上varyoffvg,另一個(gè)節(jié)點(diǎn)上importvg方法二:

通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加hdisk心跳盤(pán):->InitializationandStandardConfiguration->ConfigureResourcestoMakeHighlyAvailable->ConfigureConcurrentVolumeGroupsandLogicalVolumes->ConcurrentVolumeGroups->CreateaConcurrentVolumeGroupHACMP的Extended配置過(guò)程:設(shè)置hdisk心跳網(wǎng)絡(luò)(一)2024/12/1067HACMP5.1conceptandplanningHACMP的Extended配置過(guò)程:設(shè)置hdisk心跳網(wǎng)絡(luò)(二)NodeNamestest1,test2PVID000438323d0e4487VOLUMEGROUPnameconvgPhysicalpartitionSIZEinmegabytes4VolumegroupMAJORNUMBER[49]EnhancedConcurrentModetrue其次,檢查hdisk網(wǎng)絡(luò)的狀況,在一個(gè)節(jié)點(diǎn)上向hdisk寫(xiě)數(shù)據(jù),從另一個(gè)節(jié)點(diǎn)上讀數(shù)據(jù),很像我們?cè)谂渲胻ty網(wǎng)絡(luò)之前,檢查一下tty是否連通。Add/usr/sbin/rsct/bin/to/etc/environment里的path中重新logintest1和test2使path生效在test1上運(yùn)行:dhb_read-phdisk5–r在test2上運(yùn)行:dhb_read-phdisk7–t2024/12/1068HACMP5.1conceptandplanningHACMP的Extended配置過(guò)程:設(shè)置hdisk心跳網(wǎng)絡(luò)(三)通過(guò)smittyhacmp命令,按照下列路徑來(lái)添加hdisk心跳網(wǎng)絡(luò):->Exten

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論