DFS Replication service stopped replication

Received the following error when trying to figure out why my policy’s were not working.

C:\Windows\system32>gpupdate /force
Updating policy...
 
Computer policy could not be updated successfully. The following errors were enc
ountered:
 
The processing of Group Policy failed. Windows attempted to read the file \\domain.local\SysVol\domain.local\Policies\{3B6204CA-6706-4077-B296-B657A495661
5}\gpt.ini from a domain controller and was not successful. Group Policy setting
s may not be applied until this event is resolved. This issue may be transient a
nd could be caused by one or more of the following:
a) Name Resolution/Network Connectivity to the current domain controller.
b) File Replication Service Latency (a file created on another domain controller
has not replicated to the current domain controller).
c) The Distributed File System (DFS) client has been disabled.
User Policy update has completed successfully.
 
To diagnose the failure, review the event log or run GPRESULT /H GPReport.html f
rom the command line to access information about Group Policy results.

We encountered an unexpected shutdown on a Domain Controller and that’s seems to be the reason why the DFS Replication service stopped replication.
In Windows Server 2012 the default behavior for auto-recovery has changed to manual-recovery of the DFSR database if a unexpected reboot was detected, comparing to Server 2008. This was done to allow a user to take a backup of existing replicated folders on the volume before the recovery operation.

See for more information.

In the eventviewer you will see the following error:

Log Name:      DFS Replication
Source:        DFSR
Date:          3/15/2013 11:20:18 AM
Event ID:      2213
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      dc1.domain.local
Description:
The DFS Replication service stopped replication on volume C:. This occurs when a DFSR JET database is not shut down cleanly and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the ResumeReplication WMI method to resume replication.
 
Recovery Steps
1. Back up the files in all replicated folders on the volume. Failure to do so may result in data loss due to unexpected conflict resolution during the recovery of the replicated folders.
2. To resume the replication for this volume, use the WMI method ResumeReplication of the DfsrVolumeConfig class. For example, from an elevated command prompt, type the following command:
<strong>wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="0968820E-6969-11E2-93E7-806E6F6E6963" call ResumeReplication </strong>

Now you can use the command from the event to enable the replication again and you will see the following event.

Log Name:      DFS Replication
Source:        DFSR
Date:          3/15/2013 11:25:11 AM
Event ID:      2212
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      dc1.domain.local
Description:
The DFS Replication service has detected an unexpected shutdown on volume C:. This can occur if the service terminated abnormally (due to a power loss, for example) or an error occurred on the volume. The service has automatically initiated a recovery process. The service will rebuild the database if it determines it cannot reliably recover. <strong>No user action is required</strong>.

Showing it will now rebuild the DFS Replication service database again.

You also could get the following event

Log Name:      DFS Replication
Source:        DFSR
Date:          3/15/2013 11:29:12 AM
Event ID:      2004
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      dc1.domain.local
Description:
The DFS Replication service stopped replication on volume C:. This failure can occur because the disk is full, the disk is failing, or a quota limit has been reached. This can also occur if the DFS Replication service encountered errors while attempting to stage files for a replicated folder on this volume.
 
Additional Information:
Error: 23 (Data error (cyclic redundancy check).)
Volume: 0968820E-6969-11E2-93E7-806E6F6E6963

I resolved this by using chkdsk:

chkdsk /f /r

2 thoughts to “DFS Replication service stopped replication”

  1. Pingback: syshead

Leave a Reply to Sergej Cancel reply

Your email address will not be published. Required fields are marked *