Skip to content
Rorymon Logo
  • Blogroll
  • About
  • Contact
Menu
  • Blogroll
  • About
  • Contact
Twitter
Linkedin
Rss
  • All Articles
  • Applications
    • App Compatibility
    • App Deployment
    • App Virtualization
      • App-V
        • Decision Matrix
        • App-V 4.x Recipes
        • App-V 5.x Recipes
        • App-V Videos
      • AppSense StrataApps
      • Cameyo
      • Evalaze
      • Frame
      • Numecent CloudPaging
      • P-Apps
      • ThinApp
      • Turbo
      • Workspace Streaming
      • XenApp Profiling
    • Containers
    • Layering
      • App Volumes
      • Citrix App Layering
      • FlexApp
      • Unidesk
  • Citrix
    • AppDNA
    • Citrix App Layering
    • Citrix Monitoring
    • Citrix Profiling
    • Citrix XenApp
  • Microsoft
    • ACT
    • Azure
    • BitLocker
    • Hyper-V
    • inTune
    • MDOP
      • AGPM
      • APP-V
      • DaRT
      • MBAM
      • MED-V
    • RDS
    • System Center
      • SCCM
      • SCOM
    • WDS
    • Windows
      • Windows 7
      • Windows 8
      • Windows 10
      • Windows Server 2012
  • VMware
    • App Volumes
    • ThinApp
  • Downloads
  • Podcast

Force Citrix Delivery Controller to Local Host Cache

  • Rory Monaghan
  • January 16, 2019
Share on reddit
Share on facebook
Share on twitter
Share on linkedin
Citrix XenApp

This article is going to show how to force your primary Citrix Delivery Controller into Local Host Cache mode. This isn’t any huge relegation or unique to this site, it is covered as part of this Citrix article. I didn’t know about this until Citrix support told me how to do it and it’s kind of buried within this longer article. This post will serve as a brain dump and a more to the point article on just this feature with a specific use case.

You may ask yourself why would I ever want or need to force a Citrix Delivery Controller into Local Host Cache mode? (You may ask yourself, well, how did I get here?)

One example is an instance in which the Delivery Controller loses it’s DB connection as in the above screenshot and restores itself then drops then restores and over and over. Happening so quickly and frequently that Local Host Cache mode doesn’t have a chance to actually kick in, leading to users experiencing launch failures and eventually slowness for those with connections.

A more likely or obvious case may be that you lose the DB or connectivity but Local Host Cache did not take over as expected. If that is the case, you should check the directory C:\Windows\ServiceProfiles\NetworkService and ensure the local cache of the database exists and it is up to date.

If your Local Host Cache exists and you are ready to force the Delivery Controllers to use it, create the registry: HKLM\SOFTWARE\Citrix\DesktopServer\LHC\OutageModeForced as a DWORD set to 1. Pretty much instantly, Local Host Cache will kick in. Anyone trying to launch the app in the first few minutes may still get application launch issues as your VDAs will re-register.

Note: While in Local Host Cache mode, admin functionality will be lost. Making changes to Delivery Controllers, applications etc. will not be possible. Citrix Director will not get data etc. It does allow brokering sessions and registering VDAs, which will get people back to work.

When you are ready to force the Delivery Controllers to reconnect back to it’s DB, change the value to 0. The same immediate behavior should be experienced. You’ll see in the event logs that the DB connection gets restored. The VDAs will start to re-register and within a few minutes everything should stabilize.

Vlad Tchompalov

Event ID 1201,Force Citrix Delivery Controller to Local Host Cache,HaDatabaseName.mdf,Local Host Cache,OutageModeForced,The connection between the Citrix Broker Service and the database has been lost,Where is the Citrix Local Cache Database Stored
PrevPreviousEpisode 54 – Windows Updates Cause NTLM and KMS Issues, GitHub Free Private Repositories & More
NextEpisode 55 – Massive Data Breach, Office x86 vs x64 Performance Analysis, Jerks in Tech & MoreNext
Rory Monaghan

Rory Monaghan

Microsoft MVP. Citrix CTA. IGEL Insider. VMware EUC Champion & vExpert.
Twitter
Linkedin
Rss
Vimeo
Youtube
Soundcloud

Get the App-V Decison Matrix and Interactive Tool.

See what the right deployment option for your applications is.
Let's Go!
FREE TOOL
Further Reading

Windows 10 Migration Checklist

Application packaging and virtualization services.
Learn More

Let's make virtualization EASIER!

Be amongst the first to know when I publish new reviews, guides and tools to simplify your virtualization projects.

Categories
  • All Articles
  • Application Compatibility
  • Application Virtualization
  • Containers
  • Citrix XenApp
  • Application Layering
Connect
  • Blogroll
  • About
  • Contact
Twitter
Linkedin
Rss
Vimeo
Youtube
Soundcloud
© Copyright Rorymon.com. All rights reserved 2021.
Privacy   |   Cookies
Marketing Services by Riabro.