HIGH-AVAILABILITY & D/R OPTIONS FOR MICROSOFT SQL SERVER

Similar documents
SQL Server Virtualization 201

High Availability- Disaster Recovery 101

High Availability- Disaster Recovery 101

Swiss IT Pro SQL Server 2005 High Availability Options Agenda: - Availability Options/Comparison - High Availability Demo 08 August :45-20:00

SQL Server 2012 virtually out, Microsoft talks features, licensing

SQL Server Databases in the Clouds

Microsoft SQL Server

New England Data Camp v2.0 It is all about the data! Caregroup Healthcare System. Ayad Shammout Lead Technical DBA

Microsoft SQL AlwaysOn and High Availability

Microsoft SQL AlwaysOn and High Availability

Floating on a Hybrid Cloud: SQL Server 2014 & Microsoft Azure Timothy P. McAliley Microsoft Premier Field Engineer SQL Server May 8, 2014

Windows Clustering 101

Are AGs A Good Fit For Your Database? Doug Purnell

Index. Peter A. Carter 2016 P.A. Carter, SQL Server AlwaysOn Revealed, DOI /

How To Make Databases on Linux on System z Highly Available

SQL Server Availability Groups

Arcserve Unified Data Protection Virtualization Solution Brief

Eliminate Idle Redundancy with Oracle Active Data Guard

SQL Saturday Jacksonville Aug 12, 2017

Ryan Adams Blog - Twitter Thanks to our Gold Sponsors

Ryan Adams Blog - Twitter MIRRORING: START TO FINISH

SQL Server HA and DR: A Simple Strategy for Realizing Dramatic Cost Savings

Cohesity DataPlatform Protecting Individual MS SQL Databases Solution Guide

BC/DR Strategy with VMware

Avoiding the Cost of Confusion: SQL Server Failover Cluster Instances versus Basic Availability Group on Standard Edition

Implementation of Microsoft SQL Server using AlwaysOn for High Availability and Disaster Recovery without Shared Storage

How To Make Databases on SUSE Linux Enterprise Server Highly Available Mike Friesenegger

Transform Availability

High Availability Without the Cluster (or the SAN) Josh Sekel IT Manager, Faculty of Business Brock University

EASYHA SQL SERVER V1.0

Microsoft E xchange 2010 on VMware

EXAM Administering Microsoft SQL Server 2012 Databases. Buy Full Product.

Zero Downtime Migrations

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led

Transactional Replication New Features for AlwaysOn AG in SQL Henry Weng Premier Field Engineer SQL Server & AI

High Availability Overview Paper

DB2 for Linux, UNIX, Windows - Adv. Recovery and High Availability

SQL 2016 Always On High Availability

Accelerate SQL Server 2012 AlwaysOn Availability Groups Deployment on NetApp Storage

InterSystems High Availability Solutions

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

A Guide to Architecting the Active/Active Data Center

Virtualization with Arcserve Unified Data Protection

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Virtualization And High Availability. Howard Chow Microsoft MVP

DOWNLOAD PDF SQL SERVER 2012 STEP BY STEP

EMC Data Protection for Microsoft

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

StarWind Virtual SAN Free

Design and implement cloud data platform solutions.

Microsoft SQL Server HA and DR with DVX

Database Mirroring & Snapshots SQL Server 2008

Business Continuity and Disaster Recovery. Ed Crowley Ch 12

Exploring Options for Virtualized Disaster Recovery

A CommVault White Paper: Business Continuity: Architecture Design Guide

Microsoft Azure Windows Server Microsoft System Center

EBOOK. FROM DISASTER RECOVERY TO ACTIVE-ACTIVE: NuoDB AND MULTI-DATA CENTER DEPLOYMENTS

HowTo DR. Josh Berkus PostgreSQL Experts SCALE 2014

Successfully migrate existing databases to Azure SQL Database. John Sterrett Principal Consultant

HowTo DR. Josh Berkus PostgreSQL Experts pgcon 2014

Benefits of Multi-Node Scale-out Clusters running NetApp Clustered Data ONTAP. Silverton Consulting, Inc. StorInt Briefing

Virtual protection gets real

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A)

SQL Server DBA Online Training

The safer, easier way to help you pass any IT exams. Exam : Administering Microsoft SQL Server 2012 Databases.

Manually Run The Synchronization Replication Sql Server 2005 Delete

Virtual Disaster Recovery

