VSS: Description, Compatibilities, and Troubleshooting Resources

This article explains the Volume Shadow Copy Service, and how it interacts with the Datto backup solution. Use this article as an aid when troubleshooting backup issues.

Environment

  • Datto ALTO
  • Datto SIRIS

Description

Microsoft's Shadow Copy Provider's Volume Shadow Copy Service, also commonly known as VSS, is used to take image-based backups. VSS is composed of the following:

  • VSS Writer: This writer tells the backup tool how to back up the application and its data. A VSS writer must be present for the Volume Shadow Copy Service to quiesce (freeze) the program to take an application-aware backup.
  • VSS Requestor: This is the writer that initiates the backup process.
  • VSS Provider: This writer allows the VSS backup process to work with the system's hardware and operating system. The VSS provider is responsible for taking a snapshot. The VSS provider and its associated driver are required for this snapshot to take place.

For VSS backup solutions, only one process on the production machine can use the VSS writers at a time. If more than one of these processes are running in the same environment, a conflict between the solutions will happen, resulting in one or more VSS Writers failing.

Considerations

The VSS service will not run on windows volumes larger than 64TB. For more information on this refer to: Usability limit for Volume Shadow Copy Service (VSS) (external link)

The difference between VSS backups and DBD backups

On Windows systems, Datto's agent-based backup software uses the Microsoft Shadow Copy Provider to perform the initial step of the backup process. If the Microsoft Shadow Copy Provider's VSS writers encounter an error, the Datto Windows Agent will fail over to the Datto Snapshot Driver, referred to as the Datto Backup Driver, bypassing the VSS backup process. The Datto Backup Driver generates backups in a crash-consistent state. Data in processing at the time of the backup may not save correctly.

  • Crash-consistent backups are a concern for systems running any services that include a VSS writer for backups (such as database services). For instance, if the VSS writer for a database fails, recent transactions for that database may not back up.

Application-Aware VSS refers to the Microsoft Shadow Copy Provider. This VSS provider interacts with supported applications to provide backups as the applications are running.

Troubleshooting Writers

For modern Windows systems VSS troubleshooting is often tied to the associated service of the writer, such as SQL or Exchange opposed to directly re-registering the binaries. Repairing the installation of these services can assist in fixing the health of the associated writer.

If the system writer or many VSS writers are unhealthy then overall health should be addressed.

  1. Make sure that all available Windows Updates have been applied to the protected server in question

  2. Perform an sfc scan on the protected machine to verify system health.

    sfc /scannow

    If this fails to repair the system, DISM may also be required.

    DISM /Online /Cleanup-Image /RestoreHealth

    When DISM is run, it is considered best practice to run the SFC scan again immediately after.

  3. List the VSS writers from the command line after the repairs to see their state.

    vssadmin list writers

  4. If the writers look healthy, attempt another backup. After which, check the status of the writers again.

Missing writers

If any of the VSS writers are listed as "missing" it could be related to a permissions issue for files on the system. For more information on this type of error, please refer to Microsoft's documentation (external link).

Additional Resources

The following external knowledge articles provide resources for troubleshooting and optimizing VSS writers in the Windows environment.