Replace an Azure File Sync server
This article provides guidance on how to replace an Azure File Sync server due to hardware decommissioning or end of support (for example, Windows Server 2012 R2).
New Azure File Sync server
Deploy a new on-premises server or Azure virtual machine that's running a supported Windows Server operating system version.
Install the latest Azure File Sync agent on the new server, then register the server to the same Storage Sync Service as the server that's being replaced (referred to as "old server" in this guide).
Create file shares on the new server and verify that the share-level permissions match the permissions configured on the old server.
Optional: To reduce the amount of data that needs to be downloaded to the new server from the Azure file share, use Robocopy to copy the files in the cache from the old server to the new server.
Robocopy <source> <destination> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
Once the initial copy is completed, run the Robocopy command again to copy any remaining changes.
In the Azure portal, navigate to the Storage Sync Service. Go to the sync group which has a server endpoint for the old server and create a server endpoint on the new server. Repeat this step for every sync group that has a server endpoint for the old server.
For example, if the old server has four server endpoints (four sync groups), then you should create four server endpoints on the new server.
Wait for the namespace download to complete to the new server. To monitor progress, see How do I monitor the progress of a current sync session?.
User cut-over
To redirect user access to the new Azure File Sync server, perform one of the following options:
- Option #1: Rename the old server to a random name, then rename the new server to the same name as the old server.
- Option #2: Use Distributed File Systems Namespaces (DFS-N) to redirect users to the new server.
Old Azure File Sync server
- Follow the steps in the Deprovision or delete your Azure File Sync server endpoint documentation to verify that all files have synced to the Azure file share prior to deleting one or more server endpoints on the old server.
- Once all server endpoints are deleted on the old server, you can unregister the server.