Automate VHD Offline Defrag for Citrix Provisioning Server
This article, Automate VHD Offline Defrag for Citrix Provisioning Server, shows you how to defragment your VHDX files with PowerShell.
When deploying VHDX files with Citrix Provisioning Server in combination with RAM Cache with Overflow to Disk, it is very important to defragment your virtual disks. In the article Size Matters: PVS RAM Cache Overflow Sizing, Citrix makes two very clear statements. The first one is:
“Defragmenting the vDisk resulted in write cache savings of up to 30% or more during testing.”
The second statement refers directly to offline defragmentation (as opposed to online defragmentation):
“Defragment the vDisk by mounting the .VHDX on the PVS server and running a manual defragmentation on it. This allows for a more robust defragmentation as the OS is not loaded. An additional 15% reduction in the write cache size was seen with this approach over standard defragmentation.”
In a fully automated installation process of your master target device, the automatic offline defragmentation of your VHDX file should be included as well. After the VHDX file has been created, you can continue, within the same PowerShell script, with the offline defragmentation of the newly created VHDX file.
Read the entire article here: Automate VHD Offline Defrag for Citrix Provisioning Server
Via Dennis Span at dennisspan.com