Exploring AlwaysOn Failover Cluster Instances

Similar documents
Exploring Organizational Security and Auditing

Migrating to Azure SQL Database

Exploring Manual and Automatic Database Backup Using Microsoft Azure Storage

Exploring SQL Server 2014 Database Deployment in Microsoft Azure Virtual Machines

Exploring In-Memory OLTP

Building an ASP.NET MVC Application Using Azure DocumentDB

Exploring SQL Server Data Tools in Visual Studio 2013

Lab 07: Configuring High Availability and Disaster Recovery in Microsoft Lync Server 2013

QUANTIFY INSTALLATION GUIDE

Configuring High Availability and Disaster Recovery in Microsoft Lync Server 2013

Keynote DeviceAnywhere/HP Application Lifecycle Management (HP ALM/QC) Integration Guide. TCE Automation 5.2

Monitoring SQL Server with Microsoft Operations Manager 2005

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

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

formerly Help Desk Authority Upgrade Guide

Preparing to Install SQL Server 2005

Moving the TRITON Reporting Databases

Lab 05: Deploying Microsoft Office Web Apps Server

Preparing a SQL Server for EmpowerID installation

Using DBMoto 7 in a Microsoft Windows Cluster

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

SELF SERVICE RESET PASSWORD MANAGEMENT DATABASE REPLICATION GUIDE

EXPRESSCLUSTER X for Windows Quick Start Guide for Microsoft SQL Server Version 1

Installation Guide v3.0

Video Administration Backup and Restore Procedures

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

SharePoint Server for Business Intelligence

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

Microsoft SQL Server Installation Guide

Symantec AntiVirus Corporate Edition Patch Update

High Availability Setup Guide

Digipass Plug-In for IAS. IAS Plug-In IAS. Microsoft's Internet Authentication Service. Installation Guide

Microsoft SQL Server Installation Guide

Dell One Identity Cloud Access Manager How to Configure for High Availability

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

Moving the Web Security Log Database

Lepide Event Log Manager. Users Help Manual. Lepide Event Log Manager. Lepide Software Private Limited. Page 1

SQL Server 2008 R2 Express Edition Installation Guide

Install SQL Server 2014 Express Edition

IMPORTANT: The person who installs and sets up the PCS Axis database on the central database server

SafeNet Authentication Manager Express. Upgrade Instructions All versions

Hadoop Basics with InfoSphere BigInsights

Creating a New Database and a Table Owner in SQL Server 2005 for exchange@pam

Microsoft SQL Server Staging

Installing RMFT on an MS Cluster

USING TIME MACHINE AND MICROSOFT SQL SERVER

MailMarshal SMTP in a Load Balanced Array of Servers Technical White Paper September 29, 2003

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

WhatsUp Gold v16.3 Installation and Configuration Guide

Application Note 116: Gauntlet System High Availability Using Replication

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Lepide Active Directory Self Service. Installation Guide. Lepide Active Directory Self Service Tool. Lepide Software Private Limited Page 1

Dell Statistica Statistica Enterprise Installation Instructions

How to Copy A SQL Database SQL Server Express (Making a History Company)

Lab Answer Key for Module 1: Installing and Configuring Windows Server Table of Contents Lab 1: Configuring Windows Server

Installation Manual Version 8.5 (w/sql Server 2005)

Using IIS Application Request Routing to Publish Lync Server 2013 Web Services

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

Installing the BlackBerry Enterprise Server Management Software on an administrator or remote computer

Print Audit 6 - SQL Server 2005 Express Edition

Customizing Remote Desktop Web Access by Using Windows SharePoint Services Stepby-Step

Linko Software Express Edition Typical Installation Guide

Nexio Connectus Cluster Set Up with SQL Server Backend

Windows Azure Pack Installation and Initial Configuration

Dell InTrust Preparing for Auditing Microsoft SQL Server

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

SQL EXPRESS INSTALLATION...

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

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER

Installing LearningBay Enterprise Part 2

Lab 02 Working with Data Quality Services in SQL Server 2014

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

Installation & Upgrade Guide. Hand-Held Configuration Devices Mobility DHH820-DMS. Mobility DHH820-DMS Device Management System Software

