Deploy a Windows cluster

This example installs SQL Server 2016 standard edition on a two-node cluster.

  • A SQL Server cluster relies on a Windows cluster. You must first deploy a Windows cluster before you set up a SQL server cluster.

  • You must install the same SQL Server edition on the nodes in a cluster.

 

To deploy a Windows cluster:

  1. Open Windows Defender Firewall on one cluster node.

  1. Select Allow an app or feature through Windows Defender Firewall.

Figure-1 Allowing an app or feature through Windows Defender Firewall

 

  1. Select both the Private and Public options for Windows Management Instrumentation (WMI).

Figure-2 Configuring Windows Management Instrumentation (WMI)

 

  1. Select the Public option for Remote Service Management, Remote Shutdown, Remote Scheduled Tasks Management, Remote Volume Management, Remote Event Monitor, and Remote Event Log Management, and select both the Private and Public options for Remote Desktop.

Figure-3 Configuring remote management services

 

  1. Click OK.

  1. Open Server Manager.

  1. Click Add roles and features on the dashboard.

Figure-4 Adding a role

 

  1. Select DNS Server (Installed) from the Roles list, and then click Next.

Figure-5 Selecting a server role

 

  1. Select Failover Clustering from the Features list, and then click Next.

Figure-6 Selecting features

 

  1. Follow the instructions to finish configuration.

  1. Open DNS Manager.

Figure-7 DNS Manager

 

  1. Create primary DNS zone net, and use the default for other settings.

Figure-8 Creating a DNS zone

 

Figure-9 DNS management

 

  1. Add DNS information for all cluster nodes.

Figure-10 Configuring DNS

 

Figure-11 Adding a new host

 

Figure-12 DNS configured

 

  1. Set the primary DNS server IP address to 127.0.0.1.

Figure-13 Setting the primary DNS server IP

 

  1. Configure the computer name:

  1. Open the System Properties window.

  1. Click Change on the Computer Name tab.

Figure-14 Changing the computer name

 

  1. Enter the correct domain name prefix in the Computer name field.

Figure-15 Entering a computer name

 

  1. Click More.

  1. Enter net as the DNS suffix.

Figure-16 Entering a DNS suffix

 

  1. Click OK and reboot the server.

  1. Repeat steps 1 through 15 to configure the other cluster node.

  1. Set up a failover cluster from one of the cluster node:

  1. Open Failover Cluster Manager of Server Manager.

  1. Right-click on the Failover Cluster Manager node and then select Create Cluster.

  1. Enter the domain names of the cluster nodes, and click Add.

  1. Skip the validation test, and then click Next.

  1. Enter a cluster name and a cluster IP address.

  1. Follow the instructions to finish configuration.

Figure-17 Failover Cluster Manager

 

Figure-18 Creating a cluster

Figure-19 Selecting a server

Figure-20 Skipping the validation test

 

Figure-21 Entering a cluster name

 

  1. Open Failover Cluster Manager on the other cluster node.

  1. Click Connect to Cluster.

This task enables you to manage the cluster you have set up.

Figure-22 Connecting to a cluster

 

  1. Select the cluster, and then click OK.

Figure-23 Selecting a cluster

 

  1. View nodes in the cluster.

Figure-24 Viewing nodes