《XenDesktop 故障分析和排查》由会员分享,可在线阅读,更多相关《XenDesktop 故障分析和排查(38页珍藏版)》请在金锄头文库上搜索。
1、ComplexXenDesktopusecases commonmistakes toolsandtechniquesforresolution BaptisteDuflos Manager EscalationServices May8th 2012 Introductionandobjectives Tweetaboutthissessionwithhashtag SUM301and CitrixSummit FocusingonthemajorcomponentsofXenDesktop 4 WI Controllers VDAs AD VMHost XenServer Hyper V
2、VMware Licensing User SQLDatabase DeployingControllerServers 5 AllControllersloadbalancesessionlaunchandVDAregistrationsConfiguringControllersinanN 1configurationallowsforresiliencyincaseofafailureAllControllerstalktotheSQLdatabaseandshoulddeployedascloseaspossible Controllers ControllerServerScalab
3、ility 6 XD4 x XD5 x Broker Broker ZDC Broker HypervisorPool Controller Controller Controller failed WI WI HypervisorPool HypervisorPool HypervisorPool HypervisorPool HypervisorPool Controllers ScalabilityandBestPractices 7 Canoverwhelmthehostinginfrastructurewithpowerstaterequestsduringpeaktimeswhen
4、manyuserslogonandoff YoucanthrottletheamountofpowercommandssentperControllerwith MaximumTransitionRate defaultis20 doNOTincreaseitwon tspeeduppoweruptimes DeployingSQLforXDDatabases 8 XD5usesasingledatabasewithmultipleschemasthatmaptoXDservicesStoredproceduresareleveragedtoreduceloadondatabaseDataba
5、seiscriticaltoXD5 allControllershaveheartbeattodatabase SQLDatabases SQL DatabaseMirroring 9 Databasefailure ControllerFailureOnlyimpactsnewconnections existingordisconnectedsessionsnotaffectedCitrixrecommendsleveragingSQLMirroringforfaulttolerance Principaldatabase Mirrordatabase Transactionlog Mir
6、roringsendstransactionlogfromPrincipaldatabasetotheredundantdatabase Iftheprincipaldatabasefails userinterventionisrequiredtofailoverthedatabaseCitrixrecommendsusingsynchronousdatabasemirroringwithwitness WitnessServer SQL BestPractices 10 SQLtransactionlogiscriticaltomonitorConnectionlaunchesandidl
7、edesktopsconsumetransactionlogspaceUseafixed sizetransactionlog auto growthfeaturecouldimpactresponsetimesLeverageSQLAlertswhenlogreachesthresholds recommend50 Databasefailovertuning adjustControllerheartbeatintervalDefaultheartbeatis30secsandrequiresaSQLoperationControllersunregisterworkersthatdono
8、theartbeatforoveroneminuteControlledbyRegkey HKLM Software Citrix DesktopServer HeartbeatPeriodMs DeployingVirtualDesktopAgents 11 VDAnowuses registrybased registrationbydefaultVerifyportsareopenandfirewallconfiguredForwardandReverseDNSisrequired VirtualDesktopAgents VDA Scalabilityandbestpractice 1
9、2 IncreasetheServicetimeoutsifyouexpectperiodswithlargeamountofVMsrebooting increaseto3minsrecommendedOptimizethelogonprocess improvesdesktopperformancePlanstageddeploymentsandconsiderleveragingtoolssuchlikeLoginVSItoperformscaleandloadtestingbeforeaddinglargegroupsofuserstoenvironment Keypointstore
10、member 13 Controllersareresilientandscalewell keepdeploymentssimpleSQLserverplayspivotalroleininfrastructure protectit Makeyourendusershappy tuneyourVDAsforperformance Troubleshootingasessionlaunchfailure 14 UserswerereportingtheygotanerrorwhentryingtolaunchtheirdesktopsAdminnoticedthatintermittentl
11、yVDAswouldde registeratsessionlaunch CaseStudyWalkthrough Environmentoverview 15 XenDesktopdeploymentwith WebInterface5 4XD5 6SQL2008VMWare5 0Windows2008R2ActiveDirectoryVirtualDesktopAgentOS Win732 bitCitrixReceiver3 1 WebInterface5 4 XD5 6 SQL2008 VMWare5 0 ActiveDirectory VDAs Receiver Whatdidfai
12、lurelooklike 16 17 Userattemptstostartthesession InitialTroubleshooting 18 Howoftendoesithappen Anyparticulartimeframeithappens Anyspecificusersorimagesithappensmorefrequentlywith Whatchanged Anyeventviewermessages Whatchanged 19 WI Controller 1 VDAs Controller 2 VDAsregisteronController 1 Customerh
13、adsingleserverdeployment CustomeraddedsecondControllerforredundancy Wheredowestartlooking 20 Wefound4interestingmessagesinEventViewer Warning EventID2103 AnunexpectedexceptionoccurredwhiletheCitrixBrokerServiceprocessedanXMLtransaction AnincompatibleclientmightbetryingtoaccesstheXMLservice Verifythe
14、compatibilityofclientsaccessingtheservice Ifthisproblempersists reinstalltheCitrixXenDesktopController Errordetails Transaction RequestAddress ExceptionType System ServiceModel Security SecurityAccessDeniedException ApplicationWarning EventID1060 TheCitrixBrokerServicefailedtoapplysettingsonthevirtu
15、almachine KB WIN7 CheckthatthevirtualmachinecanbecontactedfromtheControllerandthatanyfirewallonthevirtualmachineallowsconnectionsfromtheController SeeCitrixKnowledgeBasearticleCTX126992 Errordetails Exception Accessisdenied oftype System ServiceModel Security SecurityAccessDeniedException Warning Ev
16、entID1039 TheCitrixBrokerServicefailedtocontactvirtualmachine KB WIN7 IPaddress CheckthatthevirtualmachinecanbecontactedfromtheControllerandthatanyfirewallonthevirtualmachineallowsconnectionsfromtheController SeeCitrixKnowledgeBasearticleCTX126992 Errordetails Exception Accessisdenied oftype System ServiceModel Security SecurityAccessDeniedException Warning EventID1101 TheCitrixBrokerServicefailedtobrokeraconnectionforuser GET atladmin toresource KB Win7 PW TheCitrixBrokerServicecannotfindanyava