Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.

Slides:



Advertisements
Similar presentations
SQL Server Disaster Recovery Chris Shaw Sr. SQL Server DBA, Xtivia Inc.
Advertisements

Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
SQL Server 2000 Clustering Dave Fackler. Agenda Windows 2000 Clustering SQL Server 2000 Clustering Implementation Tips.
1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
June 23rd, 2009Inflectra Proprietary InformationPage: 1 SpiraTest/Plan/Team Deployment Considerations How to deploy for high-availability and strategies.
1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
SQL Server Data Protection and High Availability Anil Desai.
Keith Burns Microsoft UK Mission Critical Database.
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
National Manager Database Services
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
High-Availability Methods Lesson 25. Skills Matrix.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
1 © 2006 SolidWorks Corp. Confidential. Clustering  SQL can be used in “Cluster Pack” –A pack is a group of servers that operate together and share partitioned.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Clustering SQL Server Tom Pullen Senior DBA, RM Education
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
MODIFY THIS SLIDE FOR ACTUAL PRESENTER, DELETE THIS BAR AFTER MODIFICATION.
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
Ewan MacKellar Andrew Ehrensing. 2 ScenarioOCS 2007 R2Lync 2010Lync 2013 HA: server failure  Server clustering via hardware load balancing (HLB)  Server.
SQLCAT: SQL Server HA and DR Design Patterns, Architectures, and Best Practices Using Microsoft SQL Server 2012 AlwaysOn Sanjay Mishra Program Manager.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Overview of high availability in Microsoft SQL Server Szymon Wójcik.
Chapter 12: Designing a Data- Archiving Solution MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
11 CLUSTERING AND AVAILABILITY Chapter 11. Chapter 11: CLUSTERING AND AVAILABILITY2 OVERVIEW  Describe the clustering capabilities of Microsoft Windows.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
Oracle DBAs Deploying Highly Available SQL Server Systems
Alwayson Availability Groups
70-412: Configuring Advanced Windows Server 2012 services
Enhancing Scalability and Availability of the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Your Data Any Place, Any Time Always On Technologies.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
SQL Server 2014 AlwaysOn Step-by-Step SQL Server 2014 AlwaysOn Step-by-Step A hands on look at implementing AlwaysOn in SQL Server 2014.
What HADR Option(s) Are Right For You?. Where’s The AlwaysOn?
SQL Server High Availability Introduction to SQL Server high availability solutions.
Windows Server Failover Clustering (WSFC) with SQL Server.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
Are You High? Can You Recover? Robert Douglas SQL Saturday #468, Sydney 27 th February 2016.
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
High Availability in SQL Server 2012
ALWAYSON AVAILABILITY GROUPS
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
AlwaysOn Mirroring, Clustering
Maximum Availability Architecture Enterprise Technology Centre.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
Contained DB? Did it do something wrong?
Introduction of Week 6 Assignment Discussion
SQL Server High Availability Amit Vaid.
Your Data Any Place, Any Time
SpiraTest/Plan/Team Deployment Considerations
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
Designing a Highly Available SQL Server Infrastructure
Designing Database Solutions for SQL Server
Presentation transcript:

Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)

SQL Server 2005 High Availability Dependence on databases is growing. More applications used 24x7 Maintenance periods shrinking or being eliminated. High availability can help © Wiley Inc All Rights Reserved.

SQL Server 2005 Technologies SQL Server 2005 has four main technologies –Failover clustering –Database mirroring –Log shipping –Replication Each meets different goals and solves separate problems © Wiley Inc All Rights Reserved.

Availability Measured in different ways (application, database, network) Holy Grail - 5’s (99.999%) –Equates to 5 minutes of downtime a year. –Single server can’t get here Need some technology to distribute load © Wiley Inc All Rights Reserved.

Availability – cont’d Issues affecting availability –Maintenance –Upgrades Multiple servers can mitigate issues © Wiley Inc All Rights Reserved.

Examining HA Technologies Trying to increase availability Identify Single Points of Failure –CPU –Disk drive –Power Supply –Network –OS –SQL Server –Others © Wiley Inc All Rights Reserved.

Setting HA Goals Since each technology solves different problems, need to identify which ones you need to solve. –Hardware failures –Geological disasters –Application problems. –Automated failover © Wiley Inc All Rights Reserved.

HA System Limitations High availability <> Scalability Data Loss potential Delays during failover © Wiley Inc All Rights Reserved.

Failover Clustering Most common HA technology Improved from SQL Server 2000 Entire instance is protected from disaster SQL Server Agent, Notification Services, Analysis Services, and replication failed over. Virtual node presented to clients © Wiley Inc All Rights Reserved.

Failover Clustering Limitations Shared Disk Resources Cost Hardware limitations Complex network configuration Employee training (DBA and system administrator) © Wiley Inc All Rights Reserved.

