Synchronizing FSLogix and VDI Profiles
One of the use cases to illustrate the solution is managing user profiles in a VDI environment.
Basic architecture involves centralized storage, usually a fast RAID, which keeps the user Profiles and from which the Profiles are delivered to remote computers. Depending on the chosen topology, those might be multiple computers, but usually, these are a few load-balanced servers from which users reach out for files via SMB.
Challenges that Resilio Active Everywhere faces with user profiles are the following:
- They are usually very large.
- They frequently change as users stay logged in.
- They remain locked (while in use) for Resilio Active Everywhere Agent, or the Agent lacks access permissions.
- Agents need to work with several such files at a moment.
Below is the suggested configuration of Agent settings that will help to mitigate the challenges with synchronizing FSLogic and VDI Profiles. Add these parameters to the Agent's Profile (don't confuse it with the users' Profile in VDI) and restart the Agents.
Starting with version 3.2, use the dedicated VDI profile preset.
For Resilio Active Everywhere installs before 3.2, please contact support for assistance in upgrading.
Containerized profile best practices
- Use Dynamic Profiles
- Profile Mode 1 (Read / Write) this will help overcome locked file complications.
- RW Disk will help prevent file locks and the need for file delays.
- Exclude RW.VHD and RW.VHDX from Resilio Active Everywhere
- https://docs.microsoft.com/en-us/fslogix/profile-container-configuration-reference#profiletype
- DO NOT use cloud cache and profile mode 1
- Do not use an office container unless the use case explicitly needs it
- Keep office profile in single profile container
- https://docs.microsoft.com/en-us/fslogix/office-container-configuration-reference#enabled
- Cloud cache intermittently accesses the files and can cause conflicts it is not recommended to use Resilio Active Everywhere and cloud cache simultaneously without careful consideration.
- If using cloud cache along with Resilio Active Everywhere, exclude the lock and meta tags. Cloud cache replicates these on its own.
-
Paste the following lines into the "File and folder filter" parameter in the job profile:
Pending *.vhd.lock *.VHD.LOCK *.vhdx.lock *.VHDX.LOCK *.VHDX.lock *.VHDX.meta *RW.VHDX *rw.vhdx *RW.VHD *rw.vhd *RW.vhd *._ODFC.VHDX *._odfc.vhdx *._ODFC.VHD *._odfc.vhd
-
If synchronizing FSLogix log files, set file delay to 1 minute
-
Disabling the file sync delay in the Resilio Active Everywhere Profile, the following settings must be configured on FSLogix in GPO or Registry
- LockedRetryCount
-
Example
- LockedRetryCount: 6
- LockedRetryInterval: 5
This would try every 5 seconds up to 6 times, giving you a 30-second grace period.
-
FSLogix VHD Disk Compaction
- Resilio Active Everywhere compression needs to be turned off
- Differential sync will cause no problems with compaction.
Helpful Tweaks to keep profiles small
- Use Dynamic Profiles https://docs.microsoft.com/en-us/fslogix/profile-container-configuration-reference#isdynamic
- Set profile size limits
- Setup Profile exclusions
- Setup outlook download limits
- Set up a VHD(X) maintenance window.
- Mounting profiles and cleaning out data that does not need to be there.
- Use logoff scripts to help clear bloat.
- https://github.com/FSLogix/Invoke-FslShrinkDisk
- Prune
- Compact profiles