04 66 72 51 22

Server disk space does not decrease after old versions are deleted

This page is intended for administrators of a BeBackup server who have reduced the retention period, or waited for old versions to be purged, without seeing free space increase on the storage disk. It explains the difference between purging and defragmentation, and how to configure defragmentation. It applies to BeBackup server 7.

Symptom

Old backups have disappeared from the media history, but the space used on the server disk does not decrease. The storage disk keeps filling up.

Cause

Purging frees space inside the media

At the end of a successfully completed backup, the server deletes file versions older than the retention period. A backup that did not complete successfully does not trigger a purge. This purge frees space inside the media. Subsequent backups reuse that space. However, the size of the media on the disk does not decrease.

Only defragmentation returns space to the disk

To return space to the disk, the server must rebuild the media without the gaps left by the purge. This is defragmentation. It does not take place at every purge: it requires a full copy of the media and takes time.

The retention period has a minimum

The Backup history (in days) setting defines the retention period. The server always keeps at least 7 days of versions, even if a lower value is entered.

With Advanced retention, the rules are added to this history: they retain at least as much, never less. A version kept by a single rule is retained.

Purging may be suspended

If advanced retention rules are active on a media while the server licence does not include the Advanced retention option, the server suspends the purge rather than applying rules it cannot honour. The report indicates this with a message beginning with Purge suspended…. In this case, nothing is deleted: disable these rules, or have the option added to the licence.

Checks

  1. In the computer list, open the details bubble for a media (information button). The Approximate gain after defragmentation line indicates the space a defragmentation would return to the disk. This line is only visible to administrators.
  2. In the server configuration, Storage tab, open the Defragmentation options and note their values.
  3. Look for Purge suspended in the media's recent reports.
  4. If you use advanced retention, click Simulate in the Advanced retention block. This button only works if Enable advanced retention is ticked. The simulation indicates how many backups would be retained and deleted, without changing anything.

Resolution

Run a defragmentation

In the computer list, select one or more media, then choose Defragment media from the actions menu. This action is reserved for server administrators. A defragmentation started this way ignores the gain thresholds described below.

Defragment automatically

In the Storage tab, tick Defragment media after a data verification. The server then defragments a media after its verification, provided that verification found no errors and the gain justifies it.

Automatic defragmentation only takes place if the gain reaches both of the following thresholds:

  • Minimum space gain as a percentage to trigger defragmentation, 10% by default;
  • Minimum space gain in GB to trigger defragmentation, 10 GB by default.

A media with a lower gain is not defragmented. This is normal: the operation would cost more than it returns.

Plan for the required space

To defragment a media, the server first copies it to a temporary folder, then rebuilds it from that copy. Two conditions must be met:

  • The Temporary folder(s) used to cache the media before defragmentation (SSD drive recommended) field must be filled in. An SSD (Solid State Drive) is recommended. To specify several folders, enter one folder per field. If no folder is specified, defragmentation fails with the message SSD cache drive used for defragmentation not defined.
  • The temporary folder must have enough free space to hold the media, plus a 10 GB margin.

The media's storage must itself have enough free space to receive the rebuilt media, plus a 50 GB margin. This check applies to the media's current storage: the Allow the media to be moved to a storage with more space (to balance free space) option cannot work around a lack of space at that location.

When one of these conditions is not met, defragmentation is skipped. The reason, for example Insufficient free space on drive "…" (Required space: …, Free space: …). Defragmentation skipped., is written to the server log, not to the backup report.

Reduce the retention period

If the disk is too small for the chosen retention period, reduce the Backup history (in days), or the Advanced retention rules. Reducing retention is not enough: space is only returned to the disk after defragmentation.

If the problem persists

If a media whose gain exceeds the thresholds is never defragmented, contact BeBackup support. Include the media name, its approximate gain and the values of the defragmentation options.

BeBackup is backup built for IT service providers

Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.