SlideShare a Scribd company logo
SQL 2012 AlwaysOn Availability Groups
      for SharePoint Database Failover
                      (Database Mirroring)
                            Michael Noel
              Convergent Computing (CCO)
Michael Noel




Great to be back in Beautiful Australia!
What we will cover
 SQL 2012 AlwaysOn

• What is SQL 2012 AlwaysOn?
   – AlwaysOn Failover Clustering
   – AlwaysOn Availability Groups
• Why AlwaysOn Availability Groups for SharePoint?
• Requirements and Prerequisites
• Step by Step guide to implementing AlwaysOn Availability
  Groups
• Demonstration
SQL 2012 AlwaysOn
 Hype or Reality?

• Two distinct technologies that share the same name
• AlwaysOn Failover Clustering is a different thing!
   – A Failover Cluster Instance (FCI) uses traditional Shared
      Storage Clustering (one copy of data shared by multiple
      nodes)
   – Same marketing name, but completely different
      technology
• AlwaysOn Availability Groups correspond to the new version
  of SQL Database Mirroring – High Availability and Disaster
  Recovery at the Data Tier
History of AlwaysOn Availability Groups
 Background and Predecessor Technologies


• Original concept was log shipping in SQL 2000 –
  making a duplicate copy of your databases on another
  server
• Mirroring itself introduced in SQL 2005 SP1, improved
  in SQL 2008 and SQL 2008 R2
• Works by keeping a mirror copy of a database or
  databases on up to four additional SQL instances.
• AlwaysOn Availability Groups introduced with SQL
  2012, added up to four mirror copies, and more
• This is a huge change to data tier design for
  SharePoint
Comparison of AlwaysOn with other SQL HA
       Greatly Improved HA and DR
                                                    Potential    Potential
High Availability and Disaster Recovery                                       Automatic    Readable
                                                    Data Loss    Recovery
         SQL Server Solution                                                   Failover   Secondaries
                                                     (RPO)      Time (RTO)
AlwaysOn Availability Group - synchronous-commit      Zero       Seconds         Yes         0-2



AlwaysOn Availability Group - asynchronous-commit    Seconds     Minutes         No          0-4



AlwaysOn Failover Cluster Instance                     NA         Seconds        Yes          NA
                                                                -to-minutes

Database Mirroring - High-safety (sync + witness)     Zero       Seconds         Yes          NA



Database Mirroring - High-performance (async)        Seconds     Minutes         No           NA



Log Shipping                                         Minutes      Minutes        No        Not during
                                                                 -to-hours                  a restore

Backup, Copy, Restore                                 Hours       Hours          No        Not during
                                                                 -to-days                   a restore
AlwaysOn Availability Groups
 Design Options


• Create up to four additional copies of each database
  on a different SQL node
• Copies can be a mix of synchronous (exact copy) or
  asynchronous (works across low latency link)
• Create a synchronous copy when connectivity is 1Gb
  or greater and latency is no more than 10ms
• Create asynchronous copies across WAN links, for
  Disaster Recovery or when architecting a read-only
  farm
AlwaysOn Availability Groups
 Read-only Farms


• Unlike SQL Mirroring, AlwaysOn Availability Groups
  allow for read-only access to the content on a remote
  SQL instance
• Allows for the DR copy of the data to be used as part
  of a view-only SharePoint farm in a remote location
• Requires a separate SharePoint farm from the
  production read/write farm
Design Options for SQL 2012
Sample Design
AlwaysOn Availability Groups for SharePoint
  Improving Data Tier High Availability and Disaster Recovery

• Completely changes the design options for the data tier
• Allows for ‘Exchange Server’ like multi-copy database server failover
  on multiple replicas at the same time
• The equivalent of running a constant backup of your databases
• Can be used to create HA/DR copies of your SharePoint databases
• SharePoint no longer needs to be ‘aware’ of the mirrored copy (in
  fact, it won’t failover if you configure it manually in SPCA.)
  SharePoint connects to the listener (Client Access Point) which is
  clustered
• SharePoint 2010 Service Pack 1 supports SQL 2012 fully

CAVEAT: Be sure to understand that synchronous mirroring copies need
to be in close proximity and have very good bandwidth, as data needs to
be written into all replicas before the transaction is committed.
SharePoint will lock up if there are any interruptions at the data tier.
AlwaysOn Availability Groups
 Version Requirements