Veritas NetBackup for Microsoft SQL Server Administrator's Guide

MOVING TOWARDS ZERO DOWNTIME FOR WINTEL Caddy Tan 21 September Leaders Have Vision visionsolutions.com 1

TSM Paper Replicating TSM

Replication Solutions with Open-E Data Storage Server (DSS) April 2009

Enabling Fast Recovery of Your Virtual Environments: NetBackup, Backup Exec & VCS for VMware


DocAve 6 High Availability

Dell EMC Avamar for SQL Server

SQL Server AlwaysOn setup on ObserveIT environment

: Course 55021A : Configuring and Administering Hyper-V in Windows Server 2012

Dell EMC Avamar for SQL Server

Patient C SQL Critical Care

Red Hat Enterprise Virtualization (RHEV) Backups by SEP

Azure Webinar. Resilient Solutions March Sander van den Hoven Principal Technical Evangelist Microsoft

AlwaysOn Availability Groups: Backups, Restores, and CHECKDB

Most SQL Servers run on-premises. This one runs in the Cloud (too).

Defining a Service Level Agreement (SLA)

Configuring & Administering Hyper-V in Windows Server 2012

Copyright 2012 EMC Corporation. All rights reserved.

Arcserve Solutions for Amazon Web Services (AWS)

AlwaysOn Availability Groups 2016 What is new?

Vembu v4.0 Vembu ImageBackup

What to Look for in a DRaaS Solution

BCT9552 VMware Infrastructure 3 Capabilities for Improving Disaster Recovery. Jay Judkowitz Sr. Product Manager, VMware

SearchWinIT.com SearchExchange.com SearchSQLServer.com

SQL Server 2014 Upgrade

Maximizing SharePoint Availability Whitepaper v1.1 4/2018

EMC CLARiiON CX3-80 EMC Metropolitan Recovery for SQL Server 2005 Enabled by Replication Manager and MirrorView/S

SQL AlwaysOn - Skype for Business

SAP Solutions on VMware vsphere : High Availability

Using Double-Take Software and the Virtual Recovery Appliance

Real-time Recovery Architecture as a Service by, David Floyer

Asigra Cloud Backup Provides Comprehensive Virtual Machine Data Protection Including Replication

Transcription:

SQL SATURDAY # 91 - OMAHA HIGH-AVAILABILITY & D/R OPTIONS FOR MICROSOFT SQL SERVER 8/27/11 Tim Plas, Virteva tim.plas@virteva.com 1

The Presenter Tim Plas, Principal Consultant at Virteva (Mpls) Operational DBA: Keep SQL servers running & optimized for managed-services clients My other current specialties: Storage, Cloud services, Server virtualization 25+ years in IT, in many roles Mostly servers / infrastructure in last 15 years Multiple MS certs starting in 1994 2

The Agenda SQL HA & DR -- HIGH AVAILABILITY & DISASTER RECOVERY Based on the experiences of having installed & managed all current varieties of SQL HA & DR MATERIAL TO BE COVERED: Microsoft licensing for SQL HA & DR What kind of differences are there in HA & DR options? Summary list of the HA & DR Approaches HA & DR approaches, one by one What are the trade-offs? Which approach do I recommend for a given scenario? SQL Denali AlwaysON (HA / DR) overview 3

Microsoft Licensing for SQL HA & DR Typical usage is Active / Passive Active node must have SQL Server license Passive node does not need SQL license As long as no one is accessing database services on the secondary server while primary server is active. Need to move back within 30 days Still need Windows server license if using 2 servers Some approaches need Enterprise vs. Standard Edition (of Windows and/or SQL Server) 4

Distinguishing Criteria for HA & DR Options Does it keep more than one copy of the data? Is the approach better suited for HA or DR? Does it protect the whole SQL Server instance, or just individual database(s)? Are you running one or two SQL server instances? How quickly can clients get back online? How do clients get re-connected & how do they find the current primary server? There WILL be a re-connect (i.e., down-time) during the switch! -with any approach Does it mostly need SQL DBA skills or Windows sysadmin skills? --or something else? 5

The Approaches to SQL HA & DR Microsoft Clustering ( MSCS / Failover Clustering) Log-shipping Database Mirroring (since SQL 2005) SQL Replication (transactional replication) 3 rd -party software (DoubleTake, etc.) Virtualization-based SAN replication 6

