DFS-R: Replicated Folder Cluster Resource State

Microsoft.Windows.FileServer.DFSR.6.3.ResourceOfflineState (UnitMonitor)

This object monitors the cluster resources for clustered replicated folders.

Knowledge Base article:

Summary

This object monitors the cluster resources for clustered replicated folders.

Causes

An unhealthy state of this monitor indicates that the replicated folder cluster resource is offline.

Resolutions

Confirm that the failover cluster resource is online

If the server is a member of a failover cluster, confirm that the DFS Replication resource is online.

To confirm that a cluster resource is online using the Windows interface

Open Failover Cluster Manager on the affected server and confirm that the status of the appropriate clustered file server instance is Online. If it isn’t, select the appropriate resource and then click Bring this service or application online.

To confirm that a cluster resource is online using Windows PowerShell

Open a Windows PowerShell™ command prompt window while logged on with an account that is a member of the local Administrators group on the failover cluster, and then type the following command, where [replicatedfolder_rootpath] is the root path of the replicated folder hosted by the clustered file server instance:

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

If the resource is online, the value of the State field should be 2.

Important: Add a second backslash (\) before any backslashes in the replicated folder root path. For example d:\shares\public would be written as d:\\shares\\public.

Verification

This monitor automatically resets to a healthy state after this issue is resolved.

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder
Parent MonitorMicrosoft.Windows.FileServer.DFSR.6.3.Cluster.OfflineResource
CategoryCustom
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.FileServer.DFSR.6.3.StateUnitMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.6.3.ResourceOfflineState" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder" ParentMonitorID="Microsoft.Windows.FileServer.DFSR.6.3.Cluster.OfflineResource" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.FileServer.DFSR.6.3.StateUnitMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId269d6e01b2834449a0f812b83db25236" MonitorTypeStateID="HealthyState" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateId4be4e8a3bc394ee7b6e10f00e775111e" MonitorTypeStateID="UnhealthyState" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<ElementState>$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder"]/ClusterResourceState$</ElementState>
<ServerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<ResourceName>$Target/Property[Type="DFSRLib!Microsoft.Windows.FileServer.DFSR.ReplicatedFolderExtension"]/RootPath$</ResourceName>
<ResourceDiscoveryState>$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.6.3.ClusteredReplicatedFolder"]/ClusterResourceState$</ResourceDiscoveryState>
</Configuration>
</UnitMonitor>