SlideShare a Scribd company logo
1 of 23
RockSolid   SQL Server Management
Disclaimer
We recommend that you seek further professional advice before
deciding on the suitability of any recommendations in this presentation
for you. While all care is taken to ensure information is accurate, we do
not make any guarantees about the suitability of advice and advice
given may contain technical inaccuracies or topographical errors. The
answers provided are our own opinions and may differ from advice
provided by Microsoft and/or other SQL Server professionals. In no
event shall we be liable for any special, incidental, indirect, economic or
consequential damages or for loss of profit, revenue or data howsoever
caused, regardless of whether we could foresee or was advised of the
possibility or likelihood of such loss or damage.
Disaster Recovery & High Availability Technologies (SQL
Server 2008, 2008 R2 & 2012 Standard & Enterprise)

Contents

   Log Shipping
   Replication
   Clustering
   Database Mirroring
   Always On High Availability groups
   Leveraging SQL Server 2012 core licensing for High Availability /
    DR implementations
Disaster Recovery & High Availability Technologies

What’s the difference between Disaster Recovery & High
Availability?

DR
 Log Shipping
 Async database mirroring
 Async AlwaysOn Availability Groups

HA
 Clustering
 Sync database mirroring
 Sync AlwaysOn Availability Groups

 Replication
DR - Log Shipping

 Performed at database level
 Logged operations copied from a primary to secondary offsite
  database
 Consists of 3 operations
    • Backup TL at source
    • Copy of TL from source to destination
    • Restore TL at destination

 Prerequisites
    • Recovery model of FULL/BULK-LOGGED
    • Create network share for transaction log backups
    • SQL Server Agent must be running
DR - Log Shipping continued ….

 Generally, failover is manual process
 Configuration options determine data loss
   • Backup/restore schedule

 Other options
    • Compress backups?
    • How long you want to keep backup files?
    • Secondary db RECOVERING or STANDBY state?
Demo: Log Shipping Configuration Review
Replication

   Performed at database level
   Distribute & replicate data automatically
   Integrating data from multiple sources
   Data warehousing & reporting
   Typical topology - Publisher, Distributor & Subscriber


                 One-way or bidirectional
                 depending upon type
Replication continued ..

Options
 Publication type: Snapshot, Transactional & Merge

• Advantages of replication
   • Multiple sites have copies of data
   • Separate applications for read/write operations
   • Increased performance

• Disadvantages of replication
   • Can be complicated to manage changes
   • Multiple SQL licenses
HA - Clustering

 Performed at an instance level
 One virtual server name, multiple nodes
 Shared storage

Best Practices
• Server dedicated to SQL Server
• Identical servers
• Use static IP address
• Plan how to deal with risks - SAN failure & DR options
HA – Clustering continued …

Advantages
• Patching SQL Server is easier
• Eliminate downtime
• Logins, jobs, system db’s all failover
• Don’t license passive node

Disadvantages
• Is generally not a DR solution
• Single copy of db
• Shared storage issue
• Expensive – x 2 servers and shared storage
DR & HA - Database Mirroring

   Performed at a database level
   Principle, Mirror & optional Witness
   Cannot mirror master, msdb, tempdb or model
   Apply stream of database log records to db mirror
   Used for DR (async) & HA (sync)

 Prerequisites
    • FULL RECOVERY
    • Principal & Mirror require same edition of SQL Server

 Options
   • Supports automatic failover (witness)
   • Sync OR async
DR & HA - Database Mirroring continued …

 Witness Database
   • It’s role is to determine availability between Principal & Mirror
   • Used for HA not DR
   • Ideally, located in a third datacentre

 Advantages
   • Since SQL Server 2008 -
       • The principle compresses the transactions before sending
         to mirror.
       • Automatically detects & attempts to recover storage
         corruption

 Limitations
    • Can’t read mirror – unless using snapshot
    • Can only fail over one database at a time
    • Doesn’t copy SQL logins or jobs
Demo: Database Mirroring
Failover & Snapshot
AlwaysOn Availability Groups

 SQL Server 2012
 Next evolution of db mirroring
 HA+DR solution




                                Windows Server Failover Cluster
            license         Sync – auto                                         license
                                                                  Sync – auto
                            failover                 Async –      failover
                                          Async –    forced
                                          forced

          SQL2012PROD1               SQL2012PROD2                 SQL2012DR1
          Primary Replica            Secondary Replica            Secondary Replica
            Read-Write               Disallow connections         Disallow connections
                       <---------RockSolid Availability Group----->

                 Melbourne Primary data centre                       Sydney DR data centre
