nexus磁盤不足

1.清理物理

先創建一個Admin - Cleanup repositories using their associated policies類型的Task,這個任務會並不會真正但刪除鏡像,只是將其設置成deleted狀態,不會物理刪除;因此我們還需再創建一個Admin - Compact blob store類型的Task完成物理刪除。

2.設置storage.diskCache.diskFreeSpaceLimit變量

磁盤剩餘空間太少,數據庫爲只讀狀態,不可以設置task去清理,此時log中會顯示如下異常:

 Error occurred while executing a write operation to database 'component' due to limited free space on the disk (3188 MB). The database is now working in read-only mode. Please close the database (or stop OrientDB), make room on your hard drive and then reopen the database. The minimal required space is 4096 MB. Required space is now set to 4096MB (you can change it by setting parameter storage.diskCache.diskFreeSpaceLimit) .

根據提示信息可知:nexus要求最少有4096MB的磁盤空間,而當前磁盤只剩3188MB,我們可以通過設置{yourpath}/nexus/bin/nexus.vmoptions中的storage.diskCache.diskFreeSpaceLimit參數來指定剩餘磁盤空間的容忍度。

然後重啓nexus,添加task完成清除磁盤工作。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章