Configure AlwaysOn Failover Cluster Instances (SQL Server) using InfoSphere Data Replication Change Data Capture (CDC) on Windows Server 2012



Similar documents
Installing and Configuring a. SQL Server 2012 Failover Cluster

StarWind Virtual SAN Installing & Configuring a SQL Server 2012 Failover Cluster

istorage Server: High-Availability iscsi SAN for Windows Server 2008 & Hyper-V Clustering

Deploying Remote Desktop Connection Broker with High Availability Step-by-Step Guide

Configuring Windows Server Clusters

Clustering VirtualCenter 2.5 Using Microsoft Cluster Services

SQL Server 2012/2014 AlwaysOn Availability Group

Implementing Microsoft Windows Server Failover Clustering (WSFC) and SQL Server 2012 AlwaysOn Availability Groups in the AWS Cloud

GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster

Installing and Using the vnios Trial

You need to recommend a monitoring solution to ensure that an administrator can review the availability information of Service1. What should you do?

Exploring AlwaysOn Failover Cluster Instances

Clustering ExtremeZ-IP 4.1

By the Citrix Publications Department. Citrix Systems, Inc.

Installing SQL Server 2008 Cluster

Oracle Exam 1z0-102 Oracle Weblogic Server 11g: System Administration I Version: 9.0 [ Total Questions: 111 ]

Overview... 1 Requirements Installing Roles and Features Creating SQL Server Database... 9 Setting Security Logins...

SQL Server AlwaysOn. Michal Tinthofer 11. Praha What to avoid and how to optimize, deploy and operate.

Nexio Connectus Cluster Set Up with SQL Server Backend

Backup and Restore of CONFIGURATION Object on Windows 2008

Microsoft Windows Server Failover Clustering (WSFC) and SQL Server AlwaysOn Availability Groups on the AWS Cloud: Quick Start Reference Deployment

How To Install Powerpoint 6 On A Windows Server With A Powerpoint 2.5 (Powerpoint) And Powerpoint On A Microsoft Powerpoint 4.5 Powerpoint (Powerpoints) And A Powerpoints 2

Deploying Microsoft Clusters in Parallels Virtuozzo-Based Systems

Installing RMFT on an MS Cluster

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2003

Critical SQL Server Databases:

Installing and Configuring a SQL Server 2014 Multi-Subnet Cluster on Windows Server 2012 R2

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

istorage Server: High Availability iscsi SAN for Windows Server 2012 Cluster

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Installation of MicroSoft Active Directory

Drobo How-To Guide. Topics. What You Will Need. Prerequisites. Deploy Drobo B1200i with Microsoft Hyper-V Clustering

Understanding IBM Tivoli Monitoring 6.1 Agents In A Microsoft Clustered Environment 06/01/2006

QuickStart Guide vcenter Server Heartbeat 5.5 Update 2

GlobalSCAPE DMZ Gateway, v1. User Guide

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Every Silver Lining Has a Vault in the Cloud

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

Installation Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

MCSE Core exams (Networking) One Client OS Exam. Core Exams (6 Exams Required)

Step by step guide for installing highly available System Centre 2012 Virtual Machine Manager Management server:

StarWind Virtual SAN Installation and Configuration of Hyper-Converged 2 Nodes with Hyper-V Cluster

Installing a Symantec Backup Exec Agent on a SnapScale Cluster X2 Node or SnapServer DX1 or DX2. Summary

Designing a Data Solution with Microsoft SQL Server 2014

Cluster to Cluster Failover Using Double-Take

SQL Server AlwaysOn (HADRON)

Cluster to Cluster Failover Using Double-Take

Index C, D. Background Intelligent Transfer Service (BITS), 174, 191

WhatsUp Gold v16.3 Installation and Configuration Guide

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

Availability Guide for Deploying SQL Server on VMware vsphere. August 2009

IBM FileNet Image Services

MS 20465C: Designing a Data Solution with Microsoft SQL Server

Implementing Moodle on a Windows High Availability Environment

Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

