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/virtual-machines/windows/sql/virtual-machines-windows-portal-sql-availability-group-dr.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
@@ -92,26 +92,33 @@ To create a replica in a remote data center, do the following steps:
92
92
93
93
1.[Add the new SQL Server to the Windows Server Failover Cluster](virtual-machines-windows-portal-sql-availability-group-tutorial.md#addNode).
94
94
95
-
1.Create an IP address resource on the cluster.
95
+
1.Add an IP address resource to the cluster.
96
96
97
-
You can create the IP address resource in Failover Cluster Manager. Right-click the availability group role, click **Add Resource**, **More Resources**, and click**IP Address**.
97
+
You can create the IP address resource in Failover Cluster Manager. Select the name of the cluster, then right-click the cluster name under **Cluster Core Resources** and select**Properties**:
98
98
99
-

On the **Properties** dialog box, select **Add** under **IP Address**, and then add the IP address of the cluster name from the remote network region. Select **OK** on the **IP Address** dialog box, and then select **OK** again on the **Cluster Properties** dialog box to save the new IP address..
102
102
103
-
- Use the network from the remote data center.
104
-
- Assign the IP address from the new Azure load balancer.
1. On the new SQL Server in SQL Server Configuration Manager, [enable Always On Availability Groups](https://msdn.microsoft.com/library/ff878259.aspx).
107
105
108
-
1.[Open firewall ports on the new SQL Server](virtual-machines-windows-portal-sql-availability-group-prereq.md#endpoint-firewall).
106
+
1.Add the IP address as a dependency for the core cluster name.
109
107
110
-
The port numbers you need to open depend on your environment. Open ports for the mirroring endpoint and Azure load balancer health probe.
108
+
Open the cluster properties once more, and select the **Dependencies** tab. Configure an OR dependency for the two IP addresses:
111
109
112
-
1.[Add a replica to the availability group on the new SQL Server](https://msdn.microsoft.com/library/hh213239.aspx).
1. On the new SQL Server in SQL Server Configuration Manager, [enable Always On Availability Groups](/sql/database-engine/availability-groups/windows/enable-and-disable-always-on-availability-groups-sql-server).
148
+
149
+
1.[Open firewall ports on the new SQL Server](virtual-machines-windows-portal-sql-availability-group-prereq.md#endpoint-firewall).
150
+
151
+
The port numbers you need to open depend on your environment. Open ports for the mirroring endpoint and Azure load balancer health probe.
152
+
153
+
154
+
1.[Add a replica to the availability group on the new SQL Server](/sql/database-engine/availability-groups/windows/use-the-add-replica-to-availability-group-wizard-sql-server-management-studio).
155
+
156
+
For a replica in a remote Azure region, set it for asynchronous replication with manual failover.
157
+
140
158
## Set connection for multiple subnets
141
159
142
160
The replica in the remote data center is part of the availability group but it is in a different subnet. If this replica becomes the primary replica, application connection time-outs may occur. This behavior is the same as an on-premises availability group in a multi-subnet deployment. To allow connections from client applications, either update the client connection or configure name resolution caching on the cluster network name resource.
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/sql/virtual-machines-windows-portal-sql-create-failover-cluster-premium-file-share.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,13 +72,15 @@ Before you complete the steps in this article, you should already have:
72
72
73
73
- A Microsoft Azure subscription.
74
74
- A Windows domain on Azure virtual machines.
75
-
- An account that has permissions to create objects on both Azure virtual machines and in Active Directory.
75
+
- A domain user account that has permissions to create objects on both Azure virtual machines and in Active Directory.
76
+
- A domain user account to run the SQL Server service and that you can log into the virtual machine with when mounting the file share.
76
77
- An Azure virtual network and subnet with enough IP address space for these components:
77
78
- Two virtual machines.
78
79
- The failover cluster IP address.
79
80
- An IP address for each FCI.
80
81
- DNS configured on the Azure network, pointing to the domain controllers.
81
-
- A [premium file share](../../../storage/files/storage-how-to-create-premium-fileshare.md) based on the storage quota of your database for your data files.
82
+
- A [premium file share](../../../storage/files/storage-how-to-create-premium-fileshare.md) to be used as the clustered drive, based on the storage quota of your database for your data files.
83
+
- If you're on Windows Server 2012 R2 and older, you will need another file share to use as the file share witness, since cloud witnesses are supported for Windows 2016 and newer. You can use another Azure file share, or you can use a file share on a separate virtual machine. If you're going to use another Azure file share, you can mount it with the same process as for the premium file share used for your clustered drive.
82
84
83
85
With these prerequisites in place, you can start building your failover cluster. The first step is to create the virtual machines.
84
86
@@ -175,7 +177,8 @@ After you create and configure the virtual machines, you can configure the premi
175
177
1. Repeat these steps on each SQL Server VM that will participate in the cluster.
176
178
177
179
> [!IMPORTANT]
178
-
> Consider using a separate file share for backup files to save the IOPS and space capacity of this share for Data and Log files. You can use either a premium or standard file share for backup files.
180
+
> - Consider using a separate file share for backup files to save the IOPS and space capacity of this share for Data and Log files. You can use either a premium or standard file share for backup files.
181
+
> - If you're on Windows 2012 R2 and older, follow these same steps to mount your file share that you are going to use as the file share witness.
179
182
180
183
## Step 3: Configure the failover cluster with the file share
181
184
@@ -184,7 +187,7 @@ The next step is to configure the failover cluster. In this step, you'll complet
184
187
1. Add the Windows Server Failover Clustering feature.
185
188
1. Validate the cluster.
186
189
1. Create the failover cluster.
187
-
1. Create the cloud witness.
190
+
1. Create the cloud witness (for Windows Server 2016 and newer) or the file share witness (for Windows Server 2012 R2 and older).
Cloud Witnessis a new type of cluster quorum witness that's stored in an Azure storage blob. This removes the need for a separate VM that hosts a witness share.
266
+
If you're on Windows Server 2016 and greater, you'll need to create a Cloud Witness. Cloud Witness is a new type of cluster quorum witness that's stored in an Azure storage blob. This removes the need for a separate VM that hosts a witness share, or using a separate file share.
264
267
265
268
1.[Create a cloud witness for the failover cluster](https://technet.microsoft.com/windows-server-docs/failover-clustering/deploy-cloud-witness).
266
269
267
270
1. Create a blob container.
268
271
269
272
1. Save the access keys and the container URL.
270
273
271
-
1. Configure the failover cluster quorum witness. See [Configure the quorum witness in the user interface](https://technet.microsoft.com/windows-server-docs/failover-clustering/deploy-cloud-witness#to-configure-cloud-witness-as-a-quorum-witness).
274
+
### Configure quorum
275
+
276
+
For Windows Server 2016 and greater, configure the cluster to use the cloud witness you just created. Follow all of the steps [Configure the quorum witness in the user interface](https://technet.microsoft.com/windows-server-docs/failover-clustering/deploy-cloud-witness#to-configure-cloud-witness-as-a-quorum-witness).
277
+
278
+
For Windows Server 2012 R2 and older, follow the same steps in [Configure the quorum witness in the user interface](https://technet.microsoft.com/windows-server-docs/failover-clustering/deploy-cloud-witness#to-configure-cloud-witness-as-a-quorum-witness) but on the **Select Quorum Witness** page, select the **Configure a file share witness** option. Specify the file share you allocated to be the file share witness, whether it's one you configured on a separate virtual machine, or mounted from Azure.
272
279
273
280
274
281
## Step 4: Test cluster failover
@@ -291,7 +298,7 @@ After you've configured the failover cluster, you can create the SQL Server FCI.
291
298
292
299
1. Select **New SQL Server failover cluster installation**. Follow the instructions in the wizard to install the SQL Server FCI.
293
300
294
-
The FCI data directories need to be on the premium file share. Enter the full path of the share, in this form: `\\storageaccountname.file.core.windows.net\filesharename\foldername`. A warning will appear, telling you that you've specified a file server as the data directory. This warning is expected. Ensure that the account you persisted the file share with is the same account that the SQL Server service uses to avoid possible failures.
301
+
The FCI data directories need to be on the premium file share. Enter the full path of the share, in this form: `\\storageaccountname.file.core.windows.net\filesharename\foldername`. A warning will appear, telling you that you've specified a file server as the data directory. This warning is expected. Ensure that the user account you RDP'd into the VM with when you persisted the file share is the same account that the SQL Server service uses to avoid possible failures.
295
302
296
303
:::image type="content" source="media/virtual-machines-windows-portal-sql-create-failover-cluster-premium-file-share/use-file-share-as-data-directories.png" alt-text="Use file share as SQL data directories":::
0 commit comments