System Center 2012 R2 sürümünün ön izleme hali çıktı. Bu sunumda System Center 2012 SP1 ve System Center 2012 R2 ile gelen yeniliklerin neler olduğu anlatılmaktadır.
Windows Server 8 ve Hyper-V 3.0 özelliklerinin anlatıldığı bu sunumda vSphere 5.0 ve Hyper-V 3.0 arasındaki farkları ve benzerlikleri de inceleyebilirsiniz.
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