• Windows Server 2008 R2 (w SP1 ideally, as patches
  are required) – Enterprise Edition
   – One per node
   – Can use Virtualization licensing options
   – Should also work on Windows 8 Server
• SQL Server 2012 Enterprise Edition
   – MS has moved to ‘Oracle model’ of licensing, based
     on CPU power
   – Legacy licenses of SQL 2008/2005 Enterprise are
     ‘grandfathered in’ if you have upgrade assurance
AlwaysOn Availability Groups
 Prerequisites and Requirements – Windows OS


• Cannot be installed on a Domain Controller
• Must be either x86 (non-WOW64) or x64 Windows
  Server 2008 or later versions.
• Must be a node in a Windows Server Failover
  Clustering (WSFC) cluster.
• Ensure that WSFC cluster contains sufficient nodes to
  support your availability group configurations.
• Ensure that all applicable Window hotfixes have been
  installed on every node in the WSFC cluster (Taken
  care of with SP1 for Windows Server 2008 R2)
AlwaysOn Availability Groups
 Prerequisites and Requirements – SQL Server


• If you plan to use a SQL Server failover cluster
  instance (FCI) to host an availability replica, ensure
  that you understand the FCI restrictions and that the
  FCI requirements are met (Manual config required)
• All the server instances that host availability replicas
  for an availability group must use the same SQL Server
  collation.
• If any databases that use FILESTREAM will be added to
  an availability group, ensure that FILESTREAM is
  enabled on every server instance that will host an
  availability replica for the availability group.
Creating AlwaysOn Availability Groups
Sample Setup used for the Presentation

                               • For this discussion and
                                 demo, I created a three
                                 node WSFC with
                                 SQL1, SQL2, and SQL3
                               • SharePoint server SP1
                                 connects to the listener
                                 ‘SQL’
                               • Failover is automatic
                                 between SQL1 and SQL2
                                 (Synchronous)
                               • Failover manual to SQL3
Creating AlwaysOn Availability Groups
 Step 1: Create Windows Server Failover Cluster (WSFC)


• Install Windows Server 2008 R2
  w/SP1 on multiple nodes
• Enable the Failover Cluster
  Feature on each node
• Use the Failover Cluster Manager
  Wizard to create a cluster.
• Name the cluster a unique name
  that will be separate from the
  instance name that will be used
  for SharePoint
Creating AlwaysOn Availability Groups
   Step 2: Prepare Nodes

• Install .NET Services 3.5 Feature on each SQL node
• Install SQL 2012 Enterprise Edition Database Services (Also recommend
  adding SQL Management Tools – Complete)
• Ensure proper Windows Firewall ports are open
• Service Account for SQL
   – Use the same service account for all nodes
   – Don’t use Network Service
   – If using Kerberos, make sure all SQL names have SPNs associated with
       the service account
• Make sure databases are set to FULL recovery mode
• Ensure that the file paths and drive letters are consistent throughout all
  instances (ideally, or config will have to be manual)
• Copy or Create SharePoint databases on Primary node only (use SQL Alias to
  change name later)
• Perform a full backup of your SharePoint databases
• Create a file share location that is accessible by all nodes that will be used
  for the shared backups (i.e. SQL1Backups)
Creating AlwaysOn Availability Groups
  Step 2: Enable AlwaysOn on each SQL Node


• Enable AlwaysOn High
  Availability in SQL Server
  Configuration Manager
• Repeat on Each Node
• Restart SQL Services
Creating AlwaysOn Availability Groups
  Step 3: Create the Availability Group


• Ideally use the New Availability Group
  Wizard, it automates the process
Creating AlwaysOn Availability Groups
  Step 3: Create the Availability Group – Continued…


• Be sure to have a
  shared network
  location for the
  backup files
  (Created in earlier
  step)
• Depending on size of
  databases, this
  could take a while
• Backups can also be
  pre-staged (Join
  Only)
Creating AlwaysOn Availability Groups
  Step 3: Create the Availability Group – Continued…


• Validation should
  show all
  green, except
  warning for
  Listener
• The listener (‘SQL’
  in this example)
  will be created
  later, and is
  required for
  SharePoint to
  connect to
