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

NetLeverage
NetLeverage

Proxmox Backup Server datastore full: why a prune frees nothing until garbage collection, and the 24 hour 5 minute wait

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 a backup to a Proxmox Backup Server datastore stops with the operating system error "No space left on device", deleting or pruning snapshots does not free the space by itself. The documentation says pruning removes only snapshot metadata, and that garbage collection deletes the chunks that hold the data. Garbage collection also keeps every chunk that was touched in the last 24 hours and 5 minutes, and the task log reports those chunks as "Pending removals".

What the error means

The Linux manual page errno(3) lists ENOSPC as "No space left on device". Proxmox Backup Server stores backup data as chunks, and each snapshot refers to chunks through index files. Deduplication means one chunk can be used by many snapshots.

Proxmox's maintenance page says that when a snapshot is pruned, "only the snapshot metadata (manifest, indices, blobs, log and notes) is removed". The chunks "previously referenced by the pruned snapshot, have to be removed by a garbage collection run". The client page repeats this: "Neither the prune command nor the forget command free space in the chunk-store."

Garbage collection runs per datastore in two phases. In phase one, the documentation says: "All index files are read, and the access time (atime) of the referenced chunk files is updated". In phase two, the task checks every chunk's access time against a cutoff. The documentation gives the cutoff as "either the oldest backup writer instance, if present, or 24 hours and 5 minutes before the start of the garbage collection". Chunks inside that window "will not be deleted and logged at the end of the garbage collection task as Pending removals". The page explains the margin: filesystems are usually mounted with relatime, which updates an access time only if the file changed since the last access or the last access was at least 24 hours ago.

Reading the proxmox-backup source at tag v4.2.10, the task log prints these lines, among others: "Using access time cutoff", "Removed garbage", "Removed chunks", "Pending removals" (only when the figure is above zero), "Original data usage", "On-Disk usage" and "Deduplication factor". The same source prints "Start GC failed - (already running/locked)" when a collection cannot start. Those wording details belong to v4.2.10 and may differ in other releases.

Likely causes

Cause What you see How to confirm
Snapshots were pruned but no collection has run since Snapshot list is shorter, datastore usage is unchanged The garbage collection status shows an old finish time or none
Collection ran, but the freed chunks were touched less than 24 h 5 min before it started A small "Removed garbage" figure and a large "Pending removals" figure The collection task log
Retention keeps more than the disk can hold Prune removes little; the datastore refills within days A prune dry run marks most snapshots to keep
No collection schedule is set Collection history is empty or very old The garbage collection list for all datastores
The datastore holds more unique data than the disk After the cutoff has passed, "On-Disk usage" is still close to the disk size Original data usage and On-Disk usage in the log
A collection is already running or the datastore is locked The start attempt fails with the "already running/locked" text The task log of the failed start

Prove the cause before changing anything

All commands in this section only read. Run them on the Proxmox Backup Server host.

  1. List the datastores and their paths. The manual shows the output as a table of name, path and comment.
proxmox-backup-manager datastore list
  1. Show collection status for every datastore, including datastores without a collection job, then for one datastore. The manual describes list as showing "garbage collection job status for all datastores, including datastores without gc jobs".
proxmox-backup-manager garbage-collection list
proxmox-backup-manager garbage-collection status store1

The manual does not show the format of the status output. Read it for the time of the last run: a recent run points to the cutoff as the limit, and an old or missing run means collection is not happening.

  1. List snapshots. The manual shows the snapshot name, size and files. Add --repository when you run the client from another host; the format is [[username@]server[:port]:]datastore.
proxmox-backup-client snapshot list --repository root@pam@pbs01:store1
  1. Simulate a prune for one group. The manual says --dry-run "only shows the list of existing snapshots and what actions prune would take". Its example output has a keep column holding 1 or 0 for each snapshot; read a 0 as a snapshot the options would not keep.
proxmox-backup-client prune vm/100 --dry-run --keep-daily 7 --keep-weekly 4 --repository root@pam@pbs01:store1
  1. List the prune jobs and show the one for the datastore.
proxmox-backup-manager prune-job list
proxmox-backup-manager prune-job show <id>

The log of the last collection is the task log of that run in the web interface. Read "Pending removals" and "On-Disk usage" there. The documentation describes no procedure for deleting files inside the .chunks directory by hand, so do not remove them.

Fix

The documented order is: prune, then collect, then wait out the cutoff if chunks are pending.

Prune the snapshots you no longer need

First save the current state:

proxmox-backup-client snapshot list --repository root@pam@pbs01:store1 > snapshots-before.txt

Risk: the next command permanently removes the snapshots that the retention options do not keep. The documentation gives no way to undo a prune or to restore a pruned snapshot. The dry run in step 4 above is the read-only step that selects and shows exactly which snapshots are removed; run it with the same options first and check every line marked 0.

Run the prune on one group with the options you chose:

proxmox-backup-client prune vm/100 --keep-daily 7 --keep-weekly 4 --repository root@pam@pbs01:store1

The documentation gives no undo for a prune. The file snapshots-before.txt records what existed; compare it with a new snapshot list to confirm that only the intended snapshots are gone.

