A couple a months ago I kicked XenServer out of my lab and replaced it with Hyper-V as explained in details in the blog post Goodbye XenServer Welcome Hyper-V 2012.
In this blog post I’m gonna show you how Windows 2012 Deduplication saved me 78% (204GB) on my already expensive Samsung 840 EVO 500GB SSD without spending a dime.
First off I checked the free space on my SSD data disk on my Windows 2012 R2 Hyper-V Server.
Then I enabled the Windows 2012 Deduplication Server Role through Server Manager.
Data Deduplication cannot be enabled on a System drive so make sure you use a small and cheap SSD for the OS or simply use an old spare laptop SATA disk to keep your machine dead silent. If you have limited numbers of SATA 6GB/s ports, just put the OS on a SATA 3GB/s port.
Right Click the volume and select to Configure Data Deduplication.
Now select General purpose file server and set Deduplicate files older than to 0. In Windows 2012 R2 we got a new option for VDI which are covered in details in this Microsoft blog post.
WARNING: Make sure to select Deduplication Schedule and disable Background Optimization. Windows 2012 Deduplication doesn’t support deduplication of running VM’s and will break them!
Since we have disabled the deduplication schedule we need to shut down all running VM’s on the host and start the Windows 2012 Deduplication job manually.
Run the following PowerShell command.
You can also check the status through Resource Monitor.
My deduplication job ran for less than 2 hours and gave me 78% more disk space. Awesome. Another great reason for running Windows 2012 R2 and Hyper-V.
Want to save even more space? Check the blog post How To Reduce Storage with 80-95% by leveraging App-V and Shared Content Store as recommended by Microsoft in the whitepaper App-V 5.0 and Citrix Integration Overview.