SlideShare a Scribd company logo
Introduction to Failover Clustering with SQL
Server (Level 100)

Eduardo Castro Martinez
Arquitecto Infraestructura
ecastro@simsasys.com
twitter: edocastro

http://ecastrom.blogspot.com
http://tiny.cc/comwindows
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
What is High Availability?

• The world is now a 24/7 global marketplace.
• Systems must be online or customers are lost.
• Goal of High Availability (HA) is to keep systems,
  applications, services, e-mail, databases, files,
  and printers always running.
• Every business now has High Availability needs.

   Uptime Percentage   Maximum downtime per year
        99.999                 5 minutes
        99.99                 52 minutes
         99.9                  8.7 hours
          99                   3.7 days
Why is HA Important?

• Server downtime is unavoidable.
• Keep your business running and competitive.
• Servers may go offline due to:
    Maintenance
    Upgrade
      o Software or hardware
    Update
      o Hot fix, security patch
    Accident
    Power outage
    Disasters

• Start planning now!
Failover Clustering

• 2+ machines (nodes)
• Redundancy everywhere (storage, network
  interface cards [NICs], host bus adapters [HBAs],
  Microsoft Windows® Server Multipath I/O
  [MPIO], etc.)
• “Shared” storage accessible by all nodes
• 1 node will host a HA application
• Application writes data to “shared” storage
Failover Clustering

• Nodes monitor health of other nodes.
• If that node fails, health monitoring
  will cause a “failover” of the resource.
• Another node starts the application
  and reads the last saved information
  from the shared storage.
• Clients experience a slight
  interruption in service.
What is a Failover Cluster?


                        Public

                        HA Roles




                        Shared
                        Storage
Software Requirements

• Failover Clustering is an in-box feature:
    Windows Server® 2008 Datacenter and Windows Server
      2008 R2 Datacenter
    Windows Server 2008 Enterprise and Windows Server 2008
      R2 Enterprise
    Windows Server 2008 Enterprise and Windows Server 2008
      R2 Enterprise for IA-64
    Windows Server 2008 R2 Hyper-V ™ technology
    Windows Unified Data Storage Server
• Architecture:
    x64: up to 16 nodes
    x86: up to 8 nodes (not in R2)
    IA64: up to 8 nodes
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
Building Your Cluster

• 2 or more computers (nodes)
• 2 NICs and dedicated storage adapter
   3rd NIC for iSCSI
   HBA
• 3 Networks
   Public
   Private (heartbeat)
   Storage / iSCSI
• Shared storage
                                •HA Roles


• Operating system, service,
   or application
Mix And Match Hardware

• You can use any hardware configuration if
      It passes Validate.
      Each component has a “Certified for Windows Server
       2008/R2” logo (servers, storage, HBAs, MPIO, device-
       specific modules [DSMs], etc.).
• It’s that simple!
    Connect your Windows Server 2008 or Windows
     Server 2008 R2 logo’d hardware.
    Pass every test in Validate (It is now supported!).
    If you make a change, just re-run Validate.
• Details: http://go.microsoft.com/fwlink/?LinkID=119949
Clustering Storage

    Windows Server 2008 and Windows Server
               2008 R2 Supported
                Shared Bus Types:
• SCSI-3 SPC-3 compliant SCSI Commands
• Persistent Reservations (PRs)
• Parallel-SCSI deprecated in 2008
• Multipath I/O (MPIO) recommended
• Basic GPT and MBR disks supported

           Fibre Channel             iSCSI   SAS
Networking

• Key clustering component
    Public network – clients
    Private network – cluster communication
    Storage network – nodes access “shared” storage
• Multiple networks for added redundancy
• IPv4/IPv6
• DHCP or static IP addresses
• Nodes can reside in different subnets
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
Software Configuration

1. Install Windows Server 2008 R2.
2. Install Failover Clustering feature on each node
   (If necessary, install other roles/features for
   server).
3. Open the Failover Cluster Management.
4. Run Validate a Cluster Configuration.
5. To configure your cluster, run Create a Cluster
   Wizard.
6. Make your applications highly available.
Validating a Cluster

• For Microsoft support, cluster must pass the built-in
  Validate a Cluster Configuration (Validate) test

• Run during configuration and/or after deployment (Best
  practices analyzed if run on configured cluster)

