Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


June 2007

Making Sense of Volume Shadow Copy Service

Spend time now to enable VSS—save time later when users need to recover files
RSS
Subscribe to Windows IT Pro | See More Backup and Recovery Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    5 Keys to VSS

Web Abstract:

  • Volume Shadow Copy Service creates snapshots of files so users can restore deleted files themselves.
  • VSS can back up SQL Server or Exchange files that are open or locked.
  • Configuring and monitoring backups with VSS in Windows 2003 isn't difficult.
  • Tips for implementing VSS can help you more efficiently set up Volume Shadow Copy Service.

Volume Shadow Copy Service (VSS) offers two features that can save you time and peace of mind. The first is a snapshot—think of it as a short-term backup—of all the files on an NTFS volume. This snapshot, or shadow copy, lets your users restore files for themselves—for example, if they accidentally delete a file or choose Save when they meant Save As. (VSS is not designed to replace your current backup strategy, as I discuss later.) The second feature is VSS's ability to back up files that are currently open or locked by an application such as Microsoft SQL Server or Microsoft Exchange.

VSS creates shadow copies on a regular basis or whenever you tell it to. Using VSS in Windows 2003 and in Vista's System Restore is easy—let's take a look at how to configure and monitor backups with VSS in Windows 2003, then discuss how converting basic disks to dynamic disks might affect your shadow copies. Later, as you implement VSS, you might want to refer to the list of VSS tips I've included.

How VSS Works
VSS creates snapshots of all files on an NTFS volume, aka the source volume. The shadow copies themselves reside in an area called the shadow copy cache. The volume that holds the shadow copy cache is called the shadow copy storage volume. Chances are you'll never see the shadow copy cache, because it lives in the System Volume Information folder, which is a hidden system folder.

By default, the shadow copy cache is created on the source volume, but you can specify that it be created on a physically separate disk to boost performance and provide fault tolerance. You need to decide where to store the shadow copy cache before you enable VSS, because you can't move the cache later without losing all the snapshots it contains. Also, note that disabling shadow copies on a volume permanently deletes all existing shadow copies.

VSS can be enabled only on NTFS volumes. You can't choose to include or exclude specific files or folders—it's all or nothing. Data residing in mounted volumes isn't included in the shadow copy of the parent volume. However, you can enable shadow copies on mounted volumes themselves. Note that shadow copies preserve both encryption and NTFS permissions, which might cause problems when you restore a file.

Enabling VSS
To enable VSS, click Start, choose My Computer, then rightclick the volume on which you want to enable VSS and choose Properties. On the Properties page, click the Shadow Copies tab. If you haven't already done so, decide whether you want to store the shadow copy cache on another volume that's located on a different disk.

Next, highlight the source volume and click Settings. In the Settings dialog box, you can select a different volume to be the shadow copy storage volume, as Figure 1 shows. You can change the size of the storage area and change the schedule (click the Schedule button) if the default schedule doesn't fit your needs. The default schedule creates snapshots Monday through Friday at 7 a.m. and at noon. You should create snapshots only as necessary—once an hour might be overkill.

After you configure your settings, click OK. On the Properties page, click Enable to turn shadow copies on for that volume. You'll be asked whether you want to use the default schedule and settings; go ahead and click Yes, then click OK again.

If you enjoy using command-line utilities, as I do, you'll want to learn how to use Vssadmin and Schtasks instead of the GUI to configure VSS. Vssadmin lets you create, delete, and resize shadow copies, among other things. Use Schtasks to create, edit, and delete scheduled tasks.

Let's talk about how much disk space you might need. When you enable VSS, 100MB of storage space is allocated immediately, and VSS can use up to 10 percent of the space on the hard disk. Snapshots record only what has changed since the last snapshot, so they don't take up as much room as you might think. However, a shadow copy cache can store only 64 shadow copies. If you run out of disk space or create a 65th snapshot, the oldest snapshot is deleted to make room for the new one. Due to the overhead of creating snapshots, I recommend enabling VSS only on volumes that hold user data or on which you'd like to be able to back up open files.

Using Windows 2003 Shadow Copies
To let client computers access previous versions of files, you need the Previous Versions Client application, which comes with Vista and Windows 2003. You can also install the Previous Versions Client on Windows XP Professional SP1 (you'll find the twcli32.msi file in the %Windir%\System32\Clients\ Twclient\X86 folder on the Windows 2003 CD-ROM) and on Windows 2000 (download the Win2K version from the Microsoft Web site at http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=e382358f-33c3-4de7-acd8a33ac92d295e&displaylang=en). To install the client on users' PCs, double-click the file or deploy it through Group Policy or Microsoft Systems Management Server (SMS).

Shadow copies were designed to be used with the Common Internet File System (CIFS—an enhanced version of the Server Message Block protocol), so to access previous versions of a file or folder on a server, you must connect through a shared folder. Even if you're logged on to a server, you need to connect through a Universal Naming Convention (UNC) path. For example, to access the previous versions of a file that's stored on a server named UptownDC in a shared folder named Sales, you'd click Start, Run and type

\\Uptowndc\sales 

Click OK, then right-click the file you want to see and select Properties. The Previous Versions tab lists the snapshots and shows the date and time they were taken, as Figure 2 shows. You'll also see three options: View, Copy, and Restore. View opens a read-only copy of the file, which is useful for determining which previous version you need. The Restore option restores the document and its NTFS permissions and encryption settings to the original location, overwriting the current version. The safer choice is Copy, which lets you copy the file to a new location.

   Previous  [1]  2  3  Next 


Reader Comments
Exactly how does one use the VSS service to duplicate a SAN volume to another LUN?

Tobias Schmidt June 15, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Learning Path To learn more about Volume Shadow Copy Service (VSS)
"What's the Windows Server 2003 Volume Shadow Copy Service (VSS)?"

"Volume Shadow Copy Service"


Top Viewed ArticlesView all articles
Accessing Database Data with ADO

...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...


Storage Whitepapers Enhancing Operational Recovery with TimeData CDP

Virtualizing Microsoft Exchange Server 2007

StoreVault SnapManagers for Microsoft Exchange and SQL Server

Related Events Check out our list of Free Email Newsletters!

Storage eBooks A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Keeping Your Business Safe from Attack: Encryption and Certificate Services

Related Storage Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Maximize your SharePoint Investment – 8 Cities
Discover best practices and tips for both architecting and administering SharePoint. Early Bird Price of $99 through Sept 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



Increase Application Performance
Free White Paper by Editor's Best winner, Texas Memory Systems.

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing