SlideShare a Scribd company logo
Failover Clustering
                                SQL Server



Hakan YÜKSEL                            Mehmet GÜZEL
Sistem Yöneticisi                       Veritabanı Yöneticisi
http://yukselis.wordpress.com           http://mehmetguzel.net
Ajanda
• Windows Server 2008 R2 Failover Clustering

• SQL Server 2008 R2 Failover Clustering

• Demo

• Soru - Cevap



       Failover Clustering; Better together
Neden SQL Server Cluster ?
• Şirketinizin ne kadar kesintiye tahammülü var, uygulamarınızın kritiklik
  seviyesi nedir ?
• High Available sistemler iş kiritik uyglama ve datalarımız için PLANLI yada
  PLANSIZ kesintiler karşı iş sürekliliği sağlar.
                                Database Kesintisi

                  PLANSIZ Kesinti                                       PLANLI Kesinti


                                Kullanıcı             Manuel Failover                  Kaynak
    Fiziksel Altyapı
      Problemleri
                                /Admin                                                Kullanımı
                                                      (yama, upgrade,vb..)
                                Hataları
    Storage
     subsystem                 Application defects      Yamalama                   Kaynak
          Disk                                            Çalışmaları                 Kullanımının
                              OS Corruption
                                                                                      Optimize edilmesi
         Controller                                     Service Pack
    Network                                              Geçişleri
    Server                                              Versiyon Upgrade
    Power
