SlideShare a Scribd company logo
SQL 2012 AlwaysOn

Get TurnedOn with AlwaysOn!

   High Availability/Disaster
      Recovery Solution
Dilip Nayak

 DBA at CUDirect Corporation
 Expertise in performance
  tuning/troubleshooting and high availability.
 17 years of experience working as a .NET
  developer, 6 years as SQL DBA.
 Active member of PASS, SQL Saturday and
  anything SQL related.
Mitch Bottel

• Sr SQL Server DBA – Sutter Health
• Owner Innovative IT Consulting, Inc.
• Idera ACE Alumni
  • Advisors and Community Educators
• 12+ years in IT
• Member Placer County Search and Rescue
Agenda

   Concepts of HA and DR
   SQL Failover Clustering
   Database Mirroring
   Log Shipping
   SQL 2012 AlwaysON
   Demo
   Q&A
Definitions

 High Availability
   minimize the probability of a failure
   more local in nature and generally tolerate
    smaller amounts of data loss and downtime

 Disaster Recovery
   restoring operational service after a failure
   a catastrophic event occurs and an extended
    outage is necessary to get back and running
             --Alan Hirt - Pro SQL Server 2008 Failover Clustering Book
High Availability
Why do we need another solution?

 The current High Availability and Disaster
  Recovery Solutions from Microsoft are
  scattered.
 High Availability /Disaster Recovery
  Solutions:
     Windows Failover Clustering
     Database Mirroring
     Log Shipping
     Database Replication
SQL Failover Clustering

  A failover cluster is a combination of two or more
   servers(nodes) connected to a shared storage.



                         Node 1




client
          App Server                                     Database
                         Node 2
                       Windows Server Failover Cluster
SQL Failover Clustering Issues

 Protects against hardware loss and not disk loss.
 Multi site cluster across data centers is tedious
  using VLAN etc.
 Passive node is not used thus not achieving
  maximum utilization of resources.
Database Mirroring

                                        Primary DB




                      Primary Server


Client
         App Server




                      Mirrored Server   Primary DB
                                        Mirrored DB
                      Primary Server
Database Mirroring Issues
 Can have only one mirror. No multiple copies of data.
 Mirrored database is not readable, though snapshots
  can be taken from the mirrored database. Maximum
  utilization of resources is not met.
 Must be setup on each database individually.
 Per database failover, no automatic failover of
  multiple databases.
 No sql logins/jobs are replicated to the mirrored
  instance.
 Either synchronous or asynchronous mirroring is
  supported but not both.
Log Shipping

                                          Primary DB




                        Primary Server


Client
         App Server




                       Secondary Server
                       Primary Server     Primary DBDB
                                          Secondary
Log Shipping

                                         Primary DB




                        Primary Server


Client
         App Server




                       Secondary
                       Primary Server    Primary DBDB
                                         Secondary
                       Server
Log Shipping Issues

 Cannot have synchronized databases.
 Must be setup on each database individually.
 In case of failover, the connection string needs to
  change to point it to the failover server.
 No logins/jobs are replicated to the mirrored
  instance.
What if we had all these features in a
single solution?
 Protects against hardware loss.
 Protects against disk loss.
 Multiple copies of replicated databases.
 Readable mirrored databases thus maximizing
  resources.
 Multiple database failover at once.
 No need to change the connection string in case
  of failover, you can use the same abstract name.
 Failover can occur across datacenters without
  extra effort.
The answer is…….

   SQL 2012 AlwaysOn
Modes of SQL2012 AlwaysOn


1. AlwaysOn Failover Clustering Instance(FCI).

2. AlwaysOn Availability Groups.

Today we will discuss AlwaysOn Availability
Groups.
Rules
Availability Groups
Requirements:
 Needs to have Windows failover cluster(WSFC).
 Supported in Enterprise Edition Only.
 Install individual SQL servers on each machines,
  not cluster aware.
 All servers should be in a single windows cluster.
 Matching hardware not required.
 Database should have Full Recovery model with
  at least one full successful backup.
 All nodes must be in the same AD domain.
New Technology, New Vocabulary
Availability Groups Vocabulary
 Availability Group:



 Availability Replicas:



 Availability Group Listener:
Demo Architecture

Local Data
Center
                 SANJOSE               SANJOSE 2

                 Synchronous Commit



DR Site

                                       NEWYORK


                 Asynchronous Commit
Availability Groups                        Setup
              VM1             VM2              VM3             VM4
 Host Name    CALIFORNIA      SANJOSE          SANJOSE2        NEWYORK
 Server Type Domain           SQL Server       SQL Server      SQL Server
             Controller
 OS           W2k12 Server    W2k12 Server     W2k12 Server    W2K12 Server
 IP Address   192.168.81.1    192.168.81.2     192.168.81.3    192.168.81.4
 Subnet       255.255.255.0   255.255.255.0    255.255.255.0   255.255.255.0
 Mask


Domain: SQL2012.Demos
Cluster Name: SQL2012AlwaysOn(192.168.81.10)
Availability Group: SQLSatAG
Listener: SQLSatListener – 192.168.81.30
Demo

   Sync/Async Failover.
   Availability Groups Listener.
   Read-only routing.
   Readable secondary.
   Backup on secondary.
Availability Groups Features
   Synchronous Commit – up to 2 mirrored replicas.
   Asynchronous Commit – up to 4 mirrored replicas.
   Can have read-only secondary databases.
   SQL Logins can be failed over using contained
    databases.
   Windows PowerShell is fully supported.
   Backups can occur on the replica databases.
   DBCC commands can be run on secondary.
   Flexible failover policy – sp_server_diagnostics.
   Quorum is very important.
Just when things were going right!
Some disadvantages
 Needs Enterprise Edition of SQL 2012.
 Needs Windows Cluster which in turn needs
  Windows Enterprise.
 If read-only feature on replica is used, you
  need to take care of extra licensing.
 System databases cannot be replicated-
  users and jobs are not part of replication.
 Differential backups are not supported on
  secondary.
 Deep understanding of WSFC and quorum.
References
 AlwaysOn Whitepaper
http://msdn.microsoft.com/en-us/library/jj191711

 Creating Virtual machines using Virtual Box
http://bifuture.blogspot.com/2012/04/creating-sql-server-2012-
playground.html

 Setting up Availability Groups
http://www.brentozar.com/archive/2011/07/how-set-up-sql-server-
denali-availability-groups/
 Creating virtual machines on Hyper-V and AlwaysOn Features
http://www.sqlfeatures.com
 July 27th in Sacramento!

 Looking for Speakers and Sponsors!

 Come Attend!!

 Help us spread the word!!
Q&A
Contact Information
 Dilip Nayak
   Email: d_nayak@hotmail.com
   Twitter: @d_nayak

 Mitchell Bottel
   Email: mitch@iitconsulting.com
   Twitter: @SacSQLDude
Ad

More Related Content

What's hot (20)

VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep dive
Sanjeev Kumar
 
Introduction to failover clustering with sql server
Introduction to failover clustering with sql serverIntroduction to failover clustering with sql server
Introduction to failover clustering with sql server
Eduardo Castro
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
Gustavo Rene Antunez
 
Rac questions
Rac questionsRac questions
Rac questions
parvezsigan
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Glen Hawkins
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architecture
Amit Bhalla
 
Practical examples of using extended events
Practical examples of using extended eventsPractical examples of using extended events
Practical examples of using extended events
Dean Richards
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
glbsolutions
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
Markus Michalewicz
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
Borsaniya Vaibhav
 
Introduction to Azure SQL DB
Introduction to Azure SQL DBIntroduction to Azure SQL DB
Introduction to Azure SQL DB
Christopher Foot
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
Pini Dibask
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
Sandesh Rao
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
Satishbabu Gunukula
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep dive
Sanjeev Kumar
 
Introduction to failover clustering with sql server
Introduction to failover clustering with sql serverIntroduction to failover clustering with sql server
Introduction to failover clustering with sql server
Eduardo Castro
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
Gustavo Rene Antunez
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Glen Hawkins
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architecture
Amit Bhalla
 
Practical examples of using extended events
Practical examples of using extended eventsPractical examples of using extended events
Practical examples of using extended events
Dean Richards
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
glbsolutions
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
Markus Michalewicz
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
Borsaniya Vaibhav
 
Introduction to Azure SQL DB
Introduction to Azure SQL DBIntroduction to Azure SQL DB
Introduction to Azure SQL DB
Christopher Foot
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
Pini Dibask
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
Sandesh Rao
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 

Viewers also liked (20)

Always on in SQL Server 2012
Always on in SQL Server 2012Always on in SQL Server 2012
Always on in SQL Server 2012
Fadi Abdulwahab
 
SQL Server 2012 High Availability with AlwaysOn Availability Groups
SQL Server 2012 High Availability with AlwaysOn Availability GroupsSQL Server 2012 High Availability with AlwaysOn Availability Groups
SQL Server 2012 High Availability with AlwaysOn Availability Groups
Edwin M Sarmiento
 
Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...
Antonios Chatzipavlis
 
SQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesSQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New Features
John Martin
 
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
serge luca
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
Michael Noel
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyy
Tehmina Gulfam
 
