Windows Server How-To

Using Windows Server 2012's SSD Write-Back Cache

Brien runs down how you can get the most out of Windows Server 2012 R2's newest tiered storage functionality.

One of the most welcome new features in Windows Server 2012 R2 is the ability to create native tiered storage. In case you are unfamiliar with the feature, a storage pool can contain a mixture of traditional hard disks and solid-state disks. When a virtual hard disk is created on top of the storage pool, the administrator is given the option of providing the new virtual hard disk with tiered storage. If the administrator chooses to enable this option then the most frequently read blocks (which are known as hot blocks) will be automatically copied to solid state storage so that they can be accessed with the greatest possible efficiency.

When you create a virtual hard disk with tiered storage, Windows allows you to specify the amount of traditional hard-disk space and the amount of solid-state storage space that you want to use for the new virtual hard disk. What you might not realize however, is that your fast storage tier might not end up being quite as large as you specify.

If you create a fast tier that is more than 1 GB in size Windows will use 1 GB of SSD space as a write-back cache. This write back cache improves performance by intercepting and smoothing out write operations. The disadvantage, of course, is that the fast storage tier is actually 1 GB smaller than you specify because of the space lost to the write-back cache.

With that being the case, it is a good idea to account for the lost space up front by making your fast storage tier 1 GB larger than you otherwise would. Of course this raises another question. Is it possible to disable or resize the write-back cache?

The first thing that you need to understand is that write-back caching isn't unique to volumes that use storage tiers. Even non-tiered virtual hard disks include write-back caches by default. One important difference however, is that virtual disks made up entirely of standard hard disks have a much smaller write-back cache than those that use tiered storage. A non-tiered virtual hard disk uses a 32 MB cache, whereas a tiered virtual hard disk has a 1 GB cache.

That being the case, it is handy to be able to verify the cache size. One way of doing so is through PowerShell. You can use the Get-VirtualDisk cmdlet to retrieve a list of all of the virtual disks. When the list is displayed, pay attention to the FriendlyName. This name is used to identify the virtual disk. Once you know the friendly name, you can use the following command to retrieve the cache size:

Get-VirtualDisk –FriendlyName "<friendly name>" |  Select-Object WriteCacheSize

You can see how this works in Figure 1.

[Click on image for larger view.] Figure 1. You can retrieve the size of a virtual disk's write back cache.

If you want to see the write back cache for every virtual disk on the server then you could use this command instead:

Get-VirtualDisk | Select-Object FriendlyName, Size,  WriteCacheSize

You can see this command at work in Figure 2.

[Click on image for larger view.] Figure 2. You can list the cache size for all of your virtual hard disks.

So what about changing the cache size? Well, you can't modify the cache size, but you can specify it at the time that you create a new virtual hard disk. In order to do so, you have to use Windows PowerShell.

New-VirtualDisk –StoragePoolFriendlyName "<storage  pool name>" –FriendlyName "<virtual disk friendly name>" –StorageTiers  @($ssd_tier, $hdd_tier) –StorageTierSizes @(5GB, 100GB) –ResiliencySettingName  Simple –WriteCacheSize 2GB

In the command above, you would provide the name of your storage pool and the friendly name for the virtual hard disk that you want to create. The command creates a 100 GB virtual hard disk with a 5 GB SSD tier and a 2 GB write back cache. You can of course substitute your own values.

So as you can see, it's relatively easy to specify the size of the write-back cache. The catch is that it must be done when the virtual hard disk is created, and it can only be done through PowerShell.

About the Author

Brien Posey is a seven time Microsoft MVP with over two decades of IT experience. As a freelance writer, Posey has written many thousands of articles and written or contributed to several dozen books on a wide variety of IT topics. Prior to going freelance, Posey was a CIO for a national chain of hospitals and healthcare facilities. He has also served as a network administrator for some of the country's largest insurance companies and for the Department of Defense at Fort Knox. When He isn't busy writing, Brien Posey enjoys exotic travel, scuba diving, and racing his Cigarette boat. You can visit his personal Web site at:

comments powered by Disqus

Reader Comments:

Sun, Feb 2, 2014

Sm-kaadcb what I was looking for-ty! [url=]qftxtoehzjd[/url] [link=]utawlyeee[/link]

Mon, Jan 20, 2014

With the addition of +1 http://t DOT search it is going to be a larger topic than before, but most companies that sell +1 aren't going to provide relevant followers so in the end it is a waste of money. There are 2 searches right now: personal and regular (old). When it is on personal the +1 results will change search rankings and increase sites you have +1'd or your circle may have in the past, but since the +1's you bought are people that likely aren't ever going to be clients it won't change much for you in the end.If you want more +1's ask the circles you are already in or join a marketing forum that trades them. At least that way you know they are real people and not just "unique accounts". Knowing Google they are already well on top of people trying to spam +1's to their pages to game the system. I would advise against buying it at this time.

Sun, Jan 19, 2014

Dear Brad,I was wanting to tell you I apcepriate your help yesterday. All had was phone so I couldn't share it the right way. Do u remember last year when I got the number to call for the concert. When I called I was told that my daughter would be free. So when we got there we couldn't get in because she wasn't. We didn't have the most so we had to go back home. Those tickets would be such a blessing for my family. I want to thank you always trying to help the community.. Thank you,. Marlena Davis

Add Your Comment Now:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Please type the letters/numbers you see above

Redmond Tech Watch

Sign up for our newsletter.

I agree to this site's Privacy Policy.