Denny Cherry twitter.com/mrdenny.

Slides:



Advertisements
Similar presentations
Denny Cherry twitter.com/mrdenny.
Advertisements

Implementing SQLServer AlwaysON Sarabpreet Singh Anand SQL Server – MVP SQLServerGeeks.com (VP)
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
Denny Cherry twitter.com/mrdenny.
SQL SERVER DAYS 2011 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
Denny Cherry twitter.com/mrdenny.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
High-Availability Methods Lesson 25. Skills Matrix.
Architecting Availability Groups
IT Pro Day SQL Server 2012 AllwaysOn Stephan Hurni Microsoft V-TSP Principal Consultant, Trivadis AG
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
© 2011 PLANET TECHNOLOGIES, INC. Upgrading Your SharePoint and SQL Environments Patrick Curran, MCT SEPTEMBER 22, 2012.
SQLCAT: SQL Server 2012 AlwaysOn Lessons Learned from Early Customer Deployments Sanjay Mishra Program Manager Microsoft Corporation DBI360.
Unified solution Easy to configure, manage, and monitor Reuse existing investments SAN/DAS environments Allow using HA hardware resources Fast seamless.
SQL Server AlwaysOn Phil Brammer, Database Administrator.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
Denny Cherry twitter.com/mrdenny.
Roger Technology Solution Professional DataPlatform Microsoft Corporation SQL Server 2012AlwaysOn Availability Groups.
Denny Cherry Senior Database Administrator / Architect Awareness Technologies Quest Software SQL Server MVP MCSA, MCDBA, MCTS,
Speaker Name 00/00/2013. Solution Requirements.
SQL SERVER DAYS 2011 Table Indexing for the.NET Developer Denny Cherry twitter.com/mrdenny.
Alwayson Availability Groups
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Virtual Machine Movement and Hyper-V Replica
SQL SERVER DAYS 2011 Indexing Internals Denny Cherry twitter.com/mrdenny.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
SQL Server 2012: AlwaysOn HA and DR Design Patterns, and Lessons Learned from Early Customer Deployments Sanjay Mishra SQLCAT.
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.
SQL Server 2014 AlwaysOn Step-by-Step SQL Server 2014 AlwaysOn Step-by-Step A hands on look at implementing AlwaysOn in SQL Server 2014.
What HADR Option(s) Are Right For You?. Where’s The AlwaysOn?
SQL Server High Availability Introduction to SQL Server high availability solutions.
All the things you need to know before setting up AlwaysOn Michael Steineke SQL & BI Solution Lead Enterprise Architect Concurrency, Inc.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
Are You High? Can You Recover? Robert Douglas SQL Saturday #468, Sydney 27 th February 2016.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
ALWAYSON AVAILABILITY GROUPS Replicas, Listeners & Quorums, Oh My! Kevin Howell SQL Saturday #517 Philadelphia, June 2016.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
ALWAYSON AVAILABILITY GROUPS
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
Contained DB? Did it do something wrong?
Denny Cherry twitter.com/mrdenny
AlwaysOn Availability Groups 101
Disaster Recovery Where to Begin
What’s new in SQL Server 2016 Availability Groups
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
SQL Server on Linux: High Availability And Disaster Recovery
Distributed Availability Groups
AlwaysOn Availability Groups
Denny Cherry twitter.com/mrdenny
High Availability/Disaster Recovery Solution
Distributed Availability Groups
04 | Always On High Availability
Distributed Availability Groups
Distributed Availability Groups Praveen Kumar. What we will cover Availability group refresher The HA/DR solution Distributed availability groups – what.
Distributed Availability Groups
SQL AlwaysOn Availability Groups
Designing Database Solutions for SQL Server
Presentation transcript:

Denny Cherry twitter.com/mrdenny

About Me Author or Coauthor of 4 books 6+ SQL Mag articles Dozens of other articles Microsoft MVP since Oct 2008 Microsoft Certified Master Founder of SQL Excursions Sr. DBA for Phreesia 2

