SlideShare une entreprise Scribd logo
1  sur  28
Using SQL Server 2014 AlwaysOn
Availability Groups for SharePoint On-
Premises and Azure SQL Replicas
Michael Noel
Michael Noel
Great to be back in Beautiful Australia!
What we will cover
SQL Server AlwaysOn
What is SQL Server 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
Two distinct AlwaysOn technologies available
‒ AlwaysOn Failover Cluster Instance (FCI)
 A ‘traditional’ cluster – uses shared storage and network
 One copy of data shared by multiple nodes
‒ AlwaysOn Availability Groups (AOAGs)
 Equivalent to a combination of traditional SQL Mirroring concepts together
with clustering
 Multiple replicas of databases split across different cluster nodes
 Uses ‘Shared Nothing’ cluster concepts
 Allows for up to nine total replicas of a database
Same marketing name, but completely
different technologies
SQL Server AlwaysOn
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, improved in
SQL 2014, and later in SQL 2016
 This is a huge change to data tier design for SharePoint
Comparison of AlwaysOn with other SQL
Server HA/DR
High Availability and Disaster Recovery
SQL Server Solution
Potential
Data Loss
(RPO)
Potential
Recovery Time
(RTO)
Automatic
Failover
Readable
Secondaries
AlwaysOn Availability Group - synchronous-commit Zero Seconds Yes 0 - 2
AlwaysOn Availability Group - asynchronous-commit Seconds Minutes No 0 - 8
AlwaysOn Failover Cluster Instance NA Seconds
-to-minutes
Yes NA
Database Mirroring - High-safety (sync + witness) Zero Seconds Yes NA
Database Mirroring - High-performance (async) Seconds Minutes No NA
Log Shipping Minutes Minutes
-to-hours
No Not during
a restore
Backup, Copy, Restore Hours Hours
-to-days
No Not during
a restore
Create up to eight additional copies of each database on
different SQL nodes (Nine total replicas)
Copies can be a mix of synchronous (exact copy, limited
to two additional replicas) or asynchronous
Create a synchronous copy when connectivity is 1Gb or
greater and latency is no more than 1ms on average
Create asynchronous copies across WAN links, for
Disaster Recovery or when architecting a read-only farm
AlwaysOn Availability Groups
AlwaysOn Availability Groups
Synchronous vs. Asynchronous Database Support
 Virtually all SharePoint 2013/2016 (and many SharePoint 2010) databases
now support Synchronous Replication (either via Mirroring or AOAGs)
 Up until recently, only Content Databases and the Secure Store Database
supported Asynchronous Replication
 Now, Microsoft supports Asynchronous replication for all but the User
Profile Sync databases
 This is why it is considered best practice to create at least two AOAGs
for SharePoint…one for the asynchronous-only Databases, which can be
replicated to remote locations, etc., and one for the synchronous
databases
 This is a key point, remember, you CANNOT replicate databases
synchronously unless you have 1Gb+ bandwidth and less than 1ms of
latency!
SharePoint Database
Compatibility with
AOAG
Database Synchronous Asynchronous
Recommended
AOAG
Content Databases Yes Yes AOAG1 – Content
App Management Yes Yes AOAG2 – SA-ASync
BCS Yes Yes AOAG2 – SA-ASync
Managed Metadata Yes Yes AOAG2 – SA-ASync
PerformancePoint Yes Yes AOAG2 – SA-ASync
PowerPivot Yes Yes AOAG2 – SA-ASync
Project Server Yes Yes AOAG2 – SA-ASync
Secure Store Yes Yes AOAG2 – SA-ASync
Subscription Settings Yes Yes AOAG2 – SA-ASync
Machine Translation Services Yes Yes AOAG2 – SA-ASync
Word Automation Yes Yes AOAG2 – SA-ASync
UPA Profile Yes Yes AOAG2 – SA-ASync
UPA Social Yes Yes AOAG2 – SA-ASync
UPA Sync Yes No AOAG3 – SA-Sync
Config Yes No AOAG3 – SA-Sync
Central Admin Yes No AOAG3 – SA-Sync
Search Analytic Reporting Yes No AOAG3 – SA-Sync
Search Admin Yes No AOAG3 – SA-Sync
Search Crawl Yes No AOAG3 – SA-Sync
Search Links Yes No AOAG3 – SA-Sync
State Service Yes No AOAG3 – SA-Sync
Usage Yes No AOAG3 – SA-Sync
 All Databases supported for