Creating AlwaysOn Availability Groups
  Step 4: Create the Availability Group Listener

• After the wizard
  completes, manually
  create the Availability
  Group Listener
• This is the shared
  name that SharePoint
  will connect to and will
  provide failover (Also
  called the ‘Client
  Access Point’)
• Modify the DNS record
  for this listener to have
  a low TTL (60 seconds
  or less) for cross-
  subnet failover
  scenarios
Demo
Session Summary

• Throw away all previous data tier designs for
  SharePoint!
• SQL 2012 AlwaysOn Availability Groups are the
  preferred design option for High Availability and
  Disaster Recovery at the data tier
• SQL 2012 is fully supported by SharePoint 2010
  Service Pack 1 databases
• Follow closely the guidelines, ensure data paths are
  the same, double-check security requirements
Michael Noel
        Twitter: @MichaelTNoel
               www.cco.com
   Slides: slideshare.net/michaeltnoel
Travel blog: http://sharingtheglobe.com
Gold Sponsors


                  Silver Sponsors




Bronze Sponsors                     Media Sponsors
SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012
• http://www.youtube.com/watch?v=rOPI5LDo7mg&feature=y
  outu.be

More Related Content

What's hot (20)

PPTX
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
serge luca
 
PPTX
Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...
Michael Noel
 
PPTX
LVOUG meetup #2 - Forcing SQL Execution Plan Instability
Maris Elsins
 
PDF
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
Tobias Koprowski
 
PDF
Running E-Business Suite Database on Oracle Database Appliance
Maris Elsins
 
PDF
KoprowskiT - SQLBITS X - 2am a disaster just began
Tobias Koprowski
 
PDF
Tips to install and manage always on availability groups in sql server 2012 &...
Antonios Chatzipavlis
 
PPTX
The SQL Stack Design And Configurations
Stephan Lawson
 
PDF
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
POTX
SharePoint 24x7x365 Architecting for High Availability, Fault Tolerance and D...
Eric Shupps
 
PDF
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
Tobias Koprowski
 
PDF
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
Tobias Koprowski
 
PDF
Deploying SOA on the Oracle Database Appliance
O-box
 
PDF
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
Tobias Koprowski
 
PDF
BP-1 Performance and Scalability
Alfresco Software
 
PPTX
Best Practice SharePoint Architecture
Michael Noel
 
PPTX
Docker based Hadoop provisioning - anywhere
DataWorks Summit
 
PPTX
Fn project quick installation guide
Johan Louwers
 
PPTX
SharePoint Disaster Recovery with SQL AlwaysOn
Zeddy Iskandar
 
PDF
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
Tobias Koprowski
 
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
serge luca
 
Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...
Michael Noel
 
LVOUG meetup #2 - Forcing SQL Execution Plan Instability
Maris Elsins
 
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
Tobias Koprowski
 
Running E-Business Suite Database on Oracle Database Appliance
Maris Elsins
 
KoprowskiT - SQLBITS X - 2am a disaster just began
Tobias Koprowski
 
Tips to install and manage always on availability groups in sql server 2012 &...
Antonios Chatzipavlis
 
The SQL Stack Design And Configurations
Stephan Lawson
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
SharePoint 24x7x365 Architecting for High Availability, Fault Tolerance and D...
Eric Shupps
 
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
Tobias Koprowski
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
Tobias Koprowski
 
Deploying SOA on the Oracle Database Appliance
O-box
 
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
Tobias Koprowski
 
BP-1 Performance and Scalability
Alfresco Software
 
Best Practice SharePoint Architecture
Michael Noel
 
Docker based Hadoop provisioning - anywhere
DataWorks Summit
 
Fn project quick installation guide
Johan Louwers
 
SharePoint Disaster Recovery with SQL AlwaysOn
Zeddy Iskandar
 
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
Tobias Koprowski
 

Viewers also liked (11)

PDF
Native JSON Support in SQL2016
Ivo Andreev
 
PPTX
AlwaysON Basics
Harsh Chawla
 
PPTX
Breaking Down and Understanding Office 365 - SPSJHB 2015
Michael Noel
 
PDF
Symantec ApplicationHA June 2011
Symantec
 
PDF
SQL Server 2012 High Availability with AlwaysOn Availability Groups
Edwin M Sarmiento
 
