Skip to content

Commit 94f85a6

Browse files
authored
Merge pull request #197936 from jeffpatt24/patch-5
Update file-sync-troubleshoot.md
2 parents 261655a + 6166d27 commit 94f85a6

File tree

2 files changed

+20
-51
lines changed

2 files changed

+20
-51
lines changed

articles/storage/file-sync/file-sync-troubleshoot.md

Lines changed: 19 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -715,15 +715,11 @@ To confirm the certificate is expired, perform the following steps:
715715
1. Open the Certificates MMC snap-in, select Computer Account and navigate to Certificates (Local Computer)\Personal\Certificates.
716716
2. Check if the client authentication certificate is expired.
717717
718-
If the client authentication certificate is expired, perform the following steps to resolve the issue:
719-
720-
1. Verify Azure File Sync agent version 4.0.1.0 or later is installed.
721-
2. Run the following PowerShell command on the server:
722-
723-
```powershell
724-
Reset-AzStorageSyncServerCertificate -ResourceGroupName <string> -StorageSyncServiceName <string>
725-
```
718+
If the client authentication certificate is expired, run the following PowerShell command on the server:
726719
720+
```powershell
721+
Reset-AzStorageSyncServerCertificate -ResourceGroupName <string> -StorageSyncServiceName <string>
722+
```
727723
<a id="-2134375896"></a>**Sync failed due to authentication certificate not found.**
728724

729725
| Error | Code |
@@ -735,15 +731,11 @@ If the client authentication certificate is expired, perform the following steps
735731

736732
This error occurs because the certificate used for authentication is not found.
737733

738-
To resolve this issue, perform the following steps:
739-
740-
1. Verify Azure File Sync agent version 4.0.1.0 or later is installed.
741-
2. Run the following PowerShell command on the server:
742-
743-
```powershell
744-
Reset-AzStorageSyncServerCertificate -ResourceGroupName <string> -StorageSyncServiceName <string>
745-
```
734+
To resolve this issue, run the following PowerShell command on the server:
746735

736+
```powershell
737+
Reset-AzStorageSyncServerCertificate -ResourceGroupName <string> -StorageSyncServiceName <string>
738+
```
747739
<a id="-2134364039"></a>**Sync failed due to authentication identity not found.**
748740

749741
| Error | Code |
@@ -890,9 +882,7 @@ This error occurs because of an internal problem with the sync database. This er
890882
| **Error string** | ECS_E_INVALID_AAD_TENANT |
891883
| **Remediation required** | Yes |
892884

