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
Copy file name to clipboardExpand all lines: articles/azure-vmware/migrate-sqlserver-always-on-cluster.md
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,30 +8,30 @@ ms.custom: engagement-fy23
8
8
---
9
9
# Migrate Microsoft SQL Server Always-On cluster to Azure VMware Solution
10
10
11
-
In this article, you’ll learn how to migrate Microsoft SQL Server Always-On Cluster to Azure VMware Solution.For VMware HCX, you can use the vMotion migration method.
11
+
In this article, you’ll learn how to migrate Microsoft SQL Server Always-On Cluster to Azure VMware Solution.For VMware HCX, you can follow the vMotion migration procedure.
12
12
13
13
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-architecture.png" alt-text="Diagram showing the architecture of always on SQL server for Azure VMware Solution." border="false":::
14
14
15
15
## Prerequisites
16
16
17
-
These prerequisites and requirements should be met before planning to migrate your SQL server instance to Azure VMware Solution.
17
+
These are prerequisites to migrating your SQL server instance to Azure VMware Solution.
18
18
19
19
- Review and record the storage and network configuration of every node in the cluster.
20
-
-Take a full backup of the database.
21
-
-Take a full backup of the virtual machine running the Microsoft SQL Server instance.
22
-
- Remove the virtual machine from any VMware vSphere DRS Groups and rules.
23
-
- VMware HCX must be configured between your on-premises datacenter and the Azure VMware Solution private cloud that will run the migrated workloads. Refer to [Azure VMware Solution documentation](https://learn.microsoft.com/en-us/azure/azure-vmware/install-vmware-hcx) for the procedure.
24
-
- Ensure that all the network segments in use by the Microsoft SQL Server are extended into your Azure VMware Solution private cloud. Please refer to [Configure VMware HCX network extension](https://learn.microsoft.com/en-us/azure/azure-vmware/configure-hcx-network-extension) documentation to verify this step.
20
+
-Backup the full database.
21
+
-Backup the virtual machine running the Microsoft SQL Server instance.
22
+
- Remove the virtual machine from any VMware vSphere Distributed Resource Scheduler (DRS) groups and rules.
23
+
- VMware HCX must be configured between your on-premises datacenter and the Azure VMware Solution private cloud that runs the migrated workloads. For more information on how to configure HCX, see [Azure VMware Solution documentation](install-vmware-hcx.md).
24
+
- Ensure that all the network segments in use by the Microsoft SQL Server are extended into your Azure VMware Solution private cloud. To verify this step, see [Configure VMware HCX network extension](configure-hcx-network-extension.md).
25
25
26
-
VMware HCX over VPN is supported in Azure VMware Solution for workload migration. However, due to the size of database workloads it is not recommended for Microsoft SQL Server Failover Cluster Instance and Microsoft SQL Server Always-On migrations, especially for production workloads ExpressRoute connectivity is more performant and reliable. For Microsoft SQL Server Standalone and non-production workloads this can be suitable, depending upon the size of the database, to migrate.
26
+
VMware HCX over VPN is supported in Azure VMware Solution for workload migration. However, due to the size of database workloads, HCX over VPN is not recommended for Microsoft SQL Server Failover Cluster Instance and Microsoft SQL Server Always-On migrationsfor production workloads. ExpressRoute connectivity is recommended as more performant and reliable. For Microsoft SQL Server Standalone and non-production workloads this can be suitable, depending upon the size of the database, to migrate.
27
27
28
-
Microsoft SQL Server 2019 and 2022 were tested with Windows Server 2019 and 2022 Data Center edition with the virtual machines deployed in the on-premises environment. Windows Server and SQL Server have been configured following best practices and recommendations from Microsoft and VMware.
28
+
Microsoft SQL Server 2019 and Microsoft SQL Server 2022 were tested with Windows Server 2019 and Windows Server 2022 Data Center edition with the virtual machines deployed in the on-premises environment. Windows Server and SQL Server have been configured following best practices and recommendations from Microsoft and VMware.
29
29
30
30
## Downtime considerations
31
31
32
-
Predicting downtime during a migration will depend upon the size of the database to be migrated and the speed of the private network connection to Azure cloud. AlwaysOn migration is designed to have low database downtime during its execution, plan for the migration to be executed during off-peak hours with an approved change window.
32
+
Predicting downtime during a migration will depend upon the size of the database to be migrated and the speed of the private network connection to Azure cloud. Always-On migration is designed to be executed with low database downtime. However, plan to conduct the migration during off-peak hours within a pre-approved change window.
33
33
34
-
The table below indicates the downtime for each Microsoft SQL Server topology.
34
+
The table below indicates the estimated downtime for each Microsoft SQL Server topology.
35
35
36
36
|**Scenario**|**Downtime expected**|**Notes**|
37
37
|:---|:-----|:-----|
@@ -43,28 +43,31 @@ The table below indicates the downtime for each Microsoft SQL Server topology.
43
43
44
44
Microsoft SQL Server Always-On Availability Groups rely on Windows Server Failover Cluster which requires a quorum voting mechanism to maintain the coherence of the cluster.
45
45
46
-
An odd number of voting elements is required, which is achieved by an odd number of nodes in the cluster or by using a witness. Witness can be configured in three different forms:
46
+
An odd number of voting elements is required, which is achieved by an odd number of nodes in the cluster or by using a witness. Witness can be configured in three different ways:
47
47
48
48
- Disk witness
49
49
- File share witness
50
50
- Cloud witness
51
51
52
-
If the cluster uses **Disk witness**, then the disk must be migrated with the rest of cluster shared storage with the procedure described in this document.
52
+
If the cluster uses **Disk witness**, then the disk must be migrated with the rest of cluster shared storage using the procedure described in this document.
53
53
54
54
If the cluster uses a **File share witness** running on-premises, then the type of witness for your migrated cluster will depend on the Azure VMware Solution scenario, there are several options to consider.
55
55
56
-
- Datacenter Extension: Maintain the file share witness on-premises. Your workloads will be distributed across your datacenter and Azure, therefore the connectivity between both should always be available. In any case take into consideration bandwidth constraints and plan accordingly.
57
-
- Datacenter Exit: For this scenario there are two options. In both cases you can maintain the file share witness on-premises during the migration in case you need to do rollback during the process.
56
+
-**Datacenter Extension**: Maintain the file share witness on-premises. Your workloads will be distributed across your datacenter and Azure. Therefore the connectivity between your datacenter and Azure should always be available. In any case, take into consideration bandwidth constraints and plan accordingly.
57
+
-**Datacenter Exit**: For this scenario, there are two options. In both options, you can maintain the file share witness on-premises during the migration in case you need to do rollback during the process.
58
58
- Deploy a new **File share witness** in your Azure VMware Solution private cloud.
59
59
- Deploy a **Cloud witness** running in Azure Blob Storage in the same region as the Azure VMware Solution private cloud.
60
-
- Disaster Recovery and Business Continuity: For a disaster recovery scenario the best and most reliable option is to create a **Cloud Witness** running in Azure Storage.
61
-
- Application Modernization: For this use case the best option is to deploy a **Cloud Witness**.
60
+
-**Disaster Recovery and Business Continuity**: For a disaster recovery scenario, the best and most reliable option is to create a **Cloud Witness** running in Azure Storage.
61
+
-**Application Modernization**: For this use case, the best option is to deploy a **Cloud Witness**.
62
+
63
+
For details about configuring and managing the quorum, see [Failover Clustering documentation](https://learn.microsoft.com/windows-server/failover-clustering/manage-cluster-quorum). For information about deployment of Cloud witness in Azure Blob Storage, see [Manage a cluster quorum for a Failover Cluster](https://learn.microsoft.com/windows-server/failover-clustering/deploy-cloud-witness).
64
+
65
+
62
66
63
-
Full details about quorum configuration and management can be consulted in [Failover Clustering documentation](https://learn.microsoft.com/windows-server/failover-clustering/manage-cluster-quorum). Refer to [Manage a cluster quorum for a Failover Cluster](https://learn.microsoft.com/windows-server/failover-clustering/deploy-cloud-witness) documentation for the details about deployment of Cloud witness in Azure Blob Storage.
64
67
65
68
## Migrate Microsoft SQL Server Always-On cluster
66
69
67
-
1. Access your Always-On cluster with SQL Server Management Studio with administration credentials.
70
+
1. Access your Always-On cluster with SQL Server Management Studio using administration credentials.
68
71
1. Select your primary replica and open **Availability Group****Properties**.
69
72
70
73
@@ -104,25 +107,25 @@ Full details about quorum configuration and management can be consulted in [Fail
104
107
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-5.png" alt-text="Availability Group failover operation review." border="false":::
105
108
106
109
107
-
1. Monitor the progress of the failover in the next screen and click **Close** when the operation is finished.
110
+
1. Monitor the progress of the failover in the next screen, and click **Close** when the operation is finished.
1. Refresh the **Object Explorer** view in SSMS and verify that the migrated instance is now the primary replica.
114
+
1. Refresh the **Object Explorer** view in SQL Server Management Studio (SSMS), and verify that the migrated instance is now the primary replica.
112
115
1. Repeat steps 1 to 6 for the rest of the replicas of the availability group.
113
-
at.
116
+
114
117
1. Do not migrate all the replicas at the same time using **HCX Bulk Migration**. Instead, migrate one replica at a time and verify that all changes are synchronized back to the replica after each migration.
115
-
1.Once the migration of all the replicas is completed, access your Always-On availability group with **SQL Server Management Studio**.
116
-
1. Open the Dashboard and verify there is no data loss in any of the replicas and that all are in **Synchronized** state.
118
+
1.After the migration of all the replicas is completed, access your Always-On availability group with **SQL Server Management Studio**.
119
+
1. Open the Dashboard and verify there is no data loss in any of the replicas and that all are in a **Synchronized** state.
117
120
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-7.png" alt-text="Availability Group Dashboard with new primary replica and all migrated secondary replicas in synchronized state." border="false":::
118
121
1. Edit the **Properties** of the availability group and set **Failover Mode** to **Automatic** in all replicas.
119
122
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-8.png" alt-text="Set Failover back to Automatic for all replicas." border="false":::
120
123
121
124
## Next steps
122
125
123
-
[Enable SQL Azure hybrid benefit for Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/enable-sql-azure-hybrid-benefit).
126
+
[Enable SQL Azure hybrid benefit for Azure VMware Solution](enable-sql-azure-hybrid-benefit.md).
124
127
125
-
[Create a placement policy in Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/create-placement-policy)
128
+
[Create a placement policy in Azure VMware Solution](create-placement-policy.md)
126
129
127
130
[Windows Server Failover Clustering Documentation](https://learn.microsoft.com/windows-server/failover-clustering/failover-clustering-overview)
0 commit comments