Use this when DFS paths or replication fail.
DFS Troubleshooting
Troubleshoot DFS with dfsutil and dfsdiag for namespaces, Get-DfsrBacklog and dfsrdiag for replication backlog, DFS Replication event logs, staging quota size, AD replication and DNS for namespace servers.
1. Namespace issue → dfsutil /pktinfo, target online, SMB reachable.
2. Replication issue → backlog, DFSR events, AD polling (dfsrdiag pollad).
3. Dirty database (2213) → resume per event instructions.
4. Staging too small → increase.
5. Retest.
namespace referral or replication pipeline → failure point → fix
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dfsrdiag ReplicationStatePrimary Commands
Configuration and operational commands for this Topic.
dfsrdiag ReplicationStateReferenceOperational command for Inspect DFS Replication active state. Focus fields: replication group, replicated folder, sending/receiving member and current file state.
Use when: Use when working the canonical Topic windows--dfs-dfs-troubleshooting and the matching failure boundary.
Quick note: Known-good: expected replication members are active without a persistent stuck transfer. Suspicious: replication is absent when expected or repeatedly stalls on the same partner/item. Next discriminating check: check DFSR event logs and backlog for the same replication group and partner.
Windows Server / DFSR · serviceGet-DfsnFolderTarget -Path <namespace-path>ReferenceRead-only observation for namespace target paths and target state.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · configurationGet-DfsrBacklog -GroupName <group> -FolderName <folder> -SourceComputerName <source> -DestinationComputerName <destination>ReferenceRead-only observation for pending replicated updates for an exact source/destination pair.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · data planeVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify DFS referral identity, target access and replicated file convergence Verify boundary
Capture the DFS namespace path and the exact referral target returned to the client, then expect that UNC target to open with the intended user context. Record DFSR connection/backlog state between the relevant members and verify a bounded test file or metadata change appears on the partner after replication without conflict events. Repeat the original namespace access from the affected site and confirm the referral is still appropriate after cache renewal. A zero DFSR backlog shows convergence for the measured replicated folder, but it does not show the namespace referral, SMB permissions or every file consumer is healthy.
Step 2 Branch DFS failures at referral, target SMB path, permissions and DFSR backlog Narrow the fault
If a DFS path fails before a target is chosen, inspect the namespace referral and client referral cache first. If the referral names the expected target but access fails, test the returned UNC target directly and branch to DNS, SMB transport, share permissions or NTFS access. If the target opens but files differ between members, inspect DFSR membership, connection state, event log and backlog rather than editing namespace metadata. If only one site selects a poor target, verify AD site/subnet mapping and referral ordering. Clear caches only after recording the failing referral so the evidence is not destroyed.
Step 3 Common mistakes Narrow the fault
- Not checking
dfsrdiag backlogand event logs.
Get-DfsnRoot— namespacesGet-DfsnFolderTarget -Path <path>— folder targets and stateGet-DfsrBacklog -GroupName <g> -FolderName <f> -SourceComputerName <a> -DestinationComputerName <b>— DFSR backlogdfsrdiag replicationstate— replication statedfsutil /pktinfo— client referral cache
ReferenceWhy it matters1 section · depth on demand
DFS Namespace referrals and DFS Replication are separate state machines
DFS troubleshooting must distinguish DFS Namespace referral selection from DFS Replication content convergence. A client can receive a valid namespace referral to a target whose SMB share is unreachable, and DFSR can be healthy while namespace metadata points somewhere unexpected. Active Directory stores domain-based namespace and DFSR configuration, while the client referral cache and SMB session hold runtime state. Site-costing, target priority, share permissions, NTFS permissions and DFSR backlog are adjacent boundaries, so namespace reachability alone never shows replicated data is current.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
DFS Namespace or DFS Replication?
| Symptom | Component |
|---|---|
\\corp.example.com\Shares not reachable, or wrong server chosen | DFS Namespaces (referrals) |
| Files differ between servers, changes do not arrive | DFS Replication |
Inspect referrals on the client
C:\> dfsutil /pktinfo
Entry: \corp.example.com\Shares\Projects
ShortEntry: \corp.example.com\Shares\Projects
Expires in 1702 seconds
UseCount: 0 Type:0x1 ( DFS )
0:[\fs02\Projects] AccessStatus: 0 ( ACTIVE TARGETSET )
1:[\fs01\Projects] ( TARGETSET )
C:\> dfsutil cache referral flush
C:\> dfsutil diag viewdfspath \\corp.example.com\Shares\Projects\Report.docx
ACTIVE marks the target the client uses. The dfsutil command (installed with the DFS Management tools) also shows and flushes the client referral cache.
Why a client uses the "wrong" server
| Cause | Fix |
|---|---|
| Client site unknown (subnet not defined in AD Sites) | Add the subnet to the correct site |
| Target priority / ordering method | Namespace properties → Referrals (lowest cost, random, exclude outside site) |
| Referral cached from earlier | Wait for TTL or dfsutil cache referral flush |
| Failback disabled | Clients stay on the failover target after the preferred one returns — enable Clients fail back to preferred targets |
Namespace server checks
Get-DfsnRoot -Path \\corp.example.com\Shares | Select Path, State, Type
Get-DfsnRootTarget -Path \\corp.example.com\Shares
Get-DfsnFolderTarget -Path \\corp.example.com\Shares\Projects | Select TargetPath, State, ReferralPriorityClass
dfsdiag /testdcs /domain:corp.example.com
dfsdiag /testreferral /dfspath:\\corp.example.com\Shares
Domain-based namespaces depend on DCs (namespace metadata in AD) and on the DFS Namespace service on root servers; a stopped service on one root server only matters if clients get referrals to it.
Replication side, briefly
For DFSR use Get-DfsrBacklog, Write-DfsrHealthReport and the DFS Replication event log; see DFS Replication for details.
*The sample DFS referral cache illustrates target selection, not data retrieved from a deployed namespace.*
Method
DFS troubleshooting covers DFS Namespaces (path resolution) and DFS Replication (data synchronisation).
dfsutil /pktinfo # client referral cache
dfsutil cache referral flush
Get-DfsnRoot; Get-DfsnFolderTarget -Path \\corp.example.com\files\projects
Get-DfsrBacklog -GroupName 'Files' -FolderName 'Projects' -SourceComputerName fs01 -DestinationComputerName fs02 | Measure-Object
Get-DfsrState -ComputerName fs02 | Group-Object UpdateState
dfsrdiag pollad
| Symptom | Likely cause |
|---|---|
| Clients reach wrong/remote target | Site configuration, referral ordering |
| Namespace not accessible | DNS, DC availability, namespace server down |
| Replication backlog grows | Staging quota too small, network, sharing violations |
| Files conflict or disappear | Simultaneous edits; check ConflictAndDeleted folder |
DFS-R logs to DFS Replication event log; event 4012 indicates a member exceeded MaxOfflineTimeInDays and stopped replicating.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DFS → DFS Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/dfs-namespaces/dfs-overview · confidence 94%