HA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybridHA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybrid
James Serra
 
Course 170: SQL Server 2012: A Comprehensive Introduction
Course 170: SQL Server 2012: A Comprehensive Introduction Course 170: SQL Server 2012: A Comprehensive Introduction
Course 170: SQL Server 2012: A Comprehensive Introduction
LearnItFirst.com
 
Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2
Mahesh Dahal
 
Log shippingbestpractices
Log shippingbestpracticesLog shippingbestpractices
Log shippingbestpractices
Antilamps
 
Lanzamiento SQL Server 2014 - Nubes híbridas
Lanzamiento SQL Server 2014 - Nubes híbridasLanzamiento SQL Server 2014 - Nubes híbridas
Lanzamiento SQL Server 2014 - Nubes híbridas
dbLearner
 
Sql server 2012 AlwaysOn
Sql server 2012 AlwaysOnSql server 2012 AlwaysOn
Sql server 2012 AlwaysOn
Warwick Rudd
 
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Christophe Laporte
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
Harsh Chawla
 
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
homeworkping3
 
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step GuideSQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
Lars Platzdasch
 
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
Michael Noel
 
Creando una solución AlwaysON SQL Server 2014 híbrida
Creando una solución AlwaysON SQL Server 2014 híbridaCreando una solución AlwaysON SQL Server 2014 híbrida
Creando una solución AlwaysON SQL Server 2014 híbrida
SpanishPASSVC
 
Breaking Down and Understanding Office 365 - SPSJHB 2015
Breaking Down and Understanding Office 365 - SPSJHB 2015Breaking Down and Understanding Office 365 - SPSJHB 2015
Breaking Down and Understanding Office 365 - SPSJHB 2015
Michael Noel
 
Always on in SQL Server 2012
Always on in SQL Server 2012Always on in SQL Server 2012
Always on in SQL Server 2012
Fadi Abdulwahab
 
SQL Server 2012 High Availability with AlwaysOn Availability Groups
SQL Server 2012 High Availability with AlwaysOn Availability GroupsSQL Server 2012 High Availability with AlwaysOn Availability Groups
SQL Server 2012 High Availability with AlwaysOn Availability Groups
Edwin M Sarmiento
 
Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...Tips to install and manage always on availability groups in sql server 2012 &...
Tips to install and manage always on availability groups in sql server 2012 &...
Antonios Chatzipavlis
 
SQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesSQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New Features
John Martin
 
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
serge luca
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
Michael Noel
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyy
Tehmina Gulfam
 
HA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybridHA/DR options with SQL Server in Azure and hybrid
HA/DR options with SQL Server in Azure and hybrid
James Serra
 
Course 170: SQL Server 2012: A Comprehensive Introduction
Course 170: SQL Server 2012: A Comprehensive Introduction Course 170: SQL Server 2012: A Comprehensive Introduction
Course 170: SQL Server 2012: A Comprehensive Introduction
LearnItFirst.com
 
Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2
Mahesh Dahal
 
Log shippingbestpractices
Log shippingbestpracticesLog shippingbestpractices
Log shippingbestpractices
Antilamps
 
Lanzamiento SQL Server 2014 - Nubes híbridas
Lanzamiento SQL Server 2014 - Nubes híbridasLanzamiento SQL Server 2014 - Nubes híbridas
Lanzamiento SQL Server 2014 - Nubes híbridas
dbLearner
 
Sql server 2012 AlwaysOn
Sql server 2012 AlwaysOnSql server 2012 AlwaysOn
Sql server 2012 AlwaysOn
Warwick Rudd
 
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Always on les solutions de haute disponibilité avec sql server 2012 (dat302)
Christophe Laporte
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
Harsh Chawla
 
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
58961174 case-study-on-sql-server-high-availability-and-disaster-recovery
homeworkping3
 
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step GuideSQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
Lars Platzdasch
 
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
Michael Noel
 
Creando una solución AlwaysON SQL Server 2014 híbrida
Creando una solución AlwaysON SQL Server 2014 híbridaCreando una solución AlwaysON SQL Server 2014 híbrida
Creando una solución AlwaysON SQL Server 2014 híbrida
SpanishPASSVC
 
Breaking Down and Understanding Office 365 - SPSJHB 2015
Breaking Down and Understanding Office 365 - SPSJHB 2015Breaking Down and Understanding Office 365 - SPSJHB 2015
Breaking Down and Understanding Office 365 - SPSJHB 2015
Michael Noel
 
Ad

Similar to Sql 2012 always on (20)

SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
webhostingguy
 
