此物件會針對主控複寫資料夾且不一定存在變更日誌的磁碟區監視 NTFS 變更日誌的建立,並在日誌建立失敗時建立「警告」警示。
此物件會針對主控複寫資料夾且不一定存在變更日誌的磁碟區監視 NTFS 變更日誌的建立,並在日誌建立失敗時建立「警告」警示。它會透過尋找 DFS 複寫事件 2210 是否存在來執行此操作。
此監視的狀況不良狀態指出,DFS 複寫無法在主控一或多個複寫資料夾的磁碟區上建立 NTFS 變更日誌。已在受影響磁碟區上的所有複寫資料夾停用複寫。
如果磁碟區上沒有至少 512 MB 的可用空間,便可能會發生此情況。
增加可用磁碟空間
如果主控複寫用快取資料夾或偵錯記錄檔的磁碟區的磁碟空間不足,請增加磁碟區的可用磁碟空間、增加磁碟區的大小,或將複寫用快取資料夾的路徑變更至擁有更多可用磁碟空間的磁碟區。
若要手動檢查可用磁碟空間量,請開啟命令提示字元視窗,然後輸入以下命令,其中 [servername] 是主控受影響資料夾的伺服器的名稱,而 [domain\user] 是您的使用者名稱:
WMIC /node:"[servername]" /user:[domain\user] volume list status。
如果變更日誌發生內部錯誤,且無法透過移動或刪除檔案的方式來恢復 512 MB 的空間,請對磁碟區執行 Chkdsk,以恢復損毀的日誌所使用的空間。
釋出空間之後,請重新啟動 DFS 複寫服務。
若要使用 sc 命令從遠端重新啟動服務,請開啟命令提示字元視窗,然後執行以下動作:
1. 若要停止服務,請輸入以下命令,其中 [servername] 是遠端伺服器的通用命名慣例 (UNC) 路徑:
sc[servername] stop dfsr
2. 若要確認服務處於已停止狀態,請輸入以下命令:
sc[servername] query dfsr
3. 若要重新啟動服務,請輸入以下命令:
sc [servername] start dfsr
注意:若要重新啟動服務,您在受影響的伺服器上必須是本機系統管理員群組的成員。您也可以使用服務嵌入式管理單元、Windows PowerShell Start-Service 和 Stop-Service Cmdlet 或 net stop 和 net start 等命令列工具來重新啟動服務。
重新定位複寫資料夾
如果主控複寫資料夾的磁碟機上可用空間不足,請考慮將複寫資料夾重新放置到擁有較多可用空間的其他磁碟區。若要執行此操作,請移除伺服器在複寫群組中的成員資格,再重新建立。這麼做需要具有 Domain Admins 群組的成員資格,或已被委派適當的權限。
驗證
此監視會在問題獲得解決之後自動重設為狀況良好狀態。
DFS 複寫事件 2210 (http://go.microsoft.com/fwlink/?LinkId=187128)
變更日誌 (http://go.microsoft.com/fwlink/?LinkId=187090)
Target | Microsoft.Windows.FileServer.DFSR.Volume | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | StateCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.2SingleEventLog2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.UsnJournalCreationFailureMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.Volume" 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.UsnJournalCreationFailureMonitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[2]$</AlertParameter1>
<AlertParameter2>$Data/Context/Params/Param[3]$</AlertParameter2>
<AlertParameter3>$Data/Context/Params/Param[4]$</AlertParameter3>
<AlertParameter4>$Data/Context/Params/Param[5]$</AlertParameter4>
<AlertParameter5>$Data/Context/Params/Param[1]$</AlertParameter5>
</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">2210</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.Volume"]/VolumeGUID$</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.Volume"]/VolumeGUID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2002</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2010</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">9111</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Target/Property[Type="System!System.Entity"]/DisplayName$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>