Bosch ReadykeyPRO Unlimited Installation Guide, product version 6.5. This guide is item number DOC , revision 2.029, May 2012.

VPS Remote Computing. Connecting to a Windows Server for the first time. 1 Your Server has been installed. 2 Finding the login details for your Server

MicrosoftDynam ics GP TenantServices Installation and Adm inistration Guide

Configuring and Monitoring Event Logs

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Deploying Personal Virtual Desktops by Using RemoteApp and Desktop Connection Step-by-Step Guide

SOS Suite Installation Guide

STEP BY STEP IIS, DotNET and SQL-Server Installation for an ARAS Innovator9x Test System

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Deploying System Center 2012 R2 Configuration Manager

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Microsoft SQL Server Installation Guide

How To Use A Microsoft Microsoft Database Server 2012

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

NVIDIA GRID 2.0 ENTERPRISE SOFTWARE

Microsoft SQL Replication

LT Auditor Windows Assessment SP1 Installation & Configuration Guide

HP ProCurve Manager Plus

ATT8367-Novell GroupWise 2014 and the Directory Labs

Introduction to Hyper-V High- Availability with Failover Clustering

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Project Server 2003 Install on SBS 2003 Courtesy of Chris Jones All rights reserved by the Author

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Lab Answer Key for Module 6: Configuring and Managing Windows SharePoint Services 3.0. Table of Contents Lab 1: Configuring and Managing WSS 3.

Diamond II v2.3 Service Pack 4 Installation Manual

Introduction and Overview

Transcription:

Exploring AlwaysOn Failover Cluster Instances

Contents Data availability (AlwaysOn)... 3 Failover Cluster Instances (FCI)... 3 Terms of use... 23 Exploring AlwaysOn Failover Cluster Instances

Data availability (AlwaysOn) Estimated time to complete lab is 45 minutes The availability of data is an important issue for many organizations, as a database being unavailable would significantly affect their ability to service customers or their ability to carry out day-to-day processes. The Always On features in SQL Server 2014 are designed to ensure the database is still available, even when the primary server goes down. The scenario: You have many customers spread around the world, so there is no time when it is convenient to do server maintenance or repairs. However, such maintenance must still be done. Furthermore, sometimes the server unavoidably goes down, causing issues across the business. Your data management team are excited to hear about Always On, and ask you to implement it for their main data warehouse. Failover Cluster Instances (FCI) NOTE: this scenario breaks SQL Server 2014 Management Studio if an existing non-cluster SQL instance is already installed. DO NOT complete this scenario on SQLONE, instead use the SQLFOUR virtual machine. 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 Connect to SQLFOUR computer 1. Click on SQLFOUR button on right side of the screen to connect to the SQLFOUR computer. If you see the following in the lower right corner of the screen, you can jump to step 5 below to set your screen resolution. 2. Click Send Ctrl-Alt-Del for SQLFOUR computer and then click Switch user. Exploring AlwaysOn Failover Cluster Instances 3

3. Click Send Ctrl-Alt-Del for SQLFOUR computer again and then click Other user. 4. Log on to SQLFOUR computer as labuser with password pass@word1 Note, if you have a monitor that supports a larger screen resolution than 1024 x 768, you can change the screen resolution for the lab to go as high as 1920 x 1080. By going to a higher screen resolution, it will be easier to use SQL Server Management Studio. 5. Right click on the desktop and click on Screen resolution. 6. Select 1366 x 786 (a good minimum screen size for using SSMS) and click OK. 7. Click Keep Changes. 8. Resize the client hollaunchpad Online window for the lab to fit your screen resolution. Preparing the SQL servers for a Failover Cluster Instance (FCI) You decide to extend Contoso s WSFC to add Failover Cluster Instances for their OLTP databases. You will start by preparing the SQL servers for a Failover Cluster Instance (FCI) 1. Open the Windows start screen and type cmd into the screen, then right-click on Command Prompt from the list of search results this produces and select Run as administrator Exploring AlwaysOn Failover Cluster Instances 4

