Skip to content

Commit aa96b5a

Browse files
committed
edit pass: file-sync-replace-drive-2
1 parent b1f3ea4 commit aa96b5a

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed
Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Replace a drive on an Azure File Sync server
3-
description: How to replace a drive on an Azure File Sync server due to hardware decommissioning, optimization or end of support.
3+
description: Learn how to replace a drive on an Azure File Sync server because of hardware decommissioning, optimization, or end of support.
44
author: sindamnataraj
55
ms.service: azure-file-storage
66
ms.topic: how-to
@@ -10,65 +10,67 @@ ms.author: nasindam
1010

1111
# Replace a drive on an Azure File Sync server
1212

13-
This article explains how to replace an existing drive that hosts one or more Azure File Sync server endpoints, either on an on-premises Windows Server or on a virtual machine (VM) in the cloud. This could be because the drive is failing, or because you want to optimize and balance resources by using a different size or type of drive. Some of the steps will differ slightly depending on whether your Azure File Sync registered server is located on-premises or in Azure.
14-
15-
> [!Important]
16-
> Replacing a drive always involves some amount of downtime for users. We recommend following the steps in this article. If you simply recreate the drive and restart the storage sync service without first deleting the server endpoints, then the server will automatically throw away the sync database.
13+
This article explains how to replace an existing drive that hosts one or more Azure File Sync server endpoints, either on an on-premises Windows Server installation or on a virtual machine (VM) in the cloud. This replacement could be because the drive is failing, or because you want to optimize and balance resources by using a different size or type of drive. Some of the steps will differ slightly, depending on whether your Azure File Sync registered server is located on-premises or in Azure.
1714

15+
> [!IMPORTANT]
16+
> Replacing a drive always involves some amount of downtime for users. We recommend following the steps in this article. If you simply re-create the drive and restart the storage sync service without first deleting the server endpoints, the server will automatically throw away the sync database.
1817
1918
## Step 1: Create a temporary VM with new server endpoints
2019

21-
Create a temporary VM (Server B) that's as close as possible to your registered server (Server A). If your registered server is on-premises, create a VM on premises. If your registered server is in the cloud, create a VM in the cloud, preferably in the same region as your registered server.
22-
23-
Then, [create the server endpoints](file-sync-server-endpoint-create.md) on Server B. Enable cloud tiering. Temporarily set the volume free space policy to 99% in order to tier as many files as possible to the cloud.
20+
Create a temporary VM (Server B) that's as close as possible to your registered server (Server A). If your registered server is on-premises, create a VM on-premises. If your registered server is in the cloud, create a VM in the cloud, preferably in the same region as your registered server.
2421

22+
Then, [create the server endpoints](file-sync-server-endpoint-create.md) on Server B. Enable cloud tiering. Temporarily set the volume free space policy to 99% so that you can tier as many files as possible to the cloud.
2523

2624
## Step 2: Copy data to the temporary VM
2725

28-
Use Robocopy, an SMB copy utility that's built into Windows, to copy the data from Server A to Server B. Run the following command from the Windows command line on Server A.
26+
Use Robocopy, a Server Message Block (SMB) copy tool that's built into Windows, to copy the data from Server A to Server B. Run the following command from the Windows command line on Server A:
2927

3028
```console
3129
robocopy <Server A SourcePath> <Server B Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
3230
```
3331

3432
## Step 3: Transition users to the temporary VM
3533

36-
Removing user access to your server endpoints will cause downtime. To minimize downtime, perform these steps as quickly as possible.
37-
1. Remove SMB access to the server endpoints on Server A. Don't delete the server endpoints yet.
38-
2. On Server A, change the startup type of the Storage Sync Agent Service from Automatic to Disabled, and then put it in the Stopped state.
39-
3. Run Robocopy again to copy any changes that happened since the last run. From Server A, run:
40-
34+
Removing user access to your server endpoints causes downtime. To minimize downtime, perform these steps as quickly as possible:
35+
36+
1. Remove SMB access to the server endpoints on Server A. Don't delete the server endpoints yet.
37+
2. On Server A, change the startup type of the Storage Sync Agent Service from **Automatic** to **Disabled**, and then put it in the **Stopped** state.
38+
3. Run Robocopy again to copy any changes that happened since the last run. From Server A, run:
39+
4140
```console
42-
robocopy <SourcePath> <Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
41+
robocopy <SourcePath> <Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
4342
```
44-
5. Enable SMB access to the server endpoints on Server B.
43+
44+
4. Enable SMB access to the server endpoints on Server B.
4545
Users should now be able to access the file share from the temporary VM (Server B).
4646

47-
## Step 4: Delete old server endpoints and replace drive
47+
## Step 4: Delete old server endpoints and replace the drive
4848

4949
When you're sure that user access is restored, [delete the server endpoints](file-sync-server-endpoint-delete.md) and replace the drive on Server A. Make sure the drive letter of the replaced drive is the same as it was before the replacement.
5050

5151
## Step 5: Create new server endpoints and copy data to the new drive
5252

53-
Re-create the server endpoints on Server A. Enable cloud tiering. Temporarily set the volume free space policy to 99% in order to tier as many files as possible to the cloud.
53+
Re-create the server endpoints on Server A. Enable cloud tiering. Temporarily set the volume free space policy to 99% so that you can tier as many files as possible to the cloud.
5454

55-
Use Robocopy to copy the data to the new drive on Server A. Run the following command from the Windows command line on Server B.
55+
Use Robocopy to copy the data to the new drive on Server A. Run the following command from the Windows command line on Server B:
5656

5757
```console
5858
robocopy <Server B SourcePath> <Server A Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
5959
```
6060

61-
## Step 6: Restore user access to registered server
61+
## Step 6: Restore user access to the registered server
6262

63-
Removing user access to your server endpoints on the temporary VM will cause downtime. To minimize downtime, perform these steps as quickly as possible.
63+
Removing user access to your server endpoints on the temporary VM causes downtime. To minimize downtime, perform these steps as quickly as possible:
64+
65+
1. Remove SMB access to the server endpoints on Server B. Don't delete the server endpoints yet.
66+
2. Run Robocopy again to copy any changes that happened since the last run. From Server B, run:
6467

65-
1. Remove SMB access to the server endpoints on Server B. Don't delete the server endpoints yet.
66-
2. Run Robocopy again to copy any changes that happened since the last run. From Server B, run:
67-
6868
```console
69-
robocopy <SourcePath> <Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
69+
robocopy <SourcePath> <Dest.Path> /MT:16 /R:2 /W:1 /COPYALL /MIR /DCOPY:DAT /XA:O /B /IT /UNILOG:RobocopyLog.txt
7070
```
71-
3. On Server A, change the startup type of the Storage Sync Agent Service from Disabled to Automatic, and then put it in the Started state.
72-
4. Enable SMB access to the server endpoints on Server A.
73-
5. Sign into the Azure portal. Navigate to the sync group and verify that the cloud endpoint is syncing to the server endpoint(s) on Server A.
74-
Users should now be able to access the file share from your registered server. Remember to change your volume free space policy to a reasonable level such as 10-20%.
71+
72+
3. On Server A, change the startup type of the Storage Sync Agent Service from **Disabled** to **Automatic**, and then put it in the **Started** state.
73+
4. Enable SMB access to the server endpoints on Server A.
74+
5. Sign in to the Azure portal. Go to the sync group and verify that the cloud endpoint is syncing to the server endpoints on Server A.
75+
76+
Users should now be able to access the file share from your registered server. Remember to change your volume free space policy to a reasonable level, such as 10-20%.

0 commit comments

Comments
 (0)