Hello Ioannis Masmanidis,
Greetings! Welcome to Microsoft Q&A Platform.
I understand that you’re encountering an issue with Distributed File System Replication (DFSR) after migrating your file server from FS01 to FS02.
Before making any changes, ensure that you have a backup of the data on both servers. This step is crucial in case anything goes wrong during the process. On the Primary Server (where data replicating again): Stop the DFS Replication service on this server by running the following command in an elevated Command Prompt or PowerShell window: net stop DFSR in order to stop doing the replication.
On the Secondary Server (where data is replicated to):
- Open the DFS Management Console on the secondary server.
- Expand the “Replication” node.
- Select the “Connections” folder.
- Right-click on each connection and select “Disable.”
Once done, we have to pause replication temporarily:
In the DFS Management Console on the primary server:
- Select the “Replication” node.
- Right-click on the replication group and select “Edit Replication Group Schedule.”
- Set the schedule to “Never” for all connections, effectively pausing replication.
Now check the server configuration [like DFS Namespace, DNS Alias etc..] and confirm that data is consistent between the two servers by comparing file and folder structures, permissions, and file contents.
Troubleshooting doc for reference - https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-file-replication-service-ditributed-file-system
Similar thread for reference- https://learn.microsoft.com/en-us/answers/questions/1129737/stop-dfs-replication-and-remove-file-from-one-sour, https://learn.microsoft.com/en-us/answers/questions/1367367/proper-way-to-disable-dfs-replication-between-2-se
refer - https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/dfsr-sysvol-fails-migrate-replicate for detailed guidance.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.