• Series of end-to-end tests on all cluster components
    Configuration information for support and
     documentation
    Networking issues
    Troubleshoot in-production clusters

• More information
  http://go.microsoft.com/fwlink/?LinkID=119949
demonstration
Failover Clustering
    Validation and Creation
1.   Configure hardware and storage.
2.   Install Failover Clustering feature on all nodes.
3.   Run Validate a Configuration Wizard.
4.   Run Create Cluster Wizard.
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
HA Roles and Features

• Common                    • Other
    Exchange                    DFS-Namespace
    File Server
                                 DFS-Replication (R2)
    Hyper-V
                                 DHCP
    Print
    SQL                         DTC
                                 iSNS
• Generic Containers             MSMQ
    Generic Application         NFS
    Generic Script              Remote Desktop (R2)
    Generic Service             WINS
                                 Other Server
• 3rd Party
    Many different roles
demonstration
Highly Available Resources
1. Install the feature/role on all nodes.
2. Configure workload for High Availability.
3. Configure application or virtual machine.
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
What is Virtualization?

• Create a virtual operating system on a physical machine
  (Hyper-V requires special hardware with hypervisor).
• Allow multiple operating systems and non-compatible
  applications to exist on the same physical hardware.
• Virtual machines (VMs) have resources dedicated to
  them such as disks, memory, processors, and networks.
The Virtual Data Center Vision

• Virtualize your workloads
• Consolidate servers
• Reduce costs
       Space/facilities
       Cooling
       Physical hardware
       Maintenance
•   Easier management
•   HW flexibility
•   Quicker installations/deployments
•   Legacy operating systems/applications
The HA Virtual Data Center


 1 x 2-Node Cluster | 8 VMs | 1 Role / VM




                     Cluster
Hyper-V "Host" Clustering

•   Cluster physical machines (hosts).
•   The VMs are HA and can recover from crashes.
•   The VM fails over between host machines.
•   Most common configuration.

                          VMs




                 Physical “Host” Cluster
Hyper-V "Guest" Clustering

• The VMs are clustered (guests).
• The application within the VM is HA.
• Recovers from guest operating system
  crashes.        VMs        VMs   Virtual “Guest”
                                       Clusters




Standalone host 1                       Standalone host 2
Hyper-V "Hybrid" Clustering

• Cluster the “hosts” and cluster the “guests”
• HA VMs and HA application within the VMs
                               Virtual
Physical Cluster 1            Cluster 1       Physical Cluster 2

                     VMs      VMs




                                   Virtual
                                  Cluster 2
Hyper-V Quick Migration

• Move a running VM from one host to another
  host
• Little downtime while disk ownership of the VM
  moves
• Client may be briefly disconnected
• Planned failover
• Supported in 2008 & R2
Quick Migration

                                        Client accessing VM


          Quick
          Migrate




1. Save state of VM              •SAN
                                              4. Online Cluster Resources
2. Offline VM & cluster
   resources                                  5. Start VM
3. Move VM & cluster resources                6. Client reconnects

                                 •VHD
Hyper-V Live Migration

• Move a running VM from one host to another
  host with no downtime.
• Client is not aware of the migration.
• Clients stay connected.
• Keeps TCP connection between clients and VMs
  open.
• Planned failover.
   Failover clustering still recovers VM from a disk in an unplanned failover
Live Migration


Entire VM memory copied
                                  Memory content is
                                 copied to new server
    Live Migrate




                          SAN
                                May be additional incremental data
                                    copies until data on both nodes
                                    is essentially identical
                          VHD
Live Migration

    Session state is maintained
                                                Client directed to new
    No reconnections necessary                            host
    Clients stay connected to “live” VM




                                          SAN
ARP issued to point routing devices to
     new node
Old VM deleted after success
                                          VHD
Agenda

•   High Availability
•   Hardware
•   Creating a failover cluster
•   HA workloads
•   HA virtual machines
•   Other considerations
Session Summary

• Server downtime is inevitable.
• Failover clustering keeps your applications
  running and recovers from disasters.
• Buy certified solutions or reuse hardware.
• Validate simplifies troubleshooting.
• Cluster and HA workloads are easy to create.
• Make almost anything HA.
• Multiple management options.
• VM integration and live migration support.
Want to see more?