AlwaysOn Availability Groups continued ..

 Prerequisites
    • Windows Server Failover Clustering (WSFC)
    • SQL Server 2012 Enterprise license
    • Same instance collation
    • Advise same drive letters

 Options
   • Failover groups contain multiple db’s
   • Supports up to 5 availability groups
   • Supports async & sync failover
AlwaysOn Availability Groups continued ..




Replica Mode – Automatic failover (sync - auto) OR High
Safety (sync - manual) OR High Performance (async - manual)
Connection Mode in Secondary Role – Disallow connections OR
Allow only read-intent connections
AlwaysOn Availability Groups continued ..

Advantages
   • Recovery of corrupt pages are automatically attempted
   • HA & DR solution
   • Replicas can be used for reporting & backup operations

Disadvantages
    • Enterprise feature
    • No delay in applying transaction log updates if you want that
      control
Leveraging SQL Server licensing for High Availability / DR
implementations

 SQL Server customers can run one supportive passive instance

   • The passive server must be truly passive
   • One secondary passive server is ONLY allowed
   • When licensing Per Core you must license the highest number
     of core licenses even if this is the passive node
Leveraging SQL Server licensing for High Availability / DR
implementations
               2008         2008          2008 R2      2008 R2       2012         2012
               Enterprise   Standard      Enterprise   Standard      Enterprise   Standard
Log            Yes          Yes           Yes          Yes           Yes          Yes
Shipping
Database       Yes          Yes sync –    Yes          Yes sync –    Yes          Yes sync –
Mirroring                   full safety                full safety                full safety
                            only                       only                       only
Always on      n/a          n/a           n/a          n/a           Yes –        No
High                                                                 requires
Availability                                                         Windows
                                                                     clustering
Clustering     Yes          Yes – 2       Yes          Yes – 2       Yes          Yes – 2
                            node                       node                       node
                            support                    support                    support
Leveraging SQL Server licensing for High Availability / DR
implementations


   Server 1 –   4x core licenses required    Server 2 –
     ACTIVE                                   PASSIVE
  4 x core VM                               4 x core VM


                                             Server 2 –
                                              PASSIVE
   Server 1 –                               4 x core VM
     ACTIVE
  4 x core VM                                Server 2 –
                8x core licenses required     PASSIVE
                                            4 x core VM
Leveraging SQL Server licensing for High Availability / DR
implementations

                                                  Server 2 –
                                                   PASSIVE
   Server 1 –                                    4 x core VM
     ACTIVE
  4 x core VM
                                                  Server 2 –
                12x core licenses required         PASSIVE
                                                 8 x core VM

                                             8x licenses required as
                                             license requirement based
                                             on passive server
Final Q & A

More Related Content

What's hot

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 ◄
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementIwan Rahabok
 
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld
 
VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3Vepsun Technologies
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machineheraflux
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for DummiesMark Broadbent
 
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQLBlue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQLBlue Medora
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersSQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersTobias Koprowski
 
Vmware srm 6.1
Vmware srm 6.1Vmware srm 6.1
Vmware srm 6.1faz4eva_27
 
Scott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilienceScott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilienceNordic Infrastructure Conference
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganKoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganTobias Koprowski
 
VMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best PracticesVMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best PracticesVMworld
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonJoseph 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 RichmondJoseph D'Antoni
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012Michael Noel
 
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...VMworld
 
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 dcJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaJoseph D'Antoni
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsJignesh Shah
 
Compare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerCompare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerAlexDepo
 

What's hot (20)

SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity Management
 
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
 
VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
 
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQLBlue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersSQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
 
Vmware srm 6.1
Vmware srm 6.1Vmware srm 6.1
Vmware srm 6.1
 
Scott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilienceScott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilience
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganKoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
 
VMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best PracticesVMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
VMworld Europe 2014: Storage DRS - Deep Dive and Best Practices
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday boston
 
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
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
 
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
 
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
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampa
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
 
Compare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerCompare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL Server
 

Similar to Sql Server High Availability & DR Technologies

SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...Michael Noel
 
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
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always ondilip nayak
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoMarkus Michalewicz
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptxIvan Ma
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL FabricMark Swarbrick
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008mwlang88
 
