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

NetLeverage
NetLeverage

VSS error 0x8004231F (VSSControl: -2147467259): insufficient storage to create the shadow copy

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.

A backup that fails with Cannot create a shadow copy of the volumes containing writer's data and Code: [0x8004231f] could not get enough disk space for the shadow copy. Veeam's knowledge base names three causes: not enough free space on a volume, a shadow storage limit that is too small, or a volume larger than VSS supports. The first is the most common, and it can be a small system partition rather than the data volume.

What the error means

When a backup product asks Windows for a shadow copy, Volume Shadow Copy Service has to store the changes made while the copy exists. That space is the shadow copy storage. If it cannot be found at creation, the request fails and the whole shadow copy set fails with it. Microsoft's provider documentation says that "If any provider fails a shadow copy on any volume or LUN in the shadow copy set, then the creation of the entire shadow copy set fails."

Veeam's KB1794 shows the full job error as VSSControl: -2147467259 Backup job failed. Cannot create a shadow copy of the volumes containing writer's data. VSS asynchronous operation is not completed. Operation: [Shadow copies commit]. Code: [0x8004231f]. It says the value to look for is "either: -2147467259 or 0x8004231f".

Microsoft's developer documentation for providers names the same value. Its page for IVssProviderCreateSnapshotSet::EndPrepareSnapshots lists VSS_E_INSUFFICIENT_STORAGE as 0x8004231FL and describes it as "There is not enough disk storage to create a shadow copy." It adds that "Insufficient disk space can also generate VSS_E_PROVIDER_VETO or VSS_E_OBJECT_NOT_FOUND error return values." The same page lists VSS_E_PROVIDER_VETO as 0x80042306L, so a low-space fault can also surface under that code. Microsoft's IVssBackupComponents::DoSnapshotSet page says VSS_E_INSUFFICIENT_STORAGE is "only returned via the QueryStatus method" of the asynchronous interface the call returns, which fits the "VSS asynchronous operation is not completed" wording in Veeam's message. The link between the two is advice, not a statement on either Microsoft page. The same page suggests deleting "any old or unnecessary persistent shadow copies and try again".

This differs from a failure on an existing shadow copy. Volsnap events about shadow copies being deleted after storage could not grow are covered in 'The shadow copies of volume were deleted': volsnap events 25, 33 and 36 and shadow copy storage that cannot grow. Here the copy is never created.

Likely causes

Cause What you see How to confirm
Low free space on a volume in the snapshot set, including the System Reserved Partition Fails on a server whose volume is nearly full Free space per volume in Disk Management
Shadow storage limit smaller than needed Volume has room, but the limit is small vssadmin list shadowstorage shows a small maximum for that volume
Volume larger than 64 TB Fails on the largest volume only Volume size above the limit Veeam names
Old persistent shadow copies using the space Low free space on a volume that holds many shadow copies vssadmin list shadows and vssadmin list shadowstorage
A job that reports 0x80042306 (VSS_E_PROVIDER_VETO) Veeam's KB1794 also shows Code: [0x80042306] without explaining it; Microsoft says insufficient disk space can generate this value Same free-space and storage checks as above, plus the Application log event the provider must write
Event 8193 "Cannot find anymore diff area candidates for volume" VSS event 8193 naming a volume GUID Veeam KB2188: the maximum shadow storage size is too small

Prove the cause before changing anything

The six steps in this section only read. The test described after them creates a shadow copy.

  1. Check free space on every volume in the machine that cannot be backed up. Veeam says to use Disk Management (diskmgmt.msc) to view free space on each NTFS volume, and notes this can include the System Reserved Partition. A bad result is a volume close to full. Veeam says 15-20% free space is often required on busy volumes and that Microsoft Support has recommended at least 42 MB free on the system reserved partition.

  2. List the shadow storage associations. Microsoft's page says vssadmin list shadowstorage lists the associations and reports the disk space the storage uses.

vssadmin list shadowstorage

Veeam says that if no storage exists for any volume, the response is "No items found that satisfy the query." A volume with a small maximum is the second cause.

  1. If the event is 8193, find which volume the GUID belongs to. Veeam's KB2188 says to run mountvol from a command prompt; the list below the usage text maps volume GUIDs to mount points.
mountvol
  1. List the existing shadow copies. Microsoft's DoSnapshotSet page suggests deleting old or unnecessary persistent shadow copies when this error occurs, so you need to know whether there are any. Microsoft's page says vssadmin list shadows lists existing volume shadow copies.
vssadmin list shadows

Many old copies on the volume that is short of space point to the fourth row of the table. A short or empty list points back to free space or the storage limit.

  1. Read the Application log around the failure time. Microsoft's EndPrepareSnapshots page says a provider that returns VSS_E_PROVIDER_VETO must describe the error in an entry in the application event log. An entry from the provider or VSS at the failure time names the volume involved.

  2. Optional: list the volumes eligible for shadow copies.

vssadmin list volumes

Risk: the test in the next paragraph creates and deletes a shadow copy, which uses shadow storage, and with Diskshadow it tells the writers a backup has happened. KB1980 notes that some applications, such as Exchange, truncate transaction logs in response. It is described here and not scripted.