High Availability 101 with Windows Server 2008 R2 Hyper-V
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407222&Culture=en-
    US


Failover Clustering Feature Roadmap for Windows Server 2008 R2
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407235&Culture=en-
    US


Innovating High Availability with Cluster Shared Volumes
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407238&Culture=en-
    US


Multi-Site Clustering with Windows Server 2008 Enterprise”
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407242&Culture=en-
    US
For More Information, Go to:

Cluster Team Blog: http://blogs.msdn.com/clustering/
Cluster Information Portal:
     http://www.microsoft.com/windowsserver2008/en/us/clustering-home.aspx
Clustering Technical Resources:
     http://www.microsoft.com/windowsserver2008/en/us/clustering-resources.aspx
Clustering Forum (2008):
     http://forums.technet.microsoft.com/en-US/winserverClustering/threads/
Clustering Forum (2008 R2): http://social.technet.microsoft.com/Forums/en-
       US/windowsserver2008r2highavailability/threads/
Clustering Newsgroup: https://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-
       us/default.mspx?dg=microsoft.public.windows.server.clustering
Failover Cluster Deployment Guide: http://technet.microsoft.com/en-us/library/dd197477.aspx
TechNet: Configure a Service or Application for High Availability:
     http://technet.microsoft.com/en-us/library/cc732478.aspx
TechNet: Installing Failover Clustering: http://technet.microsoft.com/en-us/library/cc772178.aspx
TechNet: Create a Failover Cluster: http://technet.microsoft.com/en-us/library/cc755009.aspx
Webcast: Build High-Availability Infrastructures with Windows Server 2008 Failover Clustering (Level
     300):
     http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032364828&EventCatego
     ry=4&culture=en-US&CountryCode=US
Q&A
Introduction to Failover Clustering with SQL
Server (Level 100)

Eduardo Castro Martinez
Arquitecto Infraestructura
ecastro@simsasys.com
twitter: edocastro

http://ecastrom.blogspot.com
http://tiny.cc/comwindows
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
    conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
                                       MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related Content

PPT
Clustering and High Availability
PDF
OPENMARU APM 브로셔
PPTX
Sql 2012 always on
PDF
Oracle RAC 19c: Best Practices and Secret Internals
PDF
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
PDF
How Netflix Tunes EC2 Instances for Performance
PPT
Step-by-Step Introduction to Apache Flink
PPT
SQL Server Cluster Presentation
Clustering and High Availability
OPENMARU APM 브로셔
Sql 2012 always on
Oracle RAC 19c: Best Practices and Secret Internals
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
How Netflix Tunes EC2 Instances for Performance
Step-by-Step Introduction to Apache Flink
SQL Server Cluster Presentation

What's hot (20)

PDF
Apache Iceberg: An Architectural Look Under the Covers
PPT
Hadoop Security Architecture
PDF
Cloud dw benchmark using tpd-ds( Snowflake vs Redshift vs EMR Hive )
PDF
Best Practices for Becoming an Exceptional Postgres DBA
 
PDF
Introduction to Apache Hive
PDF
ELK Stack
PPTX
AlwaysON Basics
PPTX
Introduction to linux containers
PPTX
Programming in Spark using PySpark
PDF
Cassandra at Instagram 2016 (Dikang Gu, Facebook) | Cassandra Summit 2016
PPTX
Apache Tez - A New Chapter in Hadoop Data Processing
PDF
Terraform
PPTX
Seamless replication and disaster recovery for Apache Hive Warehouse
PPTX
Introduction to Apache Hadoop Eco-System
PPTX
Rancher and Kubernetes Best Practices
PPTX
Apache hive introduction
PDF
hbaseconasia2019 HBCK2: Concepts, trends, and recipes for fixing issues in HB...
PPTX
Introduction to apache zoo keeper
PPS
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
PDF
Presentation oracle net services
Apache Iceberg: An Architectural Look Under the Covers
Hadoop Security Architecture
Cloud dw benchmark using tpd-ds( Snowflake vs Redshift vs EMR Hive )
Best Practices for Becoming an Exceptional Postgres DBA
 
