Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Synology Active Backup for Business "Failed to take snapshots for the specific volume" (0x80042301): find the VSS cause on the Windows server

Technical article
Backup & Recovery

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When an Active Backup for Business task for a Windows server cannot snapshot a volume, Synology's error code index describes 0x80042301 and 0x80042302 as "Failed to take snapshots for the specific volume." The snapshot is made by Windows Volume Shadow Copy Service (VSS) on the protected server, so the fix starts there. Read the exact code in the task's log first, because Synology gives a different cause and fix for each of about ten related codes.

What the error means

Active Backup for Business reads a consistent view of each volume through a VSS snapshot. If Windows cannot create one, the agent reports a code. Synology's index of backup and restore error codes lists these snapshot codes for Windows PCs and physical servers:

Code Synology's description
0x80042301, 0x80042302 Failed to take snapshots for the specific volume.
0x80042306, 0x8004230F An error occurred when certain Volume Shadow Copy Service providers on the PC created snapshots.
0x8004230C The device fails to take a snapshot for a volume.
0x80042313 Excessive activities on the volume might have caused a failure to take snapshots for the volume.
0x80042316 Other applications or systems are creating VSS snapshots.
0x80070008 Volume Shadow Copy Service cannot allocate enough system resources to take a snapshot.
1, 21, 0x8004231f Insufficient shadow storage reserved for use by third-party software.
23 The disk selected for backup has bad sectors.

Synology's pages do not use the words "Failed to create snapshot"; they say "Failed to take snapshots for the specific volume". The 0x80042301 page adds that the error "can also occur on volumes larger than 64 TB, which aren't supported by Windows VSS (Volume Shadow Copy Service) or snapshots."

Likely causes

Cause What you see How to confirm
A VSS service is stopped or not automatic 0x80042301 In services.msc, Microsoft iSCSI Initiator Service, Microsoft Software Shadow Copy Provider and Volume Shadow Copy are not Automatic and Running
A VSS writer is not stable 0x80042301, 0x8004230C vssadmin list writers shows a writer that is not Stable
Another VSS provider or another snapshot in progress 0x80042316, 0x8004230F, 0x80042306, 21 vssadmin list providers shows more than the Microsoft providers
Shadow storage too small 21 (0x8004231f) Volsnap event ID 35 in the Windows Event Viewer; vssadmin list shadowstorage
Bad sectors or I/O errors 21, 23 chkdsk reports bad sectors on that volume
Windows cannot allocate resources 0x80070008, sometimes with 0x80042301 Exported agent and Windows event logs

Prove the cause before changing anything

All of these read only. Run the commands in an elevated Command Prompt on the protected server.

  1. Get the code. Synology's page for 0x80070008 says to right-click the agent icon in the system tray and choose Troubleshoot > Export Logs, which exports the agent logs and the Windows system event logs.
  2. List the writers. Synology says every writer should be Stable; Microsoft documents the command as listing subscribed volume shadow copy writers.
vssadmin list writers
  1. List the providers. Synology expects only Microsoft Software Shadow Copy Provider and Microsoft File Share Shadow Copy Provider (the 0x8004230F page names only the first). If Synology VSS HW Provider appears, its page says to uninstall Synology Storage Console for Windows.
vssadmin list providers
  1. List shadow storage. Microsoft documents this command as showing where shadow copy storage resides and how much space it consumes.
vssadmin list shadowstorage
  1. Check Event Viewer for Volsnap events from the time of the failure. Synology says event ID 35 "means the system couldn't allocate more space for the shadow copy."

Fix

Apply only the fix that matches the code.

Services or writers (0x80042301, 0x8004230C)

For 0x80042301, Synology says to make sure the Startup types of the three services above are Automatic, restart each with Stop then Start in services.msc, and make sure the three show Running. For a writer that is not stable, its page says to restart the related service and check the writers again; for example, it says the Oracle VSS Writer "could cause snapshots failed to be taken." The 0x8004230C page says to stop an unstable VSS writer rather than restart it. The four net stop and net start commands below come from Synology's 0x80070008 page, which gives them for a device that cannot be restarted.

First save the current state. Write each of the three services' current Startup type in a text file named services-before.txt, and save the writers:

vssadmin list writers > writers-before.txt

Disruptive step: the next steps change the Startup type of the three services and stop and start them, so any backup or snapshot running on this server at that moment fails.

In services.msc, set each of the three services to Automatic and restart it with Stop then Start. If the device cannot be restarted, Synology's 0x80070008 page gives these four commands; run them outside backup hours:

net stop vss
net start vss
net stop swprv
net start swprv

To back out: set each service back to the Startup type noted in services-before.txt, and if a service is left stopped, start it with net start vss or net start swprv, or from services.msc. Then run vssadmin list writers again and compare with writers-before.txt. Synology adds that a restart may fix the problem only temporarily, and if the error returns, to contact Microsoft Support.

Other providers and concurrent snapshots (0x80042316, 0x8004230F, 0x80042306, 21)

Synology says to remove other backup software and any VSS provider beyond the Microsoft ones before retrying. If no other provider is present, the code can come from compatibility issues, and Synology names Reboot Restore Rx, TuneUp Utilities 2009 to 2011 and Kaspersky Removal Tools as software to remove or discuss with the vendor. For Synology Drive Client, run backups in manual mode or schedule them when the agent is not backing up.

First save the current state, and keep the installer of the software you are about to remove:

vssadmin list providers > providers-before.txt