Rails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & ToolsRails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & Toolsguest05c09d
 
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, ClouderaLessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, ClouderaHostedbyConfluent
 
What’s New in VMware vCenter Site Recovery Manager v5.0
What’s New in VMware vCenter Site Recovery Manager v5.0What’s New in VMware vCenter Site Recovery Manager v5.0
What’s New in VMware vCenter Site Recovery Manager v5.0Eric Sloof
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)Hamid J. Fard
 
Zerto Virtual Replication 4.5
Zerto Virtual Replication 4.5Zerto Virtual Replication 4.5
Zerto Virtual Replication 4.5BusinesstoVirtual
 
TechNet Live spor 1 sesjon 6 - more vdi
TechNet Live spor 1   sesjon 6 - more vdiTechNet Live spor 1   sesjon 6 - more vdi
TechNet Live spor 1 sesjon 6 - more vdiAnders Borchsenius
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMark Swarbrick
 
1 architecture & design
1   architecture & design1   architecture & design
1 architecture & designMark Swarbrick
 
Cloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsCloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsMark Slingsby
 
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Michael Noel
 

Similar to Sql Server High Availability & DR Technologies (20)

SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
 
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...
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
High Availability Solutions in SQL 2012
High Availability Solutions in SQL 2012High Availability Solutions in SQL 2012
High Availability Solutions in SQL 2012
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008
 
Rails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & ToolsRails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & Tools
 
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, ClouderaLessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
 
What’s New in VMware vCenter Site Recovery Manager v5.0
What’s New in VMware vCenter Site Recovery Manager v5.0What’s New in VMware vCenter Site Recovery Manager v5.0
What’s New in VMware vCenter Site Recovery Manager v5.0
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
Zerto Virtual Replication 4.5
Zerto Virtual Replication 4.5Zerto Virtual Replication 4.5
Zerto Virtual Replication 4.5
 
TechNet Live spor 1 sesjon 6 - more vdi
TechNet Live spor 1   sesjon 6 - more vdiTechNet Live spor 1   sesjon 6 - more vdi
TechNet Live spor 1 sesjon 6 - more vdi
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisationMySQL Webinar 2/4 Performance tuning, hardware, optimisation
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
 
1 architecture & design
1   architecture & design1   architecture & design
1 architecture & design
 
Cloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsCloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web Apps
 
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 