What is “Always On”? AKA “HADR” Combines Best of Mirroring and Clustering Can allow for backups to be read

What Parts of Clustering? Uses the clustering APIs for failover No cluster IPs or shared storage, users still connect to normal instance Shared IP Address for central connection point

What Parts of Mirroring? Uses Mirroring for the data transport Uses Mirroring TCP Endpoint

New Terms to Know Availability Groups Availability Replicas Availability Databases

Setup Requirements All Instances must be installed on Windows 2008 R2 Enterprise (or higher) All servers running as part of HADR much be in a single Windows cluster SQL is not clustered Databases must be in full recovery

Setup Notes Multiple Databases in a single Availability Group IO profiles on primary and secondary are different Primary only writes on checkpoint Secondary writes as changes are received (The same as Legacy DB Mirroring) All compatibility modes are supported No Shared Storage Matching hardware is not required

Data Transfer Data is transferred via Data Mirroring Endpoint Endpoints created via the Wizard automatically if not created

Configuration Options… Management Studio Wizard Driven Setup PowerShell CmdLets on the next slide T/SQL CREATE AVAILABILITY GROUP – Setup Primary ALTER AVAILABILITY GROUP – Join Secondary

PowerShell CmdLets Setup New-SqlAvailabilityGroup New-SqlAvailabilityReplica Add-SqlAvailabilityGroupDatabase Join-SqlAvailabilityGroup Breakdown Remove-SqlAvailabilityGroup Remove-SqlAvailabilityGroupDatabase Management Suspend-SqlAvailabilityGroup Switch-SqlAvailabilityGroup

Sample PowerShell Script to Configure HADR # Setup names and TCP addresses of the primary and secondary servers. $primaryServerName = "[PrimaryServerName]"; $secondaryServerName = "[SecondaryServerName]"; $primaryEndpointUrl = "TCP://" + $primaryServerName + ".web_domain:5022"; $secondaryEndpointUrl = "TCP://" + $secondaryServerName + ".web_domain:5022"; # Next create the Availability Replicas as templates. $replica1 = new-sqlavailabilityreplica -Name $primaryServerName -EndpointUrl $primaryEndpointUrl -AsTemplate $replica2 = new-sqlavailabilityreplica -Name $secondaryServerName -EndpointUrl $secondaryEndpointUrl -AsTemplate # Finally create the Availability Group. $ag = new-sqlavailabilitygroup -Name $availabilityGroupName -AvailabilityReplica ($replica1, $replica2) -Database $databases #Tells a secondary Server to join the Availability Group Join-SqlAvailabilityGroup -Path. -Name "My Availability Group" Sorry About the Eye Chart

Failing over HADR Done via SSMS. Switch-SqlAvailabilityGroup PowerShell CmdLet ALTER AVAILABILITY GROUP test FORCE_FAILOVER_ALLOW_DATA_LOSS; Which allows for data loss, and doesn’t appear to have a graceful failover option

Known Bugs Features in CTP1 Failover requires data loss Only 2 Replica Servers are supported in CTP1 Failover in SSMS sucks. Testing the network share fails for no reason There is no Get-SqlAvailabilityGroup, use get-item instead.

Known Bugs Features in CTP1 No way to add databases or replicas via SSMS No way to tell in Object Explorer if a database is an HADR database SELECT INTO doesn’t work correctly

What can we use HADR for? Getting a backup of the database on a remote machine Taking a snapshot of a database Offloading CheckDB from production server Offloading reporting from production server Redundancy - Dugh

What’s known to be coming? Support for up to 4 secondary servers Up to 2 Synchronous Up to 4 Asynchronous Backups on the secondary servers The ability to fail over without data loss Automatic Failover

What’s Still Unknown Licensing of passive nodes Licensing of read only nodes Edition Requirements to use HADR

Lets see how we set this thing up

Please fill out the survey at