public:5216_issue:cannot_start_shadow_copy_reason_the_writer_operation_failed_because_of_an_error_that_might_recur_if_another_shadow_copy_is_created._vss_e_writererror_nonretryable

ISSUE: “Cannot start shadow copy, reason =The writer operation failed because of an error that might recur if another shadow copy is created. (VSS_E_WRITERERROR_NONRETRYABLE)”

Article ID: 5216
Reviewed: 12/12/2016

Product Version:
AhsayOBM: 7.5.0.0 or above
OS: Windows

Problem Description

When performing either a scheduled or manual MS SQL database backup job, where there are a large number of databases selected in the backup source. The following backup error is received in the backup report:

No. Type Timestamp Log
* ... ... ...
* info ... [Start] Backing up database...
* erro YYYY/MM/DD hh:mm:ss Cannot start shadow copy, reason =The writer operation failed because of an error that might
recur if another shadow copy is created. (VSS_E_WRITERERROR_NONRETRYABLE)
* ... ... ...

Cause

The error message is returned by MS SQL VSS writer, suggesting that there were insufficient number of worker threads configured on the MS SQL Server to support the backup all databases selected for backup.

A MS SQL Server databases backup job using VSS requires three worker threads per database. For example, a 64 bit MS SQL server with 4 CPUs is automatically configured with 512 work threads, which implies that the maximum number of databases that can be selected for backup is 170.

Please refer to the Limitations and Restrictions section in the following article for more details:
https://msdn.microsoft.com/en-us/library/ms190219.aspx

Resolution

To resolve this issue, either:

1. Create additional backup sets (to be performed at different time) for the excess databases.

or

2. Increase the maximum number of worker threads on the MS SQL Server.

To configure the max worker threads option:

  • In Object Explorer, right-click a server and select Properties.
  • Click the Processors node.
  • In the Max worker threads box, type or select a value for the max worker thread.
For more details, refer to the following article: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-the-max-worker-threads-server-configuration-option

Important:
Please consult with an experienced database administrator or certified SQL Server technician before making any change to the maximum worker threads.

Keywords

MS SQL Server, worker threads, max, databases

public/5216_issue/cannot_start_shadow_copy_reason_the_writer_operation_failed_because_of_an_error_that_might_recur_if_another_shadow_copy_is_created._vss_e_writererror_nonretryable.txt · Last modified: 2018/06/28 10:34 by mike.gong