SQL Server Clustering For Dummies
SQL Server Clustering For Dummies
Mark Broadbent
@retracement
[email protected] tenbulls.co.uk LinkedIn: http://linkd.in/gylT4I
Run the LinkedIn groups Linux Mint User Group http://www.linkedin.com/groups?gid=2989801 SQL Server Scripting http://www.linkedin.com/groups?gid=3033621
Agenda
Introduction to Clustering What, why and who? DEMO Installation Preparation, Validation and Installation Administration Problems and benefits DEMO Houston we have a problem
Introduction
What is a SQL Cluster?
One or more clustered SQL Instances on one or more physical servers running MS Windows
Who supports?
Diverse range of knowledge required, perhaps too much for a specialist DBA? How do we monitor? Not all tools are cluster aware Who controls the Cluster?
Terminology
Terms can mean the same thing or sometimes tend to be used interchangeably (often wrongly!) ...including by me. Depending upon who you talk to they can cause confusion. They include: Cluster Cluster Node...Node...Server Service or Application... Virtual Server... Cluster Group... Failover
Cluster... SQL Instance... SQL Server and *ahem* Server Active/Passive Single Instance... Multi Instance ... N+n Cluster Resources (take your pick) Private Network...interconnect...internal Public Network...LAN (or whatever network is the one clients will connect through facing!) SAN... iSCSI target... Shared Storage LUN... Partition... Volume... Disk Quorum... Voting Disk... Majority
A Dummies Dictionary
Cluster Connected Windows servers running Cluster service with the ability to own the Cluster Name and IP Cluster Node A Windows server that is Clustered Cluster Group Collection of clustered resources Single Instance Cluster One SQL Instance installed to a Cluster containing one or more Cluster Nodes Multi Instance Cluster Come on people! Resources those things in the Cluster Groups remember! Public/ Private/ Storage networks logical networks across Clustered nodes (each NIC configured in own subnet) Quorum voting mechanism to ensure correct ownership of shared resources. E.g. Magician is No majority: Disk only style Quorum.
Cluster Nodes
Shared Storage
Cluster Networks
Events
Installation
Preparation
Remove Disabled Adapters to avoid "ghosted NICs Ensure .NET Framework 3.5 SP1 is installed Disable Firewall on private network Before Installing Failover Clustering http://bit.ly/dEZc6H Windows Server 2008 Failover Cluster Configuration Program http://bit.ly/fldSrK
Validation
HCL no longer exists, although there are pre-validated vendor solutions Successful validation is required Microsoft SQL Server support policy for Microsoft Clustering http://bit.ly/a7yDok Microsoft Support Policy for Windows Server 2008 or Windows Server 2008 R2 Failover Clusters http://bit.ly/f17wew Understanding Cluster Validation Tests http://bit.ly/efBIHp
Installation
One SQL installation per instance per node Installing a SQL Server 2008 R2 Failover Cluster http://bit.ly/gmXyip Download my Installation Videos from http://bit.ly/gAqN32
Installation
Create Cluster Group and Install SQL instance to it This is the SQL Failover Cluster
Install SQL instance onto Cluster node and join into existing SQL Failover Cluster
Co-existance
SQL Patching
Monitoring
Disaster Planning
Hang on lads, I've got a great idea.
Is the Shared Storage accessible? Can you make storage available elsewhere? Do you have Backups? What is the restore time? Have you available instances? What about name resolution? Can you redirect your apps? Will you maintain same performance level?
In summary
We discussed
What is a SQL Failover Cluster Overview of the Cluster Group Installation, preparation, and validation Administration of the SQL Failover Cluster Recovery from failure
Further references
Books
Apress - Pro SQL Server 2008 Failover Clustering Allan Hirt
Blogs/ Websites
MSDN Clustering and High-Availability http://bit.ly/czSTPz Allan Hirt blog http://bit.ly/epAoPj Mark Broadbent blog/ clustering http://bit.ly/i8knch Geoff Hiten blog http://bit.ly/cd8aCA David Bermingham blog http://bit.ly/hYmwxU Symon Perriman blog http://bit.ly/eyGa3U
Video/ Webcasts
SQLBits 8: Multi-site Failover Cluster With SQL 2008 and Denali Allan Hirt Thinking outside the Box http://bit.ly/eUe3v5 - Mark Broadbent PASS Summit 2010: DBA324 Clustering for mere mortals - Geoff Hiten TechNet Webcast: Failover Cluster Validation and Troubleshooting with Windows Server 2008 (Level 300) http://bit.ly/hx8xCl TechNet Webcast: Windows Failover Clustering PowerShell Cmdlets: Overview and Examples (Level 400) http://bit.ly/fNBF4O TechNet Webcast: Failover Clustering 101 (Level 300) http://bit.ly/fmCOqc TechNet Webcast: High Availability Server Apps with Windows Server 2008 R2 Failover Clusters (Level 300) https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture=enUS&EventID=1032448854&CountryCode=US