SlideShare une entreprise Scribd logo
1  sur  39
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.

Contenu connexe

Tendances

ZFS
ZFSZFS
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
DataWorks Summit
 

Tendances (20)

SQL Server High Availability and Disaster Recovery
SQL Server High Availability and Disaster RecoverySQL Server High Availability and Disaster Recovery
SQL Server High Availability and Disaster Recovery
 
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
 
Failover cluster
Failover clusterFailover cluster
Failover cluster
 
Storage overview
Storage overviewStorage overview
Storage overview
 
ZFS
ZFSZFS
ZFS
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1
 
Deep Dive: a technical insider's view of NetBackup 8.1 and NetBackup Appliances
Deep Dive: a technical insider's view of NetBackup 8.1 and NetBackup AppliancesDeep Dive: a technical insider's view of NetBackup 8.1 and NetBackup Appliances
Deep Dive: a technical insider's view of NetBackup 8.1 and NetBackup Appliances
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
Checklist_AC.pdf
Checklist_AC.pdfChecklist_AC.pdf
Checklist_AC.pdf
 
Réplication de base de données oracle avec Golden Gate
Réplication de base de données oracle avec Golden GateRéplication de base de données oracle avec Golden Gate
Réplication de base de données oracle avec Golden Gate
 
Rapid Home Provisioning
Rapid Home ProvisioningRapid Home Provisioning
Rapid Home Provisioning
 
今さら聞けない!Windows server 2012 r2 hyper v入門
今さら聞けない!Windows server 2012 r2 hyper v入門今さら聞けない!Windows server 2012 r2 hyper v入門
今さら聞けない!Windows server 2012 r2 hyper v入門
 
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
 
Make Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMake Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For It
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
SQL Server Clustering Part1
SQL Server Clustering Part1SQL Server Clustering Part1
SQL Server Clustering Part1
 
CloudStack Architecture
CloudStack ArchitectureCloudStack Architecture
CloudStack Architecture
 
Storage Basics
Storage BasicsStorage Basics
Storage Basics
 

En vedette

Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new features
Joseph D'Antoni
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
Mark Broadbent
 
Vsphere esxi-vcenter-server-55-setup-mscs
Vsphere esxi-vcenter-server-55-setup-mscsVsphere esxi-vcenter-server-55-setup-mscs
Vsphere esxi-vcenter-server-55-setup-mscs
Dhymas Mahendra
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
glbsolutions
 

En vedette (20)

Clustering and High Availability
Clustering and High Availability Clustering and High Availability
Clustering and High Availability
 
Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...
Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...
Critical SQL Server Databases: Provide HA with SQL Server Failover Clustering...
 
Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new features
 
Install Linux CentOS 6 x86_64 - minimum installation
Install Linux CentOS 6 x86_64 - minimum installationInstall Linux CentOS 6 x86_64 - minimum installation
Install Linux CentOS 6 x86_64 - minimum installation
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
 
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
 
Vsphere esxi-vcenter-server-601-setup-mscs
Vsphere esxi-vcenter-server-601-setup-mscsVsphere esxi-vcenter-server-601-setup-mscs
Vsphere esxi-vcenter-server-601-setup-mscs
 
Vsphere esxi-vcenter-server-55-setup-mscs
Vsphere esxi-vcenter-server-55-setup-mscsVsphere esxi-vcenter-server-55-setup-mscs
Vsphere esxi-vcenter-server-55-setup-mscs
 
MCSA 70-412 Chapter 11
MCSA 70-412 Chapter 11MCSA 70-412 Chapter 11
MCSA 70-412 Chapter 11
 
Wsfc basic 130720
Wsfc basic 130720Wsfc basic 130720
Wsfc basic 130720
 
Ws2012フェールオーバークラスタリングdeep dive 130802
Ws2012フェールオーバークラスタリングdeep dive 130802Ws2012フェールオーバークラスタリングdeep dive 130802
Ws2012フェールオーバークラスタリングdeep dive 130802
 
High Availability with Windows Server Clustering and Geo-Clustering
High Availability with Windows Server Clustering and Geo-ClusteringHigh Availability with Windows Server Clustering and Geo-Clustering
High Availability with Windows Server Clustering and Geo-Clustering
 
