Clustering SQL Server Tom Pullen Senior DBA, RM Education

Slides:



Advertisements
Similar presentations
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Advertisements

SQL Server 2000 Clustering Dave Fackler. Agenda Windows 2000 Clustering SQL Server 2000 Clustering Implementation Tips.
OpalisRobot™ Demonstration Actual Run Book Procedure Actual Data center Run Book Procedure documenting for Level 1 staff how to both VERIFY.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Media Partners.
National Manager Database Services
11 SERVER CLUSTERING Chapter 6. Chapter 6: SERVER CLUSTERING2 OVERVIEW  List the types of server clusters.  Determine which type of cluster to use for.
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
Ronen Gabbay Microsoft Regional Director Yside / Hi-Tech College
VMware vCenter Server Module 4.
Gopal Ashok Program Manager Microsoft Corp Session Code: DAT 312.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW Understand the difference between service.
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW  Understand the difference between service.
1 Introducing Windows Backup There are different methods for starting Windows 2000 Backup. Requirements for running Windows 2000 Backup All users can back.
SOE and Application Delivery Gwenael Moreau, Abbotsleigh.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
®® Microsoft Windows 7 for Power Users Tutorial 8 Troubleshooting Windows 7.
Hands-On Microsoft Windows Server 2008
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.

INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Managing and Monitoring Windows 7 Performance Lesson 8.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
SQL2005 Cluster Build. IP Request Request 6 IP Addresses – One for EACH SQL virtual server (2) – One for the cluster – One for Distributed Transaction.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Overview of high availability in Microsoft SQL Server Szymon Wójcik.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Overview Managing a DHCP Database Monitoring DHCP
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Chapter 10 Chapter 10: Managing the Distributed File System, Disk Quotas, and Software Installation.
11 CLUSTERING AND AVAILABILITY Chapter 11. Chapter 11: CLUSTERING AND AVAILABILITY2 OVERVIEW  Describe the clustering capabilities of Microsoft Windows.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
High Availability in DB2 Nishant Sinha
Vlad Mazek Own Web Now Corp CEO, MCSE, MCSA, CISSP (877) Portions reproduced with permission from Dean Calvert.
Managing and Monitoring the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
Module 7: SQL Server Special Considerations. Overview SQL Server High Availability Unicode.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Narasimha Reddy Gopu Jisha J. Agenda Introduction to AlwaysOn * AlwaysOn Availability Groups (AG) & Listener * AlwaysOn Failover * AlwaysOn Active Secondaries.
Troubleshooting Workflow 8 Raymond Cruz, Software Support Engineer.
Windows Server Failover Clustering (WSFC) with SQL Server.
SQL Database Management
Greg Seidel Technology Specialist – SQL Server
Troubleshooting Tools
Disaster Recovery Where to Begin
AlwaysOn Mirroring, Clustering
Common SQL Server Mistakes and How to Avoid Them
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Contained DB? Did it do something wrong?
AlwaysOn Availability Groups 101
Universal SQL Installations Framework (Script review and Demo)
Dynamics AX Performance
Networking for Home and Small Businesses – Chapter 2
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
SAP R/3 Installation on WIN NT-ORACLE
AlwaysOn Availability Groups
Networking for Home and Small Businesses – Chapter 2
Designing IIS Security (IIS – Internet Information Service)
Designing Database Solutions for SQL Server
Presentation transcript:

Clustering SQL Server Tom Pullen Senior DBA, RM Education

Agenda Why Cluster? Is it worth the hassle and expense? How does it compare to other HA technologies? How to Cluster plan prepare execute test/monitor

Why Cluster? High availability requirements – 24X7, patching, hotfixes Cost and Benefit Requirements: hardware, software, licenses Alternatives: comparing clustering with other HA technologies Limitations – what does clustering not protect you from? Combining clustering with other HA technologies – log shipping, mirroring, offloading reporting load

How to cluster Plan Prepare Execute Test

Plan 1.Consult your users/boss/finance director! 2.Design your cluster: Nodes, Instances, Storage 3.Write a plan for build 4.Write a plan for migration/go-live 5.Think of everything! 6.Get your plans and design peer-reviewed 7.Think about failure – how to go back? 8.Plan decision points – when/if to proceed, or give up & the points of no return

Prepare Do everything you can in advance - create security accounts - obtain/reserve IP addresses - obtain install media – and SP install files - ensure you accurately estimate the time requirements – be conservative! - plan downtime, advertise downtime, arrange holding pages - think about all the other things you normally need on a new server: logins, jobs, configs, SPs, backup software, backup location, tapes?, database mail, alerts etc!

Execute Print your plan Follow it Mark your progress Give yourself incentives! Publicise your progress Get help if you encounter problems Be willing to give up if necessary

