【问题标题】:nexus3 size used by repositories does not match database size on disk存储库使用的 nexus3 大小与磁盘上的数据库大小不匹配
【发布时间】:2019-10-16 19:44:00
【问题描述】:

我正在分析我们的 nexus3 实例的磁盘使用情况。我使用this question and answers 来获取所有存储库使用的磁盘空间:

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/

这种差异从何而来?这是正常的,还是我可以或应该做一些操作来清理它?

【问题讨论】:

    标签: nexus3


    【解决方案1】:

    显然,在界面中删除工件时不会从磁盘中删除工件。因此需要运行 Compact Blob Store 任务。运行此任务后,我的磁盘使用量为 180G。

    【讨论】:

      猜你喜欢
      • 2014-05-24
      • 2021-12-20
      • 2017-11-11
      • 1970-01-01
      • 2012-12-24
      • 2012-09-13
      • 2010-09-20
      • 2018-06-13
      • 1970-01-01
      相关资源
      最近更新 更多