3 years ago
When using either or both of FSLogix products Office 365 Containers and Profile containers you will have quite large VHD-files. However you could for example in Office 365 Container limit the size when specifying the Outlook cache limit but non the less it will require quite large storage space. Since the standard and recommended way of creating these VHD-files is setting Dynamic it will make it complicated for you when and if you run out of space, let me explain:
A dynamic disk will automatically expand when needed ensuring each disk will reserve only the actual size of the content of the disk, which is good, but it will however not shrink automatically. This means the disk will have the size of when the it contained the most, but not actually represent the actual size inside. Over time this this might be an issue, if not else, waste of disk-space.
To create a script that will shrink the disk is complicated and there is a risk that the disk will be corrupt, instead I we will focus on how to maintain an efficient use of the stored data to minimize the disk of growing in size.
There is however no solution from FSLogix to tackle this yet, so you we would need to focus on what we can do with the VHD-files witch is essentially standard virtual disks. When searching for a good long time solution to this problem I found a great script created by David Ott that Optimize the disks that is available at the given time you run the script.
How it works
The script will check the VHD-files if they are available (if the user is logged on the disk is locked), it will then proceed with the one´s available and mount them, run a Optimization Job, close them and mail a complete report of the result. The best way of using this script would be to Schedule it to run after office hours (preferably after the Session hosts has restarted) to maintain the most efficient size of the disk. This will minimize the growths of the disk and in the long run save you some space.
Where to find it
As mentioned above I found the script from the creator David Ott and you can find the original post with script here!
If you have want to know more about FSLogix you can email me at firstname.lastname@example.org or check out my earlier posts here:
Convert Citrix UPM to FSLogix Profile Containers
Teams in your mulit-user environment done right!
Outlook Search index with FSLogix – Swedish
FSLogix Profile Container – Easy and fast Profile management – Swedish
Office 365 with FSLogix in a Multi-user environment – Swedish
Vi erbjuder personlig rådgivning med författaren för 1400 SEK per timme. Anmäl ditt intresse i här så återkommer vi så snart vi kan.