PDF
SQL Server High Availability Solutions (Pros & Cons)
Hamid J. Fard
 
PPTX
High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...
turgaysahtiyan
 
PPTX
SQL Server 2016 AlwaysOn Availability Groups New Features
John Martin
 
PPT
SharePoint Backup And Disaster Recovery with Joel Oleson
Joel Oleson
 
PPTX
Sql 2012 always on
dilip nayak
 
PPTX
Always on in SQL Server 2012
Fadi Abdulwahab
 
Native JSON Support in SQL2016
Ivo Andreev
 
AlwaysON Basics
Harsh Chawla
 
Breaking Down and Understanding Office 365 - SPSJHB 2015
Michael Noel
 
Symantec ApplicationHA June 2011
Symantec
 
SQL Server 2012 High Availability with AlwaysOn Availability Groups
Edwin M Sarmiento
 
SQL Server High Availability Solutions (Pros & Cons)
Hamid J. Fard
 
High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...
turgaysahtiyan
 
SQL Server 2016 AlwaysOn Availability Groups New Features
John Martin
 
SharePoint Backup And Disaster Recovery with Joel Oleson
Joel Oleson
 
Sql 2012 always on
dilip nayak
 
Always on in SQL Server 2012
Fadi Abdulwahab
 
Ad

Similar to SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012 (20)

PPTX
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
Michael Noel
 
PPTX
SPSToronto - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 Farms
Michael Noel
 
PPTX
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
Michael Noel
 
PPTX
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Michael Noel
 
PDF
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Isabelle Van Campenhoudt
 
PDF
SQL High Availability solutions E Book
Kesavan Munuswamy
 
PPTX
Sp2010 high availlability_sql
Samuel Zürcher
 
PPTX
Sql server 2012 ha dr 24_hop_final
Joseph D'Antoni
 
PPTX
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Joseph D'Antoni
 
PPTX
Sql server 2012 ha and dr sql saturday tampa
Joseph D'Antoni
 
PPTX
Sql server 2012 ha and dr sql saturday dc
Joseph D'Antoni
 
PDF
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
Mark Broadbent
 
PDF
High availability solutions
Steve Xu
 
PPTX
Sql server 2012 ha and dr sql saturday boston
Joseph D'Antoni
 
PPTX
Sql server 2012 ha dr 24_hop_final
Joseph D'Antoni
 
PPTX
Always On - Wydajność i bezpieczeństwo naszych danych - High Availability SQL...
SQLExpert.pl
 
PPTX
BIWUG1303 - HA & DR
BIWUG
 
PPTX
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
serge luca
 
PPTX
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
Isabelle Van Campenhoudt
 
PPTX
Ionut hrubaru, bogdan lazarescu sql server high availability
Codecamp Romania
 
SPSMEL 2012 - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 / 2013
Michael Noel
 
SPSToronto - SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 Farms
Michael Noel
 
SQL 2012 AlwaysOn Availability Groups (AOAGs) for SharePoint Farms - Norcall ...
Michael Noel
 
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Michael Noel
 
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Isabelle Van Campenhoudt
 
SQL High Availability solutions E Book
Kesavan Munuswamy
 
Sp2010 high availlability_sql
Samuel Zürcher
 
Sql server 2012 ha dr 24_hop_final
Joseph D'Antoni
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Joseph D'Antoni
 
Sql server 2012 ha and dr sql saturday tampa
Joseph D'Antoni
 
Sql server 2012 ha and dr sql saturday dc
Joseph D'Antoni
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
Mark Broadbent
 
High availability solutions
Steve Xu
 
Sql server 2012 ha and dr sql saturday boston
Joseph D'Antoni
 
Sql server 2012 ha dr 24_hop_final
Joseph D'Antoni
 
Always On - Wydajność i bezpieczeństwo naszych danych - High Availability SQL...
SQLExpert.pl
 
BIWUG1303 - HA & DR
BIWUG
 
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
serge luca
 
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
Isabelle Van Campenhoudt
 
Ionut hrubaru, bogdan lazarescu sql server high availability
Codecamp Romania
 
Ad

More from Michael Noel (20)

PDF
AI is Hacking You - Digital Workplace Conference Australia 2024
Michael Noel
 
PPTX
AI is Hacking You - How Cybercriminals Leveral Artificial Intelligence - DWCN...
Michael Noel
 
