This is a step by step guide on SQL Server 2008 R2 Cluster.
Let's begin with the pre-requisites
Node 2
Let's begin with the pre-requisites
Pre-requisites:
In order to plan everything ahead, we need to prepare some IP's and names as well as Network Configuration. During the deployment you will be using IP's and Names for the following
- Windows Cluster
- DTC
- SQL
You can plan for those and document them for use ahead of time, just to save yourself some time.
Please refer to the table below
Description | Hostname | IP Address | Subnet Mask | Default Gateway |
Cluster IP Address | XXCLUSTER | 172.21.XX.XX | 255.255.255.128 | N/A |
SQL Instance IP Address | XX2010SQL | 172.21.XX.XX | 255.255.255.128 | N/A |
MSDTC Virtual IP | XX2010SQLDtc | 172.21.XX.XX | 255.255.255.128 | N/A |
SQL Cluster Node 1 | Node1 | 172.21.XX.XX | 255.255.255.0 | 172.21.X.1 |
SQL Cluster Node 2 | Node 2 | 172.21.XX.XX | 255.255.255.0 | 172.21.X..1 |
We then need to setup 2 Network Interfaces to be used in production and other as a heartbeat.
We need to configure the HeartBeat interface on each node as follows
Node 1
Node 2
We do a little test and make sure they can communicate
Now the heart beat has been configured, you need to assign IP's to the production interfaces, those are the interfaces that will communicate with the servers.
Now that the networking part is out of the way, let's go ahead and start the Failover Cluster Role installation.
Windows Failover Cluster Installation
The following steps need to be performed on both database tier machines.
- Click on Server Manager > Features > Add Features
- Check the Failover Clustering checkbox and click Next
- Click on Install to install the feature
- Click Close to conclude the installation wizard
Host Validation Tests:
Now we need to run the validation tests to make sure our nodes are correctly configured
- Click on Validate Configuration
- Click Next at the validation wizard's intro screen
- Click Browse in the Select Servers or a cluster window
- Set the Object Types to Computers and search for the two cluster nodes
- Once the two cluster nodes have been selected click on Next to proceed
- Leave radio button at its default position (Run all tests) and then click Next
- The validation wizard summary will be displayed. Review it and click Next to initiate the cluster validation
- If the validation wizard returns any errors review and resolve them before proceeding. Errors need to be resolved before creating the cluster. Ensure that you review warnings.
Creating Windows 2008 Cluster:
SQL Server 2008 R2 clustering requires a windows cluster to be setup prior to creating the SQL node. To create the windows cluster perform the following steps.
- In the Failover Cluster Console click on Create a cluster
- Click Next on the welcome screen
- Click Browse and select the appropriate cluster nodes
- Click Next to run pre-configuration validation (essentially the same validation as before, but recommended to run again right before the cluster setup).
- Enter the following information in the Access point for Administering the Cluster window
- Cluster Name: SPSLUSTER
- IP Address: 172.21.x.x
- Review the summary in the confirmation window and click Next to proceed with the cluster installation
- If any warnings/errors were generated review them and retry if necessary. If none were generated click on Finish to close the wizard.
Verifying Cluster Storage and Quorum
Now in windows server 2008 R2, the cluster Quorum and storage will be configured automatically, we need check on that
And this seems right, now we need to check on the Quorum type to make sure that it is set to Node and Disk Majority.''
Configuring Windows 2008(R2) Application Server
We now need to start deploying the application server role on both the nodes
Configuring MSDTC
Installing SQL Server 2008 R2 Cluster
Now we are about to start the installation of the First Node in the cluster.
Enter your product key
Install the support files
Install Features
Configure the Network Name (this is going to be the cluster name) and the instances
Choose your Cluster Resource Group (I left it at default)
Configure the Service account Users and Passwords (Best practice is to use individual accounts)
Configure your locations (Best practice to separate Database File from Log Files)
The Install, But do not configure is the only option available as we haven't installed the pre-requisites for Reporting Services.
Make sure everything passes on the cluster installation Rules
Review your installation summary and click install
Now wait for installation to finish.
Now after the installation finishes, make sure your resources are up.
Now all that is good and green we need to start the installation on the second node.
So fire up the setup and choose
Install Support rules and make sure all passes
Enter the Product Key
You will see that the setup has detected the current single node cluster from above, click next
Enter the same accounts and password and make sure everything is green
Review your installation
Click on install and wait the install to finish
Enter your product key
Install the support files
Install Features
Configure the Network Name (this is going to be the cluster name) and the instances
Choose your Cluster Resource Group (I left it at default)
Configure the Service account Users and Passwords (Best practice is to use individual accounts)
Configure your locations (Best practice to separate Database File from Log Files)
The Install, But do not configure is the only option available as we haven't installed the pre-requisites for Reporting Services.
Make sure everything passes on the cluster installation Rules
Review your installation summary and click install
Now wait for installation to finish.
Now after the installation finishes, make sure your resources are up.
Now all that is good and green we need to start the installation on the second node.
So fire up the setup and choose
Install Support rules and make sure all passes
Enter the Product Key
You will see that the setup has detected the current single node cluster from above, click next
Enter the same accounts and password and make sure everything is green
Review your installation
Click on install and wait the install to finish
Verify the Cluster
Now if you go to the SQL Server Clustered application properties you see both nodes added
I hope this document will help you in "Installing Microsoft SQL Server 2008 R2 Cluster".