MC/ServiceGuardIntroduction别洪威HP企业客户服务部2001.4.16MC/ServiceGuardConceptsHardwareClusterManagementPackageManagementNetworkTroubleshootingConceptHighAvailabilitySolutionsHighlyAvailableSystemMC/ServiceGuardMC/LockManagerOnLineJFSProcessResourceManagerProtectedDataMirrorDisk/UXHPDiskArraysJFSReliableSystemsHP9000SystemHPperipheralsHP-UXHardwareConceptsLeadingidea:–NoSinglePointOfFailureTheMCinMC/ServiceGuardstandsfor“MultipleComputers”andanMC/ServiceGuardclusterconsistsofbetween2toupto16nodesdependingontheMC/ServiceGuardversion.HardwareConceptsAsupportedMC/ServiceGuardclusterrequiresredundanthardware–ToprotectagainstdiskfailuresLVMdiskmirroringordiskarraysmustbeused;–TwodiskbusesarealsostronglyrecommendedandshouldbeeitherconfiguredasPVGroupsorPVlinkstoprotectagainstbusordeviceadapterfailures.–AtleasttwoLANinterfacespernodearerequiredtoprotectagainstLANcardfailures.–ToallowMC/ServiceGuardtohandleLANfailuresatleastonebridgemustbepresent.SharedVolumeGroupPackageConceptsApplicationResource:–VolumeGroup–LogicalVolume–FileSystem–IPAddress–ShellScript–FunctionRule:–Resourcegiventoapackagecannotbegiventootherpackages.RelocatableIPAddressStationaryIP–StationaryIPaddressesneverchange.ThesearenormalIPaddressesassignedinthesamewayasbefore.RelocatableIP–RelocatableIPaddressesareassignedonaper-applicationbasis.Ifyouwanttoaccessanapplication,youconnecttotherelocatableIPaddresses.Thiswillconnectyou,regardlessofwhichsystemorinterfaceithasbeenassignedto.ClusterConcepts2to16Nodes.Statusandheartbeatsareexchanged.Packagestransferredafterfailure.Noreboot.MajorstepsinapplicationrecoveryafteranodefailureNodefailsClusterreformationAdoptivenodetakesoverFsckphaseApplicationstartup&recoveryApplicationavailabilitySimpleoperatorcommandsMovepackagestoalternatenodesPerformhardwareorsoftwareupgrades,maintenanceMovepackagesbackBackwardcompatibility:-OperatingSystem-MC/ServiceGuardPkgEPkgDPkgAPkgGPkgFPkgBPkgIPkgHPkgCHardwareorsoftwareupgrades...PkgEPkgDPkgAPkgGPkgFPkgBPkgIPkgHPkgC...thenrollthroughtheclusterMC/ServiceGuard:MinimizingPlannedDowntimeFastapplicationfailoverLANfailureprotectionNoidlesystemsRotatingStandby/AutomaticFailbackWorkloadbalancingfeaturesManagesplanneddowntimeSurvivesmulti-nodefailuresAdvancedTapeSharingMC/ServiceGuardHAClustersSimple,flexibleframeworkformanagingapplicationresourcesProcesses:App_Process_1App_Process_2Middleware_1Middleware_2Disks:lvol_data1lvol_data2Network:IP56.23.101.44Node1PkgBPkgAPkgCMC/ServiceGuard:ApplicationPackagesBalanceworkloadafteranodefailureMinimizeimpactonremainingnodesNode4PkgCPkgHPkgINode2PkgAPkgDPkgENode3PkgBPkgFPkgGNode1IfNode1fails...PkgAPkgBPkgCMC/ServiceGuard:WorkloadBalancingPRMwithMC/ServiceGuard:SuperiorLoadBalancingDynamicallocationofprocessingproceduresLoadbalancingfornormalandpost-failureoperationIfNode1failsNode2PkgCPkgBPkgA70%20%10%Node1PkgCNode1PkgC100%80%20%Node2PkgAPkgBEliminatingperformanceimpactofanodefailurePackagecanrunonanynodeinthecluster.AllnodesareequalAllnodesconnectedtoalldisksFailednodebecomesthefuturestandbyValuableforrotatingupgradeUsefulifyouwanttominimizeapplicationre-starts/interruptionsPkgAPkgBPkgDPkgCStandbyNode1Node1Node5Node4Node3Node2MC/ServiceGuard:RotatingStandbyPkgAStandbyPkgDPkgCPkgBNode1Node1Node5Node4Node3Node2PkgAPkgBPkgDPkgCStandbyNode1Node1Node5Node4Node3Node2PkgAPkgDPkgCPkgBNode1Node1Node5Node4Node3Node2UnderRepairCampusClusters:fast,flexibleHA&localdisasterprotectionHADiskArrayorXP51210km10kmHeartbeatFCHUBFCHUBFCHUBFCHUBBuildsonMC/SGcapabilitiesSinglecluster,multiplesitesContinuoussite-to-sitedatamirroringBasedonFibreChannelforspeed&upto10kmdistanceHADiskArrayorXP512HardwareGeneralDiskConceptsEachnodemusthaveitsownbootdisksNon-LVMdisksarenotsupportedforHAapplicationsDiskswhichdonotsupportLVMMirrorDisk/UX(HP-PB)arenotsupportedMirrorDisk/UXisnotrequiredbutishighlyrecommendedServiceGuarddoesnotrespondtodiskfailuresbutassumesthatthesearehandledbyLVMandMirrorDisk/UXDiskswhicharenotneededbyHAapplicationscanbenon-LVMGeneralBoot/RootDiskConceptsEachnodemusthaveitsownbootdisksNoneedtohaverootonsharedbusRootdiskmaybeconnectedtoasharedbusbutthisisnotrecommendedRootdiskcanbeoninternaldisks,externaldisksoracombinationofbothRootdiskscanbemirrored(stronglyrecommended)orunmirroredTheRootVolumeGroupThisVGmustnotcontainanyHAapplicationpackageLVMMirrorDisk/UXisrecommendedTherootVGmaybeonasharedbusoranon-sharedbusKeeptherootVGassimpleaspossible:1bootdiskplusthemirrorbootdiskisidealDonotuseexoticnetworkbasedbackuputilitiessuchasOmnibacktobackuptherootVG.Thesetakealongtimetogetinstalledandworking.Fbackup/frecoveraregoodenoughUsetheavailableutilitiestocollectinformationontheLVMconfiguration:LVMcollect,cmgetconfig,etcDonotthinkaboutstripingontherootVGGeneralDataDiskConceptsRecommendedtobemirroredMaycontainServiceGuardpackagesornon-HAservice/data/applicationMustbeonashared,externalbusthatisconnectedtoallnodesthatarepotentialownersoftheassociatedpackagesLVMandServiceGuardNotwodataVGsontheclustercanh