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
# Troubleshoot slow replication or stuck migration issues in agentless VMware migration
13
13
14
-
This article helps you troubleshoot slow replication or stuck migration issues in agentless VMware migration.
14
+
This article helps you troubleshoot slow replication or stuck migration issues that you may encounter when you replicate on-premises VMware VMs using the Azure Migrate: Server Migration agentless method.
15
15
16
16
## Slow or stuck replication
17
17
18
18
### Replication is slow or stuck for VM
19
19
20
-
While performing replications, you might observe that replication for a particular VM is not progressing at the expected pace. Generally, the underlying reason for this issue is an unavailability or scarcity of some resources required for replication. The resources might be consumed by other VMs that are replicating or some other process running on the appliance in the datacenter.
20
+
While performing replications, you might observe that replication for a particular VM isn't progressing at the expected pace. Generally, the underlying reason for this issue is an unavailability or scarcity of some resources required for replication. The resources might be consumed by other VMs that are replicating or some other process running on the appliance in the datacenter.
21
21
22
22
Following are some reasons that generally cause this issue and remediations.
23
23
24
24
#### NFC buffer size low
25
25
26
-
The Azure Migrate appliance operates under the constraint of using 32MB of NFC buffer to concurrently replicate 8 disks on the ESXi host. An NFC buffer size of less than 32MB might cause slow replication.
26
+
The Azure Migrate appliance operates under the constraint of using 32 MB of NFC buffer to concurrently replicate 8 disks on the ESXi host. An NFC buffer size of less than 32 MB might cause slow replication.
27
27
You may also get the following exception:
28
28
29
29
Exception: GatewayErrorHandling.GatewayServiceException: The operation failed with the error 'Memory allocation failed. Out of memory.'
30
30
31
31
#### Remediation
32
32
33
-
You can increase the NFC buffer size beyond 32MB to increase concurrency. The setting needs to be done on both the ESXi host and on the appliance. If not, the replication may perform even worse.
33
+
You can increase the NFC buffer size beyond 32 MB to increase concurrency. The setting needs to be done on both the ESXi host and on the appliance. If not, the replication may perform even worse.
34
34
35
35
> [!Caution]
36
-
> Increasing the size to more than 32MB might cause resource constraints in the environment. Before proceeding, consult with the System Administrator to understand the implications.
36
+
> Increasing the size to more than 32 MB might cause resource constraints in the environment. Before proceeding, consult with the System Administrator to understand the implications.
37
37
38
38
**Changes in ESXi host**
39
39
40
40
1. SSH to the ESXi host as root.
41
41
2. Use the vi editor to open “/etc/vmware/hostd/config.xml”.
42
-
3. Find the section that looks like th one below:
43
-
44
-
```
45
-
<nfcsvc>
46
-
<enabled>true</enabled>
47
-
<maxMemory>134217728</maxMemory>
48
-
<maxStreamMemory>10485760</maxStreamMemory>
49
-
<path>libnfcsvc.so</path>
50
-
</nfcsvc>
51
-
```
52
-
4. Edit the value of `maxMemory` to the value (in Bytes) that you’d like to configure for the NFC buffer. In this example, it is set to 128MB (128*1024*1024).
42
+
3. Find the section that looks like the one below:
43
+
44
+
```
45
+
<nfcsvc>
46
+
<enabled>true</enabled>
47
+
<maxMemory>134217728</maxMemory>
48
+
<maxStreamMemory>10485760</maxStreamMemory>
49
+
<path>libnfcsvc.so</path>
50
+
</nfcsvc>
51
+
```
52
+
4. Edit the value of `maxMemory` to the value (in Bytes) that you’d like to configure for the NFC buffer. In this example, it's set to 128 MB (128 * 1024 * 1024).
53
53
5. Save and exit.
54
54
6. Restart the management agents from the shell using the following commands:
55
55
- /etc/init.d/hostd restart
@@ -58,14 +58,14 @@ You can increase the NFC buffer size beyond 32MB to increase concurrency. The se
58
58
**Changes in Appliance**
59
59
60
60
1. Sign in to the Azure Migrate appliance as an administrator using the Remote Desktop.
61
-
2. Open the "GatewayDataWorker.json" file in "%programdata%\Microsoft Azure\Config".
62
-
3. Create an empty json if one doesn’t exist and paste the following text in the new file created.
61
+
2. Open the GatewayDataWorker.json file in the "%programdata%\Microsoft Azure\Config" folder.
62
+
3. Create an empty json file if it doesn’t exist and paste the following text in the new file created.
63
63
```
64
64
{
65
65
"HostBufferSizeInMB": "32",
66
66
}
67
67
```
68
-
4. Change the value of “HostBufferSizeInMB” to the value you set in the ESXi host.
68
+
4. Change the value of `HostBufferSizeInMB` to the value that you set in the ESXi host.
69
69
5. Save and exit.
70
70
6. Restart the Azure Migrate gateway service that is running on the appliance. Open PowerShell and execute the following:
71
71
- net stop asrgwy (wait for the service to stop)
@@ -78,19 +78,19 @@ When the ESXi host on which the replicating VM is present is too busy, the repli
78
78
79
79
#### Remediation
80
80
81
-
Use VMotion to move the VM with slow replication to an ESXi host which is not too busy.
81
+
Use VMotion to move the VM with slow replication to an ESXi host, which isn't too busy.
82
82
83
83
#### Network bandwidth
84
84
85
85
Replications might be slow because of low network bandwidth available to the Azure Migrate appliance. Low bandwidth might be due to other applications using up the bandwidth or presence of bandwidth throttling applications or a proxy setting restricting the bandwidth use of replication appliance.
86
86
87
87
#### Remediation
88
88
89
-
In case of low bandwidth, you can first reduce the number of applications using network bandwidth. Check with you network administrator if any throttling application or proxy setting is present.
89
+
In case of low bandwidth, you can first reduce the number of applications using network bandwidth. Check with your network administrator if any throttling application or proxy setting is present.
90
90
91
91
#### Disk I/O
92
92
93
-
Replications can be slow because the server that is being replicated has too much load on it and this is causing high I/O operations on disks attached to it. It is advised to reduce the load on the server to increase the replication speed. You may also encounter the following error:
93
+
Replications can be slow because the server that is being replicated has too much load on it and this is causing high I/O operations on disks attached to it. It's advised to reduce the load on the server to increase the replication speed. You may also encounter the following error:
94
94
95
95
The last replication cycle for the virtual machine ‘VM Name’ failed. Encountered timeout event.
96
96
@@ -101,26 +101,26 @@ If no action is taken, the replication will proceed and be completed with a dela
101
101
Replications can be slower than expected if the data upload speed is higher than the write speed of the disk that you selected while enabling replication. To get better speeds at same upload speeds, you would need to restart the replication and select **Premium** while selecting the disk type for replication.
102
102
103
103
> [!Caution]
104
-
> The disk type recommended during Assessment might not be **Premium** for a particular VM. In this case, switching to Premium disk to improve replication speeds is not advisable since it might not be required post migration to have a Premium disk attached to this VM.
104
+
> The disk type recommended during Assessment might not be **Premium** for a particular VM. In this case, switching to Premium disk to improve replication speeds isn't advisable since it might not be required post migration to have a Premium disk attached to this VM.
105
105
106
106
## Slow or stuck migration
107
107
108
108
### Migration operation on VM is stuck
109
109
110
-
While triggering migration for a particular VM, you might observe that the migration is stuck at some stage (queued or delta sync) longer than expected. Generally, the underlying reason for this issue is an unavailability or scarcity of some resources required for replication. The resources might be consumed by other VMs that are replicating or some other process running on appliance on in the datacenter. Below are some reasons that generally cause this issue and solutions for them.
110
+
While triggering migration for a particular VM, you might observe that the migration is stuck at some stage (queued or delta sync) longer than expected. Generally, the underlying reason for this issue is an unavailability or scarcity of some resources required for replication. The resources might be consumed by other VMs that are replicating or some other process running on appliance on in the datacenter. Following are some reasons that generally cause this issue and the remedies.
111
111
112
112
#### NFC buffer size low
113
113
114
-
If an IR cycle for a server with large disks is ongoing while migration is triggered for second VM, the second VM’s migration job can get stuck. Even though migration jobs are given high priority, the NFC buffer might not be available for migration. In this case, it is recommended to stop or pause the initial replication of servers with large disks and complete the migration of the second VM.
114
+
If an IR cycle for a server with large disks is ongoing while migration is triggered for second VM, the second VM’s migration job can get stuck. Even though migration jobs are given high priority, the NFC buffer might not be available for migration. In this case, it's recommended to stop or pause the initial replication of servers with large disks and complete the migration of the second VM.
115
115
116
-
#### Ongoing delta sync cycle is not complete
116
+
#### Ongoing delta sync cycle isn't complete
117
117
118
118
If migration is triggered during an ongoing delta replication cycle, it would be queued. The delta replication cycle on the VM will be completed first after which migration will start. The time required to trigger migration depends on the time taken to complete one delta sync cycle.
119
119
120
-
#### Shutdown of on-premises VM taking longer than usual.
120
+
#### Shutdown of on-premises VM taking longer than usual
121
121
122
122
Try to migrate without shutting down the VM or turn off the VM manually and then migrate it.
123
123
124
124
## Next steps
125
-
-[Learn more](tutorial-migrate-vmware.md) about migrating VMware VMs.
125
+
[Learn more](tutorial-migrate-vmware.md) about migrating VMware VMs.
0 commit comments