Wednesday, January 16, 2013

Installing SQL 2008 R2 Cluster Step-By-Step


Deploying SQL 2008 Cluster

This is a step by step Guide on deploying SQL 2008 Cluster

System Architecture Diagram

 
Let’s begin with the prerequisites 

Prerequisites


Fail-over Clustering System Requirement:
  • Windows Server 2008/R2 : Failover Clustering feature is available with Windows Server 2008/R2 Enterprise/Data Center editions. You don't have this feature with the Standard edition of Windows Server 2008/R2.
  • Domain role: All servers in the cluster must be in the same Active Directory domain.
  • DNS: The servers in the cluster must be using Domain Name System (DNS) for name resolution.
  • Account for administering the cluster : When you create a cluster or add servers to it, you must be logged on to the domain with an account that has administrator rights on all servers in that cluster ( if the account is not a Domain Admins account, the account must be given the Create Computer Objects and Read All Properties permissions in the domain ).
  • Servers : Two identical servers in brand, model and configurations.
  • Device Controllers ( HBA ) : i/SCSI or Fiber , both also to be the identical.
  • Storage : You must use shared storage that is compatible with Windows Server 2008 R2.

In order to plan everything ahead, we need to prepare some IPs and names as well as Network Configuration
During the deployment you will be using IPs and Names for the following
1- Windows Cluster
2- DTC
3- SQL

You can plan for those and document them for use ahead of time, just to save yourself some time
This is what I made

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 the other as a heartbeat
clip_image002
We need to configure the HeartBeat interface on each node as follows:
Node 1
clip_image004clip_image006
clip_image008clip_image010
Node 2
clip_image011clip_image013
clip_image014clip_image015
We do a little test and make sure they can communicate
clip_image016
Now the heart beat has been configured, you need to Assign IPs 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.
1. Click on Server Manager > Features > Add Features
clip_image018
2.
 clip_image020
2. Check the Failover Clustering checkbox and click Next
3. Click on Install to install the feature
clip_image021
4. Click Close to conclude the installation wizard
clip_image022

Host Validation Tests

Now we need to run the validation tests to make sure our nodes are correctly configured
clip_image024
1. Click on Validate Configuration
clip_image026
2. Click Next at the validation wizard’s intro screen
clip_image028
3. Click Browse in the Select Servers or a cluster window
clip_image030
4. Set the Object Types to Computers and search for the two cluster nodes
clip_image032
5. Once the two cluster nodes have been selected click on Next to proceed
clip_image034
6. Leave radio button at its default position (Run all tests) and then click Next
clip_image036
7. The validation wizard summary will be displayed. Review it and click Next to initiate the cluster validation
clip_image037
8. 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:
1. In the Failover Clustering Console click on Create a cluster
clip_image039
2. Click Next at the welcome screen
clip_image041
3. Click Browse and select the appropriate cluster nodes
clip_image043
4. Click Next to run pre-configuration validation (essentially the same validation as before, but recommended to run again right before the cluster setup).
clip_image044
5. Enter the following information in the Access point for Administering the Cluster window:
a. Cluster Name: SPCLUSTER
b. IP Address: 172.21.X.X
clip_image045
6. Review the summary in the confirmation window and click Next to proceed with the cluster installation
clip_image046
7. 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 to check on that
clip_image048
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
clip_image050

Configuring Windows 2008 (R2) Application Server

We now need to start deploying the application server role on both the nodes
clip_image052
clip_image054
clip_image056
clip_image058
clip_image060
clip_image062
clip_image064
clip_image066
clip_image068
clip_image070

Configuring MSDTC

clip_image072
clip_image074
clip_image076
clip_image078
clip_image080
clip_image081
clip_image083
clip_image084
clip_image086
clip_image087

Installing the SQL 2008 R2 Cluster