StarWind iscsi SAN & NAS: Configuring HA Storage for Hyper-V October 2012

Automation Engine 14. Troubleshooting

Network Load Balancing

Introduction to Hyper-V High- Availability with Failover Clustering

SQL Server Business Intelligence

HOW TO CONFIGURE SQL SERVER REPORTING SERVICES IN ORDER TO DEPLOY REPORTING SERVICES REPORTS FOR DYNAMICS GP

Centralized Mac Home Directories On Windows Servers: Using Windows To Serve The Mac

This How To guide will take you through configuring Network Load Balancing and deploying MOSS 2007 in SharePoint Farm.

How To Set Up A Two Node Hyperv Cluster With Failover Clustering And Cluster Shared Volume (Csv) Enabled

SQL Server AlwaysOn Deep Dive for SharePoint Administrators

Click Studios. Passwordstate. High Availability Installation Instructions

McAfee epolicy Orchestrator 4.5 Cluster Installation Guide

Installing Kaspersky Security Center 10.0 on Microsoft Windows Server 2012 Core Mode

StarWind iscsi SAN & NAS: Configuring HA Shared Storage for Scale- Out File Servers in Windows Server 2012 January 2013

Using Emergency Restore to recover the vcenter Server has the following benefits as compared to the above methods:

HP Device Manager 4.6

Guide to the LBaaS plugin ver for Fuel

Building a Scale-Out SQL Server 2008 Reporting Services Farm

Amira License Manager

Hyper-V backup implementation guide

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2008

CommandCenter Secure Gateway

Backup Exec Private Cloud Services. Planning and Deployment Guide

AxCMS.net on Network Load Balancing (NLB) Environment

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

MS 20417B: Upgrading Your Skills to MCSA Windows Server 2012

FEI Avizo License Management

Installing GFI Network Server Monitor

ServiceDesk 7.1 Installation and Upgrade. ServiceDesk 7.1 Installation and Upgrade - Using Domain Service Credentials A Step by Step Guide

Installing and Configuring vcenter Support Assistant

VMware vsphere Data Protection 6.0

Install MS SQL Server 2012 Express Edition

Configuration of a Load-Balanced and Fail-Over Merak Cluster using Windows Server 2003 Network Load Balancing

MS Configuring Advanced Windows Server 2012 Services

Installing and Setting up Microsoft DNS Server

F-Secure Messaging Security Gateway. Deployment Guide

PrivateWire Gateway Load Balancing and High Availability using Microsoft SQL Server Replication

How to configure Failover Clustering for Hyper-V hosts on HP ProLiant c-class server blades with All-in-One SB600c storage blade

VMware vsphere Data Protection Evaluation Guide REVISED APRIL 2015

1Z Oracle Weblogic Server 11g: System Administration I. Version: Demo. Page <<1/7>>

AUTOMATED DISASTER RECOVERY SOLUTION USING AZURE SITE RECOVERY FOR FILE SHARES HOSTED ON STORSIMPLE

Configuring a Microsoft Windows Server 2012/R2 Failover Cluster with Storage Center

Transcription:

