8. Soru – CevapCluster Nedir, Niçin KullanıyoruzCluster birden fazla sunucununun kümelenerek tek bir sunucu gibi davranmasıdır. Bu şekilde yüksek erişilebilirlik ,yedeklilik sağlanmış olmaktadır. Bu ortamda sunucular tarafından kullanılan veriyi ortak bir disk alanında saklamak ve bu ortak diske aynı anda cluster sisteminin yalnızca bir üyesinin erişimini sağlanması şeklinde çalışmaktadır.High Availability HA Cluster üzerinde host ettiğimiz servis ve uygulamarın daimi ayakta olmasını garanti altına almak için kullanıyoruz. Clusters improve manageability by: Disaster recovery: Clusters help recover applications in case of a failure ü Update management: Clusters enable applications to continue to be available when updates are applied to applications or the node operating system ü
10. Failover Nedir?Cluster üzerinde host edilen grup ve resourceların bir node üzerinde diğerine taşınması durumudurHerhangi sebepten aktif olan nodun inaktif duruma geçmesi
11. Grup yada grup içerisindeki resourceların fail, offline duruma geçmesi
12. Administrator tarafından manuel yapılan müdahale ile Failover durumu yaşanan durumlarda aşağıdaki kaynaklardan birinde problem olduğu varsayılır;Node,Interface, Group,Resource,Disk
13. Cluster FailoverSQL fails overand is available to clientsClient PCsFailure Occurs!Node ANode BSQLHeartbeatPassive NodeSQLDisk cabinet ADisk cabinet BSCSIReserveBrokenNew Reservation Established
14. Quorum ve Majority Node SetQuorum cluster konfigürasyom ve durum bilgisinin olduğu alan.
15. Majority Node Set MNS demokratik bir sistemdir. Quorum da sadece bir oy var ise ve buna sahiplenen cluster a sahiplenebiliyorsa, MNS de çoğunluk clustera sahiplenir. Mesela 5 nodelu cluster da split brain senaryosu yaşanırsa her node toplam kaç node ila haberleşebildiğine bakar. Bir node iki node ile haberleşebiliyorsa, 3 node 5 nodedan çoğunluğu oluşturur ve cluster sahiplenir. Diğer iki node azınlıkta olduklarını anlar ve diğer 3 node un haberleşebildiğini varsayarlar.
16. Windows Server 2008 ile yeni bir Quorum modelimiz de var (Node and Disk Majority), bu sefer Quorum diskin kullanımı biraz farklı oluyor: Quorumu node sayısı ile beraber bir oy hakkı olarak kullanıyoruz..
20. 4 Quorum TypesNode majorityNode and File Share majorityDisk only (not recommended)Node and Disk majorityVoteVoteVoteVoteVote
21. Quorum Model SummaryNo Majority: Disk OnlyNote RecommendedOnly use as directed by vendorNode and Disk MajorityOnly use as directed by vendorNode MajorityOdd number of nodesNode and File Share MajorityBest availability solutionRecommended forExchange Server 2007 CCR
22. Quorum Modelini SeçmeConsiderations for choosing a quorum mode include: By default, failover clustering chooses: - Node Majority if there are an odd number of nodes in the cluster - Node and Disk Majority if there are an even number of nodes in the cluster Node and File Share Majority is recommended for geographically dispersed clusters
23. No Majority: Disk Only is not recommended, because of the disk subsystem’s single point of failure
24. Plan changes to the quorum mode carefully to avoid a mode that may result in loss of quorumWindows Server 2008 R2 ile Gelen ÖzelliklerValidation processinde yapılan iyileştirmelerWindows Server 2008 R2 includes a Best Practices Analyzer (BPA) for all major server roles, including Failover Clustering. This analyzer examines the best practices configuration settings for a cluster and cluster nodes.Gelişmiş Cluster Node Hata ToleransıBecause of the architecture of CSV, there is improved cluster node connectivity fault tolerance that directly affects VMs running on the cluster. The CSV architecture implements a mechanism, known as dynamic I/O redirection, where I/O can be rerouted within the failover cluster based on connection availabilityThe addition of a Windows PowerShell interface.Additional options for migrating settings from one cluster to another.Administrators can migrate cluster workloads currently running on Windows Server 2003 and Windows Server 2008 to Windows Server 2008 R2.
25. Cluster GereksinimleriReview hardware and infrastructure requirements for a failover cluster.Servers: Microsoft supports a failover cluster solution only if all the hardware components are marked as "Certified for Windows Server 2008 R2." In addition, the complete configuration (servers, network, and storage) must pass all tests in the Validate a Configuration Wizard, which is included in the Failover Cluster Manager snap-in
26. Storage: You must use shared storage that is compatible with Windows Server 2008 R2
27. Network adapters and cable (for network communication): The network hardware, like other components in the failover cluster solution, must be marked as "Certified for Windows Server 2008 R2." If you use iSCSI, your network adapters should be dedicated to either network communication or iSCSI, not both
28. Account for administering the cluster: When you first create a cluster or add servers to it, you must be logged on to the domain with an account that has administrator rights and permissions on all servers in that cluster. The account does not need to be a Domain Admins account—it can be a Domain Users account that is in the Administrators group on each clustered server. In addition, if the account is not a Domain Admins account, the account (or the group that the account is a member of) must be delegated Create Computer Objects and Read All Properties permissions in the domain
33. Persistent Reservations (PRs) Required Failover Cluster Kurulum AdımlarıdemoFailover Cluster PrerequisitesEstablish a Network Naming Convention TCP/IP Network Configuration Public NetworkStorage NetworkHeartbeat Network ProceduresPrepare the Failover ClusterCreate a Domain User AccountAdd Nodes to an Active Directory DomainExpose Storage to Cluster NodesInstall the Failover Cluster FeatureRun Cluster ValidationCreate and Configure the Failover ClusterCreate a ClusterSet Cluster Network Properties and Apply Naming ConventionCreate a Highly Available Services-> Create a Highly Available iSCSI TargetConfiguring Windows Firewall for Microsoft iSCSI Software TargetInstalling the Microsoft iSCSI Software TargetCreate the Failover iSCSI Target Resource GroupCreate an iSCSI Target in the Microsoft iSCSI Target MMCCreate and Configure Virtual DisksConnect InitiatorsTesting Your Failover Cluster Configuration
34. R2 ile Gelen Validation ÖzellikleridemoCluster ConfigurationList Information (Core Group, Networks, Resources, Storage, Services and Applications)Validate Quorum ConfigurationValidate Resource StatusValidate Service Principal NameValidate Volume ConsistencyNetworkList Network Binding OrderValidate Multiple Subnet PropertiesSystem ConfigurationValidate Cluster Service & Driver SettingsValidate Memory Dump SettingsValidate OS Installation OptionsReplaced Validate Operating SystemsValidate System Drive Variable
35. Troubleshootingdemo Reviewing cluster events Reviewing hardware events Using the Validate a Configuration Wizard Reviewing storage/SAN eventsTroubleshooting methodologies for cluster issues, whether in Windows 2003 or Windows 2008, are fairly similar. Most of the typical support issues in the cluster category fall under the following categories:· Cluster Service fails to start.· Cluster resources in a failed state or fail to come online.· Determine root cause of cluster failure.· Initial configuration of the clusterThe Win 2003 legacy CLUSTER.LOG text file no longer exists. In Win 2008 the cluster log is handled by the Windows Event Tracing (ETW) process. This is the same logging infrastructure that handles events for other aspects you are already well familiar with, such as the System or Application Event logs you view in Event Viewer.Command Linec:\>cluster log /genPowershellC:\PS> Get-ClusterLogForceQuorumnet start clussvc /forcequorum (or /fq)
36. Cluster EventlarıCluster EventsRecent Cluster Events üzerinde son 24 saate ait eventlar görünmektedir. Monitoring Cluster EventsFully featured Failover Cluster Management PacksCluster logging levelSet-ClusterLog –level 3
37. Failover Süreci 2 node birbirine ulaşamadiği durumda quarum diskine erişmeye çalışır bu duruma arbitration process denilir. Clusdisk.sys dosyası nodeların ikisininde disklere erişimin engellemek için yönetimi yapar. MNS mimarisi ile birlikte quarum bilgisi register replikasyonu ile sağlanmaktadır. Bu dosyalara %\windows\system32\config altından erişilebilinir. Cluster açılması esnasında clusdb dosyasını registryden download edilerek cluster işletimi çalışmaya başlar. Bu konfigürasyon dosyasında hangi disklere erişebileceğinin bilgisi yer almaktadır. 2008 cluster sistemleri register replikasyona dayalı olarak çalışır.
38. Scsi Bus Reset, SCSI3 Persistent ReservarionSplit Brain Senaryosu: İki node birbirleri arasındaki network iletişimi kaybetme durumu. Bu durumda Cluster servisi (clusdisk.sys) Challande/Defense protokolu ile SCSI reserver komutları vasıtasıyla önce reset komutu gönderir bundan sonra reserve komutu ile quorum diskini reserve eder online getirir akabinde ownershipliği alarak tüm resourceları online duruma çeker. Windows Server 2008 ile birlikte artık scsi bus resetleri kullanılmıyor. Scsi 3 serial persistent reservation kullanılmaktadır. Scsi bus reset den sadece o disk değil aynı bus üzerindeki bütün diskler etkilenmekte, konfigürasyona bağlı olarak her disk için her node dan bir bus reset gönderilebilmekte bu durumda cluster kendisini online etme süreleri uzamakta ve offline kalabilmekteler bu durumda manuel online çekilmesi gerekebiliyor idi.
39. Failover Cluster MimariMicrosoft Cluster Service (MSCS) sharing nothing modelini kullanır. Bunun anlamı sadece bir server kaynakların sahibi olabilir bunlar disk,virtual server, IP vb..Classdb file HKLM\Cluster registry hive üzerinden download eder. When the computer is started, the Cluster Disk Driver (Clusdisk.sys) reads the following local registry key to obtain a list of the signatures of the shared disks under cluster management:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ClusDisk\Parameters \SignaturesRecommandation private only hb public mix olmalı Cluster üzerinde resource groupların doğru çalışıp çalışmadığını kontrol eden resource monitorler mevcuttur. Resource monitor clsusvc altinda çalişan dll lerden oluşmaktadır. 2008 ‘de bunun adi RHS.exeThe Resource Hosting Subsystem (RHS) conducts periodic health checks of all cluster resources to ensure they are functioning properly. This is accomplished by executing IsAlive and LooksAliveprocesses which are specific to the type of resource
40. Microsoft Failover Cluster Virtual AdapterMicrosoft Cluster ortamlarda “Microsoft Failover Cluster Virtual Adapter” adında bir interface oluşturur, hidden bir interface’dir NetFT (Network Faut Tolerant) dosyasını simüle eder, clusterlar arası iletişimi yürütür, heartbeat için bir redundancy sağlar. Bu interface mevcut interface üzerine bind olur smb’den SAN’e olan trafik bu kart üzerinde utilize edilir. NetFT, ipconfig /All üzerinden görülür kendisine APIPA adresi tahsis (169.254.1.2) eder, bu ip üzerinden aslında data transferi yapılmaz bu IP fiziksel kart üzerine bind olduğunda TM üzerinden utilizasyon görülmektedir.
41. Multi Site Cluster (GeoCluster) NedirGeographical Cluster’ın kısaltması olan geocluster yada multicluster coğrafik olarak dağıtılmış farklı bölgelerde bulunan sunucuların cluster olarak çalıştırılmasıdır. Kavramsal olarak cluster üyelerinin iki ayrı lokasyonda bulunması durumuna Geo-Clustering ya da Multi Site Clustering adı verilmektedir. Site BSite A2+ physically separate sites1+ node at each siteStorage at each site with data replicationApplication moves during a failoverSANSAN
42. Multi-Site Cluster FaydalarıHizmet sürekliliği hedeflenmektedir. Klasik clusterda sunucular tek storage ortamına erişirken geocluster her site üzerinde bibirine senkron replike edilmiş datalara erişirler. Replikasyon tipi senkron “anlık” yada asenkron “gecikmeli” olabilir.Replikasyon Seviyeleri ;Storage bazlı “block-level” Yazilimsal “host based”Senkron yapıda sunucu disk üzerine datayı yazdıktan sonra data anlık olarak 2.site üzerindeki storage üzerinede yazilir, 1.site üzerindeki storage 2.site üzerine datanin yazilmasi akabinde sunucuya yazdim bilgisi gönderir.Protects Against Loss of an Entire DatacenterPower outage, fires, hurricanes, floods, earthquakes, terrorismAutomates FailoverReduced downtimeLower complexity of disaster recovery planReduces Administrative OverheadAutomatically synchronize application and cluster changesEasier to keep consistent than unclustered servers
43. Synchronous ReplicationHost receives “write complete” response from the storage after the data is successfully written on both storage devicesReplicationWriteRequestSecondaryStorageWriteCompleteAcknowledgementPrimaryStorage
44. File Share WitnessSite C4, 6, 8… nodes + FSW = odd # votesLocal failover first (preferred owner)Site failover second (possible owner)AntiAffinityClassNamesFaster DNS UpdatesRegister all IPs for a Network NameShorten client’s DNS record TTLEnsure application tries all IPsWANSite ASite BEncrypt WAN traffic for securityAdjust health checks for latencyConfigure ‘OR’ dependenciesSANSANReplicated Storage from vendorMulti-Site Clustering Review
46. Cluster Nedir, Niçin KullanıyoruzCluster Bloghttp://blogs.msdn.com/b/clustering/Technet Failover Clusterhttp://technet.microsoft.com/en-us/library/cc754482.aspxConfiguring Auditing for a Windows Server 2008 Failover Clusterhttp://blogs.technet.com/b/askcore/archive/2009/01/19/configuring-auditing-for-a-windows-server-2008-failover-cluster.aspxTop Issues for Microsoft Support for Windows 2008 Failover Clustershttp://blogs.technet.com/b/askcore/archive/2008/10/13/top-issues-for-microsoft-support-for-windows-2008-failover-clusters.aspxChecklist: Create a Clustered Virtual Machinehttp://technet.microsoft.com/en-us/library/dd759220.aspxTop Issues for Microsoft Support for Windows 2008 Failover Clustershttp://blogs.technet.com/b/askcore/archive/2008/10/13/top-issues-for-microsoft-support-for-windows-2008-failover-clusters.aspxFailover Clusters in Windows Server 2008 R2http://technet.microsoft.com/en-us/library/ff182338(WS.10).aspxTechEd 2011 demo install step-by-step (Hyper-V, AD, DNS, iSCSI Target, File Server Cluster, SQL Server over SMB2)http://blogs.technet.com/b/josebda/archive/2011/05/19/teched-2011-demo-install-step-by-step-hyper-v-ad-dns-iscsi-target-file-server-cluster-sql-server-over-smb2.aspx
#4:A failover cluster is a group of independent computers that work together to increase the availability of applications and services. If one of the clustered servers fails, another server begins to provide service (a process known as failover).Failover clusters are used by IT professionals who need to provide high availability for services or applications
#23:Hizmet sürekliliği hedeflenmektedir. Klasik clusterda sunucular tek storage ortamına erişirken geocluster her site üzerinde bibirine senkron replike edilmiş datalara erişirler. Replikasyon tipi senkron “anlık” yada asenkron “gecikmeli” olabilir.Replikasyon Seviyeleri ;Storage bazlı “block-level” Yazilimsal “host based”Bu tür uygulamalarda belirli DB, Applicationlar seçilebilirken bazılarında VSS ile OS bazda replikasyon yapabilmektedir. Farklı lokasyonlarda bulunan sunuculardan bir tanesi aktif olarak çalışmaktayken uygulama seviyesinde oluşan log dosyaları cluster’ın diğer üyeleri ile paylaşılarak uygulamanın transaction blokları halinde diğer sunuculara uygulanır.Uygulama “application based”Exchange 2007 CCR,SCRSenkron yapıda sunucu disk üzerine datayı yazdıktan sonra data anlık olarak 2.site üzerindeki storage üzerinede yazilir, 1.site üzerindeki storage 2.site üzerine datanin yazilmasi akabinde sunucuya yazdim bilgisi gönderir.