When Windows Server 2012 was being previewed, I was really shocked that deduplication would be included in the server operating system. I thought it would make sense for a file server only at first. This is because it is not meant for structured data types like Exchange, SQL or VMs. Further, it is not permitted on the C:\ drive. After chewing on it a bit more, I've found a number of additional use cases and find it quite versatile for any IT environment. Windows deduplication can be used for backup file shares, volumes for application dumps (like SQL server log backups and log flushes) and general application volumes for systems. This may be a candidate for virtual machine template/library build process configuration.
What's better, it doesn't require the cost investment that is normally associated with hardware deduplication appliances. And it is Windows. You already know how to support Windows.
With that being said, how do you tweak Windows Server 2012 deduplication? First, you need to know how to install it. I wrote a blog post last year from one of the early previews, and the process is unchanged in how to turn it on since the beta processes.Once deduplication is enabled for the server, the next step is to designate volumes to have the deduplication engine set for processing. This is easily done in PowerShell or the Server Manager interface. Issue the PowerShell command
Enable-DedupVolumefor each specified volume — shown in Figure A below:
Click to enlarge.
Within Server Manager, the Volumes Overview of each disk will give you a quick visual indication of the deduplication space savings from the Windows Server 2012 deduplication engine. Deduplication with Windows works within a single volume (though multiple volumes can have it enabled) and space savings are delivered when the scheduled tasks run.
start-dedupJobcmdlet as shown below in Figure C:
In the figure above, the default value of 5 is removed to 0 in this example so we can see immediate results. It's important to note it is age on this volume, not necessarily the timestamp of the file.Once deduplication is completed, the results are displayed in Server Manager. Using the example above with 60 instances of the same file, and some other candidates, deduplication saved a lot of space, as shown in Figure E below:
Click to enlarge.
Between the properties of deduplication for the volume set in Server Manager and the wealth of PowerShell cmdlets for Windows, there are plenty of places and ways to tweak this feature of Windows. Additionally, this TechNet page has an extensive list of the PowerShell cmdlets available specifically for deduplication.
Have you been using Windows Server 2012 deduplication? What is your experience so far? Share your experiences below.
Rick Vanover is a software strategy specialist for Veeam Software, based in Columbus, Ohio. Rick has years of IT experience and focuses on virtualization, Windows-based server administration, and system hardware.