One of the 2 DFS-replication group members' data drive crashed. How to restore data in this case?

Quantum2021 66 Reputation points
2021-02-05T10:02:09.91+00:00

DFS-R setup:
Using DFS-Replication and not using DFS-Namespace
File server A (2012) and server B (2019) in the replication group and are in the same physical location. They are also DCs, just an FYI.
File server A is the primary member
Topology is Full Mesh
Multipurpose Replication group
The data size is about 1 TB.

We have a number of share folders on server A and B.
Users have their drives mapped to server B as its a newer server and Server A is there as just in case.
The shares are identical on both servers A and B and DFS-R is used to keep the data in sync on both servers and DFS-R is in "Full Mesh" mode and setup as "multipurpose replication group".

Today, server A's data partition where all the shares are, crashed so although the server A's OS is fine and running, the shares are not accessible on it.
Users are not impacted as their share drives are mapped to Server B.

Server A's data partition will be fixed in a couple days.
How would I go about restoring server A's data and have the DFS-R sync normally after fixing the data partition?

Do I simply re-create the folders and share them on Server A and let DFS-R take care of the data restore automatically from Server B or do I restore Server A's data using backup and let DFS-R sync the changed files since the crash? I would prefer to have DFS-R take care of the data restore automatically.
And since server A was the primary member when DFS-R was first setup and thus authoritative, is there anything I need to do differently in order to accomplish that? I need the data on Server B to be used.
It's in Full mesh so I'm not sure if server A being the primary member matters.
And since server A's data partition is down, should I manually stop the DFS service on both servers for now to avoid any new issues or remove server A from the replication group or does it not matter?

Thanks

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,445 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,526 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
629 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2021-02-08T08:03:50.21+00:00

    Hello @Quantum2021 ,

    Thank you for posting here.

    Here is the suggestion.

    If server A's data partition is fixed in a couple days. We can copy all the data from server B to server A using robocopy or xcopy at your convenience or at downtime.

    Then remove the member of server A and recreate member of server A in DFS managemment.

    So all the new data on server A will be replicated to server B from server A.

    So all the new data on server B will be replicated to server A from server B.

    References:

    robocopy
    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

    xcopy
    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

    DFS Replication Initial Sync in Windows Server 2012 R2: Attack of the Clones
    https://techcommunity.microsoft.com/t5/storage-at-microsoft/dfs-replication-initial-sync-in-windows-server-2012-r2-attack-of/ba-p/424877

    DFS Replication: Copying Files to Preseed or Stage Initial Synchronization
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn495052(v=ws.11)

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Tip: It is best to simulate the current scenario in the test environment, first use this method in the test environment, if everything is OK, use this method in the production environment if possible and needed.

    Best Regards,
    Daisy Zhou


3 additional answers

Sort by: Most helpful
  1. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2021-02-10T07:10:56.957+00:00

    Hello @Quantum2021 ,

    I am sorry for the late reply.

    Thank you for your reply and accept my reply as answer.

    1.Opne DFS amangement.

    2.Delete the member we want.
    66235-dfs0.png

    3.Add the member we want and follow the wizard.
    66271-dfs01.png

    4.After that, we update the DFS information by running DFSRDIAG POLLAD on DFS server.
    66291-dfs1.png

    5.Update the AD replication by running repadmin /syncall /AdeP on DC.
    66272-dfs2.png

    6.Click Replicate Now on DFS member server connection.
    66293-dfs5.png

    Best Regards,
    Daisy Zhou

    0 comments No comments

  2. Quantum2021 66 Reputation points
    2021-02-12T08:30:22.233+00:00

    Thanks for the detailed information!

    0 comments No comments

  3. Quantum2021 66 Reputation points
    2021-03-23T01:56:51.673+00:00

    There's no need to remove all the DFSR private folders on server B?
    When server A is added back, it'll be using the exact same name before the crash.

    Thanks

    0 comments No comments