NOTE: If you do not run as administrator, you will not be able to complete this scenario 2. Enter the following command into the command to go to the SQL Server 2014 media for running setup. cd "C:\SQLMEDIA\SQL Server 2014 RTM" 3. Enter the following command and press ENTER again Setup.exe Exploring AlwaysOn Failover Cluster Instances 5

4. From the SQL Server Installation Center click on Advanced 5. Click on Advanced cluster preparation NOTE: this may take a few seconds for the setup to prepare 6. Click Run Exploring AlwaysOn Failover Cluster Instances 6

7. Click Next for the Prepare Failover Cluster Rules page. 8. In the box Specify a free edition select Evaluation and then click Next Exploring AlwaysOn Failover Cluster Instances 7

9. Place a tick in I accept the license terms 10. Click Next 11. Place a tick in Use Microsoft Update to check for updates (recommended) NOTE: If you don t see this screen go to the next step 12. Click Next Exploring AlwaysOn Failover Cluster Instances 8

13. Select the following Features: Database Engine Services: a. SQL Server Replication b. Full-Test and Semantic c. Data Quality Services 14. Click Next 15. Select the Default instance 16. Ensure the Instance ID: is MSSQLSERVER Exploring AlwaysOn Failover Cluster Instances 9

17. Click Next 18. For the Service SQL Server Agent enter the Account Name contoso\sqlserveragent and the password Password1. 19. For the Service SQL Server Database Engine enter the Account Name contoso\sqlservice and the password Password1. 20. Click Next Exploring AlwaysOn Failover Cluster Instances 10

21. Click Install NOTE: This will take approx. 15-30 mins. You can skip ahead to step 23 to perform the cluster instance installation for SQLFIVE. 22. Click Close and if prompted Restart the Server Exploring AlwaysOn Failover Cluster Instances 11

23. Repeat the above steps (1-20) on server SQLFIVE, but do not close the connection to SQLFOUR, you will be using it again shortly Configure the server for the Failover Cluster Instance (FCI) 1. Return to the SQLFOUR virtual machine 2. You should still have the CMD window open as Administrator. Enter the following command and press ENTER. Setup.exe 3. From the SQL Server Installation Center click on Advanced 4. Click on Advanced cluster completion 5. If you get a Security warning click Run Exploring AlwaysOn Failover Cluster Instances 12

6. Review Report details and then click Next 7. In SQL Server instance name enter MSSQLSERVER if it s not already entered 8. In SQL Server Network Name enter SQLProdFCI 9. Click Next 10. Ignore the warnings and click Next Exploring AlwaysOn Failover Cluster Instances 13

11. Ensure Cluster Disk 2 is selected and then click Next 12. Check the box next to IPv4/Cluster Network 2 and then under Address enter 192.168.1.211 13. Click Next Exploring AlwaysOn Failover Cluster Instances 14

14. Leave the Collation on SQL-Latin1-General_CP1_CI_AS 15. Click Next 16. Ensure Authentication Mode is set to Windows authentication mode 17. Click on Add Current User Exploring AlwaysOn Failover Cluster Instances 15

18. Click Next 19. Verify the features to be installed and then click Install Exploring AlwaysOn Failover Cluster Instances 16

20. Click Close NOTE: this will take approx. 5 mins Check the Failover cluster is working. First, create a database called ContosoSalesDB that you can use for testing 1. Open SQL Server 2014 Management Studio from the Windows Start screen and in the connection box, enter SQLPRODFCI as the server name 2. Ensure Windows Authentication is selected and then click Connect Exploring AlwaysOn Failover Cluster Instances 17

3. Select File then Open and then File 4. Browse to C:\SQLSCRIPTS\E2 and select E2A-3-#1 5. Click Open 6. Click Execute 7. When the script has completed close SQL Server 2014 Management Studio Test by creating a connection to the database from SQLONE 1. Login to the SQLONE virtual machine as contoso\labuser with the password pass@word1 by clicking on SQLONE in the VM selector pane at the right of your screen. 2. Open SQL Server Development Tools for Visual Studio 2013 from Windows Start 3. Select SQL Server Object Explorer from View menu Exploring AlwaysOn Failover Cluster Instances 18

