WSUS 更新內容的儲存需要足夠的磁碟空間。
含有資料庫或更新內容的磁碟機可用空間用盡。
可能的解決方式包括:
使用 [磁碟清理] 移除不需要的檔案
按一下 [開始]、[所有程式]、[附屬應用程式]、[系統工具],然後再按一下 [磁碟清理]。
遵循指示刪除、移除及壓縮檔案和資料夾。
使用 [伺服器清理精靈] 移除舊電腦、更新程式及更新檔案。 此精靈包含在 WSUS 系統管理主控台中。
啟動 WSUS: 在 [伺服器管理員] 中,按一下 [工具],然後按一下 [Windows Server Update Services]
按一下 [選項]。
按一下 [伺服器清理精靈],移除未使用或舊的內容。
使用 wsusutil.exe 將更新內容目錄移動到另一個磁碟機。此工具會更新伺服器,使其指向新內容路徑並選擇性移動內容。
在較大的磁碟機上建立新內容路徑。
開啟命令視窗。
輸入 cd <WSUSInstallDir>\tools
輸入 wsusutil movecontent <NewContentPath> <temp>\movecontent.log
WSUS SQL 資料庫移動至其他磁碟機。請參考 SQL Server 文件以取得卸離 SUSDB 資料庫以及重新附加資料庫的步驟。
開啟命令視窗
輸入 net stop wsusservice
卸離 SUSDB 資料庫
將 SUSDB.mdf 和 SUSDB_log.ldf 複製到新的路徑位置
附加 SUSDB 資料庫
輸入 net start wsusservice
確定系統正常運作時,請從舊位置上刪除 SUSDB.mdf 和 SUSDB_log.ldf。
尋找對應的錯誤事件
開啟命令視窗。
輸入 cd <WSUSInstallDir>\Tools
輸入 wsusutil checkhealth
輸入 eventvwr
檢閱應用程式記錄中,來源為 Windows Server Update Services 且事件 ID 為 10040 的最新事件。
Target | Microsoft.Windows.Server.UpdateServices.2012.R2.Server | ||
Parent Monitor | Microsoft.Windows.Server.UpdateServices.2012.R2.Server.CoreRollup | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.3SingleEventLog3StateUnitMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.Server.UpdateServices.2012.R2.Server.ContentDirectoryDiskSpaceState" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.UpdateServices.2012.R2.Server" ParentMonitorID="Microsoft.Windows.Server.UpdateServices.2012.R2.Server.CoreRollup" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.3SingleEventLog3StateUnitMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.UpdateServices.2012.R2.Server.ContentDirectoryDiskSpaceState.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="DiskSpaceError" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="DiskSpaceWarn" MonitorTypeStateID="SecondEventRaised" HealthState="Warning"/>
<OperationalState ID="DiskSpaceOK" MonitorTypeStateID="ThirdEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Application</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>10042</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Application</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>10041</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
<ThirdComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ThirdComputerName>
<ThirdLogName>Application</ThirdLogName>
<ThirdExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(10040|501|10000)$</Pattern>
</RegExExpression>
</Expression>
</And>
</ThirdExpression>
</Configuration>
</UnitMonitor>