Veeam's KB1794 describes a way to find the failing volume by creating and deleting a shadow copy of each volume one at a time in the Shadow Copies utility, and it warns that manual tests can give false positives when the same heavy load is not occurring. KB1980 describes the same test with Diskshadow.

Fix

Veeam's order is: free or add space first, then change shadow storage. For virtual machines Veeam says the simplest fix is usually to enlarge the virtual disk and then expand the volume in Disk Management. Changing disk size is a separate change with its own planning and is not covered here.

Raise the shadow storage limit

This applies when vssadmin list shadowstorage shows an association for the volume and its maximum is small while the volume has free space. Veeam says that for busy servers a limit of 15-20% of the source volume's size is generally recommended.

First save the current state:

vssadmin list shadowstorage > shadowstorage-before.txt

Risk: the next command changes the maximum amount of space shadow copies may use on a volume. Microsoft's vssadmin page warns that "Resizing the storage association may cause shadow copies to disappear." Existing shadow copies of that volume can be lost.

Resize the association. The command takes /for, /on and /maxsize. Veeam's KB2188 gives this example for a 1 TB volume D: with storage on D:

vssadmin resize shadowstorage /for=D: /on=D: /maxsize=200GB

For Windows Server 2025, 2022, 2019 and 2016 and Windows 11 and 10, Microsoft's page shows /maxsize in square brackets, which marks it as optional, and says that with no value for /maxsize there is no limit on the space; it also lists /MaxSize=UNBOUNDED. Veeam's KB2188 says the parameter "is not optional". Always give a value, as in Veeam's example, so the result does not depend on which statement applies to your server.

To undo it: read the previous maximum from shadowstorage-before.txt, which prints sizes with decimals or as UNBOUNDED, so convert it to a whole value in KB, MB, GB or larger units as Microsoft's page requires (or use /maxsize=UNBOUNDED), and run the same command with that value, then check with vssadmin list shadowstorage. Shadow copies that disappeared during the resize do not come back.

vssadmin resize shadowstorage /for=D: /on=D: /maxsize=<previous value from shadowstorage-before.txt>

Where no association exists, Veeam's KB1794 uses vssadmin add shadowstorage with the same three parameters. Microsoft's vssadmin page does not list that subcommand, and neither source gives a way to remove an association, so no command for it is given here.

Redirect shadow copies to another volume

Veeam's KB1794 describes moving the shadow storage association to a volume with enough free space, from the Shadow Copies utility (Configure Shadow Copies on a volume, then Settings, then Located on this volume) or from the command line. Its page ends the utility steps with "Manual changes may cause software malfunction." and the page gives no way to undo it, so no steps for it are given here and it should not be done from this page. Moving the association changes where this volume's shadow copies are stored. The page warns against redirecting shadow copies at host level or guest level for Hyper-V 2012 R2 and older, and says a volume larger than 64 TB cannot be selected as the storage area.

Volume larger than 64 TB

Veeam says Microsoft VSS supports volumes up to 64 TB. A larger volume needs a different volume layout, which is outside this error.

Example (illustrative): fs01 has data volume D: of 1,000 GB with 380 GB free. The job fails with Code: [0x8004231f]. vssadmin list shadowstorage shows a maximum of 50 GB for D:. The arithmetic: 15% of 1,000 GB is 150 GB and 20% is 200 GB, so 50 GB is well below the range Veeam suggests. The engineer saves the listing, resizes the association to 200 GB, which fits in the 380 GB free, and runs the job again.

Confirm the fix

  1. vssadmin list shadowstorage shows the new maximum for the volume.
  2. Free space on every volume is above the figures in the checks.
  3. The backup job completes its shadow copy step without 0x8004231f.

What to watch afterwards

  • Free space on small partitions such as System Reserved, which are easy to forget.
  • Shadow storage that is set to a percentage of a volume that has since grown or shrunk.
  • Busy volumes, where Veeam says more headroom is often needed.
  • A job that fails only at certain times, since Veeam says load at specific times can cause intermittent errors.
  • The maximum shown by vssadmin list shadowstorage after any resize; Microsoft's resize page also says the minimum shadow storage can be set with the MinDiffAreaFileSize registry value, so a changed value there changes what a volume reserves.
  • The number of shadow copies on each volume, using vssadmin list shadows, since old copies hold space.

Risks and limits

  • These commands have not been run or lab-tested.
  • Resizing shadow storage can delete existing shadow copies, as Microsoft warns.
  • The 15-20% and 42 MB figures come from Veeam, which attributes the 42 MB figure to Microsoft Support; Microsoft's vssadmin pages give no recommended size; the resize page's /MaxSize=20% is only a syntax example.
  • The job messages quoted are the ones Veeam shows. Microsoft's pages give the code, its symbolic name and a short description, not the longer Windows wording some backup products print.
  • Microsoft's DoSnapshotSet advice to delete old persistent shadow copies is not scripted here: deleting shadow copies removes restore points that cannot be recovered.

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

Sources