I am using Nexus 3 and the blob stores consume more and more disk space as artifacts get uploaded. Now I deleted a bunch of no longer needed artifacts from a release repository, but I did not see any decrease of the consumed disk space. I deleted them by hand using the UI as there is still no automated way for this.
Do I need to run any reorganization job or something like that after deletion of artifacts? Or how else do I reduce blob sizes?
You have two options to get rid of artifacts which are not needed any more. First you can configure “cleanup policies”. Another approach is that you might want to set up a task which executes a custom Groovy script which deals with the removal of old artifacts.
A binary large object (blob) storage, or blobstore, is the folder or network location for where Nexus Repository will store everthing uploaded to or proxied from a repository, including basic metadata for the object.
As stated in documentation of NXRM3 content deleted from a blob store is not physically deleted from the storage device. Instead it is only internally marked for deletion. This implies your deleted files have been only marked for deletion and not actually deleted.
In order to free your disk space you have to run scheduled task Compact blob store
. This task performs the actual deletion of the relevant files, and therefore frees up the space on the file system.
Another important factor is Nexus repository version you use. More precisely to which version did you migrate. There was a bug in NXRM3 with inaccurate blob store count and size displayed in the Nexus UI. This was fixed with version 3.2.1 but the fix does not fix pre-existing issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With