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-11Lines changed: 29 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,30 @@ In this article, you’ll learn how to migrate Microsoft SQL Server Always-On Cl
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.
18
+
17
19
- Review and record the storage and network configuration of every node in the cluster.
18
20
- Take a full backup of the database.
19
21
- Take a full backup of the virtual machine running the Microsoft SQL Server instance.
20
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.
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.
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.
29
+
30
+
## Downtime considerations
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. Always On 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.
33
+
34
+
The table below indicates the downtime for each Microsoft SQL Server topology.
35
+
36
+
|**Scenario**|**Downtime expected**|**Notes**|
37
+
|:---|:-----|:-----|
38
+
|**Standalone instance**| LOW | Migration will be done using vMotion, the DB will be available during migration time, but it is not recommended to commit any critical data during it. |
39
+
|**Always-On Availability Group**| LOW | The primary replica will always be available during the migration of the first secondary replica and the secondary replica will become the primary after the initial failover to Azure. |
40
+
|**Failover Cluster Instance**| HIGH | All nodes of the cluster will be shut down and migrated using VMware HCX Cold Migration. Downtime duration will depend upon database size and private network speed to Azure cloud. |
21
41
22
42
## Windows Server Failover Cluster quorum considerations
23
43
@@ -40,15 +60,15 @@ If the cluster uses a **File share witness** running on-premises, then the type
40
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.
41
61
- Application Modernization: For this use case the best option is to deploy a **Cloud Witness**.
42
62
43
-
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.
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.
44
64
45
65
## Migrate Microsoft SQL Server Always-On cluster
46
66
47
67
1. Access your Always-On cluster with SQL Server Management Studio with administration credentials.
48
68
1. Select your primary replica and open **Availability Group****Properties**.
49
69
50
70
51
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-1.png" alt-text="Diagram showing how to migrate always on SQL server for Azure VMware Solution." border="false":::
71
+
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-1.png" alt-text="Always On Availability Group properties" border="false":::
52
72
53
73
1. Change **Availability Mode** to **Asynchronous commit** only for the replica to be migrated.
54
74
1. Change **Failover Mode** to **Manual** for every member of the availability group.
@@ -66,26 +86,26 @@ Full details about quorum configuration and management can be consulted in [Fail
66
86
1. Click **Go** and the migration will initiate.
67
87
1. Once the migration has been completed, access the migrated replica and verify connectivity with the rest of the members in the availability group.
68
88
1. In SQL Server Management Studio, open the **Availability Group Dashboard** and verify that the replica appears as **Online**.
69
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-2.png" alt-text="Diagram showing how to migrate always on SQL server for Azure VMware Solution." border="false":::
89
+
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-2.png" alt-text="Always On Availability Group Dashboard." border="false":::
70
90
71
91
1.**Data Loss** status in the **Failover Readiness** column is expected since the replica has been out-of-sync with the primary during the migration.
72
92
1. Edit the **Availability Group****Properties** again and set **Availability Mode** back to **Synchronous commit**.
73
93
1. The secondary replica will start to synchronize back all the changes made to the primary replica during the migration. Wait until it appears in Synchronized state.
74
94
1. From the **Availability Group Dashboard** in SSMS click on **Start Failover Wizard**.
75
95
1. Select the migrated replica and click **Next**.
76
96
77
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-3.png" alt-text="Diagram showing how to migrate always on SQL server for Azure VMware Solution." border="false":::
97
+
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-3.png" alt-text="New primary replica selection for failover." border="false":::
78
98
79
99
1. Connect to the replica in the next screen with your DB admin credentials.
80
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-4.png" alt-text="Diagram showing how to connect to the replica and migrate always on SQL server for Azure VMware Solution." border="false":::
1. Review the changes and click **Finish** to start the failover operation.
83
103
84
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-5.png" alt-text="Diagram showing how to review changes and migrate always on SQL server for Azure VMware Solution." border="false":::
104
+
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-5.png" alt-text="Availability Group failover operation review." border="false":::
85
105
86
106
87
107
1. Monitor the progress of the failover in the next screen and click **Close** when the operation is finished.
88
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-6.png" alt-text="Diagram showing how to review results and migrate always on SQL server for Azure VMware Solution." border="false":::
1. Refresh the **Object Explorer** view in SSMS and verify that the migrated instance is now the primary replica.
@@ -94,11 +114,9 @@ Full details about quorum configuration and management can be consulted in [Fail
94
114
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.
95
115
1. Once the migration of all the replicas is completed, access your Always-On availability group with **SQL Server Management Studio**.
96
116
1. Open the Dashboard and verify there is no data loss in any of the replicas and that all are in **Synchronized** state.
97
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-7.png" alt-text="Diagram showing how to review changes and migrate always on SQL server for Azure VMware Solution." border="false":::
117
+
:::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":::
98
118
1. Edit the **Properties** of the availability group and set **Failover Mode** to **Automatic** in all replicas.
99
-
:::image type="content" source="media/sql-server-hybrid-benefit/sql-alwayson-8.png" alt-text="Diagram showing how to edit the properties and migrate always on SQL server for Azure VMware Solution." border="false":::
100
-
101
-
During the process, you will create placement policies that can recreate the Affinity or Anti-Affinity rules previously present on-premises. For more details about placement policies, see [Create a placement policy in Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/create-placement-policy) article.
119
+
:::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":::
Copy file name to clipboardExpand all lines: articles/azure-vmware/migrate-sqlserver-failover-cluster.md
+30-15Lines changed: 30 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ In this article, you learn how to migrate a Microsoft SQL Server Failover Cluste
13
13
14
14
VMware HCX doesn't support migrating virtual machines with SCSI controllers in physical sharing mode attached to a virtual machine. However, we can overcome this limitation by performing the steps detailed in this procedure and using VMware HCX Cold Migration to move the different virtual machines that make up the cluster.
15
15
16
-
:::image type="content" source="media/sql-server-hybrid-benefit/migrated-sql-failover-cluster.png" alt-text="Diagram showing the architecture of always on SQL server for Azure VMware Solution." border="false":::
16
+
:::image type="content" source="media/sql-server-hybrid-benefit/migrated-sql-failover-cluster.png" alt-text="Diagram showing the architecture of SQL failover server for Azure VMware Solution." border="false":::
17
17
18
18
> [!NOTE]
19
19
> This procedure requires a full shutdown of the cluster. Plan accordingly for the downtime period during the migration since the Microsoft SQL Server service will be unavailable.
@@ -25,6 +25,24 @@ VMware HCX doesn't support migrating virtual machines with SCSI controllers in p
25
25
- Take a full backup of the database(s) being executed in the cluster.
26
26
- Take a full backup of the cluster virtual machines.
27
27
- Remove all cluster node VMs from any DRS Group and rules they're part of.
28
+
- 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.
29
+
- 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.
30
+
31
+
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.
32
+
33
+
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.
34
+
35
+
## Downtime considerations
36
+
37
+
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. Migration of SQL Server Failover Cluster Instances Always On to Azure Vmware Solution requires a full downtime of the database and all cluster nodes, however you should plan for the migration to be executed during off-peak hours with an approved change window.
38
+
39
+
The table below indicates the downtime for each Microsoft SQL Server topology.
40
+
41
+
|**Scenario**|**Downtime expected**|**Notes**|
42
+
|:---|:-----|:-----|
43
+
|**Standalone instance**| LOW | Migration will be done using vMotion, the DB will be available during migration time, but it is not recommended to commit any critical data during it. |
44
+
|**Always-On Availability Group**| LOW | The primary replica will always be available during the migration of the first secondary replica and the secondary replica will become the primary after the initial failover to Azure. |
45
+
|**Failover Cluster Instance**| HIGH | All nodes of the cluster will be shut down and migrated using VMware HCX Cold Migration. Downtime duration will depend upon database size and private network speed to Azure cloud. |
28
46
29
47
## Windows Server Failover Cluster quorum considerations
30
48
@@ -57,10 +75,10 @@ For illustration purposes in this document, we're using a two-node cluster with
57
75
1. Access the first node of the cluster and open Failover Cluster Manager.
58
76
1. Verify that the second node is in **Offline** state and that all clustered services and storage are under control of the first node.
59
77
60
-
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-1.png" alt-text="Diagram showing offline state of failover cluster on SQL server for Azure VMware Solution." border="false":::
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-2.png" alt-text="Diagram showing offline state of failover cluster on SQL server for Azure VMware Solution." border="false":::
81
+
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-2.png" alt-text="Shut down your cluster using Windows Server Failover Cluster Manager." border="false":::
64
82
65
83
66
84
1. Check that all cluster services are stopped gracefully and without errors.
@@ -90,32 +108,29 @@ For illustration purposes in this document, we're using a two-node cluster with
90
108
1. Access first node VM with VMware Remote Console.
91
109
1. Verify virtual machine network configuration and ensure it can reach on-premises and Azure resources.
92
110
1. Open Failover Cluster Manager and verify cluster services.
93
-
94
-
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-3.png" alt-text="Diagram showing offline state of of failover cluster on SQL server for Azure VMware Solution." border="false":::
111
+
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-3.png" alt-text="Cluster summary in Failover Cluster Manager." border="false":::
95
112
96
113
1. Power on second node virtual machine.
97
114
1. Access the second node VM with VMware Remote Console.
98
115
1. Verify that Windows Server can see the storage.
99
116
1. In Failover Cluster Manager review that the second node appears as Online status.
100
117
101
-
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-4.png" alt-text="Diagram showing offline state of failover cluster on SQL server for Azure VMware Solution." border="false":::
118
+
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-4.png" alt-text="Cluster node status in Failover Cluster Manager." border="false":::
102
119
103
120
1. Using SQL Server Management Studio connect to the SQL Server cluster resource network name.
104
121
Check the database is online and accessible.
105
-
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-5.png" alt-text="Diagram showing offline state of failover cluster on SQL server for Azure VMware Solution." border="false":::
122
+
:::image type="content" source="media/sql-server-hybrid-benefit/sqlfci-5.png" alt-text="SQL Server Management Studio connection verification to the migrated cluster instance database."" border="false":::
106
123
107
-
1. Finally check connectivity to SQL from other systems and applications in your infrastructure and verify that all applications using the database(s) can still access it.
108
-
109
-
During the process, you'll create placement policies that can recreate the Affinity or Anti-Affinity rules previously present on-premises. For details about placement policies, see [Create a placement policy in Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/create-placement-policy).
124
+
1. Finally check connectivity to SQL from other systems and applications in your infrastructure and verify that all applications using the database(s) can still access it.
110
125
111
126
## Next steps
112
127
113
-
-[Enable SQL Azure hybrid benefit for Azure VMware Solution](enable-sql-azure-hybrid-benefit.md).
114
-
-[Create a placement policy in Azure VMware Solution](create-placement-policy.md)
115
-
-[Windows Server Failover Clustering Documentation](./windows-server/failover-clustering/failover-clustering-overview)
116
-
-[Microsoft SQL Server 2019 Documentation](./sql/sql-server/?view=sql-server-ver15)
128
+
-[Enable SQL Azure hybrid benefit for Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/enable-sql-azure-hybrid-benefit).
129
+
-[Create a placement policy in Azure VMware Solution](https://learn.microsoft.com/azure/azure-vmware/create-placement-policy)
130
+
-[Windows Server Failover Clustering Documentation](https://learn.microsoft.com/windows-server/failover-clustering/failover-clustering-overview)
131
+
-[Microsoft SQL Server 2019 Documentation](https://learn.microsoft.com/sql/sql-server/?view=sql-server-ver15)
117
132
-[Microsoft SQL Server 2022 Documentation](https://learn.microsoft.com/sql/sql-server/?view=sql-server-ver16)
118
-
-[Windows Server Technical Documentation](https://learn.microsoft.com/windows-server/)
133
+
-[Windows Server Technical Documentation](https://learn.microsoft.com/en-us/windows-server/)
119
134
-[Planning Highly Available, Mission Critical SQL Server Deployments with VMware vSphere](https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-vsphere-highly-available-mission-critical-sql-server-deployments.pdf)
120
135
-[Microsoft SQL Server on VMware vSphere Availability and Recovery Options](https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/sql-server-on-vmware-availability-and-recovery-options.pdf)
121
136
-[VMware KB 100 2951 – Tips for configuring Microsoft SQL Server in a virtual machine](https://kb.vmware.com/s/article/1002951)
0 commit comments