Steps in clustering Build servers, OS, AD, networking, SAN/LUN presentation [or have this done for you] – check everything! Install/configure MSDTC Install clustering Create cluster groups Cluster MSDTC Test failover Install SQL Server instance(s) Service Pack/Hotfix/Cumulative Update(s) Configure Do all the other normal things! (Jobs, logins etc) Test failover and failure

MSDTC MSDTC – Under Windows 2003, it is a pain MSKB docs can be misleading How to enable network DTC How to cluster MSDTC Enable network DTC on each node and set permissions BEFORE clustering Under Windows 2008/SQL Server 2008, things are much improved! If you get into a tangle clustering MSDTC, it is sometimes quicker to strip everything out ( cluster.. /forcecleanup ) and start again! Clustering itself is easier than getting MSDTC right!

Cluster! Shut down all but the first node Cluster Administrator → new cluster Enter name, IP, Quorum disk Switch on other server(s) and add them to the cluster Configure heartbeat network Create cluster groups and disk resources ready for SQL Server to install into

Cluster Administrator

A group before SQL Server is installed

cluster.exe command example CLUSTER /CLUSTER:SQLCLUS01 GROUP "BACKUP1" /CREATE CLUSTER /CLUSTER:SQLCLUS01 GROUP "BACKUP1" /ONLINE CLUSTER /CLUSTER:SQLCLUS01 GROUP "BACKUP1" /SETOWNERS:SQL05 CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "LUN U_BAK" /CREATE /GROUP:"BAK_SHARE" /TYPE:"Physical Disk" /PRIV DRIVE="U:" /OFFLINE CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "LUN U_BAK" /ONLINE CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup IP Address Public" /CREATE /GROUP:"BACKUP1" /TYPE:"IP Address" /PRIV ADDRESS=" " /PRIV SUBNETMASK=" " /PRIV NETWORK="Public" /OFFLINE CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup Network Name Public" /CREATE /GROUP:"BACKUP1" /TYPE:"Network Name" /PRIV NAME="SQLCLUS01BAK" /OFFLINE CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup Network Name Public" /ADDDEPENDENCY:"Backup IP Address Public" CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup Network Name Public" /PRIV RequireKerberos=0 CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup_Share" /CREATE /GROUP:"BACKUP1" /TYPE:"File Share" /PRIV SHARENAME="BACKUPS1" /PRIV PATH="U:\" /OFFLINE CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup_Share" /ADDDEPENDENCY:"Backup Network Name Public" CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup_Share" /ADDDEPENDENCY:"LUN U_BAK" CLUSTER /CLUSTER:SQLCLUS01 RESOURCE "Backup_Share" /PRIV Security="Everyone",set,C:security CLUSTER /CLUSTER:SQLCLUS01 GROUP "BACKUP1" /OFFLINE CLUSTER /CLUSTER:SQLCLUS01 GROUP "BACKUP1" /ONLINE

Install SQL Server Instance(s) Run setup! Do you like unattended installs/batch files? SQL Server 2005 runs multiple times automatically on each node using Task Scheduler SQL Server 2008 must be installed on each node Interactive install of SQL Server requires you to specify:- Components to install Instance Name, Virtual Server Name + IP, Cluster Group, Cluster Node Configuration Setup account info Service account Domain group for cluster services Authentication mode Collation Error usage & reporting Unattended install requires you to specify all of these in the config file Do it all over again for each instance! Service pack – does each engine instance on each node. Must be run from active node. Don’t forget to Service Pack Tools, Shared Components, SSIS, SSNAC/connectivity, etc

Install SQL Server Instance(s)

Now make your instance like you normally would! Configure! RAM especially. Think about min, max, what can be where? MAXDOP? Max worker threads? Logins Jobs Alerts Database Mail SPs in system DBs? Startup SPs Trace Flags Auditing Maintenance Sysmessages? Static data? Resize system DBs? Move/split tempdb files? Any other things that are particular to your environment

Test! Test failover Test failure Fix issues Run each instance on every Node it can exist on and check it is ok

Migrate Get your User DBs on – migrate or create? Populate (Re)point your apps Test your apps Anything else? (Replication?) Reporting services? Analysis Services?

Monitor Enable alerts Failover – startup SP? Monitor performance Monitor availablility Monitor disk space Monitor your monitor!

Some real-world clusters

Summary Failing to plan is planning to fail Write your plan – and follow it! Don’t be scared of clustering Know where to find help Practice if you can with test servers Don’t panic! But feel free to curse MSDTC...

Good Resources How to cluster Windows How to cluster SQL Server MSDN Clustering Blog Windows 2008 Clustering Step-By-Step Windows 2003 Microsoft White Paper (comprehensive!)