Managing SQL Server 2014 with System Center 2012 R2
Total Page:16
File Type:pdf, Size:1020Kb
System Center Managing SQL Server 2012 R2 2014 with System Center 2012 R2 Hands-on lab In this lab, you will learn how to leverage System Center 2012 R2 to manage and monitor Microsoft SQL Server 2014. You will begin by performing SQL Server-specific backup and recovery operations. You will then review SQL Server 2014 monitoring using System Center 2012 R2 Operations Manager. Next, you will use a third party integration pack to create runbooks which leverage SQL Server data. Finally, you will use System Center 2012 R2 Virtual Machine Manager to create a service which deploys new SQL Server database instances. Produced by HynesITe, Inc Version 1.0 6/19/2014 This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information in this document, including URL and other Internet Web site references, is subject to change without notice. The entire risk of the use or the results from the use of this document remains with the user. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. Copyright 2014 © Microsoft Corporation. All rights reserved. Microsoft, Active Directory, Hyper-V, Internet Explorer, SharePoint 2013, SQL Server, Windows, Windows PowerShell, and Windows Server 2012 are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners. Managing SQL Server 2014 with System Center 2012 R2 Introduction Estimated time to complete this lab 60 minutes Objectives After completing this lab, you will be able to: Perform backup and restore operations using System Center 2012 R2 Data Protection Manager. Review the health of your SQL Server deployment using System Center 2012 R2 Operations Manager and System Center 2012 R2 Advisor. Create runbooks which perform common Microsoft SQL Server tasks using System Center 2012 R2 Orchestrator. Prerequisites Before working on this lab, you must have: An understanding of SQL Server and database concepts in general. Experience performing common database-oriented tasks. An understanding of general system management practices, tools, and technologies. Overview of the lab In this lab, you will learn how to leverage System Center 2012 R2 to manage and monitor Microsoft SQL Server 2014. You will begin by performing SQL Server-specific backup and recovery operations. You will then review SQL Server 2014 monitoring using Operations Manager. Next, you will use a third party integration pack to create runbooks which leverage SQL Server data. Finally, you will use System Center 2012 R2 Virtual Machine Manager to create a service which deploys new SQL Server database instances. Scenario You have a SQL Server 2014 implementation that provides structured data that is used by your organization for a variety of purposes. You wish to standardize on System Center 2012 R2 for management for your organization. In doing so, you wish to monitor health, ensure effective disaster recovery, and automate common tasks. Virtual machine technology This lab is completed using virtual machines that run on Windows Server 2012 R2 Hyper-V technology. To log on to the virtual machines, press CTRL+ALT+END and enter your logon credentials. Computers in this lab This lab uses computers as described in the following table. Before you begin the lab, you must ensure that the virtual machines are started and then log on to the computers. Virtual Machine Role SCDC01 Domain controller SCDPM01 Data Protection Manager server Lab created by HynesITe, Inc. For questions or comments, send an email message to [email protected] Page | 3 Managing SQL Server 2014 with System Center 2012 R2 Virtual Machine Role SCO01 Orchestrator server SCOM01 Operations Manager server SCVMM01 Virtual Machine Manager server SCSQL01 Standalone SQL Server instance All user accounts in this lab use the password Passw0rd! Note regarding pre-release software Portions of this lab may include software that is not yet released, and as such may still contain active or known issues. While every effort has been made to ensure this lab functions as written, unknown or unanticipated results may be encountered as a result of using pre-release software. Note regarding user account control Some steps in this lab may be subject to user account control. User account control is a technology which provides additional security to computers by requesting that users confirm actions that require administrative rights. Tasks that generate a user account control confirmation are denoted using a shield icon. If you encounter a shield icon, confirm your action by selecting the appropriate button in the dialog box that is presented. Note on activation The virtual machines for these labs may have been built by using software that has not been activated. This is by design in the lab to prevent the redistribution of activated software. The unactivated state of software has been taken into account in the design of the lab. Consequently, the lab is in no way affected by this state. For operating systems other than Windows 8.1, please click Cancel or Close if prompted by an activation dialog box. If you are prompted by an Activate screen for Windows 8.1, press the Windows key to display the Start screen. Lab created by HynesITe, Inc. For questions or comments, send an email message to [email protected] Page | 4 Managing SQL Server 2014 with System Center 2012 R2 Exercise 1: Protecting SQL Server 2014 using System Center Data Protection Manager 2012 R2 In this exercise, you will configure SQL Server to support backup using System Center 2012 R2 Data Protection Manager (DPM). You will then perform a backup and restore. Finally, you will review the health of your Data Protection Manager implementation. Complete the configuration of SQL Server 2014 In this task, you will complete the configuration of SQL Server 2014 and enable Data Protection Manager backup. The Data Protection Manager agent runs as the local system, and therefore the local system must have sysadmin access to SQL Server to perform backups. Begin this task logged on to SCSQL01 as Contoso\Administrator using the password Passw0rd! On the taskbar, click SQL Server Management Studio. In the Server Name drop-down list, select SCSQL01. Click Connect. In Object Explorer, expand Security, and then expand Logins. There is a login for NT AUTHORITY\SYSTEM already in place. Expand Server Roles, and then click sysadmin. Right-click sysadmin, and then click Properties. Click Add. In Select Server Login or Role, click Browse. Check [NT AUTHORITY\SYSTEM], and then click OK. Click OK in all open dialog boxes. You will notice that the login is already associated with the role. You are performing these steps to reinforce the requirements for Data Protection Manager. Leave SQL Server Management Studio open for subsequent steps. Perform a database backup using Data Protection Manager In this task, you will configure an initial backup solution for the AdventureWorks database. Begin this task logged on to SCDPM01 as Contoso\Administrator using the password Passw0rd! Ensure System Center 2012 R2 Data Protection Manager Console is open. If not, click the Data Protection Manager icon on the taskbar. Click Management. Lab created by HynesITe, Inc. For questions or comments, send an email message to [email protected] Page | 5 Managing SQL Server 2014 with System Center 2012 R2 In the contents pane, note that many computers are already listed as unprotected with a protection agent. Installing the protection agent is a simple process which can require a reboot. This step has been done for you. To install the agent, you must be able to browse to the admin$ file share on the target computer. IMPORTANT: The agent status may show a status of Unavailable, Unknown or OK. A computer with a status of Unknown simply means that the agent has not notified the Data Protection Manager server that it is online. This is common in a lab environment when computers are first brought online. Click SCSQL01, and then on the ribbon, click Refresh. IMPORTANT: Wait for the agent to show an Agent Status of OK. Click Disks, and then review the available DPM storage pools. Click Protection, and then on the ribbon, click New. Complete the Create Protection Group wizard using the values in the following table. Page Settings to Configure Notes/Actions Welcome None Click Next Select protection group Servers Click Next type Select group members Check Employee-Data Expand SCSQL01/All SQL database Servers/SCSQL01 If you receive an error, click Clear Cache, then start this task over. Click Next Select data protection Protection group name: Online and Tape are not configured on method SQL Protection Group this server and therefore are not available Method: Disk Click Next Select short-term goals None Click Next Review disk allocation None Click Next Choose replica creation None Click Next method Choose consistency None Click Next check options Summary None Click Create Group When the process completes, click Close.