synchronous failover
 Recently, Microsoft added
asynchronous failover support for
certain non-content DB types
 Other Service Application types are
still unsupported for asynchronous
failover, though they are either not
needed in a DR scenario or can be
easily recreated
 Highly consider the creation of
multiple AOAGs, two at a minimum,
three ideal, and even four or five may
be common – allows for greatest
flexibility of failover
Sample AOAG Design for SharePoint
•
•
•
•
•
AlwaysOn Availability Groups
Version Requirements
 Windows Server
‒ Windows Server 2008 R2 (w SP1 or greater) – Enterprise Edition
‒ (PREFERRED) Windows Server 2012/2012 R2/2016 Standard/Datacenter
‒ One per node
‒ Can use Virtualization licensing options
 SQL Server 2012/2014/2016 Enterprise Edition
‒MS has moved away from per-socket licenses. Licenses are now
1/4th the cost, but are now per each core.
‒Legacy licenses of SQL 2008/2008 R2 Enterprise are
‘grandfathered in’ if you have upgrade assurance
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.
AlwaysOn Availability Groups
Cluster Witness and Voting Fundamentals
• Automatic failover clustering requires servers to have
the proper number of votes to ‘turn on’ a database
copy.
• There must always be a majority of votes to enable the
node.
• If a majority cannot be reached (for example, if there
are only an even number of votes) the DBs will remain
offline.
• File Servers can act as File Share Witness
(FSW) servers (additional votes.)
• NEW – Add an Azure File Share Witness!
• This avoids split-brain scenarios where
multiple copies of a DB are online.
• Be sure to give the Cluster Computer
Account Full control to the FSW Share
 SharePoint must be 2010 SP1+/2013/2016. For full Asynch support, 2013 SP1 April
2014 CU+ or greater.
 New databases in your farm are not added by default, they must be manually added
 All databases must have a full backup run before adding to an AOAG
 All databases must be running in FULL transaction mode (which is not the default
for certain SP databases)
 Be sure to copy SQL security accounts to all nodes in the cluster or SharePoint will
fail to reconnect
 Use the same SQL service accounts on all nodes
 Highly recommend to use the same drive paths on all nodes
 Don’t forget to flush the logs with a backup script on a regular basis! Search and
Config DBs will grow large quickly.
 Don’t forget about SPNs for Kerberos and use Aliases for Listeners
