What is Volume Shadow Copy Service (VSS) in Windows?
In this article
Volume Shadow Copy Service (VSS) is a Windows technology framework that allows the system to take "snapshot" backups of data, including files and volumes, even when those files are currently being used by applications or the operating system. It solves the problem of "locked files" by creating a point-in-time copy of the data without requiring the user to close open programs.
Defining VSS and Its Origin
VSS, or Volume Shadow Copy Service, is a standard technical term used in Windows administration. It is not slang or informal language; it is the official name of the service provided by Microsoft. The term originates from the concept of a "shadow," which in computing refers to a copy of a volume that is maintained in the background without interfering with the primary data stream.
In a practical sentence, a technician might say: "The backup failed because the VSS provider encountered an error while attempting to create a snapshot of the C: drive." In this context, it refers to the underlying mechanism that ensures data consistency during a backup operation.
How Volume Shadow Copy Service Works
VSS does not simply copy files; it coordinates a complex interaction between three main components to ensure that the backup is "crash-consistent" or "application-consistent."
- VSS Requestor: This is the software that initiates the backup, such as Windows Backup or a third-party imaging tool. It tells VSS to create a snapshot.
- VSS Coordinator: This is the core Windows service that manages the process. It communicates between the requestor and the writers.
- VSS Writers: These are components within applications (like SQL Server or Active Directory) that ensure the data is in a stable state before the snapshot is taken. For example, a writer tells a database to flush its cache to the disk so the backup isn't corrupted.
When a snapshot is triggered, VSS uses a "copy-on-write" method. Instead of copying the entire hard drive immediately, it tracks changes. If a block of data is modified while a snapshot exists, the original version of that block is saved to a separate storage area (the shadow copy storage). This allows the system to present the data exactly as it looked at the moment the snapshot was created.
Common Use Cases for VSS
VSS is the foundation for several features that Windows users interact with daily, though they may not realize VSS is running in the background.
- System Restore: This feature uses VSS to create restore points. If a driver update causes a system crash, Windows can revert the system files to a previous VSS snapshot.
- Previous Versions: When you right-click a folder and select "Restore previous versions," you are accessing a shadow copy created by VSS.
- Enterprise Backups: Server administrators use VSS to back up active databases and virtual machines without taking the services offline.
Common Problems and Troubleshooting
VSS errors are common during backup processes, often manifesting as "VSS snapshots failed" or "Shadow copy storage limit reached." Because VSS relies on multiple components, a failure in one writer can stop the entire process.
If a VSS-related backup fails, try these steps in order (labels may differ slightly by Windows version):
- Restart the computer to clear any hung VSS writers.
- Check the service status: Open the Services app (search for "Services" in the Start menu), find "Volume Shadow Copy," and ensure its status is not "Disabled."
- Check disk space: VSS requires a certain amount of free space on the drive to store the shadow copies. If the drive is nearly full, snapshots will fail.
- Run a system file check: Open Command Prompt as Administrator and run
sfc /scannowto repair corrupted system files that might be affecting the VSS coordinator.
VSS vs. Traditional File Copying
It is a common misconception that VSS is just another way to copy files. There are critical differences between a standard copy-paste operation and a VSS snapshot:
- Locked Files: A standard copy cannot move a file that is open in another program (you will see a "File in use" error). VSS bypasses this by capturing the state of the disk at the block level.
- Consistency: A standard copy of a database while it is running may result in a "torn page," where half the file is from one point in time and half is from another. VSS writers ensure the database is paused or flushed, creating a consistent image.
- Storage: Standard copies take up full disk space immediately. VSS snapshots only store the changes (deltas), making them more storage-efficient until the snapshot is deleted.
If That Did Not Work
If the VSS service continues to fail after the basic troubleshooting steps, the issue may be a corrupted VSS provider. In some cases, third-party backup software installs its own VSS provider which conflicts with the default Windows provider. Uninstalling the third-party backup tool or checking for updates from the software vendor is the safest way to resolve these conflicts.
Frequently Asked Questions
Does VSS slow down my computer?
Generally, no. VSS is designed to run in the background with minimal impact. However, during the actual creation of a snapshot or when a large number of files are being changed (causing high copy-on-write activity), you may notice a slight dip in disk performance.
Can I use VSS to recover a file I deleted permanently?
Only if "System Protection" was enabled for that specific drive and a snapshot was taken before the file was deleted. If you have "Previous Versions" configured, you can restore the folder to a state that still contained the file.
Is VSS the same as a full system backup?
No. VSS is the mechanism used to create the snapshot. A backup software uses VSS to get a clean copy of the data and then saves that copy to an external drive or cloud storage. A shadow copy stored on the same disk as the original data is not a true backup because if the disk fails, both the original and the shadow copy are lost.
Why is the Volume Shadow Copy service set to Manual?
In Windows, the VSS service is typically set to "Manual" by default. This means it does not run constantly in the background; instead, it starts automatically when a requestor (like Windows Backup) asks for a snapshot and stops when the task is complete to save system resources.