Defragmentation and Shadow Copies

  • Section(s): Miscellaneous
  • Published on Apr 04, 2006.
  • Last Modified on Apr 04, 2006.
  • Last Modified by MitchTulloch.
  • Rated 3 out of 5 based on 4 votes.
How to make defragmentation work properly with shadow copies enabled.

Defragmenting a hard drive that has shadow copies enabled on it can result in loss of shadow copy information. That means users who have files stored on the server may not be able to recover previous versions when they need to. The reason this problem occurs is that when defragmentation is underway, the Volume Shadow Copy Service thinks that new files are being written to the volume and tries to create shadow copies of them as defragmentation occurs. The result is corrupted shadow copy information.

There are two ways you can work around this problem:

  1. You can format the NTFS volume using 16kB or larger clusters. Since the Volume Shadow Copy service works with file units this size, it understands how to deal with them appropriately. Unfortunately this can mean wasting lots of space if your file server is used to save lots of small files.
  2. Create a separate volume and store the shadow copy information for all your existing volumes on this new volume, and never defragment this new volume. Having a dedicated shadow copy volume like this is a good workaround to the problem, and if users only occasionally need to restore old versions of files then even if this new volume is never defragmented it should perform its function reasonable well, especially if the new volume is on its own separate physical drive.  

About MitchTulloch

Mitch Tulloch was lead author for the Windows Vista Resource Kit from Microsoft Press, which is the book for IT pros who want to deploy, maintain and support Windows Vista in mid- and large-sized network environments. Mitch was also the author of Introducing Windows Server 2008 and technical project lead for the Microsoft Office Communications Server 2007 Resource Kit, both books also from Microsoft Press. For more information on these and other books by Mitch, see http://www.mtit.com .

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Firewall & VPN hardware solution?