DFS-R: ステージング フォルダーのアクセス可能性

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

このオブジェクトは、レプリケート フォルダーに対応するステージング フォルダーのアクセス可能性を監視し、ステージング フォルダーにアクセスできない場合に、警告アラートを作成します。ステージング フォルダーにアクセスできない場合、DFS レプリケーションは影響を受けるレプリケート フォルダーを複製できません。

Knowledge Base article:

概要

このオブジェクトは、レプリケート フォルダーに対応するステージング フォルダーのアクセス可能性を監視し、ステージング フォルダーにアクセスできない場合に、警告アラートを作成します。この処理のため、オブジェクトは、DFS レプリケーション イベント 4212 があるかを調べます。ステージング フォルダーにアクセスできない場合、DFS レプリケーションは影響を受けるレプリケート フォルダーを複製できません。

原因

このモニターの状態が異常な場合、DFS レプリケーションが 1 つまたは複数のレプリケート フォルダーに対応するステージング フォルダーにアクセスできなかったことを示しています。ステージング フォルダーは、次のような理由でアクセスできなくなる可能性があります。

解決方法

ステージング フォルダーを再作成する

この問題を解決するには、次の手順を使用します。

1. Operations Console でモニターのアラートの説明を参照して、ステージング フォルダーのパスを特定します。または、次のコマンドを使用してステージング フォルダーのパスを取得します。[ReplicationGroup] は、レプリケート フォルダーをホストするレプリケーション グループの名前です。dfsradmin membership list /rgname:"[ReplicationGroup]"

2. Windows エクスプローラーまたはコマンド プロンプトを使用して、ステージング フォルダーが NTFS でフォーマットされたローカル ボリューム上に存在することを確認します。

注: 既定では、ステージング フォルダーは非表示の \dfsrprivate フォルダーに配置されます。このフォルダーはレプリケート フォルダーのサブディレクトリです。このフォルダーを表示するには、名前を指定してこのフォルダーに移動します。

3. ステージング フォルダーにアクセスできない場合は、新しいステージング フォルダーを必要な場所に作成するか、ステージング フォルダーの場所を変更します。ステージング フォルダーの場所を変更する場合は、「 ステージング フォルダーおよび競合して削除されたフォルダーのクォータ サイズを編集する」(http://go.microsoft.com/fwlink/?LinkId=186944) を参照してください。

レプリケート フォルダーのアクセス許可を修正する

DFS Replication サービスにレプリケート フォルダーおよびステージング フォルダーに対するフル コントロールのアクセス許可がない場合、レプリケーションは失敗します。この問題を解決するには、ローカル システム アカウントに、レプリケートされるフォルダーとサブフォルダーおよびステージング フォルダー (レプリケート フォルダー外にある場合) に対するフル コントロールのアクセス許可を割り当てます。

検証

レプリケーション フォルダーが正常に初期化されると、このモニターは正常な状態に自動的にリセットされます。

追加情報

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.ReplicatedFolder
Parent MonitorMicrosoft.Windows.FileServer.DFSR.StagingAggregateMonitor
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}
レプリケート フォルダー ID: {3}
レプリケーション グループ名: {4}
レプリケーション グループ ID: {5}
メンバー ID: {6}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.InvalidStagingPathMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.ReplicatedFolder" ParentMonitorID="Microsoft.Windows.FileServer.DFSR.StagingAggregateMonitor" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.InvalidStagingPathMonitor_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[1]$</AlertParameter4>
<AlertParameter5>$Data/Context/Params/Param[5]$</AlertParameter5>
<AlertParameter6>$Data/Context/Params/Param[6]$</AlertParameter6>
<AlertParameter7>$Data/Context/Params/Param[7]$</AlertParameter7>
</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">4212</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>
</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>