893-
Make sure you have the latest Azure File Sync agent. As of agent V10, Azure File Sync supports moving the subscription to a different Azure Active Directory tenant.
894-
895-
Once you have the latest agent version, you must give the Microsoft.StorageSync application access to the storage account (see [Ensure Azure File Sync has access to the storage account](#troubleshoot-rbac)).
885+
Verify you have the latest Azure File Sync agent version installed and give the Microsoft.StorageSync application access to the storage account (see [Ensure Azure File Sync has access to the storage account](#troubleshoot-rbac)).
896886

897887
<a id="-2134364010"></a>**Sync failed due to firewall and virtual network exception not configured**
898888

@@ -1206,7 +1196,7 @@ If files fail to tier to Azure Files:
12061196
| 0x80072ee7 | -2147012889 | WININET_E_NAME_NOT_RESOLVED | The file failed to tier due to a network issue. | No action required. If the error persists, check network connectivity to the Azure file share. |
12071197
| 0x80070005 | -2147024891 | ERROR_ACCESS_DENIED | The file failed to tier due to access denied error. This error can occur if the file is located on a DFS-R read-only replication folder. | Azure Files Sync does not support server endpoints on DFS-R read-only replication folders. See [planning guide](file-sync-planning.md#distributed-file-system-dfs) for more information. |
12081198
| 0x80072efe | -2147012866 | WININET_E_CONNECTION_ABORTED | The file failed to tier due to a network issue. | No action required. If the error persists, check network connectivity to the Azure file share. |
1209-
| 0x80c80261 | -2134375839 | ECS_E_GHOSTING_MIN_FILE_SIZE | The file failed to tier because the file size is less than the supported size. | If the agent version is less than 9.0, the minimum supported file size is 64 KiB. If agent version is 9.0 and newer, the minimum supported file size is based on the file system cluster size (double file system cluster size). For example, if the file system cluster size is 4 KiB, the minimum file size is 8 KiB. |
1199+
| 0x80c80261 | -2134375839 | ECS_E_GHOSTING_MIN_FILE_SIZE | The file failed to tier because the file size is less than the supported size. | The minimum supported file size is based on the file system cluster size (double file system cluster size). For example, if the file system cluster size is 4 KiB, the minimum file size is 8 KiB. |
12101200
| 0x80c83007 | -2134364153 | ECS_E_STORAGE_ERROR | The file failed to tier due to an Azure storage issue. | If the error persists, open a support request. |
12111201
| 0x800703e3 | -2147023901 | ERROR_OPERATION_ABORTED | The file failed to tier because it was recalled at the same time. | No action required. The file will be tiered when the recall completes and the file is no longer in use. |
12121202
| 0x80c80264 | -2134375836 | ECS_E_GHOSTING_FILE_NOT_SYNCED | The file failed to tier because it has not synced to the Azure file share. | No action required. The file will tier once it has synced to the Azure file share. |
@@ -1279,37 +1269,35 @@ If the above conditions are not met, restoring access is not possible as these t
12791269

12801270
<a id="get-orphaned"></a>**How to get the list of orphaned tiered files**
12811271

1282-
1. Verify Azure File Sync agent version v5.1 or later is installed.
1283-
2. Run the following PowerShell commands to list orphaned tiered files:
1272+
1. Run the following PowerShell commands to list orphaned tiered files:
12841273
```powershell
12851274
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
12861275
$orphanFiles = Get-StorageSyncOrphanedTieredFiles -path <server endpoint path>
12871276
$orphanFiles.OrphanedTieredFiles > OrphanTieredFiles.txt
12881277
```
1289-
3. Save the OrphanTieredFiles.txt output file in case files need to be restored from backup after they are deleted.
1278+
2. Save the OrphanTieredFiles.txt output file in case files need to be restored from backup after they are deleted.
12901279

12911280
<a id="remove-orphaned"></a>**How to remove orphaned tiered files**
12921281

12931282
*Option 1: Delete the orphaned tiered files*
12941283

12951284
This option deletes the orphaned tiered files on the Windows Server but requires removing the server endpoint if it exists due to recreation after 30 days or is connected to a different sync group. File conflicts will occur if files are updated on the Windows Server or Azure file share before the server endpoint is recreated.
12961285

1297-
1. Verify Azure File Sync agent version v5.1 or later is installed.
1298-
2. Back up the Azure file share and server endpoint location.
1299-
3. Remove the server endpoint in the sync group (if exists) by following the steps documented in [Remove a server endpoint](file-sync-server-endpoint-delete.md).
1286+
1. Back up the Azure file share and server endpoint location.
1287+
2. Remove the server endpoint in the sync group (if exists) by following the steps documented in [Remove a server endpoint](file-sync-server-endpoint-delete.md).
13001288

13011289
> [!Warning]
13021290
> If the server endpoint is not removed prior to using the Remove-StorageSyncOrphanedTieredFiles cmdlet, deleting the orphaned tiered file on the server will delete the full file in the Azure file share.
13031291
1304-
4. Run the following PowerShell commands to list orphaned tiered files:
1292+
3. Run the following PowerShell commands to list orphaned tiered files:
13051293

13061294
```powershell
13071295
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
13081296
$orphanFiles = Get-StorageSyncOrphanedTieredFiles -path <server endpoint path>
13091297
$orphanFiles.OrphanedTieredFiles > OrphanTieredFiles.txt
13101298
```
1311-
5. Save the OrphanTieredFiles.txt output file in case files need to be restored from backup after they are deleted.
1312-
6. Run the following PowerShell commands to delete orphaned tiered files:
1299+
4. Save the OrphanTieredFiles.txt output file in case files need to be restored from backup after they are deleted.
1300+
5. Run the following PowerShell commands to delete orphaned tiered files:
13131301

13141302
```powershell
13151303
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
@@ -1321,7 +1309,7 @@ $orphanFilesRemoved.OrphanedTieredFiles > DeletedOrphanFiles.txt
13211309
- Tiered files that are accessible (not orphan) will not be deleted.
13221310
- Non-tiered files will remain on the server.
13231311

1324-
7. Optional: Recreate the server endpoint if deleted in step 3.
1312+
6. Optional: Recreate the server endpoint if deleted in step 3.
13251313

13261314
*Option 2: Mount the Azure file share and copy the files locally that are orphaned on the server*
13271315

@@ -1377,9 +1365,8 @@ If you encounter issues with Azure File Sync on a server, start by completing th
13771365

13781366
If the issue is not resolved, run the AFSDiag tool and send its .zip file output to the support engineer assigned to your case for further diagnosis.
13791367

1380-
To run AFSDiag, perform the steps below.
1368+
To run AFSDiag, perform the steps below:
13811369

1382-
For agent version v11 and later:
13831370
1. Open an elevated PowerShell window, and then run the following commands (press Enter after each command):
13841371

13851372
> [!NOTE]
@@ -1394,24 +1381,6 @@ For agent version v11 and later:
13941381
2. Reproduce the issue. When you're finished, enter **D**.
13951382
3. A .zip file that contains logs and trace files is saved to the output directory that you specified.
13961383
1397-
For agent version v10 and earlier:
1398-
1. Create a directory where the AFSDiag output will be saved (for example, C:\Output).
1399-
> [!NOTE]
1400-
>AFSDiag will delete all content in the output directory prior to collecting logs. Specify an output location which does not contain data.
1401-
2. Open an elevated PowerShell window, and then run the following commands (press Enter after each command):
1402-
1403-
```powershell
1404-
cd "c:\Program Files\Azure\StorageSyncAgent"
1405-
Import-Module .\afsdiag.ps1
1406-
Debug-Afs c:\output # Note: Use the path created in step 1.
1407-
```
1408-
1409-
3. For the Azure File Sync kernel mode trace level, enter **1** (unless otherwise specified, to create more verbose traces), and then press Enter.
1410-
4. For the Azure File Sync user mode trace level, enter **1** (unless otherwise specified, to create more verbose traces), and then press Enter.
1411-
5. Reproduce the issue. When you're finished, enter **D**.
1412-
6. A .zip file that contains logs and trace files is saved to the output directory that you specified.
1413-
1414-
14151384
## See also
14161385
- [Monitor Azure File Sync](file-sync-monitoring.md)
14171386
- [Troubleshoot Azure Files problems in Windows](../files/storage-troubleshoot-windows-file-connection-problems.md)

includes/storage-sync-files-agent-update-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There are four approved and tested ways to install the Azure File Sync agent upd
2323
To upgrade an existing Azure File Sync agent installation, uninstall the older version and then install the latest version from the downloaded installer. The server registration, sync groups, and any other settings are maintained by the Azure File Sync installer.
2424

2525
#### Automatic agent lifecycle management
26-
With agent version 6, the file sync team has introduced an agent auto-upgrade feature. You can select either of two modes and specify a maintenance window in which the upgrade shall be attempted on the server. This feature is designed to help you with the agent lifecycle management by either providing a guardrail preventing your agent from expiration or allowing for a no-hassle, stay current setting.
26+
The Azure File Sync agent will auto-upgrade. You can select either of two modes and specify a maintenance window in which the upgrade shall be attempted on the server. This feature is designed to help you with the agent lifecycle management by either providing a guardrail preventing your agent from expiration or allowing for a no-hassle, stay current setting.
2727
1. The **default setting** will attempt to prevent the agent from expiration. Within 21 days of the posted expiration date of an agent, the agent will attempt to self-upgrade. It will start an attempt to upgrade once a week within 21 days prior to expiration and in the selected maintenance window. **This option does not eliminate the need for taking regular Microsoft Update patches.**
2828
1. Optionally, you can select that the agent will automatically upgrade itself as soon as a new agent version becomes available (currently not applicable to clustered servers). This update will occur during the selected maintenance window and allow your server to benefit from new features and improvements as soon as they become generally available. This is the recommended, worry-free setting that will provide major agent versions as well as regular update patches to your server. Every agent released is at GA quality. If you select this option, Microsoft will flight the newest agent version to you. Clustered servers are excluded. Once flighting is complete, the agent will also become available on [Microsoft Download Center](https://go.microsoft.com/fwlink/?linkid=858257) aka.ms/AFS/agent.
2929

0 commit comments

Comments
 (0)