MCSA 70-412 Chapter 10
MCSA 70-412 Chapter 10MCSA 70-412 Chapter 10
MCSA 70-412 Chapter 10
 
Windows clustering and quorum basics
Windows clustering and quorum basicsWindows clustering and quorum basics
Windows clustering and quorum basics
 
VMworld 2015: Introducing Application Self service with Networking and Security
VMworld 2015: Introducing Application Self service with Networking and SecurityVMworld 2015: Introducing Application Self service with Networking and Security
VMworld 2015: Introducing Application Self service with Networking and Security
 
V mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kitV mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kit
 
vRA7 What's New
vRA7 What's NewvRA7 What's New
vRA7 What's New
 
vRA + NSX Technical Deep-Dive
vRA + NSX Technical Deep-DivevRA + NSX Technical Deep-Dive
vRA + NSX Technical Deep-Dive
 
Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud
Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud
Introducing VMware vRealize Suite - Purpose Built for the Hybrid Cloud
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
 

Similaire à Introduction to failover clustering with sql server

The Next Generation of Microsoft Virtualization With Windows Server 2012
The Next Generation of Microsoft Virtualization With Windows Server 2012The Next Generation of Microsoft Virtualization With Windows Server 2012
The Next Generation of Microsoft Virtualization With Windows Server 2012
Lai Yoong Seng
 
Building Business Continuity Solutions With Hyper V
Building Business Continuity Solutions With Hyper VBuilding Business Continuity Solutions With Hyper V
Building Business Continuity Solutions With Hyper V
rsnarayanan
 
Hyper-V 3.0 Overview
Hyper-V 3.0 OverviewHyper-V 3.0 Overview
Hyper-V 3.0 Overview
Tudor Damian
 
Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDive
Amit Agarwal
 

Similaire à Introduction to failover clustering with sql server (20)

Virtualizacao de Servidores - Windows
Virtualizacao de Servidores - WindowsVirtualizacao de Servidores - Windows
Virtualizacao de Servidores - Windows
 
Microsoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private CloudMicrosoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private Cloud
 
Server Virtualization using Hyper-V
Server Virtualization using Hyper-VServer Virtualization using Hyper-V
Server Virtualization using Hyper-V
 
Server 2016 sneak peek
Server 2016 sneak peekServer 2016 sneak peek
Server 2016 sneak peek
 
Simplifying Hyper-V Management for VMware Administrators
Simplifying Hyper-V Management for VMware AdministratorsSimplifying Hyper-V Management for VMware Administrators
Simplifying Hyper-V Management for VMware Administrators
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...
 
Hyper-v Best Practices
Hyper-v Best PracticesHyper-v Best Practices
Hyper-v Best Practices
 
Server virtualization 2
Server virtualization   2Server virtualization   2
Server virtualization 2
 
The Next Generation of Microsoft Virtualization With Windows Server 2012
The Next Generation of Microsoft Virtualization With Windows Server 2012The Next Generation of Microsoft Virtualization With Windows Server 2012
The Next Generation of Microsoft Virtualization With Windows Server 2012
 
OpenStack and Windows
OpenStack and WindowsOpenStack and Windows
OpenStack and Windows
 
Building Business Continuity Solutions With Hyper V
Building Business Continuity Solutions With Hyper VBuilding Business Continuity Solutions With Hyper V
Building Business Continuity Solutions With Hyper V
 
Whats new in Microsoft Windows Server 2016 Clustering and Storage
Whats new in Microsoft Windows Server 2016 Clustering and StorageWhats new in Microsoft Windows Server 2016 Clustering and Storage
Whats new in Microsoft Windows Server 2016 Clustering and Storage
 
Hyper-V 3.0 Overview
Hyper-V 3.0 OverviewHyper-V 3.0 Overview
Hyper-V 3.0 Overview
 
Tudor Damian - Hyper-V 3.0 overview
Tudor Damian - Hyper-V 3.0 overviewTudor Damian - Hyper-V 3.0 overview
Tudor Damian - Hyper-V 3.0 overview
 
Virtualization & tipping point
Virtualization & tipping pointVirtualization & tipping point
Virtualization & tipping point
 
Windows server 8 and hyper v
Windows server 8 and hyper vWindows server 8 and hyper v
Windows server 8 and hyper v
 