Configure AlwaysOn Failover Cluster Instances (SQL Server) using InfoSphere Data Replication Change Data Capture (CDC) on Windows Server 2012 Introduction As part of the SQL Server AlwaysOn offering, AlwaysOn Failover Cluster Instances leverages Windows Server Failover Clustering (WSFC) functionality to provide local high availability through redundancy at the server-instance level a failover cluster instance (FCI). An FCI is a single instance of SQL Server that is installed across Windows Server Failover Clustering (WSFC) nodes and, possibly, across multiple subnets. On the network, an FCI appears to be an instance of SQL Server running on a single computer, but the FCI provides failover from one WSFC node to another if the current node becomes unavailable. This document explains few basic concepts of Failover Cluster Instance and step by step configuration needed for setting up replication on database running on Windows Server 2012. We will use MS SQL SERVER 2012 database as the targeted database for configuring replication in this document. In a production environment, we recommend that you use static IP addresses in conjunction the virtual IP address of a Failover Cluster Instance. We recommend against using DHCP in a production environment. In the event of down time, if the DHCP IP lease expires, extra time is required to re-register the new DHCP IP address associated with the DNS name. 1 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure1: Example of Failover Cluster Configuration MS SQL SERVER 2012 Failover Clustering Components The cluster configuration consists of two or more nodes, each of which acts as independent computer system. It appears to network clients as single server. The nodes in the cluster are connected using one or more storage buses and one or more independent networks. The network that connects only the servers is called private network, and the network that supports client machines is called as public network. Each shared storage is connected to one or more disks. Each disk is owned by only one node at a time in the cluster, as Microsoft cluster follows Shared nothing model. The MS SQL SERVER 2012 software resides on the local disk. The MS SQL SERVER 2012 database files (for example tables, indexes, and log files) reside on the shared disks. Database Resource In AlwaysOn Failover Cluster Instances, a resource type is a service such as shared disk, IP address that must be made highly available. Common Resources are IP Addresses MS SQL SERVER 2012 instances File shares Shared disks 2 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Database Groups Related or dependent resources are organized into resource groups. All resources in a group move between cluster nodes as a unit. For example in a single partition DB cluster environment, there will be a DB group that contains the following resources DB resource : manages the DB instance IP Address resource : IP Address resource allows client applications Network name resource : Allows clients to connect to MS SQL server using name instead the IP One of more Physical Disk. DB Fail-over configurations There is one type of configurations available - Active Passive: All DB instances are active only at a single node at any point of type This document explains IIDR CDC configuration for database deployed in Active Passive failover cluster configuration with screen shots showing MS SQL SERVER 2012 as the database. Minimal requirements for setting up replication on database in Microsoft cluster To set up replication on cluster on Windows Server 2012 Standard failover cluster, you need, at minimum, the following resources: Windows 2012 domain Two nodes configured in failover cluster Two shared disks that can be accessed simultaneously from all the nodes Domain controller / Server Manager and DB Cluster service created on the domain DB cluster group created Fail over configured for DB cluster group In our example, we set up the above with the following resources Cluster manager / Domain controlled named cdcqacluster5.abc.com Two machines named CDCQANODE9 and CDCQANODE10, running Windows Server 2012 at abc.com domain Each node has two network cards, one for the private network and other for the public network One shared disk was created o Drive E : This disk is used for MS SQL table spaces and instance profile storage MS SQL SERVER Cluster Group called SQL Server created and ms sql server cluster service cdcsqlcluster5 registered in domain abc.com to access MS SQL SERVER cluster services using named service instead IP Address Note: To launch Fail over Cluster Manager go to Start Control Panel Administrative Tools Failover Cluster Manager 3 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 2: MS SQL SERVER Fail over Cluster Configuration in Failover Cluster Manager Below is the list of high level steps needed to set up highly available IIDR-CDC on MS SQL environment with Failover cluster. Detailed steps are mentioned in upcoming sections. 1. Install & Configure IIDR-CDC on the shared disk that all the nodes in the cluster has access to ( On Active Node ) 2. Create CDC Cluster service ( On Passive Node ) 3. Add CDC Generic Service to SQL Server cluster group ( On Both Nodes) 4. Create Data store in Management Console 5. Testing Failover 4 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Install & Configure IIDR MS SQL CDC The configuration is done using the public network, in our example it is done on cdcqacluster5.abc.com 1. Log on to the Active node and install CDC on the shared disk. In our example we install on shared disk E: CDC has to be installed on the shared disk because during the failover CDC binaries file system has to be available on the same path in the failed over node 2. After the installation configure the instance with the port number and the data base credentials of the cluster server 5 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 3: CDC Instance Configuration Tool 3. After installation is complete do not start the instance. 6 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 4: CDC instance start/stop option Create CDC Cluster service 1. After creating the instance on the active node, to configure CDC in failover configuration, CDC cluster service has to be created on the passive node. 2. Execute dmcreateclusterservices command from %CDC_HOME%\bin directory dmcreateclusterservices.exe I <instance_name> passive_node_name Figure 5: CDC Cluster service 3. The above step creates Generic Cluster service on the passive node. 4. The CDC cluster service Startup type must be changes to Manual, Otherwise the failover won't be successful. Figure 6: CDC cluster service Startup type Add CDC Generic Service to SQL Server cluster role 1. After creating CDC cluster services start the CDC instance 7 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 7: CDC Instance Configuration Tool 2. To automatically failover CDC when MS SQL SERVER fails over, Add Generic Service of CDC under DB cluster resource group (SQL Server cluster role) 3. Launch Failover Cluster Manager and follow the steps as mentioned in the below screen shot. Right click the SQL Server role and select Add Resource -> Generic Service. 8 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 8: Failover Cluster Manager Adding Generic Service 4. Choose the right CDC service to be added. Select the service IBM InforSphere Data Replication [DEMO1] and click Next. CDC Service is identified by the name IBM InforSphere Data Replication (Microsoft SQL SERVER) [instance name] 9 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 9: Failover Cluster Manager Service Selection Once the service is added to the resources group, then it will not be displayed in the services list. 5. After selecting the service, make sure the service name is of the format dmtssql_<instance_name> for SQL server databases 10 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 10: Failover Cluster Manager Generic Service Summary 6. Add dependent resources that have to be brought online before bringing the CDC service online in case of failover. In our example, we use SQL server database and will add SQL server resource to be dependent before CDC resource is brought up. To add dependency, Right click the CDC resource and Go to dependency tab and add the list of dependencies as show in the below figure. You may choose to add many dependencies depending on your requirement. 11 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 11: Failover Cluster Manager Add Resource Dependency 7. CDC Cluster service remains in the offline mode when added for the first time, right click on the resource and select Bring this resource online as shown below. 12 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 12: Failover Cluster Manager CDC Cluster Service 8. After the resource is online, the active node (CDCQANODE9) in the cluster will have the ownership of the services 13 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 13: Failover Cluster Manager Online Resources Create Data store in Management Console 1. Create the data store in the management console, but instead of using the IP address use the cluster manager host name / High available IP address. Configuring with the cluster manager name makes sure during failover there is no need to change the IP address of the data store 14 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 14: Datastore Configuration Testing Failover 1. To verify the CDC failover cluster configuration, Right click the SQL Server role and select Move -> Select Node. 15 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 15: Failover Cluster Manager Moving the cluster resource role 2. All the cluster resources under the resource role will go to offline mode on active node CDCQANODE10 as shown in the below figure 16 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 16: Failover Cluster Manager Offline Resources 3. After successful failover you will notice all the resources including CDC cluster service will be made online on the failed over node CDCQANODE10 17 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 17: Failover Cluster Manager Failed over Resources 4. Do the failover operation from CDCQANODE10 to CDCQANODE9. The failover also is successful. 18 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

Figure 18: Failover Cluster Manager Failed over Resource 5. The failing over of CDC services as the source only automatically restart the CDC instances and does not restart the subscriptions. For the subscriptions to be restarted automatically, right click subscription properties and enable the option of persistent subscriptions. If this option is not enabled then subscriptions has to be restarted manually, no other configuration change is required. The failing over of CDC services as the target, whatever enable/disable the option of persistent subscriptions, The subscriptions has to be restarted manually. Conclusion By configuring CDC services to be part of database cluster resource group, it provides high availability to CDC instances when there is failover at node level or DB level. References 1. MSDN Online Support Library : https://msdn.microsoft.com/en-us/library/ms189134.aspx 2. IBM DB2 Infocenter : http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2fcom.ibm.db2.luw.admin.ha.doc% 2Fdoc%2Fc0007402.html 19 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012

3. IBM Redbook : High Availability and Disaster Recovery Options for DB2 for Linux, UNIX, and Windows 20 Configure AlwaysOn Failover Cluster Instances (SQL Server) using IIDR-CDC on window 2012