Gereksinimler
• Servers:
    • Windows Server 2008 R2 Certified olmalı (http://www.windowsservercatalog.com/)
    • Tüm donanımsal ihtiyaçların Cluster Validation testinden geçebilmeleri için
      Windows 2008 R2 logolu olması gerekmektedir.

• Network Adaptörleri
   • Still need redundancy and separate paths
   • Yedekli ve MultiPath yapıda olmalı
   • Teaming Desteklenmekte
   • SQL Server 2008 does not support the multiple subnet feature of Windows Server
      2008 failover clustering (SQL Server 2012’de desteklenecek)
       • Must use traditional VLAN for a geographically dispersed cluster

• Operating System & SQL Versiyon
     •   Windows Standart Edition üzeri işletim sistemi olmalı
     •   Installing .NET Framework 3.5 SP1 on Windows Server 2008 R2
     •   SQL Server Standart ile 2 node failover cluster
     •   SQL Server Enterprise, Datacenter ile Windows 2008 R2’nin desteklediği 16 node
     •   SQL Server 2008 standalone 50 instance, MSFC üzerinde 25 Instance desteği
     •   SQL Server Standart Edition 16 instance desteği
Failover Clustering Storage Gereksinimler

•   SQL Server 2008 / R2 en az bir drive letter zorunluluğu mevcut
•   SQL Server 2008 install sırasında birden fazla driver seçilebilir.
•   Basic GPT and MBR diskler desteklenmektedir.
•   Multipath IO (MPIO) tavsiye edilir.
•   Desteklenen drive tipleri: SAS, iSCSI, Fibre; (no old parallel SCSI)
     – Storage must be SCSI-3 SPC-3 command compliant
     – Storage must support persistent reservations
Account Gereksinimleri
• Account for Failover Cluster

    • Cluster Node’lar üzerinde local admin yetkisi yeterli olacaktır, cluster
      kurulumu yapılacak ortam üzerinde Domain Admin hakkında ihtiyaç
      yoktur.
    • Kurulum yapılacak hesap için AD üzerinde Create Computer Objects ve
      Read All Properties permissionları verilmesi yeterli olacaktır.


• Account for SQL Server

    • Servis hesapları gereksinimi vardır.
    • SQL Server setup içinde domain admin yetkisine ihtiyaç yoktur.
    • SQL servis hesaplarının local admin gruplarına eklenmesine gerek
      yoktur.
SQL Server Failover Clustering Temel Bilgiler
• Windows 2008 R2 Core Edition üzerinde SQL Server 2008 failover
  desteklenmemekte. (SQL Server 2012’de desteklenmekte)
• SQL Server 2008/2008 R2 her node üzerinde setup başlatılmaldır.
• Birden fazla instance olacak ise her instance için setup nodelar üzerinde
  çalıştırılmalıdır.
• SQL Server Cluster aware bir DB
    – Looks Alive : SQL Serverın çalışır durumda olup
    olmadığı 5 sn aralıklarla kontrol edilir.

    – ISAlive : Database üzerinde “Select @@servername”
    sql komut seti 60 sn. aralıklarla çalıştırılarak database
    erişilebilir olup olmadığı kontrol edilir. master db nin
    erişlebilir olup olmadığı kontrol edilir, User Database
    kontrolu yapılmaz.
Guest Clustering
• Windows Server 2008 RTM/R2 guest OS
  tarafında desteklenmektedir.
• SQL Server 2005 or 2008/2008 R2 tarafında
  desteklenmektedir.
• VM’lerin farklı Hypervisor nodlar üzerinde
  olması tavsiye edilmektedir
  – Otherwise you have a single point of failure
Active/Passive – Active / Active Failover Clustering


 Database instance bazında yedeklilik
    tüm databaseler instance seviyesinde fail    node A                    node B
     over olur
    system databaseleri shared storege
     üzerinde bulunmakta                                   Shared Storage
                                                             system DBs
 database servisleri clustered mimaride                     user DBs
                                                             quorum
    SQL Server DBE/Agent,Analysis Services,
     MS DTC
 Automatic failover saniyeler seviyesinde        Shared storage device
 DB erişimleri SQL Server virtual IP/name          User databases
  üzerinde gerçekleşir                              System databases
 Database erişimleri pasif node                    Quorum drive
  üzerinden gerçekleştirilemez.
• Array Replication
   – HP StorageWorks Cluster Extension EVA Software
   – EMC Microsoft “Cluster Enablers” for SRDF and MirrorView
• Network Replication
   – EMC RecoverPoint/CE
• Application Replication
   – Exchange Continuous Cluster Replication (CCR)
•   Identify the ‘Health’ of both the Active Node and the Passive Node.
•   Move to the Passive Node and validate Cluster Groups and Cluster
    Resources are not associated with the Passive Failover Cluster
    Node.
•   Reboot Passive Node (I do this action as I have found it helps
    ‘identify’ problems even before a Patch is installed). Focus on the
•   Passive Node and place in ‘Paused’ State in Failover Cluster
    Management Console.
•   Patch and Reboot Passive Node.
•   Validate Passive Node Health.
•   Move Passive Node from ‘Paused’ State to ‘Active’ State.
•   Move Cluster Groups and Cluster Resources from Active Node to
    Passive Node.
•   Focus on the Passive Node (originally was Active Node) and place
    in ‘Paused’ State in Failover Cluster Management Console.
•   Reboot Passive Node.
•   Patch and Reboot Passive Node.
•   Validate Passive Node Health.
•   Move Passive Node from ‘Paused’ State to ‘Active’ State.
•   Move Cluster Groups and Cluster Resources from Active Node to
    Passive Node.
•   Validate Service Availability from Client Perspective
Failover Initiated                   3. Add the nodes
                                   4.back and Remove half (or
                                            1.
                                     Remove nodes not
                                                remove
                                        2. Upgrade the nodes
  SQL 2K8 Ins                               more) of the
                                    upgraded, upgrade,
 SQL 2K8 Ins
 SQL 2K8 Ins
 SQL 2K8 Ins         SQL 2K8 Ins    other nodes except
                                        removed nodes
Not Upgraded
Not Upgraded
Not Upgraded
Not Upgraded          Upgraded        and add back inpossible
                                             from the
                                   the one running the
                                                  owners
                                          instance




                                              Removed nodes
                                           cannot be failed over
                                           to until added back in
Anti-Virus Exclusion Listesi

• Not recommended if not needed
• If you do put it on, exclude the following:
    –   .mdf (data), .ldf (log), .ndf (additional data)
    –   .bak (default backup extension), .trn (default t-log backup extension)
    –   All directories with Analysis Services data, log, temporary files, backups
    –   Entire quorum/witness disk
    –   MSDTC directory for MSDTC disks (if used)
    –   Cluster subdirectory under %windir%


• SQL Server & anti-virus KB: http://support.microsoft.com/KB/309422
• Cluster & anti-virus KB: http://support.microsoft.com/kb/250355
Test Ortam

      DC01                                 Node01                   Node02
      Public: 172.16.1.1                   Public: 172.16.1.2       Public: 172.16.1.3
      iSCSİ: 10.1.1.1                      iSCSİ & HB : 10.1.1.2    iSCSİ & HB: 10.1.1.3




                                    Ms iSCSI
                                    Target
                                                   Quorum 200 Mb.


                                                                       Cluster Name: CLS01
                                                                       Cluster IP: 172.16.1.10
MS SQL Data 500 Mb.                                                    MSDTC Name: MSDTC01
                                                                       SQL Virt IP: 172.16.1.11
      MS SQL Log 100 Mb.                                               SQL Virt Name: SQLServer01
                                                                       SQL Virt IP: 172.16.1.12

              MS SQL Temp 100 Mb.


                      MSDTC 150 Mb.
Kurulum Süreci

• IP ayarlamaları, Interface Isimlendirmeleri, Bind Sıralaması
• Domain Kurulması, Nodların domaine dahil edilmesi
• iSCSI ayarlarının yapılması, Disklerin nodlara
  gösterilmesi,İsimlendirilmesi
• Sunucuların domaine alınması
• Failover Cluster Feature Kurulması
• Validation Testinden Geçmesi
• Cluster Kurulması
• MSDTC Servisinin Cluster içerisine dahil edilmesi
• Microsoft .Net 3.5 SP1 Kurulumu
• SQL Server Kurulumu Aktif Node
• SQL Server add node ekranı ile diğer nodlar üzerine
Sorular & Teşekkürler




Hakan YÜKSEL                    Mehmet GÜZEL
Sistem Yöneticisi               Veritabanı Yöneticisi
http://yukselis.wordpress.com   http://mehmetguzel.net
@yukselistwit                   @SQLGuzel

More Related Content

What's hot

Cp Scom
Cp ScomCp Scom
Cp Scom
ÇözümPARK
 
Hyper-V v2.0 ve SCVMM 2008 R2
Hyper-V v2.0 ve SCVMM 2008 R2 Hyper-V v2.0 ve SCVMM 2008 R2
Hyper-V v2.0 ve SCVMM 2008 R2
Mustafa
 
6.Oracle Day2009 Engin Senel V2
6.Oracle Day2009 Engin Senel V26.Oracle Day2009 Engin Senel V2
6.Oracle Day2009 Engin Senel V2Ermando
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumAnar Godjaev
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden GateAnar Godjaev
 
Windows Server 2012 Network ve File System Yenilikleri
Windows Server 2012 Network ve File System YenilikleriWindows Server 2012 Network ve File System Yenilikleri
Windows Server 2012 Network ve File System Yenilikleri
Mustafa
 
SQL Server 2012 ile Gelen Yeni Özellikler
SQL Server 2012 ile Gelen Yeni ÖzelliklerSQL Server 2012 ile Gelen Yeni Özellikler
SQL Server 2012 ile Gelen Yeni Özelliklerturgaysahtiyan
 
Windows Small Business 2011'in Yönetimi
Windows Small Business 2011'in YönetimiWindows Small Business 2011'in Yönetimi
Windows Small Business 2011'in YönetimiMustafa
 
Microsoft Hyper V Server 2008 Sunucu Sanallaştırma
Microsoft Hyper V Server 2008 Sunucu SanallaştırmaMicrosoft Hyper V Server 2008 Sunucu Sanallaştırma
Microsoft Hyper V Server 2008 Sunucu Sanallaştırma
ÇözümPARK
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin GüvenliğiAnar Godjaev
 
SCVMM 2008 R2 Self-Service Portal 2.0
SCVMM 2008 R2 Self-Service Portal 2.0 SCVMM 2008 R2 Self-Service Portal 2.0
SCVMM 2008 R2 Self-Service Portal 2.0
Mustafa
 
Microsoft Small Business Server 2008
Microsoft Small Business Server 2008Microsoft Small Business Server 2008
Microsoft Small Business Server 2008
ÇözümPARK
 
Windows Server 2008 R2 ile Gelen Yenilikler
Windows Server 2008 R2 ile Gelen YeniliklerWindows Server 2008 R2 ile Gelen Yenilikler
Windows Server 2008 R2 ile Gelen Yenilikler
Serhad MAKBULOĞLU, MBA
 
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen YeniliklerWindows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
ÇözümPARK
 

What's hot (14)

Cp Scom
Cp ScomCp Scom
Cp Scom
 
Hyper-V v2.0 ve SCVMM 2008 R2
Hyper-V v2.0 ve SCVMM 2008 R2 Hyper-V v2.0 ve SCVMM 2008 R2
Hyper-V v2.0 ve SCVMM 2008 R2
 
6.Oracle Day2009 Engin Senel V2
6.Oracle Day2009 Engin Senel V26.Oracle Day2009 Engin Senel V2
6.Oracle Day2009 Engin Senel V2
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server Kurulum
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden Gate
 
Windows Server 2012 Network ve File System Yenilikleri
Windows Server 2012 Network ve File System YenilikleriWindows Server 2012 Network ve File System Yenilikleri
Windows Server 2012 Network ve File System Yenilikleri
 
SQL Server 2012 ile Gelen Yeni Özellikler
SQL Server 2012 ile Gelen Yeni ÖzelliklerSQL Server 2012 ile Gelen Yeni Özellikler
SQL Server 2012 ile Gelen Yeni Özellikler
 
Windows Small Business 2011'in Yönetimi
Windows Small Business 2011'in YönetimiWindows Small Business 2011'in Yönetimi
Windows Small Business 2011'in Yönetimi
 
Microsoft Hyper V Server 2008 Sunucu Sanallaştırma
Microsoft Hyper V Server 2008 Sunucu SanallaştırmaMicrosoft Hyper V Server 2008 Sunucu Sanallaştırma
Microsoft Hyper V Server 2008 Sunucu Sanallaştırma
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin Güvenliği
 
SCVMM 2008 R2 Self-Service Portal 2.0
SCVMM 2008 R2 Self-Service Portal 2.0 SCVMM 2008 R2 Self-Service Portal 2.0
SCVMM 2008 R2 Self-Service Portal 2.0
 
Microsoft Small Business Server 2008
Microsoft Small Business Server 2008Microsoft Small Business Server 2008
Microsoft Small Business Server 2008
 
Windows Server 2008 R2 ile Gelen Yenilikler
Windows Server 2008 R2 ile Gelen YeniliklerWindows Server 2008 R2 ile Gelen Yenilikler
Windows Server 2008 R2 ile Gelen Yenilikler
 
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen YeniliklerWindows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
Windows Server 2008 R2 Üzerinde Hyper-V ile Gelen Yenilikler
 

Similar to Failover Clustering Sql Server

Microsoft Small Business Server 2008
Microsoft Small Business Server 2008Microsoft Small Business Server 2008
Microsoft Small Business Server 2008
ÇözümPARK
 
vSphere Integrated Containers
vSphere Integrated ContainersvSphere Integrated Containers
vSphere Integrated Containers
Vahric Muhtaryan
 
Oracle Weblogic Server
Oracle Weblogic ServerOracle Weblogic Server
Oracle Weblogic Server
Dilaver Demirel
 
Windows Server 2012 Network ve Dosya Sistemi Yenilikleri
Windows Server 2012 Network ve Dosya Sistemi YenilikleriWindows Server 2012 Network ve Dosya Sistemi Yenilikleri
Windows Server 2012 Network ve Dosya Sistemi YenilikleriMSHOWTO Bilisim Toplulugu
 
İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19
Cihan Özhan
 
Mobil Cihaz Uygulamalarında Sql Server Ce Kullanımı
Mobil Cihaz Uygulamalarında Sql Server Ce KullanımıMobil Cihaz Uygulamalarında Sql Server Ce Kullanımı
Mobil Cihaz Uygulamalarında Sql Server Ce Kullanımıekinozcicekciler
 
Microsoft Active Directory'deki En Aktif Saldirilar
Microsoft Active Directory'deki En Aktif SaldirilarMicrosoft Active Directory'deki En Aktif Saldirilar
Microsoft Active Directory'deki En Aktif Saldirilar
Adeo Security
 
Weblogic performance tips&tricks
Weblogic performance tips&tricksWeblogic performance tips&tricks
Weblogic performance tips&tricks
Zekeriya Besiroglu
 
System Center 2012 SP1 ve R2 Yenilikleri
System Center 2012 SP1 ve R2 YenilikleriSystem Center 2012 SP1 ve R2 Yenilikleri
System Center 2012 SP1 ve R2 YenilikleriMustafa
 
Azure Sanal Makineler
Azure Sanal MakinelerAzure Sanal Makineler
Azure Sanal Makineler
Mustafa
 
Hyper V Sunum
Hyper V SunumHyper V Sunum
Hyper V Sunum
ÇözümPARK
 
Solarwinds SAM ve Patch Manager
Solarwinds SAM ve Patch ManagerSolarwinds SAM ve Patch Manager
Solarwinds SAM ve Patch Manager
Kavi International
 
System Center 2012 R2 ile Gelen Yenilikler
System Center 2012 R2 ile Gelen YeniliklerSystem Center 2012 R2 ile Gelen Yenilikler
System Center 2012 R2 ile Gelen Yenilikler
Mustafa
 
Exchange Server 2007 Cluster
Exchange Server 2007 ClusterExchange Server 2007 Cluster
Exchange Server 2007 Cluster
ÇözümPARK
 
Windows Server 8 ve System Center 2012
Windows Server 8 ve System Center 2012Windows Server 8 ve System Center 2012
Windows Server 8 ve System Center 2012
Ertan GULEN
 

Similar to Failover Clustering Sql Server (20)

Hyper-V 2.0 ve SCVMM 2008 R2
Hyper-V 2.0 ve SCVMM 2008 R2Hyper-V 2.0 ve SCVMM 2008 R2
Hyper-V 2.0 ve SCVMM 2008 R2
 
Microsoft Small Business Server 2008
Microsoft Small Business Server 2008Microsoft Small Business Server 2008
Microsoft Small Business Server 2008
 
vSphere Integrated Containers
vSphere Integrated ContainersvSphere Integrated Containers
vSphere Integrated Containers
 
Oracle Weblogic Server
Oracle Weblogic ServerOracle Weblogic Server
Oracle Weblogic Server
 
SBS 2011 Yönetimi
SBS 2011 YönetimiSBS 2011 Yönetimi
SBS 2011 Yönetimi
 
Windows Server 2012 Network ve Dosya Sistemi Yenilikleri
Windows Server 2012 Network ve Dosya Sistemi YenilikleriWindows Server 2012 Network ve Dosya Sistemi Yenilikleri
Windows Server 2012 Network ve Dosya Sistemi Yenilikleri
 
İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19
 
Mobil Cihaz Uygulamalarında Sql Server Ce Kullanımı
Mobil Cihaz Uygulamalarında Sql Server Ce KullanımıMobil Cihaz Uygulamalarında Sql Server Ce Kullanımı
Mobil Cihaz Uygulamalarında Sql Server Ce Kullanımı
 
Microsoft Active Directory'deki En Aktif Saldirilar
Microsoft Active Directory'deki En Aktif SaldirilarMicrosoft Active Directory'deki En Aktif Saldirilar
Microsoft Active Directory'deki En Aktif Saldirilar
 
SCOM 2007 R2 ile SBS 2011 Monitoring
SCOM 2007 R2 ile SBS 2011 MonitoringSCOM 2007 R2 ile SBS 2011 Monitoring
SCOM 2007 R2 ile SBS 2011 Monitoring
 
Weblogic performance tips&tricks
Weblogic performance tips&tricksWeblogic performance tips&tricks
Weblogic performance tips&tricks
 
System Center 2012 SP1 ve R2 Yenilikleri
System Center 2012 SP1 ve R2 YenilikleriSystem Center 2012 SP1 ve R2 Yenilikleri
System Center 2012 SP1 ve R2 Yenilikleri
 
Azure Sanal Makineler
Azure Sanal MakinelerAzure Sanal Makineler
Azure Sanal Makineler
 
Hyper V Sunum
Hyper V SunumHyper V Sunum
Hyper V Sunum
 
Solarwinds SAM ve Patch Manager
Solarwinds SAM ve Patch ManagerSolarwinds SAM ve Patch Manager
Solarwinds SAM ve Patch Manager
 
System Center 2012 R2 ile Gelen Yenilikler
System Center 2012 R2 ile Gelen YeniliklerSystem Center 2012 R2 ile Gelen Yenilikler
System Center 2012 R2 ile Gelen Yenilikler
 
Exchange Server 2007 Cluster
Exchange Server 2007 ClusterExchange Server 2007 Cluster
Exchange Server 2007 Cluster
 
Faruk W2008 1 Site
Faruk W2008 1 SiteFaruk W2008 1 Site
Faruk W2008 1 Site
 
Windows Server 8 ve System Center 2012
Windows Server 8 ve System Center 2012Windows Server 8 ve System Center 2012
Windows Server 8 ve System Center 2012
 
EF Flas Array
EF Flas ArrayEF Flas Array
EF Flas Array
 

More from Hakan Yüksel

Enterprise Security and Cyber Security Cases
Enterprise Security and Cyber Security CasesEnterprise Security and Cyber Security Cases
Enterprise Security and Cyber Security Cases
Hakan Yüksel
 
DevOps
DevOps DevOps
DevOps
Hakan Yüksel
 
TOGAFcertificate_90354
TOGAFcertificate_90354TOGAFcertificate_90354
TOGAFcertificate_90354Hakan Yüksel
 
ITILCertificate.AXELOS
ITILCertificate.AXELOSITILCertificate.AXELOS
ITILCertificate.AXELOSHakan Yüksel
 
Sosyal Medya Marka Yönetimi
Sosyal Medya Marka YönetimiSosyal Medya Marka Yönetimi
Sosyal Medya Marka YönetimiHakan Yüksel
 
İş Sürekliliği
İş Sürekliliğiİş Sürekliliği
İş Sürekliliği
Hakan Yüksel
 
Bulut Bilişim El Kitabı
Bulut Bilişim El KitabıBulut Bilişim El Kitabı
Bulut Bilişim El KitabıHakan Yüksel
 
Dell Tarzı / Dell Way
Dell Tarzı / Dell WayDell Tarzı / Dell Way
Dell Tarzı / Dell WayHakan Yüksel
 
WebCast - Remote Desktop Services
WebCast - Remote Desktop ServicesWebCast - Remote Desktop Services
WebCast - Remote Desktop Services
Hakan Yüksel
 

More from Hakan Yüksel (10)

Enterprise Security and Cyber Security Cases
Enterprise Security and Cyber Security CasesEnterprise Security and Cyber Security Cases
Enterprise Security and Cyber Security Cases
 
DevOps
DevOps DevOps
DevOps
 
PSM I
PSM IPSM I
PSM I
 
TOGAFcertificate_90354
TOGAFcertificate_90354TOGAFcertificate_90354
TOGAFcertificate_90354
 
ITILCertificate.AXELOS
ITILCertificate.AXELOSITILCertificate.AXELOS
ITILCertificate.AXELOS
 
Sosyal Medya Marka Yönetimi
Sosyal Medya Marka YönetimiSosyal Medya Marka Yönetimi
Sosyal Medya Marka Yönetimi
 
İş Sürekliliği
İş Sürekliliğiİş Sürekliliği
İş Sürekliliği
 
Bulut Bilişim El Kitabı
Bulut Bilişim El KitabıBulut Bilişim El Kitabı
Bulut Bilişim El Kitabı
 
Dell Tarzı / Dell Way
Dell Tarzı / Dell WayDell Tarzı / Dell Way
Dell Tarzı / Dell Way
 
WebCast - Remote Desktop Services
WebCast - Remote Desktop ServicesWebCast - Remote Desktop Services
WebCast - Remote Desktop Services
 

Failover Clustering Sql Server

  • 1. Failover Clustering SQL Server Hakan YÜKSEL Mehmet GÜZEL Sistem Yöneticisi Veritabanı Yöneticisi http://yukselis.wordpress.com http://mehmetguzel.net
  • 2. Ajanda • Windows Server 2008 R2 Failover Clustering • SQL Server 2008 R2 Failover Clustering • Demo • Soru - Cevap Failover Clustering; Better together
  • 3. Neden SQL Server Cluster ? • Şirketinizin ne kadar kesintiye tahammülü var, uygulamarınızın kritiklik seviyesi nedir ? • High Available sistemler iş kiritik uyglama ve datalarımız için PLANLI yada PLANSIZ kesintiler karşı iş sürekliliği sağlar. Database Kesintisi PLANSIZ Kesinti PLANLI Kesinti Kullanıcı Manuel Failover Kaynak Fiziksel Altyapı Problemleri /Admin Kullanımı (yama, upgrade,vb..) Hataları  Storage subsystem  Application defects  Yamalama  Kaynak Disk Çalışmaları Kullanımının   OS Corruption Optimize edilmesi  Controller  Service Pack  Network Geçişleri  Server  Versiyon Upgrade  Power
  • 4. Gereksinimler • Servers: • Windows Server 2008 R2 Certified olmalı (http://www.windowsservercatalog.com/) • Tüm donanımsal ihtiyaçların Cluster Validation testinden geçebilmeleri için Windows 2008 R2 logolu olması gerekmektedir. • Network Adaptörleri • Still need redundancy and separate paths • Yedekli ve MultiPath yapıda olmalı • Teaming Desteklenmekte • SQL Server 2008 does not support the multiple subnet feature of Windows Server 2008 failover clustering (SQL Server 2012’de desteklenecek) • Must use traditional VLAN for a geographically dispersed cluster • Operating System & SQL Versiyon • Windows Standart Edition üzeri işletim sistemi olmalı • Installing .NET Framework 3.5 SP1 on Windows Server 2008 R2 • SQL Server Standart ile 2 node failover cluster • SQL Server Enterprise, Datacenter ile Windows 2008 R2’nin desteklediği 16 node • SQL Server 2008 standalone 50 instance, MSFC üzerinde 25 Instance desteği • SQL Server Standart Edition 16 instance desteği
  • 5. Failover Clustering Storage Gereksinimler • SQL Server 2008 / R2 en az bir drive letter zorunluluğu mevcut • SQL Server 2008 install sırasında birden fazla driver seçilebilir. • Basic GPT and MBR diskler desteklenmektedir. • Multipath IO (MPIO) tavsiye edilir. • Desteklenen drive tipleri: SAS, iSCSI, Fibre; (no old parallel SCSI) – Storage must be SCSI-3 SPC-3 command compliant – Storage must support persistent reservations
  • 6. Account Gereksinimleri • Account for Failover Cluster • Cluster Node’lar üzerinde local admin yetkisi yeterli olacaktır, cluster kurulumu yapılacak ortam üzerinde Domain Admin hakkında ihtiyaç yoktur. • Kurulum yapılacak hesap için AD üzerinde Create Computer Objects ve Read All Properties permissionları verilmesi yeterli olacaktır. • Account for SQL Server • Servis hesapları gereksinimi vardır. • SQL Server setup içinde domain admin yetkisine ihtiyaç yoktur. • SQL servis hesaplarının local admin gruplarına eklenmesine gerek yoktur.
  • 7. SQL Server Failover Clustering Temel Bilgiler • Windows 2008 R2 Core Edition üzerinde SQL Server 2008 failover desteklenmemekte. (SQL Server 2012’de desteklenmekte) • SQL Server 2008/2008 R2 her node üzerinde setup başlatılmaldır. • Birden fazla instance olacak ise her instance için setup nodelar üzerinde çalıştırılmalıdır. • SQL Server Cluster aware bir DB – Looks Alive : SQL Serverın çalışır durumda olup olmadığı 5 sn aralıklarla kontrol edilir. – ISAlive : Database üzerinde “Select @@servername” sql komut seti 60 sn. aralıklarla çalıştırılarak database erişilebilir olup olmadığı kontrol edilir. master db nin erişlebilir olup olmadığı kontrol edilir, User Database kontrolu yapılmaz.
  • 8. Guest Clustering • Windows Server 2008 RTM/R2 guest OS tarafında desteklenmektedir. • SQL Server 2005 or 2008/2008 R2 tarafında desteklenmektedir. • VM’lerin farklı Hypervisor nodlar üzerinde olması tavsiye edilmektedir – Otherwise you have a single point of failure
  • 9. Active/Passive – Active / Active Failover Clustering  Database instance bazında yedeklilik  tüm databaseler instance seviyesinde fail node A node B over olur  system databaseleri shared storege üzerinde bulunmakta Shared Storage system DBs  database servisleri clustered mimaride user DBs quorum  SQL Server DBE/Agent,Analysis Services, MS DTC  Automatic failover saniyeler seviyesinde  Shared storage device  DB erişimleri SQL Server virtual IP/name  User databases üzerinde gerçekleşir  System databases  Database erişimleri pasif node  Quorum drive üzerinden gerçekleştirilemez.
  • 10. • Array Replication – HP StorageWorks Cluster Extension EVA Software – EMC Microsoft “Cluster Enablers” for SRDF and MirrorView • Network Replication – EMC RecoverPoint/CE • Application Replication – Exchange Continuous Cluster Replication (CCR)
  • 11. Identify the ‘Health’ of both the Active Node and the Passive Node. • Move to the Passive Node and validate Cluster Groups and Cluster Resources are not associated with the Passive Failover Cluster Node. • Reboot Passive Node (I do this action as I have found it helps ‘identify’ problems even before a Patch is installed). Focus on the • Passive Node and place in ‘Paused’ State in Failover Cluster Management Console. • Patch and Reboot Passive Node. • Validate Passive Node Health. • Move Passive Node from ‘Paused’ State to ‘Active’ State. • Move Cluster Groups and Cluster Resources from Active Node to Passive Node. • Focus on the Passive Node (originally was Active Node) and place in ‘Paused’ State in Failover Cluster Management Console. • Reboot Passive Node. • Patch and Reboot Passive Node. • Validate Passive Node Health. • Move Passive Node from ‘Paused’ State to ‘Active’ State. • Move Cluster Groups and Cluster Resources from Active Node to Passive Node. • Validate Service Availability from Client Perspective
  • 12. Failover Initiated 3. Add the nodes 4.back and Remove half (or 1. Remove nodes not remove 2. Upgrade the nodes SQL 2K8 Ins more) of the upgraded, upgrade, SQL 2K8 Ins SQL 2K8 Ins SQL 2K8 Ins SQL 2K8 Ins other nodes except removed nodes Not Upgraded Not Upgraded Not Upgraded Not Upgraded Upgraded and add back inpossible from the the one running the owners instance Removed nodes cannot be failed over to until added back in
  • 13. Anti-Virus Exclusion Listesi • Not recommended if not needed • If you do put it on, exclude the following: – .mdf (data), .ldf (log), .ndf (additional data) – .bak (default backup extension), .trn (default t-log backup extension) – All directories with Analysis Services data, log, temporary files, backups – Entire quorum/witness disk – MSDTC directory for MSDTC disks (if used) – Cluster subdirectory under %windir% • SQL Server & anti-virus KB: http://support.microsoft.com/KB/309422 • Cluster & anti-virus KB: http://support.microsoft.com/kb/250355
  • 14. Test Ortam DC01 Node01 Node02 Public: 172.16.1.1 Public: 172.16.1.2 Public: 172.16.1.3 iSCSİ: 10.1.1.1 iSCSİ & HB : 10.1.1.2 iSCSİ & HB: 10.1.1.3 Ms iSCSI Target Quorum 200 Mb. Cluster Name: CLS01 Cluster IP: 172.16.1.10 MS SQL Data 500 Mb. MSDTC Name: MSDTC01 SQL Virt IP: 172.16.1.11 MS SQL Log 100 Mb. SQL Virt Name: SQLServer01 SQL Virt IP: 172.16.1.12 MS SQL Temp 100 Mb. MSDTC 150 Mb.
  • 15. Kurulum Süreci • IP ayarlamaları, Interface Isimlendirmeleri, Bind Sıralaması • Domain Kurulması, Nodların domaine dahil edilmesi • iSCSI ayarlarının yapılması, Disklerin nodlara gösterilmesi,İsimlendirilmesi • Sunucuların domaine alınması • Failover Cluster Feature Kurulması • Validation Testinden Geçmesi • Cluster Kurulması • MSDTC Servisinin Cluster içerisine dahil edilmesi • Microsoft .Net 3.5 SP1 Kurulumu • SQL Server Kurulumu Aktif Node • SQL Server add node ekranı ile diğer nodlar üzerine
  • 16. Sorular & Teşekkürler Hakan YÜKSEL Mehmet GÜZEL Sistem Yöneticisi Veritabanı Yöneticisi http://yukselis.wordpress.com http://mehmetguzel.net @yukselistwit @SQLGuzel