Knowledgebase

To understand what is the failover clustering and its general requirements you can go here.

To install failover clustering solution, here are essential steps to remember:

  • 2 servers based on Windows Server 2008 need to be installed
  • At least two network cards required: a public card (with dedicated IP) to connect each node in the cluster and a private cloud (or HA) that connects nodes to each other via a VLAN dedicated and private addressing mode and distinct (and no configuration gateway and DNS).
  • Provide an IP address for MSDTC
  • 5 (LUNs) partitions ( database systems, data, logs, backups, and tempDB) + 2 ( quorum , MSDTC) on a SAN.
  • Create AD accounts service: One for the SQL engine and one for SQL Agent.
  • And finally, the type of quorum that will be using the default Node and Disk Majority.
  • .Net Framework 3.5 or above need be installed.

You can also take a look at the checklist of items to meet the needs before installing SQL Server 2008 R2 failover cluster: http://msdn.microsoft.com/en-us/library/ms189910(v=sql.100)

Implementation of a failover cluster

In our example, we will opt for a quorum , majority disc.

Preliminary Operations

Activation cluster

  • Before installing the cluster, it is important to ensure the activation of the feature Failover Clustering. To enable (if not already), go to Server Manager and Features:

 SQL Server Add Features Wizard

Cluster Validation

  • On the first node, open the administration console of the cluster:

Failover Cluster Manager

  • Launch the validate a configuration wizard to create validate configuration. Then follow all steps in the wizard in the wizard step by step, by taking care to run all tests (hardware, software, networking storage, compatibility, etc…).

Valiadte a Configuration Wizard

  • Validate / check the record of the tests

failover cluster validation report

Note : In case of errors, it is highly recommended to correct them before installing the cluster.

Construction Cluster

As soon as the validation done successfully, the construction of the cluster can be considered healthy. To do this:

  • Launch the failover cluster management wizard to create a cluster ( create a cluster … In the previous steps).

create a cluster

  • A create cluster wizard pop box will open where you need to add nodes to the cluster future.

cluster wizard select servers

Before You Begin

  • Specify the details of the name and the IP address of the cluster that you need to create:

Access Point For Administering The Cluster

  • Confirmation of the first configurations and upgrades.

Cluster Wizard Confirmation

  • By default, the quorum type chooses the cluster Node and Disk Majority . However, it is possible to change its configuration (including when Windows chooses to opt for a different disk than the one you want) from the administration console of the cluster.

quorum settings

  • This includes the possibility to choose the type of quorum configuration to use.

Quorum Wizard

  • Or even to confirm or modify the choice of dedicated disk quorum.

Cluster Quorum Wizard

Configure Cluster Quorum Wizard - Confirmation

Installing and Configuring MSDTC

MSDTC ( Microsoft Distributed Transaction Coordinator ) is a Windows feature that coordinates distributed transactions across different nodes in a cluster.

To activate and install (on node 1):

  • Open the management console cluster.
  • Under the cluster name, click the right button on Services and Applications and select  Configure a Service or Application … :

Configure a Service or Application

Select Distributed Transaction Coordinator (DTC):

Distributed Transaction Coordinator

Enter the name and IP of the MSDTC resource:

High Availability Wizard

Specify a shared cluster available for MSDTC disk:

Select Storage

Confirm the configuration:

High Availability Wizard - Confirmation

High Avaibility Wizard Summary

MSDTC Server

To implement functionality and to configure logs, follow the below guideline:

  • Edit the following registry key on one of the nodes:

HKEY_LOCAL_MACHINE Cluster Resources <ResID> MSDTCPRIVATE MSDTC

Create a new “MaxLogSize” key (DWORD) and give it the value 512 (decimal)

  • In the console Component Services, navigate to:

Component Services Computers My Computer Distributed Transaction Coordinator DTC Cluster Name> MSDTC> cluster

  • In the properties registration tab, specify a capacity of logs

Services & Components

Implementation of SQL server nodes

Installing SQL Server 2008 R2 on the first node

The installation steps are similar to the installation of SQL Server 2008 R2 in standalone . We will here discuss the key steps :

Preparing to install:

SQL Server Installation Center

SQL Server Failover Cluster - Setup Support Rules

Choice of components:

Feature Slection

Specify the virtual network instance name:

Instance Configuration

By default, the instance name is used as the Instance ID. This is used to identify installation directories and registry keys for our instance of SQL Server, and is very useful when it is desired to run multiple instances within a cluster. For a default instance, the instance name and ID would be MSSQLSERVER.

  • Checking constraints Storage

Disk Space Requirements

Specify the name of the resource group of SQL Server: SQL Server (MSSQLSERVER) :

SQLServer_2008R2_Cluster_Resource_Group

  • Select the disks used by SQL Server (data, logs and backups)

Cluster Disk Selection

  • Specify the public IP address that is used by the SQL Server address:

Cluster_Network_Configuration

  • Choice of security policy in the cluster allows to use SIDs Service :

cluster security policy

  • The following steps are usually the same as for installation in standalone. Cluster Installation Rules, it only remains to validate and complete the installation:

cluster installation rules

Ready to Install

SQL_Server_Failover_Clust_Installation_Completed

Adding a second node SQL Server 2008 R2

  • On node 2 run the installation media on SQL Server 2008 R2, and then select Add Node to a SQL Server failover cluster:

sql server installation center

Follow the same steps for installing SQL Server 2008 R2 on the first node (see previous section). This will include:

  • Validate the information on the existing cluster:

Cluster Node Configuration

  • Make sure the service account (SQL, SQL Agent, …) is the same as for the first node.

After installation, you will be able to perform a failover from the first node to the second node, and vice versa:

After Installation

Comments Off    Read More