PPTX
IT Insecurity - Understanding the Threat of Modern Cyberattacks - DWCNZ 2024
Michael Noel
 
PPTX
Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023
Michael Noel
 
PPTX
IT Insecurity - ST Digital Brazzaville
Michael Noel
 
PPTX
Securing IT Against Modern Threats with Microsoft Cloud Tools - #EUCloudSummi...
Michael Noel
 
PPTX
You are Doing IT Security Wrong - Understanding the Threat of Modern Cyber-at...
Michael Noel
 
PPTX
Securing IT Against Modern Threats with Microsoft Cloud Security Tools - M365...
Michael Noel
 
PPTX
Understanding the Tools and Features of Office 365 : DWT Africa 2018
Michael Noel
 
PPTX
SPS Lisbon 2018 - Azure AD Connect Technical Deep Dive
Michael Noel
 
PPTX
Azure Active Directory Connect: Technical Deep Dive - DWCAU 2018 Melbourne
Michael Noel
 
PPTX
Azure Active Directory Connect: Technical Deep Dive - EU Collab Summit 2018
Michael Noel
 
PPTX
Breaking Down the Tools and Features in Office 365 - EU Collab Summit 2018
Michael Noel
 
PPTX
Understanding the Tools and Features of Office 365 - New Zealand Digital Work...
Michael Noel
 
PPTX
Office 365; A Detailed Analysis - SPS Kampala 2017
Michael Noel
 
PPTX
Office 365; une Analyse Détaillée
Michael Noel
 
PPTX
Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015
Michael Noel
 
PPTX
SharePoint Сегодня; Как мы докатились сюда и куда идем дальше - SPSBaku - Mic...
Michael Noel
 
PPTX
SharePoint Сегодня; Как мы докатились сюда и куда идем дальше - SPCUA - Micha...
Michael Noel
 
PPTX
IberianSPC - SharePoint 2013 Upgrade
Michael Noel
 
AI is Hacking You - Digital Workplace Conference Australia 2024
Michael Noel
 
AI is Hacking You - How Cybercriminals Leveral Artificial Intelligence - DWCN...
Michael Noel
 
IT Insecurity - Understanding the Threat of Modern Cyberattacks - DWCNZ 2024
Michael Noel
 
Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023
Michael Noel
 
IT Insecurity - ST Digital Brazzaville
Michael Noel
 
Securing IT Against Modern Threats with Microsoft Cloud Tools - #EUCloudSummi...
Michael Noel
 
You are Doing IT Security Wrong - Understanding the Threat of Modern Cyber-at...
Michael Noel
 
Securing IT Against Modern Threats with Microsoft Cloud Security Tools - M365...
Michael Noel
 
Understanding the Tools and Features of Office 365 : DWT Africa 2018
Michael Noel
 
SPS Lisbon 2018 - Azure AD Connect Technical Deep Dive
Michael Noel
 
Azure Active Directory Connect: Technical Deep Dive - DWCAU 2018 Melbourne
Michael Noel
 
Azure Active Directory Connect: Technical Deep Dive - EU Collab Summit 2018
Michael Noel
 
Breaking Down the Tools and Features in Office 365 - EU Collab Summit 2018
Michael Noel
 
Understanding the Tools and Features of Office 365 - New Zealand Digital Work...
Michael Noel
 
Office 365; A Detailed Analysis - SPS Kampala 2017
Michael Noel
 
Office 365; une Analyse Détaillée
Michael Noel
 
Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015
Michael Noel
 
SharePoint Сегодня; Как мы докатились сюда и куда идем дальше - SPSBaku - Mic...
Michael Noel
 
SharePoint Сегодня; Как мы докатились сюда и куда идем дальше - SPCUA - Micha...
Michael Noel
 
IberianSPC - SharePoint 2013 Upgrade
Michael Noel
 

Recently uploaded (20)

PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Biography of Daniel Podor.pdf
Daniel Podor
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 

