DFS and conflict and deleted items

Posted on 2014-08-03
Last Modified: 2014-08-05
We had an issue with dfs database and it got dirty shutdown. As per microsoft kb article it should restart if we issue this command below
wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid=""E18D8280-2379-11E2-A5A0-806E6F6E6963"" call ResumeReplication.
It gave me surprise by deleting all the files from the folder.
Files goes to deleted item/conflict folder if it is being accessed by more than one users in more than one server, this is not our case !!
Why it went into that folder?

Is it wrong to ins sue that command to restart the database?
Question by:sara2000
    LVL 34

    Accepted Solution

    By default if you have 2008 R2 DFS servers, the dirty shutdown recovery process should get started automatically without any command
    However, in that case there are chances that data deletion may happens
    Install below hotfix to save from data deletion on 2008 R2 DFS servers

    Reference article

    To have DFSR perform AutoRecovery when a dirty database shutdown is detected, edit the following registry value after hotfix 2780453 is installed in Windows Server 2008 R2.
    If the value does not exist, you must create it.
    Key: HKLM\System\CurrentControlSet\Services\DFSR\Parameters
    Value: StopReplicationOnAutoRecovery
    Type: Dword
    Data: 0

    With 2012 and above hotfix is already included in OS and you need to simply create above registry key

    There is one more hotfix you can install on 2008 R2 DFS servers
    After you install hotfix 2663685 autorecovery function is disabled and then you need manual WMI command to start recovery process.
    Microsoft has introduced new functionality to the DFS Replication (DFSR) service for Windows Server 2008 R2 through hotfix 2663685
    You can use StopReplicationOnAutoRecovery registry key to keep autorecovery function enabled or disabled by setting its value to either 0 OR 1
    0 - means autorecovery is enabled
    1 - means autorecovery is disabled

    Author Comment

    thank you for your reply.
    I am new to this dfs other than restarting the services and check whether replication take place.
    I now have to get into this.
    Can i restore the files from backup and start the dfs?

    is there anyway i can get the files from deleted item folder? i am not sure whether this folder has all deleted items or not.
    LVL 34

    Expert Comment

    I hope dfs data is intact on primary member.
    one option could be, you can delete replica from DFS and recreate brand new DFS replica.

    Another option could be prestage dfs replica from backup
    You need to use Windows server backup for that

    you can simply restore Replica from backup if you already have backup

    Author Comment

    Thank you for your info.
    Is there anyway we can monitor if dfs database  shutdown, not the service?
    LVL 34

    Expert Comment

    If you are getting event ID 2213 in DFS events, it means your DFS database is in dirty shutdown state

    Event ID 2213
    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.

    I believe the question was raised to resolve issue pertaining to above event only

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    When I went to try to install Office 2007 and Office 2010 ADMX Group Policy administrative templates on my new Windows Server 2008 R2, I couldn't find any straightforward guidance on how to do it.  I muddled my way through it, but I thought I'd shar…
    I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now