Sql Server High Availability & DR Technologies

  • 1. RockSolid SQL Server Management
  • 2. Disclaimer We recommend that you seek further professional advice before deciding on the suitability of any recommendations in this presentation for you. While all care is taken to ensure information is accurate, we do not make any guarantees about the suitability of advice and advice given may contain technical inaccuracies or topographical errors. The answers provided are our own opinions and may differ from advice provided by Microsoft and/or other SQL Server professionals. In no event shall we be liable for any special, incidental, indirect, economic or consequential damages or for loss of profit, revenue or data howsoever caused, regardless of whether we could foresee or was advised of the possibility or likelihood of such loss or damage.
  • 3. Disaster Recovery & High Availability Technologies (SQL Server 2008, 2008 R2 & 2012 Standard & Enterprise) Contents  Log Shipping  Replication  Clustering  Database Mirroring  Always On High Availability groups  Leveraging SQL Server 2012 core licensing for High Availability / DR implementations
  • 4. Disaster Recovery & High Availability Technologies What’s the difference between Disaster Recovery & High Availability? DR  Log Shipping  Async database mirroring  Async AlwaysOn Availability Groups HA  Clustering  Sync database mirroring  Sync AlwaysOn Availability Groups  Replication
  • 5. DR - Log Shipping  Performed at database level  Logged operations copied from a primary to secondary offsite database  Consists of 3 operations • Backup TL at source • Copy of TL from source to destination • Restore TL at destination  Prerequisites • Recovery model of FULL/BULK-LOGGED • Create network share for transaction log backups • SQL Server Agent must be running
  • 6. DR - Log Shipping continued ….  Generally, failover is manual process  Configuration options determine data loss • Backup/restore schedule  Other options • Compress backups? • How long you want to keep backup files? • Secondary db RECOVERING or STANDBY state?
  • 7. Demo: Log Shipping Configuration Review
  • 8. Replication  Performed at database level  Distribute & replicate data automatically  Integrating data from multiple sources  Data warehousing & reporting  Typical topology - Publisher, Distributor & Subscriber One-way or bidirectional depending upon type
  • 9. Replication continued .. Options  Publication type: Snapshot, Transactional & Merge • Advantages of replication • Multiple sites have copies of data • Separate applications for read/write operations • Increased performance • Disadvantages of replication • Can be complicated to manage changes • Multiple SQL licenses
  • 10. HA - Clustering  Performed at an instance level  One virtual server name, multiple nodes  Shared storage Best Practices • Server dedicated to SQL Server • Identical servers • Use static IP address • Plan how to deal with risks - SAN failure & DR options
  • 11. HA – Clustering continued … Advantages • Patching SQL Server is easier • Eliminate downtime • Logins, jobs, system db’s all failover • Don’t license passive node Disadvantages • Is generally not a DR solution • Single copy of db • Shared storage issue • Expensive – x 2 servers and shared storage
  • 12. DR & HA - Database Mirroring  Performed at a database level  Principle, Mirror & optional Witness  Cannot mirror master, msdb, tempdb or model  Apply stream of database log records to db mirror  Used for DR (async) & HA (sync)  Prerequisites • FULL RECOVERY • Principal & Mirror require same edition of SQL Server  Options • Supports automatic failover (witness) • Sync OR async
  • 13. DR & HA - Database Mirroring continued …  Witness Database • It’s role is to determine availability between Principal & Mirror • Used for HA not DR • Ideally, located in a third datacentre  Advantages • Since SQL Server 2008 - • The principle compresses the transactions before sending to mirror. • Automatically detects & attempts to recover storage corruption  Limitations • Can’t read mirror – unless using snapshot • Can only fail over one database at a time • Doesn’t copy SQL logins or jobs
  • 15. AlwaysOn Availability Groups  SQL Server 2012  Next evolution of db mirroring  HA+DR solution Windows Server Failover Cluster license Sync – auto license Sync – auto failover Async – failover Async – forced forced SQL2012PROD1 SQL2012PROD2 SQL2012DR1 Primary Replica Secondary Replica Secondary Replica Read-Write Disallow connections Disallow connections <---------RockSolid Availability Group-----> Melbourne Primary data centre Sydney DR data centre
  • 16. AlwaysOn Availability Groups continued ..  Prerequisites • Windows Server Failover Clustering (WSFC) • SQL Server 2012 Enterprise license • Same instance collation • Advise same drive letters  Options • Failover groups contain multiple db’s • Supports up to 5 availability groups • Supports async & sync failover
  • 17. AlwaysOn Availability Groups continued .. Replica Mode – Automatic failover (sync - auto) OR High Safety (sync - manual) OR High Performance (async - manual) Connection Mode in Secondary Role – Disallow connections OR Allow only read-intent connections
  • 18. AlwaysOn Availability Groups continued .. Advantages • Recovery of corrupt pages are automatically attempted • HA & DR solution • Replicas can be used for reporting & backup operations Disadvantages • Enterprise feature • No delay in applying transaction log updates if you want that control
  • 19. Leveraging SQL Server licensing for High Availability / DR implementations  SQL Server customers can run one supportive passive instance • The passive server must be truly passive • One secondary passive server is ONLY allowed • When licensing Per Core you must license the highest number of core licenses even if this is the passive node
  • 20. Leveraging SQL Server licensing for High Availability / DR implementations 2008 2008 2008 R2 2008 R2 2012 2012 Enterprise Standard Enterprise Standard Enterprise Standard Log Yes Yes Yes Yes Yes Yes Shipping Database Yes Yes sync – Yes Yes sync – Yes Yes sync – Mirroring full safety full safety full safety only only only Always on n/a n/a n/a n/a Yes – No High requires Availability Windows clustering Clustering Yes Yes – 2 Yes Yes – 2 Yes Yes – 2 node node node support support support
  • 21. Leveraging SQL Server licensing for High Availability / DR implementations Server 1 – 4x core licenses required Server 2 – ACTIVE PASSIVE 4 x core VM 4 x core VM Server 2 – PASSIVE Server 1 – 4 x core VM ACTIVE 4 x core VM Server 2 – 8x core licenses required PASSIVE 4 x core VM
  • 22. Leveraging SQL Server licensing for High Availability / DR implementations Server 2 – PASSIVE Server 1 – 4 x core VM ACTIVE 4 x core VM Server 2 – 12x core licenses required PASSIVE 8 x core VM 8x licenses required as license requirement based on passive server