Designing Clustering Node count limited by MSCS resources –8 nodes with Windows 2003 Datacenter and SQL Enterprise –SQL Standard limited to 2 nodes Active/Active v Active/Passive N+1 configurations © Wiley Inc All Rights Reserved.

Designing Clustering – cont’d Geographic considerations –Protect against isolated disaster (fire, bomb, etc.) –Hardware and networking can be very expensive. Hardware decisions –Must be on the HCL –Shared disk subsystem required © Wiley Inc All Rights Reserved.

Designing Clustering – cont’d Licensing –Only active nodes must be licensed. © Wiley Inc All Rights Reserved.

Database Mirroring New technology introduced in SQL Server Not supported in RTM, need SP1 Addresses high cost and overkill of clustering in some situations. © Wiley Inc All Rights Reserved.

Database Mirroring – cont’d Automatic Failover Uses any Windows hardware, even disparate hardware between servers Protects against disk failure Very fast failover Operates at the database level © Wiley Inc All Rights Reserved.

Database Mirroring Limitations Database Level means that logins must be manually setup on both servers. Master, msdb, model not protected SQL Agent jobs not failed over. ADO.NET 2.0 clients required for automatic failover. © Wiley Inc All Rights Reserved.

Database Mirroring - Roles Principal – database to be protected Secondary – database that receives the updates from the principal Witness – optional server used to initiate automatic failover Quorum of two servers required to initiate failover. © Wiley Inc All Rights Reserved.

Database Mirroring Protection Levels High Performance Mode –No confirmation from secondary –No automatic failover –Some data loss possible High Protection Mode –Secondary acknowledges updates –Manual failover required –No witness © Wiley Inc All Rights Reserved.

Database Mirroring Protection Levels – cont’d High Availability Mode –Automatic failover supported –Updates acknowledged –Witness required © Wiley Inc All Rights Reserved.

Configuring Database Mirroring Endpoints needed on each server to transfer updates. Initialize mirror database with a backup. ALTER DATABASE SET PARTNER to begin updates. Be sure you test failover and failback. © Wiley Inc All Rights Reserved.

Log Shipping Based on normal backup and restore procedures Enterprise edition required in previous versions. Supported in Standard in Supports multiple secondary servers Secondary databases can be used for reporting. © Wiley Inc All Rights Reserved.

Log Shipping Limitations No automatic failover Application changes may be required to failover Secondary server name must be different. Operates at the database level © Wiley Inc All Rights Reserved.

Log Shipping Roles Primary server –Normal server for clients Secondary server –One or more servers receiving log backups from the primary Monitor server –Stores tracking information about backups and restores. © Wiley Inc All Rights Reserved.

Failover with Log Shipping Must be performed by DBA –Restore remaining logs on secondary using the NORECOVERY option –Backup tail from primary server if possible –Restore tail on secondary –Bring secondary online with the RECOVERY option. –Configure clients to connect to the secondary © Wiley Inc All Rights Reserved.

Replication Not specifically a high availability technology. Can be adapted for HA situations Use Transactional or Merge replication for HA © Wiley Inc All Rights Reserved.

Transactional Replication for High Availability Use low latency batches to move transactions Similar to log shipping, but can be faster Secondary system is full live for queries. Disparate hardware can be used Operates at the publication level, not database level. © Wiley Inc All Rights Reserved.

Merge Replication with High Availability Similar to transactional replication. Updates can be made to either the primary or secondary nodes Can scale the system when both nodes are active © Wiley Inc All Rights Reserved.

Highly Available Storage Any HA solution requires highly available storage Two main choices –RAID –SAN © Wiley Inc All Rights Reserved.

RAID Technology Redundant Array of Inexpensive Disks –RAID 0 - Striping –RAID 1 – Mirroring –RAID 5 – Striping with Parity –RAID – Combine RAID RAID 0 not suitable for databases. © Wiley Inc All Rights Reserved.

SAN Storage Large set of disks attached to multiple servers. May use RAID technology Specialized installations with proprietary hardware Work with vendors to design database storage © Wiley Inc All Rights Reserved.

Designing an HA Solution Consider more than the database server Consider Failover times Application failover issues Cost of solutions © Wiley Inc All Rights Reserved.

Nontechnical Issues In a disaster situation, consider other issues –Staffing –Geographic connections –Load on secondary server © Wiley Inc All Rights Reserved.

Preparing for Migration Develop a plan to move to the HA solution –Minimize downtime –Train staff –Network Abstraction –Test © Wiley Inc All Rights Reserved.

Summary Each HA technology has different benefits and costs Each solves different problems Match up needs with the technology Test the solution to be prepared for a real disaster © Wiley Inc All Rights Reserved.