add-circle-bold add-circle add-square add alarm-bell-1 alert-diamond analytics-pie-2 archive archive arrow-down-1 arrow-down-2 arrow-left-1 arrow-right-1 arrow-up-1 attachment-1 bin-paper-1 book-star button-record check-1 check-circle-1 close close-quote close cog-1 cog common-file-stack copy-paste credit-card-1 diagram-fall-down disable time-clock-midnight download-thick-bottom drawer-send envelope-letter envelope-letter expand-6 expand-6 file-code filter-1 floppy-disk flying-insect-honey folder-file-1 headphones-customer-support hierarchy-9 hyperlink-2 information-circle keyboard-arrow-down keyboard-arrow-up layout-module-1 list-bullets lock-2 lock-unlock-1 love-it messages-bubble-square move-to-top multiple-circle multiple-neutral-1 multiple-users-1 navigation-menu-horizontal navigation-menu network-browser open-quote pencil-1 pencil-write pencil-1 print-text rating-star rating-star remove-circle remove-square-1 search send-email-1 shield-warning single-neutral-actions single-neutral smiley-sad-1 smiley-unhappy smiley-indifferent smiley-smile-1_1 smiley-happy smiley-sad-1 smiley-unhappy smiley-indifferent smiley-happy smiley-thrilled social-media-twitter synchronize-arrows-1 tags-double ticket-1 ticket-1 time-clock-circle undo view-1 view-off view wench

Managing Windows Volume Shadow Copy (VSS) Storage

Use this article when DATASTOR Shield backups fail because Windows Volume Shadow Copy (VSS) could not create or grow a snapshot. Related errors: 0x80042308, Volsnap Events 25, 33, and 36.

All commands require an elevated Command Prompt or PowerShell (Run as administrator).

Important: two different limits

The Maximum Shadow Copy Storage size is only a cap. VSS still needs real free space on the storage volume to grow the copy-on-write file while a backup is running.

Example: a 2 TB volume with a 215 GB (10%) cap will still abort the snapshot if the volume itself has only a few gigabytes free.

1. Inspect current state (read-only)

Run these first. They are safe and do not change settings.

vssadmin list shadowstorage
vssadmin list shadows
vssadmin list writers
vssadmin list providers
CommandWhat to look for
list shadowstorageUsed / Allocated / Maximum per volume. Note whether storage is on the same volume as the data (For = On).
list shadowsExisting snapshots. After an Event 25 purge, this list is often empty for that volume.
list writersEvery writer should show State: [1] Stable and Last error: No error. A failed writer can fail the next backup even after space is freed.

2. Recommended size limits

  • Do not set production data volumes to UNBOUNDED. Persistent Previous Versions will consume the drive.
  • Do not cut the cap so low that a backup snapshot cannot grow.
  • Keep 10–15% of the volume free at all times. That free space is what VSS actually writes into during the job.
Volume sizeSuggested maximumNotes
Up to 256 GB15–20%, or 10–20 GBLeave at least 15% free on the volume
256 GB – 1 TB10–15%Typical system / mixed-use disks
1 TB and larger5–10%, or a fixed GB capA 2 TB D: at 10% = ~200 GB max — use a fixed cap if you do not need Previous Versions
OS volume (C:)10–15%, at least 10 GBRaise the cap if Used is already near Maximum

3. Resize the cap on the same volume

Replace D: with the volume you are changing. Lowering the max deletes the oldest shadows if current usage is above the new cap.

Fixed size (preferred on large data volumes):

vssadmin resize shadowstorage /For=D: /On=D: /MaxSize=50GB

Percentage of the volume:

vssadmin resize shadowstorage /For=D: /On=D: /MaxSize=10%

No cap — avoid on production data drives:

vssadmin resize shadowstorage /For=D: /On=D: /MaxSize=UNBOUNDED

Valid MaxSize units: KB, MB, GB, TB. Minimum is 1 MB.

If no association exists yet, use add instead of resize:

vssadmin add shadowstorage /For=D: /On=D: /MaxSize=50GB

4. Relocate shadow storage off the data volume

Best fix when the data volume is full or I/O-heavy. Event 25 explicitly recommends a storage volume that is not being shadow-copied.

Requires Windows Server. E: must be a local NTFS volume with spare space, preferably not in the same backup set.

vssadmin add shadowstorage /For=D: /On=E: /MaxSize=50GB
vssadmin list shadowstorage

If a D:-on-D: association still exists and you want only E: to hold the diffs:

vssadmin delete shadows /For=D: /All
vssadmin delete shadowstorage /For=D: /On=D:
vssadmin add shadowstorage /For=D: /On=E: /MaxSize=50GB

5. Delete existing shadows

Caution: These commands remove restore points and Previous Versions for that volume. They do not delete live files. Use /All only when shadows are stuck, or after an Event 25 purge when you want a clean slate.

vssadmin delete shadows /For=D: /Oldest
vssadmin delete shadows /For=D: /All
vssadmin delete shadows /All

6. Restart VSS after a failed snapshot

If list writers shows a failed or waiting writer after a purge:

net stop vss
net stop swprv
net start swprv
net start vss
vssadmin list writers

If a writer is still not Stable, reboot once before the next scheduled backup.

Volume Shadow Copy startup type can stay Manual. Microsoft Backup and third-party backup (including DATASTOR Shield) start it on demand.

7. GUI path (same settings)

  1. File Explorer → right-click the drive → Properties → Shadow Copies.
  2. Select the volume → Settings.
  3. Set “Located on this volume”, a maximum size, or “No limit”.

The schedule on that tab is Previous Versions of Shared Folders. It shares the same storage pool as backup snapshots.

8. Event log quick reference

IDSourceMeaning
25VolsnapAll shadows on the volume deleted — storage could not grow in time (I/O or free space).
33VolsnapOldest shadow deleted to stay under the user-defined max.
36VolsnapShadows aborted because storage could not grow due to a user-imposed limit (max too small).
—Backup log0x80042308 (VSS_E_OBJECT_NOT_FOUND) — snapshot object gone; usually follows Event 25.

9. Checklist before the next backup

  1. Volume being snapshotted has at least 10–15% free space (not just a large MaxSize).
  2. vssadmin list writers — every writer Stable / No error.
  3. vssadmin list shadowstorage — Used is not sitting against Maximum on C: or the data volume.
  4. No large copy, delete, defrag, or full antivirus scan scheduled in the backup window.
  5. If Previous Versions is enabled on the data volume, reduce the schedule or cap so it cannot consume the whole pool.
  6. Re-run a test backup or wait for the next scheduled job and confirm the snapshot is created.

10. Worked example (typical 2 TB data volume)

Layout: Volume D: is about 2.15 TB. Shadow storage lives on D:. Maximum is 215 GB (10%). Used is small after Windows deleted the copies. C: is at 7.5 GB used of an 8.6 GB max.

Safe next steps:

vssadmin list writers
vssadmin resize shadowstorage /For=D: /On=D: /MaxSize=50GB
vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=15GB
vssadmin list shadowstorage

Keep several hundred GB free on D:. A 50 GB cap limits Previous Versions; it does not replace free space. If another local volume with spare capacity exists, relocate D: storage there instead of only shrinking the cap.

DATASTOR note

Backup software depends on Microsoft VSS for open files. Shadow storage size, free space, and I/O load are Windows settings. DATASTOR support can advise on these commands; changing them is performed by the customer’s administrator on the protected machine.