Introduction to Apache Hive
ELK Stack
AlwaysON Basics
Introduction to linux containers
Programming in Spark using PySpark
Cassandra at Instagram 2016 (Dikang Gu, Facebook) | Cassandra Summit 2016
Apache Tez - A New Chapter in Hadoop Data Processing
Terraform
Seamless replication and disaster recovery for Apache Hive Warehouse
Introduction to Apache Hadoop Eco-System
Rancher and Kubernetes Best Practices
Apache hive introduction
hbaseconasia2019 HBCK2: Concepts, trends, and recipes for fixing issues in HB...
Introduction to apache zoo keeper
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
Presentation oracle net services
Ad

Viewers also liked (20)

PDF
Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...
PPTX
Windows server 2012 failover clustering new features
PDF
Install Linux CentOS 6 x86_64 - minimum installation
PDF
SQL Server Clustering for Dummies
PPTX
Sql server 2012 ha dr 24_hop_final
PDF
Vsphere esxi-vcenter-server-601-setup-mscs
PDF
Vsphere esxi-vcenter-server-55-setup-mscs
PPTX
MCSA 70-412 Chapter 11
PDF
Wsfc basic 130720
PDF
Ws2012フェールオーバークラスタリングdeep dive 130802
PPT
High Availability with Windows Server Clustering and Geo-Clustering
PPTX
MCSA 70-412 Chapter 10
PPTX
Windows clustering and quorum basics
PPTX
VMworld 2015: Introducing Application Self service with Networking and Security
PPTX
V mware v realize orchestrator 6.0 knowledge transfer kit
PDF
vRA7 What's New
PDF
vRA + NSX Technical Deep-Dive
PDF
Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud
PPTX
VMware Performance Troubleshooting
PDF
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...
Windows server 2012 failover clustering new features
Install Linux CentOS 6 x86_64 - minimum installation
SQL Server Clustering for Dummies
Sql server 2012 ha dr 24_hop_final
Vsphere esxi-vcenter-server-601-setup-mscs
Vsphere esxi-vcenter-server-55-setup-mscs
MCSA 70-412 Chapter 11
Wsfc basic 130720
Ws2012フェールオーバークラスタリングdeep dive 130802
High Availability with Windows Server Clustering and Geo-Clustering
MCSA 70-412 Chapter 10
Windows clustering and quorum basics
VMworld 2015: Introducing Application Self service with Networking and Security
V mware v realize orchestrator 6.0 knowledge transfer kit
vRA7 What's New
vRA + NSX Technical Deep-Dive
Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud
VMware Performance Troubleshooting
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
Ad

Similar to Introduction to failover clustering with sql server (20)

PPT
Hyper v r2 deep dive
PPSX
Win2k8 cluster kaliyan
PPTX
BITIC-27 Proyecto 3 BITIC 3 2021 Andres Labera Failover-Cluster.pptx
PPTX
Building Business Continuity Solutions With Hyper V
PPTX
Configuring and Using the New Virtualization Features in Windows Server 2012
PDF
Breda Development Meetup 2016-06-08 - High Availability
PPTX
Lecture5(VM).pptx
PPT
10215 A 11
PPTX
HostClustering_1.pptx
PPTX
Virtualization Cloud computing technology
PPTX
The Next Generation of Microsoft Virtualization With Windows Server 2012
PPTX
Hyper-V ile Yüksek Erişilebilirlik Senaryoları
PDF
Symantec Delivers 30x Faster Failover For Microsoft Environments
PDF
VMworld 2013: Virtualizing Highly Available SQL Servers
PDF
Improving Application Availability on Virtual Machines
PPTX
FAILOVER
PDF
21.10.09 Microsoft Event, Microsoft Presentation
PPTX
Data Center Management With System Center Real World Scenarios Level 200 Final
PPTX
Virtualization 2011 v1
PDF
Microsoft Hyper V Cluster Design 1st Edition Eric Siron
Hyper v r2 deep dive
Win2k8 cluster kaliyan
BITIC-27 Proyecto 3 BITIC 3 2021 Andres Labera Failover-Cluster.pptx
Building Business Continuity Solutions With Hyper V
Configuring and Using the New Virtualization Features in Windows Server 2012
Breda Development Meetup 2016-06-08 - High Availability
Lecture5(VM).pptx
10215 A 11
HostClustering_1.pptx
Virtualization Cloud computing technology
The Next Generation of Microsoft Virtualization With Windows Server 2012
Hyper-V ile Yüksek Erişilebilirlik Senaryoları
Symantec Delivers 30x Faster Failover For Microsoft Environments
VMworld 2013: Virtualizing Highly Available SQL Servers
Improving Application Availability on Virtual Machines
FAILOVER
21.10.09 Microsoft Event, Microsoft Presentation
Data Center Management With System Center Real World Scenarios Level 200 Final
Virtualization 2011 v1
Microsoft Hyper V Cluster Design 1st Edition Eric Siron