Hyper-V’s Virtualization Enhancements - EPC Group
Hyper-V’s Virtualization Enhancements - EPC GroupHyper-V’s Virtualization Enhancements - EPC Group
Hyper-V’s Virtualization Enhancements - EPC Group
 
Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDive
 
TechWiseTV Workshop: HyperFlex 3.0
TechWiseTV Workshop: HyperFlex 3.0TechWiseTV Workshop: HyperFlex 3.0
TechWiseTV Workshop: HyperFlex 3.0
 
Cisco HyperFlex 3.0
Cisco HyperFlex 3.0Cisco HyperFlex 3.0
Cisco HyperFlex 3.0
 

Plus de Eduardo Castro

Plus de Eduardo Castro (20)

Introducción a polybase en SQL Server
Introducción a polybase en SQL ServerIntroducción a polybase en SQL Server
Introducción a polybase en SQL Server
 
Creando tu primer ambiente de AI en Azure ML y SQL Server
Creando tu primer ambiente de AI en Azure ML y SQL ServerCreando tu primer ambiente de AI en Azure ML y SQL Server
Creando tu primer ambiente de AI en Azure ML y SQL Server
 
Seguridad en SQL Azure
Seguridad en SQL AzureSeguridad en SQL Azure
Seguridad en SQL Azure
 
Azure Synapse Analytics MLflow
Azure Synapse Analytics MLflowAzure Synapse Analytics MLflow
Azure Synapse Analytics MLflow
 
SQL Server 2019 con Windows Server 2022
SQL Server 2019 con Windows Server 2022SQL Server 2019 con Windows Server 2022
SQL Server 2019 con Windows Server 2022
 
Novedades en SQL Server 2022
Novedades en SQL Server 2022Novedades en SQL Server 2022
Novedades en SQL Server 2022
 
Introduccion a SQL Server 2022
Introduccion a SQL Server 2022Introduccion a SQL Server 2022
Introduccion a SQL Server 2022
 
Machine Learning con Azure Managed Instance
Machine Learning con Azure Managed InstanceMachine Learning con Azure Managed Instance
Machine Learning con Azure Managed Instance
 
Novedades en sql server 2022
Novedades en sql server 2022Novedades en sql server 2022
Novedades en sql server 2022
 
Sql server 2019 con windows server 2022
Sql server 2019 con windows server 2022Sql server 2019 con windows server 2022
Sql server 2019 con windows server 2022
 
Introduccion a databricks
Introduccion a databricksIntroduccion a databricks
Introduccion a databricks
 
Pronosticos con sql server
Pronosticos con sql serverPronosticos con sql server
Pronosticos con sql server
 
Data warehouse con azure synapse analytics
Data warehouse con azure synapse analyticsData warehouse con azure synapse analytics
Data warehouse con azure synapse analytics
 
Que hay de nuevo en el Azure Data Lake Storage Gen2
Que hay de nuevo en el Azure Data Lake Storage Gen2Que hay de nuevo en el Azure Data Lake Storage Gen2
Que hay de nuevo en el Azure Data Lake Storage Gen2
 
Introduccion a Azure Synapse Analytics
Introduccion a Azure Synapse AnalyticsIntroduccion a Azure Synapse Analytics
Introduccion a Azure Synapse Analytics
 
Seguridad de SQL Database en Azure
Seguridad de SQL Database en AzureSeguridad de SQL Database en Azure
Seguridad de SQL Database en Azure
 
Python dentro de SQL Server
Python dentro de SQL ServerPython dentro de SQL Server
Python dentro de SQL Server
 
Servicios Cognitivos de de Microsoft
Servicios Cognitivos de de Microsoft Servicios Cognitivos de de Microsoft
Servicios Cognitivos de de Microsoft
 
Script de paso a paso de configuración de Secure Enclaves
Script de paso a paso de configuración de Secure EnclavesScript de paso a paso de configuración de Secure Enclaves
Script de paso a paso de configuración de Secure Enclaves
 
Introducción a conceptos de SQL Server Secure Enclaves
Introducción a conceptos de SQL Server Secure EnclavesIntroducción a conceptos de SQL Server Secure Enclaves
Introducción a conceptos de SQL Server Secure Enclaves
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+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@
 

Dernier (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
+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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Introduction to failover clustering with sql server

  • 1. 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
  • 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 ecastro@simsasys.com 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.