SQL 2012 AlwaysOn Availability Groups for SharePoint 2010 - AUSPC2012

  • 1. SQL 2012 AlwaysOn Availability Groups for SharePoint Database Failover (Database Mirroring) Michael Noel Convergent Computing (CCO)
  • 2. Michael Noel Great to be back in Beautiful Australia!
  • 3. What we will cover SQL 2012 AlwaysOn • What is SQL 2012 AlwaysOn? – AlwaysOn Failover Clustering – AlwaysOn Availability Groups • Why AlwaysOn Availability Groups for SharePoint? • Requirements and Prerequisites • Step by Step guide to implementing AlwaysOn Availability Groups • Demonstration
  • 4. SQL 2012 AlwaysOn Hype or Reality? • Two distinct technologies that share the same name • AlwaysOn Failover Clustering is a different thing! – A Failover Cluster Instance (FCI) uses traditional Shared Storage Clustering (one copy of data shared by multiple nodes) – Same marketing name, but completely different technology • AlwaysOn Availability Groups correspond to the new version of SQL Database Mirroring – High Availability and Disaster Recovery at the Data Tier
  • 5. History of AlwaysOn Availability Groups Background and Predecessor Technologies • Original concept was log shipping in SQL 2000 – making a duplicate copy of your databases on another server • Mirroring itself introduced in SQL 2005 SP1, improved in SQL 2008 and SQL 2008 R2 • Works by keeping a mirror copy of a database or databases on up to four additional SQL instances. • AlwaysOn Availability Groups introduced with SQL 2012, added up to four mirror copies, and more • This is a huge change to data tier design for SharePoint
  • 6. Comparison of AlwaysOn with other SQL HA Greatly Improved HA and DR Potential Potential High Availability and Disaster Recovery Automatic Readable Data Loss Recovery SQL Server Solution Failover Secondaries (RPO) Time (RTO) AlwaysOn Availability Group - synchronous-commit Zero Seconds Yes 0-2 AlwaysOn Availability Group - asynchronous-commit Seconds Minutes No 0-4 AlwaysOn Failover Cluster Instance NA Seconds Yes NA -to-minutes Database Mirroring - High-safety (sync + witness) Zero Seconds Yes NA Database Mirroring - High-performance (async) Seconds Minutes No NA Log Shipping Minutes Minutes No Not during -to-hours a restore Backup, Copy, Restore Hours Hours No Not during -to-days a restore
  • 7. AlwaysOn Availability Groups Design Options • Create up to four additional copies of each database on a different SQL node • Copies can be a mix of synchronous (exact copy) or asynchronous (works across low latency link) • Create a synchronous copy when connectivity is 1Gb or greater and latency is no more than 10ms • Create asynchronous copies across WAN links, for Disaster Recovery or when architecting a read-only farm
  • 8. AlwaysOn Availability Groups Read-only Farms • Unlike SQL Mirroring, AlwaysOn Availability Groups allow for read-only access to the content on a remote SQL instance • Allows for the DR copy of the data to be used as part of a view-only SharePoint farm in a remote location • Requires a separate SharePoint farm from the production read/write farm
  • 9. Design Options for SQL 2012 Sample Design
  • 10. AlwaysOn Availability Groups for SharePoint Improving Data Tier High Availability and Disaster Recovery • Completely changes the design options for the data tier • Allows for ‘Exchange Server’ like multi-copy database server failover on multiple replicas at the same time • The equivalent of running a constant backup of your databases • Can be used to create HA/DR copies of your SharePoint databases • SharePoint no longer needs to be ‘aware’ of the mirrored copy (in fact, it won’t failover if you configure it manually in SPCA.) SharePoint connects to the listener (Client Access Point) which is clustered • SharePoint 2010 Service Pack 1 supports SQL 2012 fully CAVEAT: Be sure to understand that synchronous mirroring copies need to be in close proximity and have very good bandwidth, as data needs to be written into all replicas before the transaction is committed. SharePoint will lock up if there are any interruptions at the data tier.
  • 11. AlwaysOn Availability Groups Version Requirements • Windows Server 2008 R2 (w SP1 ideally, as patches are required) – Enterprise Edition – One per node – Can use Virtualization licensing options – Should also work on Windows 8 Server • SQL Server 2012 Enterprise Edition – MS has moved to ‘Oracle model’ of licensing, based on CPU power – Legacy licenses of SQL 2008/2005 Enterprise are ‘grandfathered in’ if you have upgrade assurance
  • 12. AlwaysOn Availability Groups Prerequisites and Requirements – Windows OS • Cannot be installed on a Domain Controller • Must be either x86 (non-WOW64) or x64 Windows Server 2008 or later versions. • Must be a node in a Windows Server Failover Clustering (WSFC) cluster. • Ensure that WSFC cluster contains sufficient nodes to support your availability group configurations. • Ensure that all applicable Window hotfixes have been installed on every node in the WSFC cluster (Taken care of with SP1 for Windows Server 2008 R2)
  • 13. AlwaysOn Availability Groups Prerequisites and Requirements – SQL Server • If you plan to use a SQL Server failover cluster instance (FCI) to host an availability replica, ensure that you understand the FCI restrictions and that the FCI requirements are met (Manual config required) • All the server instances that host availability replicas for an availability group must use the same SQL Server collation. • If any databases that use FILESTREAM will be added to an availability group, ensure that FILESTREAM is enabled on every server instance that will host an availability replica for the availability group.
  • 14. Creating AlwaysOn Availability Groups Sample Setup used for the Presentation • For this discussion and demo, I created a three node WSFC with SQL1, SQL2, and SQL3 • SharePoint server SP1 connects to the listener ‘SQL’ • Failover is automatic between SQL1 and SQL2 (Synchronous) • Failover manual to SQL3
  • 15. Creating AlwaysOn Availability Groups Step 1: Create Windows Server Failover Cluster (WSFC) • Install Windows Server 2008 R2 w/SP1 on multiple nodes • Enable the Failover Cluster Feature on each node • Use the Failover Cluster Manager Wizard to create a cluster. • Name the cluster a unique name that will be separate from the instance name that will be used for SharePoint
  • 16. Creating AlwaysOn Availability Groups Step 2: Prepare Nodes • Install .NET Services 3.5 Feature on each SQL node • Install SQL 2012 Enterprise Edition Database Services (Also recommend adding SQL Management Tools – Complete) • Ensure proper Windows Firewall ports are open • Service Account for SQL – Use the same service account for all nodes – Don’t use Network Service – If using Kerberos, make sure all SQL names have SPNs associated with the service account • Make sure databases are set to FULL recovery mode • Ensure that the file paths and drive letters are consistent throughout all instances (ideally, or config will have to be manual) • Copy or Create SharePoint databases on Primary node only (use SQL Alias to change name later) • Perform a full backup of your SharePoint databases • Create a file share location that is accessible by all nodes that will be used for the shared backups (i.e. SQL1Backups)
  • 17. Creating AlwaysOn Availability Groups Step 2: Enable AlwaysOn on each SQL Node • Enable AlwaysOn High Availability in SQL Server Configuration Manager • Repeat on Each Node • Restart SQL Services
  • 18. Creating AlwaysOn Availability Groups Step 3: Create the Availability Group • Ideally use the New Availability Group Wizard, it automates the process
  • 19. Creating AlwaysOn Availability Groups Step 3: Create the Availability Group – Continued… • Be sure to have a shared network location for the backup files (Created in earlier step) • Depending on size of databases, this could take a while • Backups can also be pre-staged (Join Only)
  • 20. Creating AlwaysOn Availability Groups Step 3: Create the Availability Group – Continued… • Validation should show all green, except warning for Listener • The listener (‘SQL’ in this example) will be created later, and is required for SharePoint to connect to
  • 21. Creating AlwaysOn Availability Groups Step 4: Create the Availability Group Listener • After the wizard completes, manually create the Availability Group Listener • This is the shared name that SharePoint will connect to and will provide failover (Also called the ‘Client Access Point’) • Modify the DNS record for this listener to have a low TTL (60 seconds or less) for cross- subnet failover scenarios
  • 22. Demo
  • 23. Session Summary • Throw away all previous data tier designs for SharePoint! • SQL 2012 AlwaysOn Availability Groups are the preferred design option for High Availability and Disaster Recovery at the data tier • SQL 2012 is fully supported by SharePoint 2010 Service Pack 1 databases • Follow closely the guidelines, ensure data paths are the same, double-check security requirements
  • 24. Michael Noel Twitter: @MichaelTNoel www.cco.com Slides: slideshare.net/michaeltnoel Travel blog: http://sharingtheglobe.com
  • 25. Gold Sponsors Silver Sponsors Bronze Sponsors Media Sponsors

Editor's Notes

  • #2: This must be the opening slide