More from Eduardo Castro (20)

PPTX
Introducción a polybase en SQL Server
PPTX
Creando tu primer ambiente de AI en Azure ML y SQL Server
PPTX
Seguridad en SQL Azure
PPTX
Azure Synapse Analytics MLflow
PPTX
SQL Server 2019 con Windows Server 2022
PPTX
Novedades en SQL Server 2022
PPTX
Introduccion a SQL Server 2022
PPTX
Machine Learning con Azure Managed Instance
PPTX
Novedades en sql server 2022
PDF
Sql server 2019 con windows server 2022
PDF
Introduccion a databricks
PDF
Pronosticos con sql server
PDF
Data warehouse con azure synapse analytics
PPTX
Que hay de nuevo en el Azure Data Lake Storage Gen2
PPTX
Introduccion a Azure Synapse Analytics
PPTX
Seguridad de SQL Database en Azure
PPTX
Python dentro de SQL Server
PDF
Servicios Cognitivos de de Microsoft
TXT
Script de paso a paso de configuración de Secure Enclaves
PDF
Introducción a conceptos de SQL Server Secure Enclaves
Introducción a polybase en SQL Server
Creando tu primer ambiente de AI en Azure ML y SQL Server
Seguridad en SQL Azure
Azure Synapse Analytics MLflow
SQL Server 2019 con Windows Server 2022
Novedades en SQL Server 2022
Introduccion a SQL Server 2022
Machine Learning con Azure Managed Instance
Novedades en sql server 2022
Sql server 2019 con windows server 2022
Introduccion a databricks
Pronosticos con sql server
Data warehouse con azure synapse analytics
Que hay de nuevo en el Azure Data Lake Storage Gen2
Introduccion a Azure Synapse Analytics
Seguridad de SQL Database en Azure
Python dentro de SQL Server
Servicios Cognitivos de de Microsoft
Script de paso a paso de configuración de Secure Enclaves
Introducción a conceptos de SQL Server Secure Enclaves

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Spectroscopy.pptx food analysis technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
KodekX | Application Modernization Development
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Sensors and Actuators in IoT Systems using pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
NewMind AI Monthly Chronicles - July 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectroscopy.pptx food analysis technology
The AUB Centre for AI in Media Proposal.docx
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
MYSQL Presentation for SQL database connectivity
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
The Rise and Fall of 3GPP – Time for a Sabbatical?
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Per capita expenditure prediction using model stacking based on satellite ima...
KodekX | Application Modernization Development
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Sensors and Actuators in IoT Systems using pdf

