You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Azure File Sync agent installation fails, at an elevated command prompt, run the following command to turn on logging during agent installation:
18
+
If the Azure File Sync agent installation fails, locate the installation log file which is located in the agent installation directory. If the Azure File Sync agent is installed on the C: volume, the installation log file is located under C:\Program Files\Azure\StorageSyncAgent\InstallerLog.
19
19
20
+
> [!Note]
21
+
> If the Azure File Sync agent is installed from the command line and the /l\*v switch is used, the log file will be located in the path where the agent installation was executed.
22
+
23
+
The log file name for agent installations using the MSI package is AfsAgentInstall. The log file name for agent installations using the MSP package (update package) is AfsUpdater.
24
+
25
+
Once you have located the agent installation log file, open the file and search for the failure code at the end of the log. If you search for **error code 1603** or **sandbox**, you should be able to locate the error code.
26
+
27
+
Here is a snippet from an agent installation that failed:
CAQuietExec64: Error 0x80070001: Failed in ExecCommon64 method
51
+
CustomAction SetRegPIIAclSettings returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
52
+
Action ended 12:23:40: InstallExecute. Return value 3.
53
+
MSI (s) (0C:C8) [12:23:40:994]: Note: 1: 2265 2: 3: -2147287035
34
54
```
35
55
36
56
This issue occurs if the [PowerShell execution policy](/powershell/module/microsoft.powershell.core/about/about_execution_policies#use-group-policy-to-manage-execution-policy) is configured using group policy and the policy setting is "Allow only signed scripts." All scripts included with the Azure File Sync agent are signed. The Azure File Sync agent installation fails because the installer is performing the script execution using the Bypass execution policy setting.
37
57
38
58
To resolve this issue, temporarily disable the [Turn on Script Execution](/powershell/module/microsoft.powershell.core/about/about_execution_policies#use-group-policy-to-manage-execution-policy) group policy setting on the server. Once the agent installation completes, the group policy setting can be re-enabled.
39
59
40
60
<aid="agent-installation-on-DC"></a>**Agent installation fails on Active Directory Domain Controller**
41
-
If you try to install the sync agent on an Active Directory domain controller where the PDC role owner is on a Windows Server 2008 R2 or below OS version, you may hit the issue where the sync agent will fail to install.
61
+
62
+
In the agent installation log, the following error is logged:
63
+
64
+
```
65
+
CAQuietExec64: Error 0x80070001: Command line returned an error.
CustomAction InstallHFSRequiredWindowsFeatures returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
68
+
Action ended 8:51:12: InstallExecute. Return value 3.
69
+
MSI (s) (EC:B4) [08:51:12:439]: Note: 1: 2265 2: 3: -2147287035
70
+
```
71
+
72
+
This issue occurs if you try to install the sync agent on an Active Directory domain controller where the PDC role owner is on a Windows Server 2008 R2 or below OS version.
42
73
43
74
To resolve, transfer the PDC role to another domain controller running Windows Server 2012 R2 or more recent, then install sync.
<aid="serverendpoint-pending"></a>**Server endpoint health is in a pending state for several hours**
23
-
This issue is expected if you create a cloud endpoint and use an Azure file share that contains data. The change enumeration job that scans for changes in the Azure file share must complete before files can sync between the cloud and server endpoints. The time to complete the job is dependent on the size of the namespace in the Azure file share. The server endpoint health should update once the change enumeration job completes.
23
+
This issue is expected if you create a cloud endpoint and use an Azure file share that contains data. The cloud change enumeration job that scans for changes in the Azure file share must complete before files can sync between the cloud and server endpoints. The time to complete the job is dependent on the size of the namespace in the Azure file share. The server endpoint health should update once the change enumeration job completes.
24
+
25
+
To check the status of the cloud change enumeration job, go the Cloud Endpoint properties in the portal and the status is provided in the Change Enumeration section.
24
26
25
27
### <aid="broken-sync"></a>How do I monitor sync health?
26
28
# [Portal](#tab/portal1)
@@ -781,7 +783,7 @@ Server endpoint provisioning fails with this error code if these conditions are
781
783
* This server endpoint was provisioned with the initial sync mode: [server authoritative](file-sync-server-endpoint-create.md#initial-sync-section)
782
784
* Local server path is empty or contains no items recognized as able to sync.
783
785
784
-
This provisioning error protects you from deleting all content that might be available in an Azure file share. Server authoritative upload is a special mode to catch up a cloud location that was already seeded, with the updates from the server location. Review this [migration guide](../files/storage-files-migration-server-hybrid-databox.md) to understand the scenario for which this mode has been built for.
786
+
This provisioning error protects you from deleting all content that might be available in an Azure file share. Server authoritative upload is a special mode to catch up a cloud location that was already seeded, with the updates from the server location. Review this [migration guide](../files/storage-files-migration-server-hybrid-databox.md) to understand the scenario for which this mode has been built.
785
787
786
788
1. Remove the server endpoint in the sync group by following the steps documented in [Remove a server endpoint](file-sync-server-endpoint-delete.md).
787
789
1. Create a new server endpoint in the sync group by following the steps documented in [Add a server endpoint](file-sync-server-endpoint-create.md).
Copy file name to clipboardExpand all lines: articles/storage/files/storage-files-faq.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,13 @@ ms.topic: conceptual
25
25
26
26
* <aid="afs-conflict-resolution"></a>
27
27
**If the same file is changed on two servers at approximately the same time, what happens?**
28
+
File conflicts are created when the file in the Azure file share doesn't match the file in the server endpoint location (size and/or last modified time is different).
29
+
30
+
The following scenarios can cause file conflicts:
31
+
- A file is created or modified in an endpoint (for example, Server A). If the same file is modified on a different endpoint before the change on Server A is synced to that endpoint, a conflict file is created.
32
+
- The file existed in the Azure file share and server endpoint location prior to the server endpoint creation. If the file size and/or last modified time is different between the file on the server and Azure file share when the server endpoint is created, a conflict file is created.
33
+
- Sync database was recreated due to corruption or knowledge limit reached. Once the database is recreated, sync enters a mode called reconciliation. If the file size and/or last modified time is different between the file on the server and Azure file share when reconciliation occurs, a conflict file is created.
34
+
28
35
Azure File Sync uses a simple conflict-resolution strategy: we keep both changes to files that are changed in two endpoints at the same time. The most recently written change keeps the original file name. The older file (determined by LastWriteTime) has the endpoint name and the conflict number appended to the file name. For server endpoints, the endpoint name is the name of the server. For cloud endpoints, the endpoint name is **Cloud**. The name follows this taxonomy:
Copy file name to clipboardExpand all lines: articles/storage/files/storage-files-scale-targets.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ File scale targets apply to individual files stored in Azure file shares.
90
90
<sup>3 Azure Files supports 2,000 open handles per share, and in practice can go higher. However, if an application keeps an open handle on the root of the share, the share root limit will be reached before the per-file or per-directory limit is reached.</sup>
91
91
92
92
## Azure File Sync scale targets
93
-
The following table indicates which target are soft, representing the Microsoft tested boundary, and hard, indicating an enforced maximum:
93
+
The following table indicates which targets are soft, representing the Microsoft tested boundary, and hard, indicating an enforced maximum:
94
94
95
95
| Resource | Target | Hard limit |
96
96
|----------|--------------|------------|
@@ -109,7 +109,7 @@ The following table indicates which target are soft, representing the Microsoft
109
109
> [!Note]
110
110
> An Azure File Sync endpoint can scale up to the size of an Azure file share. If the Azure file share size limit is reached, sync will not be able to operate.
111
111
112
-
###Azure File Sync performance metrics
112
+
## Azure File Sync performance metrics
113
113
Since the Azure File Sync agent runs on a Windows Server machine that connects to the Azure file shares, the effective sync performance depends upon a number of factors in your infrastructure: Windows Server and the underlying disk configuration, network bandwidth between the server and the Azure storage, file size, total dataset size, and the activity on the dataset. Since Azure File Sync works on the file level, the performance characteristics of an Azure File Sync-based solution should be measured by the number of objects (files and directories) processed per second.
114
114
115
115
For Azure File Sync, performance is critical in two stages:
@@ -119,7 +119,8 @@ For Azure File Sync, performance is critical in two stages:
119
119
> [!Note]
120
120
> When many server endpoints in the same sync group are syncing at the same time, they are contending for cloud service resources. As a result, upload performance will be impacted. In extreme cases, some sync sessions will fail to access the resources, and will fail. However, those sync sessions will resume shortly and eventually succeed once the congestion is reduced.
121
121
122
-
To help you plan your deployment for each of the stages, below are the results observed during the internal testing on a system with a config
122
+
## Internal test results
123
+
To help you plan your deployment for each of the stages (initial one-time provisioning and ongoing sync), below are the results observed during the internal testing on a system with the following configuration:
123
124
124
125
| System configuration | Details |
125
126
|-|-|
@@ -129,6 +130,8 @@ To help you plan your deployment for each of the stages, below are the results o
129
130
| Network | 1 Gbps Network |
130
131
| Workload | General Purpose File Server|
131
132
133
+
### Initial one-time provisioning
134
+
132
135
| Initial one-time provisioning | Details |
133
136
|-|-|
134
137
| Number of objects | 25 million objects |
@@ -138,8 +141,6 @@ To help you plan your deployment for each of the stages, below are the results o
138
141
| Upload Throughput | 20 objects per second per sync group |
139
142
| Namespace Download Throughput | 400 objects per second |
140
143
141
-
### Initial one-time provisioning
142
-
143
144
**Initial cloud change enumeration**: When a new sync group is created, initial cloud change enumeration is the first step that will execute. In this process, the system will enumerate all the items in the Azure File Share. During this process, there will be no sync activity i.e. no items will be downloaded from cloud endpoint to server endpoint and no items will be uploaded from server endpoint to cloud endpoint. Sync activity will resume once initial cloud change enumeration completes.
144
145
The rate of performance is 80 objects per second. Customers can estimate the time it will take to complete initial cloud change enumeration by determining the number of items in the cloud share and using the following formulae to get the time in days.
145
146
@@ -157,6 +158,8 @@ Splitting your data into multiple server endpoints and sync groups can speed up
157
158
158
159
**Namespace download throughput** When a new server endpoint is added to an existing sync group, the Azure File Sync agent does not download any of the file content from the cloud endpoint. It first syncs the full namespace and then triggers background recall to download the files, either in their entirety or, if cloud tiering is enabled, to the cloud tiering policy set on the server endpoint.
159
160
161
+
### Ongoing sync
162
+
160
163
| Ongoing sync | Details |
161
164
|-|--|
162
165
| Number of objects synced| 125,000 objects (~1% churn) |
0 commit comments