Now we are about to start the installation of the First node in the cluster
clip_image089
Enter your product key
clip_image091
Install the Support Files
clip_image093
Install Features
clip_image095
Configure the Network Name ( this is going to be the cluster name ) and instances
clip_image096
clip_image098
Choose your Cluster Resource Group ( I left it at default )
clip_image099
clip_image101
clip_image103
clip_image105
Configure the Service accounts Users and Password ( Best Practice is to use individual accounts )
clip_image107
clip_image109
Configure Your Locations ( Best practice is to Separate Database Files from Log Files)
clip_image111
The Install, But do not configure is the only option available as we haven’t installed the pre-requisites for Reporting Service.
clip_image113
Make Sure everything passes on the Cluster installation Rules
clip_image115
Review your install Summary and Click Install
clip_image116
Now wait for the installation to finish
clip_image118
Now after the installation finishes
Make sure your resources are up
clip_image120
Now that all is good and Green we need to start the installation on the second node
So fire up the Setup and choose
clip_image121
Install Support rules and Make Sure all passes
clip_image123
Enter your product key
clip_image124
clip_image126
You will see that setup has detected the current Single node cluster from above, click Next
clip_image128
Enter the same Accounts and passwords
Make sure everything is Green
clip_image129
Review your installation
clip_image131
Click on install and wait for the installation to finish
clip_image133

Verifying The Cluster

Now if you go to the SQL Server Clustered application properties you now see both nodes added
clip_image135
Hope that helps

Thanks
R.karthikeyan

2 comments:

Share this

Labels

WINDOWS SERVER (22) Windows (20) IIS (15) Interview questions (10) TFS (9) Troubleshooting Tips (9) Fortigate Firewall (8) SQL (8) Backup (6) Team Foundation Server (6) Webserver (6) Windows Administration Task (6) Microsoft certification (5) Virtualization (5) ADDS (4) Active Directory (4) FTP (4) PHP (4) SQL 2012 (4) SQL Server (4) server (4) DBA (3) MSSQL (3) Networking (3) Offer (3) Webhosting (3) Windows 8 (3) 74-409 (2) Agile Methodology (2) Apache (2) CLI Commands (2) DNS (2) Dedicated server (2) Difference between Active and Passive Connection Mode (2) Fortinet (2) GPO (2) IIS8 (2) IPAddress (2) IPV6 (2) MVA (2) Microsoft News (2) NAT (2) Software Development (2) TFS2013 (2) Uncategorized Post (2) XAMPP (2) firewall Administration. (2) powershell (2) .htaccess (1) ALM (1) Agile vs Scrum Difference (1) Blogging TIPS (1) CPanel (1) Command for Administrator (1) DC (1) DHCP (1) Domain joining nano server (1) Exam 74-409 (1) Excel TIps (1) File server (1) Fortigate Firewall HA (1) Fortigate Firmware Upgrade (1) Free Exam 70-740 (1) Free Voucher (1) Generation2 VM (1) Group Policy (1) HP (1) HP ILO IP CHange (1) HP OA IP Change (1) HP Proliant Servers (1) HTTP to HTTPS (1) Hyper-V (1) IAS (1) IIS Server hardening (1) ILO (1) Install dll (1) MCSA 2016 (1) Microsoft Virtual Academy (1) Microsoft file sharing Port (1) Migration (1) MySQL (1) NPS (1) Nano server (1) Network Drive (1) OA (1) Plesk Panel (1) Ports (1) Ports for windows file sharing (1) RADIUS (1) RDP (1) Remote Desktop Connection (1) SCRUM (1) SQL ErrorLog (1) SQL TEMPDB (1) Second Shot (1) Server 2012 (1) Startup Parameters (1) TEMPDB Movement (1) TIPS (1) Team Foundation Server 2013 (1) Temp profile. (1) Troubleshooting DNS (1) URL Rewriting (1) VDOM (1) VPS (1) VSS (1) Virtual Labs (1) Visual Studio (1) Visual Studio 2012 (1) Visual Studio 2013 (1) Visual source safe (1) Waterfall Model vs Agile Methodology (1) Windows 2016 (1) Windows 7 (1) Windows Server 2012 (1) Windows command line (1) XP (1) certification path (1) exam (1) free online courses (1) protocols/ports for windows file sharing on a firewall (1) sql error (1) what features has been installed in your SQL Server (1) windows 2012 (1) windows Time Service (1) work item types difference (1)

E-Books

Blogger Gadgets