Effective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database MirroringEffective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database Mirroring
webhostingguy
 
Why you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloudWhy you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloud
Microsoft TechNet - Belgium and Luxembourg
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
Viktoria Bakos
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
Joseph D'Antoni
 
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability GroupsSQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
turgaysahtiyan
 
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
Dave Stokes
 
Always on availability group
Always on availability groupAlways on availability group
Always on availability group
waseem zeeshan
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
Anuradha
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
► Supreme Mandal ◄
 
GWAB 2015 - Data Plaraform
GWAB 2015 - Data PlaraformGWAB 2015 - Data Plaraform
GWAB 2015 - Data Plaraform
Marcelo Paiva
 
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices SessionNZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
Michael Noel
 
Sp2010 high availlability_sql
Sp2010 high availlability_sqlSp2010 high availlability_sql
Sp2010 high availlability_sql
Samuel Zürcher
 
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Michael Noel
 
Database Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David IzahkDatabase Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David Izahk
sqlserver.co.il
 
Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dc
Joseph D'Antoni
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Joseph D'Antoni
 
Availability Considerations for SQL Server
Availability Considerations for SQL ServerAvailability Considerations for SQL Server
Availability Considerations for SQL Server
Bob Roudebush
 
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
Michael Noel
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
LarryZaman
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
webhostingguy
 
Effective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database MirroringEffective Usage of SQL Server 2005 Database Mirroring
Effective Usage of SQL Server 2005 Database Mirroring
webhostingguy
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
Viktoria Bakos
 
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability GroupsSQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
SQLSaturday Bulgaria : HA & DR with SQL Server AlwaysOn Availability Groups
turgaysahtiyan
 
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
MySQL for Oracle DBA -- Rocky Mountain Oracle User Group Training Days '15
Dave Stokes
 
Always on availability group
Always on availability groupAlways on availability group
Always on availability group
waseem zeeshan
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
Anuradha
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
► Supreme Mandal ◄
 
GWAB 2015 - Data Plaraform
GWAB 2015 - Data PlaraformGWAB 2015 - Data Plaraform
GWAB 2015 - Data Plaraform
Marcelo Paiva
 
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices SessionNZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
NZSPC 2013 - Ultimate SharePoint Infrastructure Best Practices Session
Michael Noel
 
Sp2010 high availlability_sql
Sp2010 high availlability_sqlSp2010 high availlability_sql
Sp2010 high availlability_sql
Samuel Zürcher
 
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Michael Noel
 
Database Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David IzahkDatabase Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David Izahk
sqlserver.co.il
 
Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dc
Joseph D'Antoni
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Joseph D'Antoni
 
Availability Considerations for SQL Server
Availability Considerations for SQL ServerAvailability Considerations for SQL Server
Availability Considerations for SQL Server
Bob Roudebush
 
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
Michael Noel
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
LarryZaman
 
Ad

