Defragmentation and Shadow Copies

by Mitch Tulloch [Published on 4 April 2006 / Last Updated on 4 April 2006]

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.  

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links