Additional SQL 2014/2016 AOAG Considerations
and Prerequisites
Flush Logs in an AOAG Environment
Any DB in FULL recovery mode (required for AOAGs)
will continue to grow logs indefinitely
Be sure to run a full backup, then a transaction log
backup from SQL. This will clear out logs but not
shrink them
To shrink, you need to also run DBCC SHRINKFILE
after the backups
For databases that don’t need to be restored, you can
backup to ‘NULL’ (effectively fooling SharePoint that
it has been backed up. NOTE: This does not backup
any data, simply allows the logs to be flushed out.
Script to Backup to NULL and Flush logs
USE SPF1_ConfigDB;
BACKUP DATABASE SPF1_ConfigDB TO DISK='NUL:';
BACKUP LOG SPF1_ConfigDB TO DISK='NUL:';
DBCC SHRINKFILE(SPF1_ConfigDB_log,1000)
 NOTE: This sample backs up to NULL, which effectively
means it’s only flushing the logs. Replace ‘NUL’ with the
backup location for your environment for any databases that
you need recovery from
Creating AlwaysOn Availability Groups
Step 1: Create Windows Server Failover Cluster (WSFC)
 Install Windows Server on multiple nodes
 Patch with Critical, Security, and the
specific OS patches listed in previous
slide
 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 2014 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
(some
exceptions)
 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
 Required in specific situations, such as when a DB is encrypted
 First, add the DB to the primary server (where the DB is attached to
with the following syntax:
‒ ALTER AVAILABILITY GROUP SPDBCONTENT
‒ ADD DATABASE SPF1_Content_TDE
‒ GO
 Then restore the DB onto the secondary server, ensuring that you
choose ‘RESTORE WITH NORECOVERY’ from the Options tab
 Finally, add the DB to the AG on the Secondary server
‒ ALTER DATABASE SPF1_Content_TDE SET HADR AVAILABILITY GROUP =
SPDBCONTENT;
‒ GO
Creating AlwaysOn Availability Groups
Manual Process: Adding a DB to an Availability Group
Working with SQL Server AlwaysOn Availability Groups for SharePoint On-
Premises Farms
 Throw away all previous data tier designs for SharePoint On-
Premises!
 SQL Server AlwaysOn Availability Groups are the preferred
design option for High Availability and Disaster Recovery at the
data tier
 Best Practice is to create at least two AGs for SharePoint – One
for Synchronous DBs and the other for asynchronous DBs
 Follow closely the guidelines, ensure data paths are the same,
double-check security requirements
 Plan to shrink your log files on a daily basis for non-content DBs
as they will grow quickly, particularly the search databases
Session Summary
SQL 2014/2016 AlwaysOn Availability Groups for SharePoint On-Premises
Thank
you to
our
sponsors!
Michael Noel
Twitter: @MichaelTNoel
www.cco.com Slides: slideshare.net/michaeltnoel
Travel blog: sharingtheglobe.com

Contenu connexe

Tendances

Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
dilip nayak
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
venkatchs
 
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
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
Antonios Chatzipavlis
 

Tendances (20)

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 &...
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
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
 
Configurando Aplicaciones para Réplicas de Lectura de SQL-Server AlwaysOn - C...
Configurando Aplicaciones para Réplicas de Lectura de SQL-Server AlwaysOn - C...Configurando Aplicaciones para Réplicas de Lectura de SQL-Server AlwaysOn - C...
Configurando Aplicaciones para Réplicas de Lectura de SQL-Server AlwaysOn - C...
 
Sql server’s high availability technologies
Sql server’s high availability technologiesSql server’s high availability technologies
Sql server’s high availability technologies
 
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
 
AlwaysON Basics
AlwaysON BasicsAlwaysON Basics
AlwaysON Basics
 
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
 
Sql server 2012 AlwaysOn
Sql server 2012 AlwaysOnSql server 2012 AlwaysOn
Sql server 2012 AlwaysOn
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginnersSQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
 
SQL Server Clustering Part1
SQL Server Clustering Part1SQL Server Clustering Part1
SQL Server Clustering Part1
 
Always on in SQL Server 2012
Always on in SQL Server 2012Always on in SQL Server 2012
Always on in SQL Server 2012
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
 
Alwayson AG enhancements
Alwayson AG enhancementsAlwayson AG enhancements
Alwayson AG enhancements
 
High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...
High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...
High Availability & Disaster Recovery with SQL Server 2012 AlwaysOn Availabil...
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganKoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
 
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
 
Microsoft Azure, My First IaaS
Microsoft Azure, My First IaaSMicrosoft Azure, My First IaaS
Microsoft Azure, My First IaaS
 
Always on in sql server 2017
Always on in sql server 2017Always on in sql server 2017
Always on in sql server 2017
 

Similaire à AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoint On-Premises and Azure SQL Replicas

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
 
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
Isabelle Van Campenhoudt
 
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
serge luca
 
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
 

Similaire à AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoint On-Premises and Azure SQL Replicas (20)

SQL AlwaysON for SharePoint HA/DR on Azure Global Azure Bootcamp 2017 Eisenac...
SQL AlwaysON for SharePoint HA/DR on Azure Global Azure Bootcamp 2017 Eisenac...SQL AlwaysON for SharePoint HA/DR on Azure Global Azure Bootcamp 2017 Eisenac...
SQL AlwaysON for SharePoint HA/DR on Azure Global Azure Bootcamp 2017 Eisenac...
 
Building your first sql server cluster
Building your first sql server clusterBuilding your first sql server cluster
Building your first sql server cluster
 
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groupsUnbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL Server
 
Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014
 
Using Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12cUsing Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12c
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the Cloud
 
Implement SQL Server on an Azure VM
Implement SQL Server on an Azure VMImplement SQL Server on an Azure VM
Implement SQL Server on an Azure VM
 
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
 
AWS Webcast - Best Practices for Deploying SAP Workloads on AWS
AWS Webcast - Best Practices for Deploying SAP Workloads on AWSAWS Webcast - Best Practices for Deploying SAP Workloads on AWS
AWS Webcast - Best Practices for Deploying SAP Workloads on AWS
 
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
 
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
haute Disponibilité et reprise sur incident dans SharePoint avec groupes de d...
 
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePoint
 
Dallas Breakfast Seminar
Dallas Breakfast SeminarDallas Breakfast Seminar
Dallas Breakfast Seminar
 
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
 
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groupsUnbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
 
Running Business Critical Workloads on AWS
Running Business Critical Workloads on AWS Running Business Critical Workloads on AWS
Running Business Critical Workloads on AWS
 
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 ...
 
Best Practice SharePoint Architecture
Best Practice SharePoint ArchitectureBest Practice SharePoint Architecture
Best Practice SharePoint Architecture
 

Plus de Michael Noel

Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023
Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023
Combatting Cyberthreats with Microsoft Defender 365 - CollabDays Finland 2023
Michael Noel
 
You are Doing IT Security Wrong - Understanding the Threat of Modern Cyber-at...
You are Doing IT Security Wrong - Understanding the Threat of Modern Cyber-at...You are Doing IT Security Wrong - Understanding the Threat of Modern Cyber-at...
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...
Securing IT Against Modern Threats with Microsoft Cloud Security Tools - M365...Securing IT Against Modern Threats with Microsoft Cloud Security Tools - M365...
Securing IT Against Modern Threats with Microsoft Cloud Security Tools - M365...
Michael Noel
 
Understanding the Tools and Features of Office 365 - New Zealand Digital Work...
Understanding the Tools and Features of Office 365 - New Zealand Digital Work...Understanding the Tools and Features of Office 365 - New Zealand Digital Work...
Understanding the Tools and Features of Office 365 - New Zealand Digital Work...
Michael Noel
 
Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015
Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015
Understanding Office 365 Service Offerings - O365 Saturday Sydney 2015
Michael Noel
 
Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...
Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...
Ultimate SharePoint Infrastructure Best Practises Session - Isle of Man Share...
Michael Noel
 

Plus de Michael Noel (20)

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

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Dernier (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoint On-Premises and Azure SQL Replicas

  • 1. Using SQL Server 2014 AlwaysOn Availability Groups for SharePoint On- Premises and Azure SQL Replicas Michael Noel
  • 2. Michael Noel Great to be back in Beautiful Australia!
  • 3. What we will cover SQL Server AlwaysOn What is SQL Server 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. Two distinct AlwaysOn technologies available ‒ AlwaysOn Failover Cluster Instance (FCI)  A ‘traditional’ cluster – uses shared storage and network  One copy of data shared by multiple nodes ‒ AlwaysOn Availability Groups (AOAGs)  Equivalent to a combination of traditional SQL Mirroring concepts together with clustering  Multiple replicas of databases split across different cluster nodes  Uses ‘Shared Nothing’ cluster concepts  Allows for up to nine total replicas of a database Same marketing name, but completely different technologies SQL Server AlwaysOn
  • 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, improved in SQL 2014, and later in SQL 2016  This is a huge change to data tier design for SharePoint
  • 6. Comparison of AlwaysOn with other SQL Server HA/DR High Availability and Disaster Recovery SQL Server Solution Potential Data Loss (RPO) Potential Recovery Time (RTO) Automatic Failover Readable Secondaries AlwaysOn Availability Group - synchronous-commit Zero Seconds Yes 0 - 2 AlwaysOn Availability Group - asynchronous-commit Seconds Minutes No 0 - 8 AlwaysOn Failover Cluster Instance NA Seconds -to-minutes Yes NA Database Mirroring - High-safety (sync + witness) Zero Seconds Yes NA Database Mirroring - High-performance (async) Seconds Minutes No NA Log Shipping Minutes Minutes -to-hours No Not during a restore Backup, Copy, Restore Hours Hours -to-days No Not during a restore
  • 7. Create up to eight additional copies of each database on different SQL nodes (Nine total replicas) Copies can be a mix of synchronous (exact copy, limited to two additional replicas) or asynchronous Create a synchronous copy when connectivity is 1Gb or greater and latency is no more than 1ms on average Create asynchronous copies across WAN links, for Disaster Recovery or when architecting a read-only farm AlwaysOn Availability Groups
  • 8. AlwaysOn Availability Groups Synchronous vs. Asynchronous Database Support  Virtually all SharePoint 2013/2016 (and many SharePoint 2010) databases now support Synchronous Replication (either via Mirroring or AOAGs)  Up until recently, only Content Databases and the Secure Store Database supported Asynchronous Replication  Now, Microsoft supports Asynchronous replication for all but the User Profile Sync databases  This is why it is considered best practice to create at least two AOAGs for SharePoint…one for the asynchronous-only Databases, which can be replicated to remote locations, etc., and one for the synchronous databases  This is a key point, remember, you CANNOT replicate databases synchronously unless you have 1Gb+ bandwidth and less than 1ms of latency!
  • 9. SharePoint Database Compatibility with AOAG Database Synchronous Asynchronous Recommended AOAG Content Databases Yes Yes AOAG1 – Content App Management Yes Yes AOAG2 – SA-ASync BCS Yes Yes AOAG2 – SA-ASync Managed Metadata Yes Yes AOAG2 – SA-ASync PerformancePoint Yes Yes AOAG2 – SA-ASync PowerPivot Yes Yes AOAG2 – SA-ASync Project Server Yes Yes AOAG2 – SA-ASync Secure Store Yes Yes AOAG2 – SA-ASync Subscription Settings Yes Yes AOAG2 – SA-ASync Machine Translation Services Yes Yes AOAG2 – SA-ASync Word Automation Yes Yes AOAG2 – SA-ASync UPA Profile Yes Yes AOAG2 – SA-ASync UPA Social Yes Yes AOAG2 – SA-ASync UPA Sync Yes No AOAG3 – SA-Sync Config Yes No AOAG3 – SA-Sync Central Admin Yes No AOAG3 – SA-Sync Search Analytic Reporting Yes No AOAG3 – SA-Sync Search Admin Yes No AOAG3 – SA-Sync Search Crawl Yes No AOAG3 – SA-Sync Search Links Yes No AOAG3 – SA-Sync State Service Yes No AOAG3 – SA-Sync Usage Yes No AOAG3 – SA-Sync  All Databases supported for synchronous failover  Recently, Microsoft added asynchronous failover support for certain non-content DB types  Other Service Application types are still unsupported for asynchronous failover, though they are either not needed in a DR scenario or can be easily recreated  Highly consider the creation of multiple AOAGs, two at a minimum, three ideal, and even four or five may be common – allows for greatest flexibility of failover
  • 10. Sample AOAG Design for SharePoint • • • • •
  • 11. AlwaysOn Availability Groups Version Requirements  Windows Server ‒ Windows Server 2008 R2 (w SP1 or greater) – Enterprise Edition ‒ (PREFERRED) Windows Server 2012/2012 R2/2016 Standard/Datacenter ‒ One per node ‒ Can use Virtualization licensing options  SQL Server 2012/2014/2016 Enterprise Edition ‒MS has moved away from per-socket licenses. Licenses are now 1/4th the cost, but are now per each core. ‒Legacy licenses of SQL 2008/2008 R2 Enterprise are ‘grandfathered in’ if you have upgrade assurance
  • 12. 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.
  • 13. AlwaysOn Availability Groups Cluster Witness and Voting Fundamentals • Automatic failover clustering requires servers to have the proper number of votes to ‘turn on’ a database copy. • There must always be a majority of votes to enable the node. • If a majority cannot be reached (for example, if there are only an even number of votes) the DBs will remain offline. • File Servers can act as File Share Witness (FSW) servers (additional votes.) • NEW – Add an Azure File Share Witness! • This avoids split-brain scenarios where multiple copies of a DB are online. • Be sure to give the Cluster Computer Account Full control to the FSW Share
  • 14.  SharePoint must be 2010 SP1+/2013/2016. For full Asynch support, 2013 SP1 April 2014 CU+ or greater.  New databases in your farm are not added by default, they must be manually added  All databases must have a full backup run before adding to an AOAG  All databases must be running in FULL transaction mode (which is not the default for certain SP databases)  Be sure to copy SQL security accounts to all nodes in the cluster or SharePoint will fail to reconnect  Use the same SQL service accounts on all nodes  Highly recommend to use the same drive paths on all nodes  Don’t forget to flush the logs with a backup script on a regular basis! Search and Config DBs will grow large quickly.  Don’t forget about SPNs for Kerberos and use Aliases for Listeners Additional SQL 2014/2016 AOAG Considerations and Prerequisites
  • 15. Flush Logs in an AOAG Environment Any DB in FULL recovery mode (required for AOAGs) will continue to grow logs indefinitely Be sure to run a full backup, then a transaction log backup from SQL. This will clear out logs but not shrink them To shrink, you need to also run DBCC SHRINKFILE after the backups For databases that don’t need to be restored, you can backup to ‘NULL’ (effectively fooling SharePoint that it has been backed up. NOTE: This does not backup any data, simply allows the logs to be flushed out.
  • 16. Script to Backup to NULL and Flush logs USE SPF1_ConfigDB; BACKUP DATABASE SPF1_ConfigDB TO DISK='NUL:'; BACKUP LOG SPF1_ConfigDB TO DISK='NUL:'; DBCC SHRINKFILE(SPF1_ConfigDB_log,1000)  NOTE: This sample backs up to NULL, which effectively means it’s only flushing the logs. Replace ‘NUL’ with the backup location for your environment for any databases that you need recovery from
  • 17. Creating AlwaysOn Availability Groups Step 1: Create Windows Server Failover Cluster (WSFC)  Install Windows Server on multiple nodes  Patch with Critical, Security, and the specific OS patches listed in previous slide  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
  • 18. Creating AlwaysOn Availability Groups Step 2: Prepare Nodes  Install .NET Services 3.5 Feature on each SQL node  Install SQL 2014 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)
  • 19. 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
  • 20. Creating AlwaysOn Availability Groups Step 3: Create the Availability Group  Ideally use the New Availability Group Wizard, it automates the process
  • 21. 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)
  • 22. Creating AlwaysOn Availability Groups Step 3: Create the Availability Group – Continued…  Validation should show all green (some exceptions)  The listener (‘SQL’ in this example) will be created later, and is required for SharePoint to connect to
  • 23. 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
  • 24.  Required in specific situations, such as when a DB is encrypted  First, add the DB to the primary server (where the DB is attached to with the following syntax: ‒ ALTER AVAILABILITY GROUP SPDBCONTENT ‒ ADD DATABASE SPF1_Content_TDE ‒ GO  Then restore the DB onto the secondary server, ensuring that you choose ‘RESTORE WITH NORECOVERY’ from the Options tab  Finally, add the DB to the AG on the Secondary server ‒ ALTER DATABASE SPF1_Content_TDE SET HADR AVAILABILITY GROUP = SPDBCONTENT; ‒ GO Creating AlwaysOn Availability Groups Manual Process: Adding a DB to an Availability Group
  • 25. Working with SQL Server AlwaysOn Availability Groups for SharePoint On- Premises Farms
  • 26.  Throw away all previous data tier designs for SharePoint On- Premises!  SQL Server AlwaysOn Availability Groups are the preferred design option for High Availability and Disaster Recovery at the data tier  Best Practice is to create at least two AGs for SharePoint – One for Synchronous DBs and the other for asynchronous DBs  Follow closely the guidelines, ensure data paths are the same, double-check security requirements  Plan to shrink your log files on a daily basis for non-content DBs as they will grow quickly, particularly the search databases Session Summary SQL 2014/2016 AlwaysOn Availability Groups for SharePoint On-Premises
  • 28. Michael Noel Twitter: @MichaelTNoel www.cco.com Slides: slideshare.net/michaeltnoel Travel blog: sharingtheglobe.com