Sql 2012 always on

  • 1. SQL 2012 AlwaysOn Get TurnedOn with AlwaysOn! High Availability/Disaster Recovery Solution
  • 2. Dilip Nayak  DBA at CUDirect Corporation  Expertise in performance tuning/troubleshooting and high availability.  17 years of experience working as a .NET developer, 6 years as SQL DBA.  Active member of PASS, SQL Saturday and anything SQL related.
  • 3. Mitch Bottel • Sr SQL Server DBA – Sutter Health • Owner Innovative IT Consulting, Inc. • Idera ACE Alumni • Advisors and Community Educators • 12+ years in IT • Member Placer County Search and Rescue
  • 4. Agenda  Concepts of HA and DR  SQL Failover Clustering  Database Mirroring  Log Shipping  SQL 2012 AlwaysON  Demo  Q&A
  • 5. Definitions  High Availability  minimize the probability of a failure  more local in nature and generally tolerate smaller amounts of data loss and downtime  Disaster Recovery  restoring operational service after a failure  a catastrophic event occurs and an extended outage is necessary to get back and running --Alan Hirt - Pro SQL Server 2008 Failover Clustering Book
  • 7. Why do we need another solution?  The current High Availability and Disaster Recovery Solutions from Microsoft are scattered.  High Availability /Disaster Recovery Solutions:  Windows Failover Clustering  Database Mirroring  Log Shipping  Database Replication
  • 8. SQL Failover Clustering  A failover cluster is a combination of two or more servers(nodes) connected to a shared storage. Node 1 client App Server Database Node 2 Windows Server Failover Cluster
  • 9. SQL Failover Clustering Issues  Protects against hardware loss and not disk loss.  Multi site cluster across data centers is tedious using VLAN etc.  Passive node is not used thus not achieving maximum utilization of resources.
  • 10. Database Mirroring Primary DB Primary Server Client App Server Mirrored Server Primary DB Mirrored DB Primary Server
  • 11. Database Mirroring Issues  Can have only one mirror. No multiple copies of data.  Mirrored database is not readable, though snapshots can be taken from the mirrored database. Maximum utilization of resources is not met.  Must be setup on each database individually.  Per database failover, no automatic failover of multiple databases.  No sql logins/jobs are replicated to the mirrored instance.  Either synchronous or asynchronous mirroring is supported but not both.
  • 12. Log Shipping Primary DB Primary Server Client App Server Secondary Server Primary Server Primary DBDB Secondary
  • 13. Log Shipping Primary DB Primary Server Client App Server Secondary Primary Server Primary DBDB Secondary Server
  • 14. Log Shipping Issues  Cannot have synchronized databases.  Must be setup on each database individually.  In case of failover, the connection string needs to change to point it to the failover server.  No logins/jobs are replicated to the mirrored instance.
  • 15. What if we had all these features in a single solution?  Protects against hardware loss.  Protects against disk loss.  Multiple copies of replicated databases.  Readable mirrored databases thus maximizing resources.  Multiple database failover at once.  No need to change the connection string in case of failover, you can use the same abstract name.  Failover can occur across datacenters without extra effort.
  • 16. The answer is……. SQL 2012 AlwaysOn
  • 17. Modes of SQL2012 AlwaysOn 1. AlwaysOn Failover Clustering Instance(FCI). 2. AlwaysOn Availability Groups. Today we will discuss AlwaysOn Availability Groups.
  • 18. Rules
  • 19. Availability Groups Requirements:  Needs to have Windows failover cluster(WSFC).  Supported in Enterprise Edition Only.  Install individual SQL servers on each machines, not cluster aware.  All servers should be in a single windows cluster.  Matching hardware not required.  Database should have Full Recovery model with at least one full successful backup.  All nodes must be in the same AD domain.
  • 20. New Technology, New Vocabulary
  • 21. Availability Groups Vocabulary  Availability Group:  Availability Replicas:  Availability Group Listener:
  • 22. Demo Architecture Local Data Center SANJOSE SANJOSE 2 Synchronous Commit DR Site NEWYORK Asynchronous Commit
  • 23. Availability Groups Setup VM1 VM2 VM3 VM4 Host Name CALIFORNIA SANJOSE SANJOSE2 NEWYORK Server Type Domain SQL Server SQL Server SQL Server Controller OS W2k12 Server W2k12 Server W2k12 Server W2K12 Server IP Address 192.168.81.1 192.168.81.2 192.168.81.3 192.168.81.4 Subnet 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 Mask Domain: SQL2012.Demos Cluster Name: SQL2012AlwaysOn(192.168.81.10) Availability Group: SQLSatAG Listener: SQLSatListener – 192.168.81.30
  • 24. Demo  Sync/Async Failover.  Availability Groups Listener.  Read-only routing.  Readable secondary.  Backup on secondary.
  • 25. Availability Groups Features  Synchronous Commit – up to 2 mirrored replicas.  Asynchronous Commit – up to 4 mirrored replicas.  Can have read-only secondary databases.  SQL Logins can be failed over using contained databases.  Windows PowerShell is fully supported.  Backups can occur on the replica databases.  DBCC commands can be run on secondary.  Flexible failover policy – sp_server_diagnostics.  Quorum is very important.
  • 26. Just when things were going right!
  • 27. Some disadvantages  Needs Enterprise Edition of SQL 2012.  Needs Windows Cluster which in turn needs Windows Enterprise.  If read-only feature on replica is used, you need to take care of extra licensing.  System databases cannot be replicated- users and jobs are not part of replication.  Differential backups are not supported on secondary.  Deep understanding of WSFC and quorum.
  • 28. References  AlwaysOn Whitepaper http://msdn.microsoft.com/en-us/library/jj191711  Creating Virtual machines using Virtual Box http://bifuture.blogspot.com/2012/04/creating-sql-server-2012- playground.html  Setting up Availability Groups http://www.brentozar.com/archive/2011/07/how-set-up-sql-server- denali-availability-groups/  Creating virtual machines on Hyper-V and AlwaysOn Features http://www.sqlfeatures.com
  • 29.  July 27th in Sacramento!  Looking for Speakers and Sponsors!  Come Attend!!  Help us spread the word!!
  • 30. Q&A
  • 31. Contact Information  Dilip Nayak  Email: [email protected]  Twitter: @d_nayak  Mitchell Bottel  Email: [email protected]  Twitter: @SacSQLDude