Monday, July 26, 2021

Azure File Sync Switching Server Endpoint on Existing Server

Introduction

This is Andrew Coughlin and I am a Customer Engineer at Microsoft focusing on Azure IaaS.  In this blog I will focus on how to switch the server endpoint on an existing server. In some cases, you may need change the drive where the share is hosted on for a couple of reasons:

  • Changing underlining storage
  • Adding additional capacity
  • Freeing up a drive letter to be repurposed later
  • Need a higher performing disk for your share

 

This article will walk you through the step-by-step process on how to move your path on a server endpoint from one drive on a server, to another drive on the same server.  Are you looking to migrate your Azure File Sync server to a new server?  Check out my article here that covers this process.  In this article we will be moving our files from E:\Shares2 to F:\Shares2 on the same server.

 

If you are currently having issues with your Azure File Sync Server, this blog is not for your scenario.  If you are having issues with your sync server it is best to open a support request and work with an engineer to solve the problem.

 

Prerequisites

  • Existing Azure File Sync Service setup and configured.
  • New allocated disk on the server and formatted and drive letter assigned.

 

Verify Existing File Structure

Let’s first check and look at the structure of our file share before we start the process.

  1. Connect to the file server. (This could be done remotely)
  2. Navigate to the location of the share that will be moved to the new drive.

AndrewCoughlin_1-1626365093264.png

 

  1. Verify which files are local and which files are cloud tiered.
  2. Continue to the next step.

Check Server Endpoint Configuration

  1. Login to the Azure portal.
  2. Navigate to the resource group that has the Storage Sync Service.
  3. Click on the Storage Sync Service.
  4. Click on Sync Groups.
  5. Click on the Server Endpoint.
  6. Take note of the following:
    • Cloud Tiering Enabled/Disabled.
    • Volume Free Space Policy.
    • Date Policy Enabled/Disabled.
    • Date Policy
  7. Then Click the X in the top right-hand corner.

AndrewCoughlin_2-1626365093275.png

 

  1. Continue on to the next step, removing server endpoint.

 

Remove Server Endpoint

  1. Login to the Azure portal.
  2. Navigate to the resource group that has the Storage Sync Service.
  3. Click on the Storage Sync Service.
  4. Click on Sync Groups.
  5. Click on the Server Endpoint.

AndrewCoughlin_3-1626365093281.png

 

  1. Click Delete.

AndrewCoughlin_4-1626365093286.png

 

  1. Type the name of the server endpoint and click Delete.

NOTE: You will not need to recall the files before doing this.

AndrewCoughlin_5-1626365093297.png

 

 

  1. Wait until all cloud tiered files have been removed from the old path on the server.

NOTE: This process could take several hours depending on how many files / folders the server has.  When this process is complete, we should only see files locally on the server.

AndrewCoughlin_6-1626365093300.png

 

  1. Once tiered files have been deleted, process to Adding the server endpoint.

 

Adding the Server Endpoint

At this stage we have removed the server endpoint and the files are no longer syncing.  Our files have not been lost; we will recover them back in this step.  At this point the files still exist on our share in the storage account in Azure. Since we are moving from E:\Shares2 to F:\Shares2,  the folder on the F:\ will need to be manually created before proceeding.

  1. Login to the Azure portal.
  2. Navigate to the resource group that has the Storage Sync Service.
  3. Click on the Storage Sync Service.
  4. Click on Sync Groups.
  5. Click on Add server endpoints.
  6. Select the Registered Server and type the new path.

AndrewCoughlin_7-1626365093309.png

 

 

  1. Click Enabled on Cloud Tiering and expand Cloud Tiering.
  2. Set the Volume Free Policy and Enable Date Policy if required.
  3. Set the Specify the number of days if required.

AndrewCoughlin_8-1626365093316.png

 

NOTE: Set these settings as you noted in pervious steps. (“Check Server Endpoint Configuration”)

 

  1. Expand Initial download and confirm Recall the namespace only is selected.
  2. Click Create.

AndrewCoughlin_9-1626365093324.png

 

 

  1. Once completed the health status should be green.

AndrewCoughlin_10-1626365093329.png

 

  1. When navigating to the files you will see that all files will be set to cloud tiered.

AndrewCoughlin_11-1626365093345.png

 

NOTE: As files are accessed, they will be recalled to the local server.

  1. You will then need to update the share location from the old drive to the new drive.
  2. You then can safely remove the old drive from the server.

 

Conclusion

In this blog I have covered how to switch the server endpoint on an existing server. Are you a Premier or Unified customer? If so and you are wanting to know more about Azure File Sync and Azure Files, ask your CSAM about the Activate Azure with Azure File offering.  Thank you for taking the time to read this blog, I hope this helps you and see you next time.

Posted at https://sl.advdat.com/3zvmeyU