DFS-R:可用的磁碟空間

Microsoft.Windows.FileServer.DFSR.FreeSpaceMonitor (UnitMonitor)

此物件會監視磁碟區上可供複寫資料夾或複寫用快取資料夾使用的磁碟空間。

Knowledge Base article:

摘要

此物件會監視磁碟區上可供複寫資料夾或複寫用快取資料夾使用的磁碟空間,並在可用磁碟空間不足以進行複寫時建立「警告」警示。它會透過檢查 DFS 複寫事件記錄檔中是否存在 DFS 複寫事件 4502 來執行此操作。

原因

此監視的狀況不良狀態指出,沒有足夠的可用磁碟空間讓 DFS 複寫運作。

解決方式

增加可用磁碟空間

如果主控複寫用快取資料夾或偵錯記錄檔的磁碟區的磁碟空間不足,請增加磁碟區的可用磁碟空間、增加磁碟區的大小,或將複寫用快取資料夾的路徑變更至擁有更多可用磁碟空間的磁碟區。

若要手動檢查可用磁碟空間量,請開啟命令提示字元視窗,然後輸入以下命令,其中 [servername] 是主控受影響資料夾的伺服器的名稱,而 [domain\user] 是您的使用者名稱:

WMIC /node:"[servername]" /user:[domain\user] volume list status

釋出空間之後,請重新啟動 DFS 複寫服務。

調整配額

如果配額 (NTFS 磁碟配額或檔案伺服器資源管理員配額) 讓受影響的資料夾或磁碟區受到限制,請考慮增加配額大小。若要調整透過檔案伺服器資源管理員建立的資料夾,請參閱 配額管理 (http://go.microsoft.com/fwlink/?LinkId=187098)。若要調整 NTFS 磁碟配額,請使用 Fsutil quota 命令,如 FSutil 配額 (http://go.microsoft.com/fwlink/?LinkId=187104) 中所述。

調整 DFS 複寫配額

您可以編輯複寫用快取資料夾和 [因衝突而刪除] 資料夾的配額大小,以減少 DFS 複寫的磁碟空間需求。若要執行此操作,請參閱 編輯複寫用快取資料夾和 [因衝突而刪除] 資料夾的配額大小 (http://go.microsoft.com/fwlink/?LinkId=186944)。

重要:如果將複寫用快取資料夾配額設定為過低,DFS 複寫可能會耗用額外的 CPU 與磁碟資源來產生執行檔案。當缺少執行空間,進而限制與夥伴之間的同時傳輸量時,也可能會降低複寫速度。增加複寫用快取資料夾和 [因衝突而刪除] 資料夾的大小可提高複寫效能,並增加可復原的衝突與已刪除檔案的數目。

驗證

此監視會在有足夠的磁碟空間可用且 DFS 複寫記錄 DFS 複寫事件 4504 時,重設為狀況良好狀態。

若要手動檢查可用磁碟空間量,請開啟命令提示字元視窗,然後輸入 WMIC /node:"[servername]" /user:[domain\user] volume list status,其中 [servername] 是主控受影響資料夾的伺服器的名稱,而 [domain\user] 是您的使用者名稱。

其他

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.ReplicatedFolder
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-R:磁碟空間用盡
DFS 複寫服務在複寫一或多個檔案時發生錯誤,因為磁碟區 {0} 沒有足夠的可用空間。此磁碟區包含複寫資料夾和/或複寫用快取資料夾。請確定此磁碟區上有足夠的可用空間讓複寫繼續執行。服務將定期重試複寫。
其他資訊:複寫用快取資料夾:{1} 複寫資料夾根目錄:{2} 複寫資料夾名稱:{3} 複寫資料夾識別碼:{4} 複寫群組名稱:{5} 複寫群組識別碼:{6} 成員識別碼:{7} 磁碟區: {8}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.FreeSpaceMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.ReplicatedFolder" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.FreeSpaceMonitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[8]$</AlertParameter1>
<AlertParameter2>$Data/Context/Params/Param[9]$</AlertParameter2>
<AlertParameter3>$Data/Context/Params/Param[2]$</AlertParameter3>
<AlertParameter4>$Data/Context/Params/Param[3]$</AlertParameter4>
<AlertParameter5>$Data/Context/Params/Param[1]$</AlertParameter5>
<AlertParameter6>$Data/Context/Params/Param[4]$</AlertParameter6>
<AlertParameter7>$Data/Context/Params/Param[5]$</AlertParameter7>
<AlertParameter8>$Data/Context/Params/Param[6]$</AlertParameter8>
<AlertParameter9>$Data/Context/Params/Param[7]$</AlertParameter9>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>DFS Replication</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4502</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicatedFolder"]/ReplicatedFolderGUID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>DFS Replication</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1004</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1104</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicatedFolder"]/ReplicatedFolderGUID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4002</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4010</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4114</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4504</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">9008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">9111</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[3]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicatedFolder"]/ReplicatedFolderGUID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>