Introduction to failover clustering with sql server

  • 1. Introduction to Failover Clustering with SQL Server (Level 100) Eduardo Castro Martinez Arquitecto Infraestructura [email protected] twitter: edocastro http://ecastrom.blogspot.com http://tiny.cc/comwindows
  • 2. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 3. What is High Availability? • The world is now a 24/7 global marketplace. • Systems must be online or customers are lost. • Goal of High Availability (HA) is to keep systems, applications, services, e-mail, databases, files, and printers always running. • Every business now has High Availability needs. Uptime Percentage Maximum downtime per year 99.999 5 minutes 99.99 52 minutes 99.9 8.7 hours 99 3.7 days
  • 4. Why is HA Important? • Server downtime is unavoidable. • Keep your business running and competitive. • Servers may go offline due to:  Maintenance  Upgrade o Software or hardware  Update o Hot fix, security patch  Accident  Power outage  Disasters • Start planning now!
  • 5. Failover Clustering • 2+ machines (nodes) • Redundancy everywhere (storage, network interface cards [NICs], host bus adapters [HBAs], Microsoft Windows® Server Multipath I/O [MPIO], etc.) • “Shared” storage accessible by all nodes • 1 node will host a HA application • Application writes data to “shared” storage
  • 6. Failover Clustering • Nodes monitor health of other nodes. • If that node fails, health monitoring will cause a “failover” of the resource. • Another node starts the application and reads the last saved information from the shared storage. • Clients experience a slight interruption in service.
  • 7. What is a Failover Cluster? Public HA Roles Shared Storage
  • 8. Software Requirements • Failover Clustering is an in-box feature:  Windows Server® 2008 Datacenter and Windows Server 2008 R2 Datacenter  Windows Server 2008 Enterprise and Windows Server 2008 R2 Enterprise  Windows Server 2008 Enterprise and Windows Server 2008 R2 Enterprise for IA-64  Windows Server 2008 R2 Hyper-V ™ technology  Windows Unified Data Storage Server • Architecture:  x64: up to 16 nodes  x86: up to 8 nodes (not in R2)  IA64: up to 8 nodes
  • 9. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 10. Building Your Cluster • 2 or more computers (nodes) • 2 NICs and dedicated storage adapter  3rd NIC for iSCSI  HBA • 3 Networks  Public  Private (heartbeat)  Storage / iSCSI • Shared storage •HA Roles • Operating system, service, or application
  • 11. Mix And Match Hardware • You can use any hardware configuration if  It passes Validate.  Each component has a “Certified for Windows Server 2008/R2” logo (servers, storage, HBAs, MPIO, device- specific modules [DSMs], etc.). • It’s that simple!  Connect your Windows Server 2008 or Windows Server 2008 R2 logo’d hardware.  Pass every test in Validate (It is now supported!).  If you make a change, just re-run Validate. • Details: http://go.microsoft.com/fwlink/?LinkID=119949
  • 12. Clustering Storage Windows Server 2008 and Windows Server 2008 R2 Supported Shared Bus Types: • SCSI-3 SPC-3 compliant SCSI Commands • Persistent Reservations (PRs) • Parallel-SCSI deprecated in 2008 • Multipath I/O (MPIO) recommended • Basic GPT and MBR disks supported Fibre Channel iSCSI SAS
  • 13. Networking • Key clustering component  Public network – clients  Private network – cluster communication  Storage network – nodes access “shared” storage • Multiple networks for added redundancy • IPv4/IPv6 • DHCP or static IP addresses • Nodes can reside in different subnets
  • 14. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 15. Software Configuration 1. Install Windows Server 2008 R2. 2. Install Failover Clustering feature on each node (If necessary, install other roles/features for server). 3. Open the Failover Cluster Management. 4. Run Validate a Cluster Configuration. 5. To configure your cluster, run Create a Cluster Wizard. 6. Make your applications highly available.
  • 16. Validating a Cluster • For Microsoft support, cluster must pass the built-in Validate a Cluster Configuration (Validate) test • Run during configuration and/or after deployment (Best practices analyzed if run on configured cluster) • Series of end-to-end tests on all cluster components  Configuration information for support and documentation  Networking issues  Troubleshoot in-production clusters • More information http://go.microsoft.com/fwlink/?LinkID=119949
  • 17. demonstration Failover Clustering Validation and Creation 1. Configure hardware and storage. 2. Install Failover Clustering feature on all nodes. 3. Run Validate a Configuration Wizard. 4. Run Create Cluster Wizard.
  • 18. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 19. HA Roles and Features • Common • Other  Exchange  DFS-Namespace  File Server  DFS-Replication (R2)  Hyper-V  DHCP  Print  SQL  DTC  iSNS • Generic Containers  MSMQ  Generic Application  NFS  Generic Script  Remote Desktop (R2)  Generic Service  WINS  Other Server • 3rd Party  Many different roles
  • 20. demonstration Highly Available Resources 1. Install the feature/role on all nodes. 2. Configure workload for High Availability. 3. Configure application or virtual machine.
  • 21. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 22. What is Virtualization? • Create a virtual operating system on a physical machine (Hyper-V requires special hardware with hypervisor). • Allow multiple operating systems and non-compatible applications to exist on the same physical hardware. • Virtual machines (VMs) have resources dedicated to them such as disks, memory, processors, and networks.
  • 23. The Virtual Data Center Vision • Virtualize your workloads • Consolidate servers • Reduce costs  Space/facilities  Cooling  Physical hardware  Maintenance • Easier management • HW flexibility • Quicker installations/deployments • Legacy operating systems/applications
  • 24. The HA Virtual Data Center 1 x 2-Node Cluster | 8 VMs | 1 Role / VM Cluster
  • 25. Hyper-V "Host" Clustering • Cluster physical machines (hosts). • The VMs are HA and can recover from crashes. • The VM fails over between host machines. • Most common configuration. VMs Physical “Host” Cluster
  • 26. Hyper-V "Guest" Clustering • The VMs are clustered (guests). • The application within the VM is HA. • Recovers from guest operating system crashes. VMs VMs Virtual “Guest” Clusters Standalone host 1 Standalone host 2
  • 27. Hyper-V "Hybrid" Clustering • Cluster the “hosts” and cluster the “guests” • HA VMs and HA application within the VMs Virtual Physical Cluster 1 Cluster 1 Physical Cluster 2 VMs VMs Virtual Cluster 2
  • 28. Hyper-V Quick Migration • Move a running VM from one host to another host • Little downtime while disk ownership of the VM moves • Client may be briefly disconnected • Planned failover • Supported in 2008 & R2
  • 29. Quick Migration Client accessing VM Quick Migrate 1. Save state of VM •SAN 4. Online Cluster Resources 2. Offline VM & cluster resources 5. Start VM 3. Move VM & cluster resources 6. Client reconnects •VHD
  • 30. Hyper-V Live Migration • Move a running VM from one host to another host with no downtime. • Client is not aware of the migration. • Clients stay connected. • Keeps TCP connection between clients and VMs open. • Planned failover.  Failover clustering still recovers VM from a disk in an unplanned failover
  • 31. Live Migration Entire VM memory copied Memory content is copied to new server Live Migrate SAN May be additional incremental data copies until data on both nodes is essentially identical VHD
  • 32. Live Migration Session state is maintained Client directed to new No reconnections necessary host Clients stay connected to “live” VM SAN ARP issued to point routing devices to new node Old VM deleted after success VHD
  • 33. Agenda • High Availability • Hardware • Creating a failover cluster • HA workloads • HA virtual machines • Other considerations
  • 34. Session Summary • Server downtime is inevitable. • Failover clustering keeps your applications running and recovers from disasters. • Buy certified solutions or reuse hardware. • Validate simplifies troubleshooting. • Cluster and HA workloads are easy to create. • Make almost anything HA. • Multiple management options. • VM integration and live migration support.
  • 35. Want to see more? High Availability 101 with Windows Server 2008 R2 Hyper-V http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407222&Culture=en- US Failover Clustering Feature Roadmap for Windows Server 2008 R2 http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407235&Culture=en- US Innovating High Availability with Cluster Shared Volumes http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407238&Culture=en- US Multi-Site Clustering with Windows Server 2008 Enterprise” http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032407242&Culture=en- US
  • 36. For More Information, Go to: Cluster Team Blog: http://blogs.msdn.com/clustering/ Cluster Information Portal: http://www.microsoft.com/windowsserver2008/en/us/clustering-home.aspx Clustering Technical Resources: http://www.microsoft.com/windowsserver2008/en/us/clustering-resources.aspx Clustering Forum (2008): http://forums.technet.microsoft.com/en-US/winserverClustering/threads/ Clustering Forum (2008 R2): http://social.technet.microsoft.com/Forums/en- US/windowsserver2008r2highavailability/threads/ Clustering Newsgroup: https://www.microsoft.com/technet/community/newsgroups/dgbrowser/en- us/default.mspx?dg=microsoft.public.windows.server.clustering Failover Cluster Deployment Guide: http://technet.microsoft.com/en-us/library/dd197477.aspx TechNet: Configure a Service or Application for High Availability: http://technet.microsoft.com/en-us/library/cc732478.aspx TechNet: Installing Failover Clustering: http://technet.microsoft.com/en-us/library/cc772178.aspx TechNet: Create a Failover Cluster: http://technet.microsoft.com/en-us/library/cc755009.aspx Webcast: Build High-Availability Infrastructures with Windows Server 2008 Failover Clustering (Level 300): http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032364828&EventCatego ry=4&culture=en-US&CountryCode=US
  • 37. Q&A
  • 38. Introduction to Failover Clustering with SQL Server (Level 100) Eduardo Castro Martinez Arquitecto Infraestructura [email protected] twitter: edocastro http://ecastrom.blogspot.com http://tiny.cc/comwindows
  • 39. © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.