# Blob storage and disk usage don't match

**URL:** <https://community.sonatype.com/t/blob-storage-and-disk-usage-dont-match/9233>\
**Category:** Sonatype Nexus Repository\
**Created:** [August 30, 2022, 8:50pm UTC](https://community.sonatype.com/t/blob-storage-and-disk-usage-dont-match/9233 "2022-08-30T20:50:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francesco.montorsi](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@francesco.montorsi](https://community.sonatype.com/u/francesco.montorsi)\
**Post date:** [August 30, 2022, 8:50pm UTC](https://community.sonatype.com/t/blob-storage-and-disk-usage-dont-match/9233/1 "2022-08-30T20:50:35Z")

</div>

Hi,  
I’m using in my organization Nexus Repo Manager 3.41.1 (just upgraded!!) and I noticed a large mismatch between the size reported by “Blob storage” UI screen and the actual size on disk:

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/2/2d0b5e402175ff6dfca6b0e84d22b9a69a0ba491.png)

while “du” and “df” are reporting (note that NRM runs as a docker mounting /storage as /nexus-data folder:

/dev/mapper/centos–storage-storage xfs 36T 35T 631G 99% /storage

In other words the UI reports roughly 26.56 TB while df/du are reporting 35TB of disk usage… so there is a ~9TB difference (!!)

Since docker blob store is by far the largest one I tried running the following “tasks”:

- Docker - Delete unused components
- Docker - Delete unused manifests and images
- Admin - Compact blob store  
but still no luck…

Also note that I set some “aggressive” (as far as possible) cleanup policies on all docker repositories (hosted and proxy) but I cannot delete much more data. And actually if I could bring down the disk usage to 26TB (as reported by the UI), I would be fine (the disks have 36TB totally available)… my problem however is that we are at 99% disk utilization and I cannot explain why.

What do you suggest? Is there any export procedure to move somehow the blob storage on another server and then re-import them back ? My feeling is that there are “orphaned” docker images that Nexus does not clean up so my wild guess is that if I can export the images, clean the whole /storage/nexus-data/blobs/docker and finally import back the images, such orphaned docker images would disappear (but perhaps I’m wrong)

Thanks for any hint!!

Francesco Montorsi

---

<div class="post-metadata">

**Author:** ![mmartz](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mmartz](https://community.sonatype.com/u/mmartz)\
**Post date:** [August 30, 2022, 9:19pm UTC](https://community.sonatype.com/t/blob-storage-and-disk-usage-dont-match/9233/2 "2022-08-30T21:19:51Z")

</div>

It looks like you are hitting this open bug. [[NEXUS-17740] blobstore Blob count and Total size are sometimes incorrect - Sonatype JIRA](https://issues.sonatype.org/browse/NEXUS-17740)  
You can watch it to see when we work on fixing the bug and vote on it to help us prioritize.

---

<div class="post-metadata">

**Author:** ![francesco.montorsi](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@francesco.montorsi](https://community.sonatype.com/u/francesco.montorsi)\
**Post date:** [August 31, 2022, 9:15pm UTC](https://community.sonatype.com/t/blob-storage-and-disk-usage-dont-match/9233/3 "2022-08-31T21:15:40Z")

</div>

right good point - it might be the same…