HA/DR Approach # 1 MS CLUSTERING FOR SQL SERVER 7

Why I didn t formerly like MS clustering Expensive; Exotic hardware High-end people skills High complexity ( = more likely to break ) Single copy of data 8

Why I like MS clustering now (Windows Server 2008, with SQL 2008) ( R2 made it even better) Affordable; Easily achievable Much simpler now But Still single copy of data 9

MS Clustering for SQL The Basics Two (or more) servers, running Windows Server Enterprise Edition (Win2008) Must have some form of shared disk Configure cluster services (Windows role) Wizard-driven, but does require some pre-planning Need to assign virtual server name(s) & IP(s) You end up with Win server A, Win server B, SQL server X Need to assign disk volumes for cluster to manage (disk volumes belong to one server at a time) Install SQL Server as cluster nodes (SQL2008) 10

MS Clustering Characteristics Licensing = 2 x Win EE + 1 SQL (SE or EE) Single copy of the data Protects entire SQL instance, not specific DB(s) Single SQL instance running; no client-side issues Automatic fail-over, and decent re-connect time Restarts SQL instance on other node Requires some extra Windows admin skills; little additional for DBA Mostly HA approach; not really DR 11

MS Clustering with SQL Server DB Win Server A SQL Services Win Server B SQL Services SQL Instance Client 12

HA/DR Approach # 2 LOG SHIPPING 13

Log-Shipping The Basics Two SQL servers: One is active, and other is warm-standby Primary server performs frequent tran-log backups, & sends them to secondary Secondary copy of DB is always in restoring mode, until it s needed to stand in --Then you have to put it into normal DB mode, & get everybody to point to it Has been fairly common design 14

Log-Shipping Characteristics Licensing = 2 x Win + 1 x SQL Maintains replicated copy of the data Protects individual DB(s), not whole SQL instance Two SQL instances to deal with Some assembly required by DBA Simple Windows admin; some DBA complexity Fail-over requires special handling; Warm standby is probably best description Great for maintaining off-site D/R replica of DB 15

HA/DR Approach # 3 DATABASE MIRRORING 16

Database Mirroring The Basics New with SQL 2005; improved with SQL 2008 Resembles an automated version of Log-Shipping But transactions go continuously to DB, not via series of backup/restore jobs Two SQL servers: Active / Passive Principal + Mirror roles, in MS terminology + optional Witness (if doing auto-failover) Witness can be SQL Express; it s not serving any DB Super-simple to set up 17

18 SQL HA/DR with Mirroring

DB-Mirroring Characteristics Very simple to set up (too simple?) Licensing = 2 x Win + 1 x SQL (EE for some options) Maintains replicated copy of the data Protects individual DB(s), not whole SQL instance Limited on # of DB s simultaneously mirrored Two SQL instances to deal with Automatic fail-over, and VERY fast 2 nd server already running, w/ fully-sync ed DB [cont d] 19

DB-Mirroring Characteristics [cont d] Clients need special connection to find active node SNAC SQL Native Access Client Some assembly required by DBA, at least for auto failover To sync objects between servers Data replication portion is very automatic Can t access secondary, except via snapshots Simple Windows admin; some DBA complexity Best for HA; possible use for DR 20

Database Mirroring Two Options Synchronous vs. Async = * High Safety vs. High Performance = Standard vs. Enterprise ------------------------------------------------------------- * or High Availability with witness server 21

HA/DR Approach # 4 TRANSACTIONAL REPLICATION 22

Transactional Replication The Basics Multiple varieties of SQL replication exist: Transactional can be used for a near-real-time DB replica Somewhat similar to log-shipping, except: Data flows directly to DB; not thru backup / restore THE BIGGIE: Replica DB is accessible by others Requires special characteristics in the DB 23

Transactional Replication Characteristics Licensing = 2 x Win + TWO x SQL Replicated copy of the data; can access 2 nd copy Protects individual DB(s), not whole SQL instance Replicates only data in tables, not other objects Not great for fail-over; certainly not auto Sometimes combined with other HA or DR methods; Allows usage of dup hardware for reporting Definitely need SQL DBA skills (requires pri. keys) 24

HA/DR Approach # 5 3 rd -PARTY SQL HA/DR TOOLS 25

3 rd -Party SQL HA/DR Tools The Basics Two servers, running proprietary software agents (source + target) Software maintains a replica of data onto second server, and provides failover capability when primary goes down Secondary server assumes identity of primary during fail-over IP address, server name, etc. Has additional possibilities, such as many-to-one coverage, geo-clustering 26

