DFS-R:群集复制文件夹初始化

Microsoft.Windows.FileServer.DFSR.6.3.Cluster.ResourceOnlineFailed (UnitMonitor)

此对象监视群集复制文件夹,如果它检测到群集复制文件夹无法初始化,则会发出“严重”警报。

Knowledge Base article:

摘要

此对象监视群集复制文件夹,如果它检测到群集复制文件夹无法初始化,则会发出“严重”警报。通过查找是否存在 DFS 复制事件 9009 来实现。

原因

此监视器的不正常状态表示由群集文件服务器实例托管的复制文件夹初始化失败并且没有联机。如果群集文件服务器实例没有联机,则会发生此类情况。

解决方案

确认故障转移群集资源处于联机状态

如果该服务器是故障转移群集的成员,确认 DFS 复制资源处于联机状态。

使用 Windows 界面确认群集资源处于联机状态

打开受影响服务器上的故障转移群集管理器并确认相应群集文件服务器实例的状态为联机。否则请选择相应的资源,然后单击“使该服务或应用程序联机”

使用 Windows PowerShell 确认群集资源处于联机状态

在使用为故障转移群集本地 Administrators 组成员的帐户登录后,打开 Windows PowerShell™ 命令提示符窗口,然后键入以下命令,其中 [replicatedfolder_rootpath] 是由群集文件服务器实例托管的已复制文件夹的根路径:

get-wmiobject -namespace root\mscluster -class MSCluster_Resource -Filter name=DFSR [replicatedfolder_rootpath]

如果资源已联机,“状态”字段的值应为“2”

重要信息:在复制文件夹根路径中的任何反斜杠前添加第二条反斜杠 (\)。例如 d:\shares\public 将写为 d:\\shares\\public。

DFS 复制将定期重试此操作。

验证

问题解决后该监视器将自动重置为正常状态。

其他

DFS 复制事件 9009 (http://go.microsoft.com/fwlink/?LinkId=187172)

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-R:群集复制文件夹初始化失败
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.6.3.Cluster.ResourceOnlineFailed" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.6.3.Cluster.ResourceOnlineFailed_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<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="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">9009</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>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[3]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="DFSRLib!Microsoft.Windows.FileServer.DFSR.ReplicatedFolderExtension"]/ReplicatedFolderGUID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<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">9003</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>
</And>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>