The manual says "Unfinished and incomplete backups will be removed by the prune command unless they are newer than the last successful backup". A snapshot that carries the protected flag is not pruned: the documentation says setting the flag will "prevent pruning or manual deletion of this snapshot until the flag is removed again".

Run garbage collection

First save the current state:

proxmox-backup-manager garbage-collection status store1 > gc-status-before.txt
proxmox-backup-manager datastore show store1 > datastore-before.txt

Risk: the next command starts a collection that permanently deletes every chunk that no snapshot index refers to and that is older than the cutoff. The documentation gives no way to undo a collection or to recover deleted chunks. Collection has no preview. The documentation says chunks still referenced by a snapshot are kept, so the only read-only step is to confirm with snapshot list that every snapshot you need still exists.

Start the collection on the datastore:

proxmox-backup-manager garbage-collection start store1

The documentation says the same action is available in the web interface as the Start Garbage Collection button on each datastore's Prune & GC tab.

If the log shows pending removals

Wait. A chunk written or touched inside the window is removed by a later collection that starts after the window has passed. The documentation also says a long-running backup moves the cutoff: it is "the oldest backup writer instance, if present".

Set a schedule

The manual recommends a schedule: "For most setups a weekly schedule provides a good interval to start." A schedule is set per datastore on the Prune & GC tab or with the command below. First save the current state:

proxmox-backup-manager datastore show store1 > datastore-schedule-before.txt

Risk: the next command sets the schedule on which garbage collection permanently deletes unreferenced chunks with no person present. The documentation gives no way to recover deleted chunks.

Set the schedule on the datastore, using a calendar event of your choice in place of the placeholder:

proxmox-backup-manager datastore update store1 --gc-schedule <calendar-event>

To undo it: read datastore-schedule-before.txt. If it shows an earlier schedule, set that value back with the same --gc-schedule option. Only if it shows no gc-schedule line, remove the setting with this command:

proxmox-backup-manager datastore update store1 --delete gc-schedule

Then read the datastore again to confirm:

proxmox-backup-manager datastore show store1

Example (illustrative): pbs01 has a datastore store1 at /backup/disk1/store1, and the nightly backup of vm/100 has failed with "No space left on device". The administrator prunes vm/100 at 09:00 on 2 December and starts a collection at 09:10. The cutoff is 24 hours and 5 minutes, which is 24 x 60 + 5 = 1,445 minutes, so the minimum access time is 09:05 on 1 December. The snapshot taken at 22:00 on 1 December was one of those pruned, and the chunks written only by it are newer than that, so the log shows them as "Pending removals". A collection that starts after 22:10 on 2 December has a minimum access time of 22:05 on 1 December, later than 22:00, so those chunks are removed by it.

Confirm the fix

  1. proxmox-backup-manager garbage-collection status store1 shows a new finish time.
  2. The collection task log shows "Removed garbage" and "Removed chunks" above zero, and "Pending removals" absent or small.
  3. The host's own free-space figure for the datastore path has risen, and the next backup completes without the "No space left on device" error.

What to watch afterwards

  • Read "Pending removals" after each scheduled collection; a figure that never falls means backups or long-running writers keep touching the chunks.
  • Compare "Original data usage" with "On-Disk usage" over time. The Deduplication factor line is their ratio.
  • Check the failed-start text "already running/locked" if a scheduled collection never finishes.
  • Keep verification jobs running. Proxmox recommends reverifying all backups at least monthly; see Proxmox Backup Server verify failed: corrupt or missing chunks and what to do.

Risks and limits

  • These commands have not been run or lab-tested.
  • Prune and garbage collection delete data. The documentation gives no way to undo either.
  • The documentation pages show no date. The log wording was read in v4.2.10 source; the manual describes 4.2.14-1.
  • The tuning option gc-atime-cutoff exists, and the Backup Storage page describes it as the cutoff for which a chunk is still considered in use. Changing the default 24 hours 5 minutes is outside the documented procedure here; leave it unchanged.
  • The documentation describes no emergency procedure for a datastore that has no free space at all. Prune and collection are the documented route.
  • For a datastore that simply holds more unique data than its disk, the options are more capacity or less retention. Both are planning decisions.

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

Sources

  • Maintenance Tasks — Proxmox Backup 4.2.14-1 documentation, Proxmox Server Solutions GmbH, no date shown, accessed 2 December 2026
  • Backup Client Usage — Proxmox Backup 4.2.14-1 documentation, Proxmox Server Solutions GmbH, no date shown, accessed 2 December 2026
  • proxmox-backup-manager — Proxmox Backup 4.2.14-1 documentation, Proxmox Server Solutions GmbH, no date shown, accessed 2 December 2026
  • Backup Storage — Proxmox Backup 4.2.14-1 documentation, Proxmox Server Solutions GmbH, no date shown, accessed 2 December 2026
  • pbs-datastore/src/datastore.rs at tag v4.2.10 — proxmox-backup source repository, Proxmox Server Solutions GmbH, no date shown, accessed 2 December 2026
  • errno(3) — Linux manual page — Linux man-pages project, man-pages 6.19, 28 May 2026, accessed 2 December 2026