The BOSH Director persistent disk (/var/vcap/store) reaches high utilization or 100% usage and disk usage analysis shows that the BOSH Director internal blobstore directory (/var/vcap/store/blobstore) consumes the majority of the available space on the Director persistent disk when inspected using:
This indicates that accumulated blobstore artifacts are the primary contributor to persistent disk exhaustion.
BOSH Director on Tanzu Platform
The BOSH Director stores the following artifacts in its internal blobstore:
Uploaded release versions
Uploaded stemcells
Compiled packages (per release + stemcell combination)
DNS record blobs
Exported releases
Over time, especially in environments with:
frequent upgrades
stemcell churn
tile redeployments
certificate rotations
Windows and Linux stemcells
the Director accumulates unused releases, stemcells, and compiled packages.
These artifacts are not automatically garbage-collected unless an explicit cleanup is performed.
The BOSH Director provides two cleanup modes with different levels of aggressiveness.
bosh clean-upRuns a conservative cleanup removes unused resources but keeps orphaned disks and the two most recent versions of stemcells and releases.
This option is recommended as a first step when reclaiming disk space on the Director.
bosh clean-up --allRuns a full cleanup that removes all unused resources (including orphaned disks) such us releases, stemcells, and compiled packages that are not referenced by any active deployment .
This option reclaims the maximum amount of disk space and is recommended when the default cleanup does not free sufficient capacity.
You can combine it with --keep-orphaned-disks in order not to delete orphaned disks.
It is recommended to:
Run bosh clean-up initially and verify recovered disk space.
If disk usage remains high, run bosh clean-up --all --keep-orphaned-disks to perform a full cleanup while preserving orphaned persistent disks.
Run the cleanup command in dry-run mode:
This command lists:
unused releases
unused stemcells
unused compiled packages
stale DNS blobs
No data is deleted in dry-run mode.
If the dry-run output is acceptable, run:
This operation:
deletes only artifacts not referenced by any active deployment
bosh clean-up never deletes artifacts referenced by active deployments
Compiled packages are fully reproducible and safe to remove
After cleanup, verify reclaimed space:
df -h /var/vcap/store
du -sh /var/vcap/store/*
Run bosh clean-up periodically in long-lived foundations