3 rd -Party SQL HA/DR Tools Characteristics Licensing = 2 x Win + 1 SQL + software license Replicated copy of the data Protects entire SQL instance, not individual DB(s) Single SQL instance running No client-side issues Automatic fail-over (starts up SQL on 2 nd server); Have seen messy fail-back situations Moderate Windows sys-admin skills; simple for DBA; some add l knowledge for 3 rd -party solution Adds additional complexity 27

HA/DR Approach # 6 SQL HA/DR BASED ON VIRTUALIZATION 28

SQL HA/DR with Virtualization The Basics Can run any of preceeding SQL HA/DR options in virtualized form Virtualization vendors offer HA / cluster solutions that protect any type of server SQL Server A running as guest on server-1; Server-1 fails, so server-2 picks up disks from SQL Server A and boots it up (Assumes shared storage) Also possible with replicated disk, e.g. at D/R site 29

Virtualization HA/DR Characteristics Licensing = ONE x Win + 1 SQL + maybe software Data may or may not be replicated, depending on chosen approach Protects entire SQL instance, not individual DB(s) Single SQL instance running at one time No client-side issues Automatic fail-over, and decent re-connect time Server reboot time Simple Windows sys-admin skills; simple for DBA; some additional knowledge for virtualization and storage 30

SQL HA/DR Approaches SUMMARIZING / COMPARING OPTIONS 31

What trade-offs need to be considered? It all depends Which costs are most important: Hardware, Licensing of Windows / SQL / software, Initial setup, On-going maint, Skill sets, Downtime Safety of data: Replicated copy or single copy? Requirements for continuous availability Is replicated data good enough? How fast failover needed? Complexity: Per-DB or whole instance, Reconnect method, How many clients 32

Comparing SQL HA/DR Options MSCS Log-Ship DB Mirror Tran.Repl. 3 rd -Party Virtual Replicated data? N Y Y Y Y Y/N Licensing Protect DB / Instance 1 SQL 2 WinEE 1 SQL 2 Win 1 SQL 2 Win 2 SQL 2 Win 1 SQL 2 Win + 1 SQL 1 Win Instance DB DB DB Instance Instance # of SQL Servers 1 2 2 2 1 1 Failover Time Minute: Start SQL Minutes to switch Seconds Usually Manual Minute: Start SQL Minutes: Reboot Client Re-connect Easy Messy Easy * Messy Easy Easy Windows Admin Skills Some extra Easy Easy Easy Some extra DBA Admin Skills Easy Complex Moderate Complex Easy Easy Usage Recomm. Solid HA Good for WAN D/R Fast! Simple Good for reporting Not any more Easy Easy HA 33

Recommendations for various scenarios Continuous availability DB mirroring -very fast fail-over MS F-O clustering -perhaps with SAN replication Virtualization HA cluster -very simple Replicated data for warm stand-by, e.g. off-site DB mirroring -simple setup (but EE license) Log shipping -some assembly required Transactional replication -if want reporting copy SAN replication Hybrids, especially with reporting 34

SQL Denali AlwaysOn Availability Groups Clustering AND Mirroring, wrapped together Can still do traditional clustering & mirroring (at least for now), but why would you? Fixes clustering issues: Single-site; Shared storage; Single copy of database Fixes mirroring issues: Multiple DB s together; Able to access 2 nd copy; > 1 replica Can use for both HA and DR 35

SQL Denali Availability Groups A set of DB s that failover together Can have multiple FO targets (mult. secondary replicas --up to 4 --vs. current 1 mirror) Secondary replicas can allow read access: Backups, reporting Can be async-commit or sync-commit (or both, if > 1 replica) Good tools Fast failover, with flexible FO policies 36

SQL Denali HA / DR My biggest fear: Licensing Which features will be available in which SKU s / Editions? Keep in mind: Not all of current mirroring functionality is available in Standard Edition Licensing for 2 nd system is sure to be required if it s not just active/passive -- and that s fair My opinion: If you can afford Enterprise, then AlwaysOn Availability Groups will be the way to achieve HA and DR If you can t afford it, or can t wait, then traditional HA/DR tools are required 37

SQL HA & DR Options Questions? -Tim Plas, Virteva tim.plas@virteva.com 952-843-1148 42