Risk: the next step uninstalls software that supplies a VSS provider or runs its own backup, which removes the protection it gave this server.

Uninstall the software that owns the extra provider, with the software's own uninstaller, after you have confirmed with its owner that it is not needed. Run vssadmin list providers again.

To back out: reinstall the software from the installer you kept, and compare the provider list with providers-before.txt.

Shadow storage too small (21 or 0x8004231f)

Synology's page describes raising the cap on shadow copy storage for the volume where snapshots failed. Microsoft warns that "Resizing the storage association may cause shadow copies to disappear."

First save the current state:

vssadmin list shadowstorage > shadowstorage-before.txt

Risk: the next steps raise the cap on shadow copy storage for the volume. As our own reading, with no limit shadow copies can grow until the volume is full, and existing shadow copies may disappear.

On Windows Server, in File Explorer right-click a disk and choose Configure Shadow Copies, select the volume where snapshots failed, click Settings, change Maximum size to No limit, and back up again. On Windows 11, 10 and 7, Synology's page sets Max Usage instead, trying 100% first.

To back out: set Maximum size (Windows Server) or Max Usage (Windows 11, 10 and 7) back to the figure in shadowstorage-before.txt, and run vssadmin list shadowstorage to confirm. After a backup, Synology says to compare Current Usage with Max Usage; if it nearly reaches the maximum, switch to a larger drive.

Bad sectors (21, 23)

Synology's code 21 page says to run chkdsk /F /R X: on the volume where snapshots failed, replacing X with that volume's letter. The safe sequence for a repair is in NTFS event 55 and 98: 'The file system structure on the disk is corrupt and unusable' on Windows Server. Read the status of the volume first. Microsoft's page says that used without parameters, chkdsk displays only the status of the volume and does not fix any errors:

chkdsk X:

First save the current state: copy the data you cannot lose from the volume to separate storage, and keep the shadow storage listing:

vssadmin list shadowstorage > shadowstorage-before-chkdsk.txt

Disruptive step: the next command checks the volume and repairs file system errors and bad sectors. Microsoft's page says /f fixes errors on the disk and /r locates bad sectors and recovers readable information, and that the disk must be locked, so the volume is unavailable to other use while it runs. Microsoft says a check with /r might take a long time on a large volume. Microsoft's page gives no way to undo a repair. Synology's page says that if the volume is in use by another process, chkdsk can ask to schedule the check for the next restart.

Run the repair on the volume where snapshots failed:

chkdsk /F /R X:

Microsoft's page gives no way to undo the repair itself. The copy of the data saved first is the way back. Then run chkdsk X: again to read the status.

Resources (0x80070008)

Synology's 0x80070008 page describes this sequence: temporarily disable or uninstall antivirus or endpoint protection that intercepts VSS, restart the device, then repair system files with DISM /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow. Before the sequence, the page says to make sure the VSS-related services are running and all VSS writers are stable.

First save the current state: write down the antivirus or endpoint protection product, its version and whether protection is on, in a text file named protection-before.txt, and save the writers:

vssadmin list writers > writers-before-resources.txt

Disruptive step: the next steps turn off or remove antivirus or endpoint protection that intercepts VSS, which leaves the server without that protection, and then restart the device, which interrupts any job running on it.

Disable or uninstall the protection software, then restart the Windows device. If the device cannot be restarted, restart the VSS-related services with the four net stop and net start commands in the section above.

To back out of this part: turn the protection back on, or reinstall the product recorded in protection-before.txt, and compare vssadmin list writers with writers-before-resources.txt.

Disruptive step: the next commands repair the Windows component store and replace corrupted Windows system files. Synology's page gives no way to undo them, so none is offered here, and DISM may need to download repair files from Windows Update, so the server needs Internet access.

Run these in an elevated Command Prompt, one after the other:

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Synology says to run sfc /scannow after DISM completes, so the required repair files are available. Restarting the device or the services may fix the problem only temporarily; if the error returns, Synology says to contact Microsoft Support.

Example (illustrative): fs01 runs Windows Server and is protected by a task to nas01. The task fails with 21 (0x8004231f). Event Viewer shows Volsnap event 35. vssadmin list providers shows only the two Microsoft providers, and vssadmin list writers shows every writer Stable. vssadmin list shadowstorage shows a maximum of 20 GB on the 200 GB volume (10% of 200 GB) and a used figure at that maximum. The administrator saves the output, sets Maximum size to No limit, and the next backup passes.

Confirm the fix

  1. vssadmin list writers shows every writer Stable.
  2. The task completes with no error code.
  3. After the backup, Current Usage is clearly below Max Usage.

What to watch afterwards

  • Run vssadmin list writers before the next backup window.
  • Watch for Volsnap event 35 after each run.
  • Repeat of the same code after a restart means the cause is not fixed; Synology says a restart can clear it only temporarily.

Risks and limits

  • These commands have not been run or lab-tested.
  • The 0x80042313 code has separate steps on Synology's page "How do I fix Active Backup for Business error code 0x80042313?" (last updated 29 Apr 2021): moving the paging file, changing the location of shadow copy storage, and a CreateTimeout registry value. They are not covered here.
  • Synology gives no ActiveProtect Manager or Active Backup for Business version range for most of these pages; the 0x8004230C page says Active Backup for Business earlier than 2.1.0 can fail on Windows 10 build 1903 or newer.
  • Removing providers or software changes the server's other protection.

NetLeverage includes a daily full disaster-recovery backup of each hosted server at no extra charge. Talk to an engineer.

Sources