PowerEdge:由於壓縮失敗,Windows CBS 記錄佔用過多磁碟空間
Summary: %systemroot%\Logs\CBS 資料夾中的記錄檔達到一定大小時,應會自動壓縮為.cab檔案。如果此壓縮失敗,日誌可能會變大。此外,壓縮實用程式的故障會導致生成其他大型日誌檔,從而導致大量磁碟空間消耗。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
- 大型的未壓縮記錄檔位於
%systemroot%\Logs\CBS資料夾- 有一個
CBS.log檔案,加上一個或多個名稱在CbsPersist_datetime.log格式。
- 有一個
- 一個或多個大型.cab檔案位於
%systemroot%\Temp資料夾
Cause
基於元件的服務將其活動記錄在 %systemroot%\Logs\CBS 資料夾。這些檔案包含在解決 Windows 更新或新增角色和功能問題時很有用的項目,同時記錄發現並由系統檔案檢查器 (SFC) 取代的損毀檔案 (若有),以及 Dism 清理過程。
活動記錄被命名為 CBS.log。當它達到一定大小時,它被重命名為 CbsPersist_datetime.log,然後壓縮為同名的.cab檔。但是,有時CBS.log檔的大小會迅速增加,因此集成壓縮實用程式(makecab.exe)無法壓縮它。
雖然這種情況很少見,但當這種情況發生時,它會導致磁碟空間被快速消耗。這是因為 makecab.exe 會反覆嘗試壓縮檔,但未能這樣做,然後在不久後再次嘗試。每次發生這種情況時,它.cab都會在 %systemroot%\Temp 資料夾。
Resolution
若要修正此問題,請執行下列步驟:
- 使用以下任一方法停止 Windows 模組安裝程式服務:
- 啟動服務主控台,以滑鼠右鍵按一下 Windows 模組安裝程式服務,然後選取 停止。
- 在 PowerShell 中,執行
stop-service TrustedInstaller - 在命令提示字元中,執行
net stop TrustedInstaller。
- 啟動檔案總管並瀏覽至
%systemroot%\Logs\CBS。 - 刪除或重新命名此資料夾中的所有檔案。請勿刪除資料夾本身。
- 瀏覽至
%systemroot%\Temp。 - 刪除此資料夾中所有
.cab分機。 - 將受影響的伺服器重新開機。
Affected Products
Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2, OEMR R440, OEMR R450, OEMR R540, OEMR R550, OEMR R5500, OEMR R640, OEMR R6415, OEMR R650
, OEMR R650xs, OEMR R6515, OEMR R6525, OEMR R660, OEMR R660xs, OEMR R6615, OEMR R6625, OEMR R740, OEMR R740xd, OEMR R740xd2, OEMR R7415, OEMR R7425, OEMR R750, OEMR R750xa, OEMR R750xs, OEMR R7515, OEMR R7525, OEMR R760, OEMR R760xa, OEMR R760XD2, OEMR R760xs, OEMR R7615, OEMR R7625, OEMR R840, OEMR R860, OEMR R940, OEMR R940xa, OEMR R960, OEMR XR4510c, OEMR XR4520c, OEMR XR5610, OEMR XR8610t, OEMR XR8620t, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge XR4510c, PowerEdge XR4520c, PowerEdge XR5610, PowerEdge XR8610t, PowerEdge XR8620t
...
Article Properties
Article Number: 000201058
Article Type: Solution
Last Modified: 16 Jul 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.