4. In the SQL Server Object Explorer, right click on SQL Server and select Add SQL Server... 5. Enter SQLPRODFCI as the server name and select Windows Authentication then click Connect Exploring AlwaysOn Failover Cluster Instances 19

6. In the SQL Server Object Explorer a node for SQLPRODFCI will appear under the SQL Server node. Expand this node and the Databases node to see you can connect (there is a list of databases present shows we can query the server.) Exploring AlwaysOn Failover Cluster Instances 20

Verify database connectivity after failover to SQLFIVE 1. Go back to SQLFOUR 2. Right click on Start and select Shut Down or Sign Out > Restart Exploring AlwaysOn Failover Cluster Instances 21

3. Select Other (Planned) and click Continue Note: This will force a failover to SQLFIVE. Verify connectivity 4. Go back to SQLONE 5. In the Visual Studio SQL Server Object Explorer, right-click on the SQLPRODFCI node and select Refresh. Exploring AlwaysOn Failover Cluster Instances 22

This connection can refresh, even the SQLFOUR (the host computer) is not available failover has been successful. 6. Close Visual Studio without saving. This lab is complete Terms of use 2014 Microsoft Corporation. All rights reserved. By using this Hands-on Lab, you agree to the following terms: The technology/functionality described in this Hands-on Lab is provided by Microsoft Corporation in a sandbox testing environment for purposes of obtaining your feedback and to provide you with a learning experience. You may only use the Hands-on Lab to evaluate such technology features and functionality and provide feedback to Microsoft. You may not use it for any other purpose. You may not modify, copy, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer, or sell this Hands-on Lab or any portion thereof. COPYING OR REPRODUCTION OF THE HANDS-ON LAB (OR ANY PORTION OF IT) TO ANY OTHER SERVER OR LOCATION FOR FURTHER REPRODUCTION OR REDISTRIBUTION IS EXPRESSLY PROHIBITED. THIS HANDS-ONLAB PROVIDES CERTAIN SOFTWARE TECHNOLOGY/PRODUCT FEATURES AND FUNCTIONALITY, INCLUDING POTENTIAL NEW FEATURES AND CONCEPTS, IN A Exploring AlwaysOn Failover Cluster Instances 23

SIMULATED ENVIRONMENT WITHOUT COMPLEX SET-UP OR INSTALLATION FOR THE PURPOSE DESCRIBED ABOVE. THE TECHNOLOGY/CONCEPTS REPRESENTED IN THIS HANDS-ON LAB MAY NOT REPRESENT FULL FEATURE FUNCTIONALITY AND MAY NOT WORK THE WAY A FINAL VERSION MAY WORK. WE ALSO MAY NOT RELEASE A FINAL VERSION OF SUCH FEATURES OR CONCEPTS. YOUR EXPERIENCE WITH USING SUCH FEATURES AND FUNCITONALITY IN A PHYSICAL ENVIRONMENT MAY ALSO BE DIFFERENT. FEEDBACK. If you give feedback about the technology features, functionality and/or concepts described in this Hands-on Lab to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose. You also give to third parties, without charge, any patent rights needed for their products, technologies and services to use or interface with any specific parts of a Microsoft software or service that includes the feedback. You will not give feedback that is subject to a license that requires Microsoft to license its software or documentation to third parties because we include your feedback in them. These rights survive this agreement. MICROSOFT CORPORATION HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS WITH REGARD TO THE HANDS-ON LAB, INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR STATUTORY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON- INFRINGEMENT. MICROSOFT DOES NOT MAKE ANY ASSURANCES OR REPRESENTATIONS WITH REGARD TO THE ACCURACY OF THE RESULTS, OUTPUT THAT DERIVES FROM USE OF THE VIRTUAL LAB, OR SUITABILITY OF THE INFORMATION CONTAINED IN THE VIRTUAL LAB FOR ANY PURPOSE. DISCLAIMER This lab contains only a portion of new features and enhancements in Microsoft SQL Server 2014. Some of the features might change in future releases of the product. In this lab, you will learn about some, but not all, new features. Exploring AlwaysOn Failover Cluster Instances 24