存储库使用的 nexus3 大小与磁盘上的数据库大小不匹配
nexus3 size used by repositories does not match database size on disk
我正在分析 nexus3 实例的磁盘使用情况。我使用 获取所有存储库使用的磁盘 space:
cd /opt/nexus
java -jar ./lib/support/nexus-orient-console.jar
> CONNECT PLOCAL:/opt/sonatype-work/nexus3/db/component admin admin
> select bucket.repository_name as repository,sum(size) as bytes from asset group by bucket.repository_name order by bytes desc;
然后通过对所有结果求和,我得到大约 200GiB。但是,当我在磁盘上移动时,我得到的磁盘使用率为 378BiB:
> du -sh /opt/sonatype-work/nexus3/blobs
378G blobs/
这种差异从何而来?这是否正常,或者我可以或应该做一些操作来清理它吗?
显然,在界面中删除时,工件不会从磁盘中删除。因此需要 运行 Compact Blob Store 任务。 运行执行此任务后,我的磁盘使用量为 180G。
我正在分析 nexus3 实例的磁盘使用情况。我使用
cd /opt/nexus
java -jar ./lib/support/nexus-orient-console.jar
> CONNECT PLOCAL:/opt/sonatype-work/nexus3/db/component admin admin
> select bucket.repository_name as repository,sum(size) as bytes from asset group by bucket.repository_name order by bytes desc;
然后通过对所有结果求和,我得到大约 200GiB。但是,当我在磁盘上移动时,我得到的磁盘使用率为 378BiB:
> du -sh /opt/sonatype-work/nexus3/blobs
378G blobs/
这种差异从何而来?这是否正常,或者我可以或应该做一些操作来清理它吗?
显然,在界面中删除时,工件不会从磁盘中删除。因此需要 运行 Compact Blob Store 任务。 运行执行此任务后,我的磁盘使用量为 180G。