Install SQL Server 2017 on Windows Server 2016 Failover Cluster - Part 2
By: Edwin Sarmiento | Updated: 2020-07-13 | Comments | Related: 1 | 2 | More > Clustering
In a previous tip on Step-by-step Installation of SQL Server 2016 on a Windows Server 2016 Failover Cluster - Part 1, I have seen how to install a SQL Server 2016 on a Windows Server 2016 failover cluster (WSFC). We are deploying SQL Server 2017 failover clusters running on Windows Server 2016. How do I go about installing and configuring a SQL Server 2017 failover cluster on Windows Server 2016?
To continue this series on Step-by-step Installation of SQL Server 2017 on a Windows Server 2016 Failover Cluster, we will look at adding a node to an existing SQL Server 2017 failover clustered instance (FCI). In Part 1, you completed the installation of a single-node SQL Server 2017 FCI. This tip will cover installing a secondary node to an existing SQL Server 2017 FCI.
SQL Server 2017 Failover Cluster Instance Installation - Install Secondary (Failover) Cluster Node
The SQL Server 2017 FCI you installed in Part 1 is not highly available even though it is a fully functioning instance. To make it highly available, you need to add nodes to it. To add a node to an existing SQL Server 2017 FCI,
- Run setup.exe from the SQL Server 2017 installation media to launch SQL Server Installation Center. Click on the Installation link on the left-hand side.
- Click the Add node to a SQL Server failover cluster link. This will run the SQL Server 2017 Setup wizard.
- In the Product Key dialog box, enter the product key that came with your installation media and click Next.
- In the License Terms dialog box, click the I accept the license terms check box and click Next.
- In the Global Rules dialog box, validate that the checks return successful results and click Next.
- In the Microsoft Update dialog box, click Next. Adding a node to an existing SQL Server FCI while slipstreaming the latest cumulative update will be covered in the section Adding a node to an existing SQL Server 2017 Failover Clustered Instance (FCI) with Slipstreamed Updates.
- In the Add Node Rules dialog box, validate that the checks return successful results. If the checks returned a few warnings, make sure you fix them before proceeding with the installation. Click Next. Just like when you were installing the SQL Server 2017 FCI in Part 1, be aware that you will get a warning result for Microsoft Cluster Service (MSCS) cluster verification warnings as a side effect of the storage spaces direct (S2D) checks described in this tip.
- In the Cluster Node Configuration dialog box, validate that the information for the existing SQL Server 2017 FCI that you installed and configured in Part 1 is correct. Click Next.
- In the Cluster Network Configuration dialog box, validate that the IP address information is the same as the one you provided in the previous tip. Click Next.
- In the Service Accounts dialog box, verify that the information is the same as what was used to configure the first node. Provide the appropriate credentials for the corresponding SQL Server service accounts.
Pay close attention to the order of the SQL Server services especially when you use different service accounts. In the previous tip, you see the SQL Server Agent service listed first before the SQL Server Database Engine service. Here, it's the reverse - the SQL Server Database Engine service is listed first before the SQL Server Agent service. Be sure not to mix those two up.
Select the Grant Perform Volume Maintenance Task privilege to SQL Server Database Engine Service checkbox to enable Instant File Initialization for SQL Server as highlighted in this tip. Because this is a local permission assigned to an account, you need to explicitly do this on all the nodes in the SQL Server FCI.
- In the Feature Rules dialog box, verify that all checks are successful. Click Next.
- In the Ready to Add Node dialog box, verify that all configuration settings are correct. Click Install to proceed with the installation.
- In the Complete dialog box, click Close. This concludes adding a node to an existing SQL Server 2017 FCI.
To add more nodes to the SQL Server 2017 FCI, simply repeat steps #1 to #13.
At the completion of a successful installation and configuration of the node, you need to validate whether the SQL Server 2017 FCI will failover - either automatically or manually - to all the available nodes.
Adding a node to an existing SQL Server 2017 Failover Clustered Instance (FCI) with Slipstreamed Updates
Slipstreaming updates when adding a node to an existing SQL Server 2017 FCI installation is similar to the steps outlined in the previous tip and also requires installing SQL Server from the command line. However, the /Action=AddNode parameter will be used. The example command below references the \\CentralFileServer\SQLServer2017CUs\CU20 shared folder to look for SQL Server 2017 updates.
setup.exe /Action=AddNode /UpdateEnabled=True /UpdateSource="\\CentralFileServer\SQLServer2017CUs\CU20"
The Product Updates section of the Add a Failover Cluster Node process will confirm whether the updates have been detected.
Proceed with adding a node to an existing SQL Server FCI as outlined in the previous section SQL Server 2017 Failover Cluster Instance Installation - Install Secondary (Failover) Cluster Node. The Ready to Add Node dialog box of the installation process will also confirm the SQL Server version number after the installation. In this example, the installation media is using the RTM version of SQL Server 2017 (14.00.1000.169) while the update contains SQL Server 2017 CU 20 (14.0.3294.0) as shown in the Update Version: field.
Testing SQL Server 2017 FCI Manual Failover with Application Connectivity
A simple way to test whether the SQL Server 2017 FCI works is to perform a manual failover. This process involves moving the SQL Server cluster resource group/role from one node to another. For this test, a simple query using SQL Server Management Studio as the client application can be used. It is recommended to perform this test with application connectivity to observe how the application behaves during the failover process. Refer to the query below and connect to the SQL Server 2017 FCI.
SELECT @@SERVERNAME AS InstanceName, SERVERPROPERTY ('ComputerNamePhysicalNetBIOS') AS NodeName SELECT * FROM sys.dm_os_cluster_nodes
To test the failover process using the Failover Cluster Manager console, perform the following steps:
- Expand Roles and select SQL Server (MSSQLSERVER).
- Right-click the SQL Server (MSSQLSERVER) role, select Move and click Select Node...
- In the Move Clustered Role dialog box, select the node where you want the SQL Server FCI to move into. Click OK.
- After the failover process completes, re-run the query above to verify that the SQL Server FCI is now running on the other node.
Move-ClusterGroup "SQL Server (MSSQLSERVER)" -Node "TDPRD092"
- Review the previous tips on Step-by-step Installation of SQL Server 2016 on a Windows Server 2016 Failover Cluster Part 1 and Part 2 to install and configure a WSFC in preparation for installing a SQL Server 2017 FCI
- Read more on the following topics:
Last Updated: 2020-07-13
About the author
View all my tips