• No results found

EMC NetWorker Module for Microsoft for SQL VDI

N/A
N/A
Protected

Academic year: 2021

Share "EMC NetWorker Module for Microsoft for SQL VDI"

Copied!
152
0
0

Loading.... (view fulltext now)

Full text

(1)

EMC

®

NetWorker

®

Module for

Microsoft for SQL VDI

Version 8.2 Service Pack 1

User Guide

302-001-232

(2)

Copyright © 2007-2015 EMC Corporation. All rights reserved. Published in USA.

Published January, 2015

EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.

The information in this publication is provided as is. EMC Corporation makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.

EMC², EMC, and the EMC logo are registered trademarks or trademarks of EMC Corporation in the United States and other countries. All other trademarks used herein are the property of their respective owners.

For the most up-to-date regulatory document for your product line, go to EMC Online Support (https://support.emc.com).

EMC Corporation

Hopkinton, Massachusetts 01748-9103

(3)

7 9 11

Introduction 15

Using NMM with Virtual Device Interface... 16

NMM environments backup and recovery... 16

Backup environments... 16

Recovery environments (non-client direct or non-direct file access) ... 19

Cluster environments... 20

Using NMM in a SQL VDI environment... 21

Supported Windows Server and SQL Server versions...21

Migrating from VSS solution to VDI solution for SQL Server data protection... 21

AlwaysOn Availability Group feature of Microsoft SQL Server 2012 or later... 22

SQL Client Direct to AFTD or DD devices...22

Microsoft SQL Server named log marks... 22

Named and default instances of SQL Server... 23

Multi-stream Data Domain Boost...24

Database consistency checks... 24

Improved SQL save group notifications... 26

Support on Microsoft Hybrid Cloud environment... 26

Access privileges for backup and recovery...27

SQL Server backups... 28

Types of supported backups... 28

Backup levels...29

Setting backup levels...30

SQL Server recovery...33

Types of supported recovery...33

Recovery modes...34

Recovery time... 34

Recovery window restrictions... 35

The recovery process...35

User interfaces for backup and recovery... 36

Error logs for backup and recovery...37

Prerequisites...37

Manual Backups 39 Overview of manual backups...40

Performing manual backups...40

Specifying browse and retention policies for manual backups...41

Performing manual backups from the Microsoft SQL Server Management Studio GUI...41 Figures Tables Preface Chapter 1 Chapter 2

CONTENTS

(4)

General view... 42

Options view...43

Monitor view... 44

Performing manual backups from the NetWorker User for SQL Server GUI... 44

Backing up client indexes and a bootstrap file... 49

Scheduled Backup 51 Overview of scheduled backup...52

Backing up unavailable databases...52

Prerequisites...53

Configuring scheduled backups... 53

Setting up backup levels... 54

Setting up a pool to sort backup data...55

Configuring a backup schedule... 55

Configuring a NetWorker backup group... 56

Configuring a client resource...57

Federated Backup 63 Overview of federated backup... 64

Backup settings... 64

Performing federated backups... 65

By using the Client Backup Configuration wizard...65

By using the NetWorker Management Console... 68

Data Recovery 71 Overview... 72

Prerequisites...72

Performing SQL Server 2012 or later recovery... 73

From the Microsoft SQL Server Management Studio GUI... 73

General view... 74

Files view... 76

Options view...77

Monitor view... 78

From the NetWorker User for SQL Server GUI...78

Setting up the recovery... 79

Specifying the browse time... 93

Viewing the required volumes... 94

Setting the restore properties...95

Starting the recovery... 104

Performing recovery of federated backups...105

Cluster Servers Backup and Recovery 107 Prerequisites...108

Configuring scheduled backups for SQL Server clusters...108

By using Client Backup Configuration wizard...108

By using NMC...108

Performing manual backups and recovery... 110

NetWorker User for SQL Server GUI...110

The command prompt... 110

Striped Backup and Recovery 113

(5)

Overview of striped backups... 114

Performance considerations...115

Performing striped backups... 115

Performing striped recovery...116

Optimal striped recovery versus fail-safe striped recovery... 116

Performing an optimal striped recovery... 116

Performing a fail-safe striped recovery... 117

Command Line Interface 119 Overview of command line interface...120

Using the nsrsqlsv command... 120

Command syntax for nsrsqlsv... 121

Command options for nsrsqlsv...121

Using the nsrsqlrc command... 124

Command syntax for nsrsqlrc... 124

Command options for nsrsqlrc... 125

Sample recovery command lines...131

Using the nwmssql command...131

Command options for nwmssql...131

Backup and recovery command syntax for SQL Server data... 132

Syntax for a named instance configuration...133

Syntax for names containing a period, backslash, or colon... 133

Disaster Recovery 137 Overview of disaster recovery... 138

Disaster recovery features... 138

Performing disaster recovery... 139

When not to reinstall the SQL Server... 139

Recovering a damaged primary disk...140

Recovering a damaged binary disk... 140

Recovering SQL Server and NetWorker server... 141

Recovering SQL Server without reinstalling...142

Recovering SQL Server... 143

Using the NetWorker User for SQL Server GUI to complete disaster recovery... 143 145 153 Chapter 8 Chapter 9 Glossary Index CONTENTS

(6)
(7)

Traditional backup command and data flow... 17

Federated backup command and data flow...18

Traditional recovery command and data flow... 19

Message showing DBCC was successful... 25

Example of SQL save group notification... 26

Granting permissions to view subcomponents in the SQL Management Studio... 28

General view...42

Options view... 43

Monitor view...44

The Backup window with a hierarchical list of SQL Server data objects... 45

The General tab in the Backup Options dialog box... 46

Properties dialog box...48

Client Properties page with Apps & Modules tab...61

EMC NetWorker dialog box - General view... 74

Backup Timeline dialog box... 75

EMC NetWorker dialog box - Files view... 76

EMC NetWorker dialog box - Options view...77

EMC NetWorker dialog box - Monitor view... 78

Restore window... 80

Properties dialog box...80

Specify the Standby Undo File dialog box... 81

Properties dialog box...82

Specify the File Destination dialog box... 83

Properties dialog box...84

Restore Options dialog box...86

Select the SQL Server dialog box... 88

NetWorker User for SQL Server dialog box...88

Restore window... 89

Properties dialog box...89

Restore window... 90

Restore (Verify Only) dialog box... 91

Restore (Piecemeal) dialog box...91

Restore Options dialog box...92

Change Browse Time dialog box... 93

Specify Browse Time dialog box...94

Properties dialog box...96

Properties dialog box...98

Specify the File Destination dialog box... 100

Read File Configuration dialog box...101

Point in time restore dialog box... 104

The backed up Availability Group databases displayed in the NetWorker User for SQL Server page... 105

Restore Options dialog box...106 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

FIGURES

(8)
(9)

Revision history... 12

Backup levels in NMM for SQL VDI backups... 29

Terminology used in NMM and the corresponding SQL Server term... 29

Backup levels for SQL Server data...30

Full backup every one to two weeks... 30

Incremental backup after a full backup... 31

Backup level advantages and disadvantages...31

Creating additional backup levels with data objects... 32

Backup level promotion process ... 32

Types of recovery for SQL Server VDI ... 33

Recovery modes ...34

Where to initiate backup operations... 36

Where to initiate recovery operations...36

Program and log file names... 37

Tasks for SQL Server VDI backups ... 54

Backup levels for SQL Server data...54

Guidelines for fail-safe striped recovery... 116

Command options for nsrsqlsv ... 121

Command options for nsrqlrc ...125

Command options for the nwmssql command... 131

Command syntax for SQL Server data... 132

Command syntax for names containing a period...134

Command syntax for names containing a backslash... 134

Command syntax for names containing a colon... 135

Command syntax for names containing periods, back slashes, and colons...135

Disaster recovery features... 138 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

TABLES

(10)
(11)

Preface

As part of an effort to improve its product lines, EMC periodically releases revisions of its software and hardware. Therefore, some functions described in this document might not be supported by all versions of the software or hardware currently in use. The product release notes provide the most up-to-date information on product features.

Contact your EMC technical support professional if a product does not function properly or does not function as described in this document.

Note

This document was accurate at publication time. Go to EMC Online Support (https:// support.emc.com) to ensure that you are using the latest version of this document. Purpose

This guide contains information about using the NetWorker Module for Microsoft (NMM) Release 8.2 Service Pack 1 (SP1) software to back up and recover SQL Server using the Volume Shadow Copy Service (VSS) technology.

Note

The NetWorker Module for Microsoft Administration Guide supplements the backup and recovery procedures described in this guide and must be referred to when performing application-specific tasks. Ensure to download a copy of the NetWorker Module for Microsoft Administration Guide from EMC Online Support (https://support.emc.com) before using this guide.

Audience

This guide is part of the NetWorker Module for Microsoft documentation set, and is intended for use by system administrators during the setup and maintenance of the product. Readers should be familiar with the following technologies used in backup and recovery:

l EMC NetWorker software

l Microsoft Virtual Device Interface (VDI) technology

(12)

Revision history

The following table presents the revision history of this document.

Table 1 Revision history

Revision Date Description

01 January 28, 2015 First release of this document for EMC NetWorker Module for Microsoft release 8.2 SP1.

Related documentation

The NMM documentation set includes the following publications: l NetWorker Module for Microsoft Release Notes

l NetWorker Module for Microsoft Administration Guide l NetWorker Module for Microsoft Installation Guide

l NetWorker Module for Microsoft for SQL and SharePoint VSS User Guide l NetWorker Module for Microsoft for SQL VDI User Guide

l NetWorker Module for Microsoft for Exchange VSS User Guide l NetWorker Module for Microsoft for Hyper-V VSS User Guide

l NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution User Guide l NetWorker Module for Microsoft Advanced Recovery Guide

l NetWorker Performing backup and recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI solution Technical Notes

l NetWorker Performing Exchange Server Granular Recovery by using NetWorker Module for Microsoft with Ontrack PowerControls Technical Notes

l NetWorker SharePoint BLOB Backup and Recovery by using NetWorker Module for Microsoft and Metalogix StoragePoint Technical Notes

Special notice conventions used in this document EMC uses the following conventions for special notices:

NOTICE

Addresses practices not related to personal injury.

Note

Presents information that is important, but not hazard-related. Typographical conventions

EMC uses the following type style conventions in this document:

Italic Use for full titles of publications referenced in text Monospace Use for:

l System code

l System output, such as an error message or script l Pathnames, file names, prompts, and syntax l Commands and options

(13)

Monospace italic Use for variables

Monospace bold Use for user input

[ ] Square brackets enclose optional values

| Vertical bar indicates alternate selections - the bar means “or” { } Braces enclose content that the user must specify, such as x or y or z ... Ellipses indicate non-essential information omitted from the example

Where to get help

EMC support, product, and licensing information can be obtained as follows: Product information

For documentation, release notes, software updates, or information about EMC products, go to EMC Online Support at https://support.emc.com.

Technical support

Go to EMC Online Support and click Service Center. You will see several options for contacting EMC Technical Support. Note that to open a service request, you must have a valid support agreement. Contact your EMC sales representative for details about obtaining a valid support agreement or with questions about your account. Online communities

Visit EMC Community Network at https://community.emc.com for peer contacts,

conversations, and content on product support and solutions. Interactively engage online with customers, partners, and certified professionals for all EMC products.

Your comments

Your suggestions will help us continue to improve the accuracy, organization, and overall quality of the user publications. Send your opinions of this document to

[email protected]

Preface

(14)
(15)

CHAPTER 1

Introduction

This chapter includes the following sections:

l Using NMM with Virtual Device Interface... 16

l NMM environments backup and recovery... 16

l Using NMM in a SQL VDI environment... 21

l Access privileges for backup and recovery...27

l SQL Server backups... 28

l SQL Server recovery...33

l User interfaces for backup and recovery... 36

l Error logs for backup and recovery...37

l Prerequisites...37

(16)

Using NMM with Virtual Device Interface

You can use the EMC® NetWorker® Module for Microsoft (NMM) release 8.2 Service Pack 1 software to backup and recover SQL Server data. NMM utilizes the Virtual Device Interface (VDI), an API provided by Microsoft SQL Server, to integrate with the SQL Server and enable the NetWorker software to back up and recover SQL Server data.

Note

If you are a NetWorker Module for SQL Server (NMSQL) user and are migrating to NMM with VDI, perform a full backup of the SQL Server data by using NMM with VDI because any SQL snapshot data backed up by using NMSQL cannot be recovered by NMM with VDI (using the NetWorker User for SQL GUI).

NMM environments backup and recovery

This section provides information about backup, recovery, and cluster environments.

Backup environments

This section provides details about the various NMM environments for SQL Server backups using VDI.

Traditional backup environment (non-federated, non-client direct, or non-direct file access)

The figure in this section describes the process interactions between the NetWorker client (NMM), the NetWorker server, and the SQL Server during a traditional backup.

(17)

Figure 1 Traditional backup command and data flow

The following process occurs in a traditional backup:

1. The nsrd program starts the backup on the NetWorker server.

2. The savegrp program executes the NMM backup command (nsrsqlsv) on the client instead of performing a standard NetWorker save.

3. The nsrsqlsv program passes the backup data from SQL Server to the NetWorker server through an X-Open Backup Services application programming interface (XBSA). The NetWorker server performs all scheduling and storage management tasks.

The NetWorker Administration Guide provides information about the NetWorker services and operations.

Federated backup environment

The figure in this section describes an overview of the process interactions between the NetWorker client (NMM), the NetWorker server, and the SQL Server during a federated backup.

Note

Federated backups are only available for SQL Server 2012 or later.

Introduction

(18)

Figure 2 Federated backup command and data flow

During a federated backup, the save group command starts and creates the process in the active node of the Windows cluster. When the backup is started from the NetWorker server, a process called the master/co-ordination process computes and detects the Backup Preference and priority from the Availability group, and starts the slave backup process in detected preferred node.

(19)

Recovery environments (non-client direct or non-direct file access)

The figure in this section describes the functional relationship between the NetWorker client (NMM), the NetWorker server, and the SQL Server during a traditional recovery operation.

Figure 3 Traditional recovery command and data flow

The following process occurs in a traditional recovery operation: 1. The nsrsqlrc command starts the recovery.

2. The NetWorker XBSA API translates the object names requested by NMM into a format NetWorker understands, and forwards the translated object names to the NetWorker server nsrd service.

3. The media service, nsrmmd, starts the nsrmmdbd command to search the NetWorker server’s media database for the volumes that contain the objects requested.

4. After the media is mounted, the nsrmmd program sends the data through the NetWorker XBSA API to nsrsqlrc, which recovers the data to the SQL Server directories.

NMM recovery interactions with the SQL Server

NMM stops and starts the SQL Server and dependent services when a SQL instance-level recovery takes place.

Introduction

(20)

When recovering the SQL Server system database like master and msdb, the nsrsqlrc program automatically stops and restarts the SQL Server services appropriately, as follows:

1. Before the recovery process begins, NMM stops the SQL Server and other dependent services.

When the SQL Server Analysis Services (SSAS) is running, it might use the only available database connection if the SQL Server is in a single-user mode. Stop the Analysis Services before restoring the master database.

2. NMM starts the SQL Server in single-user mode. 3. NMM performs the recovery.

4. After the recovery process finishes, NMM waits for the SQL Server to shut down. 5. For stand-alone and cluster environments, NMM restarts the SSAS.

When recovering a master database, there can be timing issues related to stopping and starting of services. Manually stop all SQL Server services, except for SQL Server itself, before initiating the recovery.

Cluster environments

NMM can back up or recover data exported by a SQL Server that is running as a SQL virtual server in an WSFC cluster.

NMM uses the SQL virtual server name to perform the following tasks: l Connect to the appropriate SQL Server instance.

l Initialize the SQL Server VDI to accept data from or deliver data to the appropriate SQL Server in the cluster.

l Create entries in the NetWorker client file index.

The NetWorker media database or client file index is indexed according to the client that performs a particular backup. NMM creates index entries under the virtual server name in the NetWorker client file index.

Note

Backup and recovery of SQL Server data in a cluster, by using NMM, requires Cluster Client Connection licenses on the NetWorker server host. A separate Cluster Client Connection license is required for each node in the cluster.

The NetWorker Power Edition includes two cluster client licenses of the same platform type. When a cluster contains more than two nodes, additional Cluster Client Connection licenses are required. The NetWorker Workgroup Edition and the NetWorker NetWork Edition can back up cluster nodes only if Cluster Client Connection licenses have been added to the NetWorker server.

How NMM detects SQL Server instances

NMM automatically detects all the SQL Servers in a WSFC cluster, including the SQL virtual servers.

NMM detects the SQL Servers only on the active nodes, whenever: l The NetWorker User for SQL Server program is started.

l The Select SQL Instance option is selected. l A backup or recovery is started.

(21)

NMM provides failover cluster support by using the multiple instance features provided in the SQL Server. In a failover configuration, the SQL virtual servers run as either default instances or as named instances. One default instance of a SQL virtual server might be installed. Additional SQL virtual servers might be installed as named instances, where each instance name must be unique within the cluster.

Multiple named instances are supported as SQL virtual servers in a cluster configuration. The number of instances supported depends on the SQL Server version being used in your setup. The NetWorker Module for Microsoft Installation Guide and Microsoft SQL Server documentation provide more information.

Each named SQL virtual server instance has the following qualities: l A unique IP address, network name, and instance name.

l Data files installed on a clustered drive that belongs to the same cluster group as the virtual server.

Active and passive cluster configurations

When the NetWorker User for SQL Server GUI is started on the active node, NMM automatically uses the SQL virtual server as the client name for reading or writing to the NetWorker media database and client file index.

If the SQL Server fails over to the secondary cluster node and the NetWorker User for SQL Server program is started on the secondary node, NMM automatically uses the SQL virtual server name.

If there is one SQL virtual server running on each physical node in the cluster, an active or active cluster configuration exists, and the following occurs:

l NMM automatically communicates with the SQL virtual server running on the same physical node if no failover has occurred and each SQL virtual server is running on a different physical node.

l The Select SQL Instance option from the Operation menu is disabled.

However, if one of the physical cluster nodes goes offline (for example, if a failover occurs) and both SQL virtual servers are running on the same physical cluster node when the NetWorker User for SQL Server GUI is started, the Select SQL Instance dialog box appears. The Select SQL Instance dialog box lists the SQL Server instances. After

selecting an instance from the Select SQL Instance dialog box, NMM attempts to validate the instance as a NetWorker client.

Using NMM in a SQL VDI environment

This section provides information about using NMM in a SQL VDI environment.

Supported Windows Server and SQL Server versions

The NetWorker Online Software Compatibility Guide on the EMC Online Support website lists the most up-to-date information about supported Windows Server and SQL Server versions.

Migrating from VSS solution to VDI solution for SQL Server data protection

Perform the required steps if you are using an NMM version earlier than NMM 2.4 to recover SQL Server data with VSS technology, and would now like to use NMM 8.2 or later to back up and recover SQL Server data with VDI technology.

l Clear the Snapshot option in Backup Group Properties.

Introduction

(22)

l Specify the Backup Command as nsrsqlsv. For SQL virtual server in a cluster environment, specify nsrsqlsv -A SQL virtual server.

l Keep the Application Information field blank.

l Change the save set to MSSQL: for SQL default instance level backup or

MSSQL:dbname for database level backup on a SQL default instance.

AlwaysOn Availability Group feature of Microsoft SQL Server 2012 or later

NMM supports the SQL Server 2012 or later AlwaysOn feature, which allows multiple replicas of a database. Each set of availability database is hosted by an availability replica.

Two types of availability replicas exist:

l A single primary replica, which hosts the primary databases.

l One to four secondary replicas for SQL Server 2012 and one to eight secondary replicas for SQL Server 2014, each of which hosts a set of secondary databases and serves as a potential failover targets for the availability group.

The secondary replicas can be configured to be in either synchronous or asynchronous mode.

Note

To perform backups of secondary replicas by using NMM, set the Readable Secondary option of SQL Server 2012 or later AlwaysOn configuration to “Yes.” Enable this option for the primary and the secondary replicas, because during failover of an availability group, the secondary replicas become primary and vice versa.

NMM supports the Availability Group functionality that SQL Server 2012 has introduced with AlwaysOn. An availability Group is a logical group of databases that have the AlwaysOn capability. The Availability Group is failed over to other nodes as a group, that is, all the databases that are part of the Availability group are failed over together during failure or manual failover.

The Microsoft website describes the AlwaysOn Availability Group functionality in SQL Server 2012, and provides detailed information about how to configure your setup to utilize this support.

When using SQL Server 2012 or later databases that are configured with AlwaysOn, break the replication before recovering the databases. You can use either the Microsoft SQL Server Management Studio GUI or the query window for this task.

SQL Client Direct to AFTD or DD devices

The NetWorker client software enables clients with network access to Advanced File Type Device (AFTD) or Data Domain devices to send their backup data directly to the devices, bypassing the NetWorker storage node.

The Client Direct feature is enabled by default, but can be disabled on each client by clearing the Client Direct attribute. When a Client Direct backup is not performed, a traditional storage node backup is performed instead.

The nsrsqlsv.raw backup log displays details about the Client Direct activity for the SQL Server.

Microsoft SQL Server named log marks

Microsoft SQL Server enables enhanced point-in-time restore operations by allowing

(23)

create named log marks when transactions are performed. The marks enable access to specific transaction points in a database transaction log backup. NMM restores to the beginning or end of a named log mark during a database restore. Restoring data by using named log marks is an improvement over point-in-time restore. The time associated with restoring to a specific transaction can be more accurately determined.

When a named log mark is created in the SQL Server database, the log mark time is saved to the millisecond. However, NetWorker’s time format, which is used to specify point-in-time restore, only supports granularity to the second. If named log marks with duplicate names are created within a second of each other, NMM restores to the most recently named log mark.

Transaction log maintenance

NMM provides implicit and explicit methods for managing SQL Server database transaction logs:

l Implicit management—Implicit management uses log backups to manage log space. This management can occur when:

n A backup schedule is implemented that includes incremental (transaction log level) backups.

n You run the nsrsqlsv command with the -l incr option.

l Explicit management—Explicit management can be performed by using the following options:

n Specify the nsrsqlsv command on the command line, with or without the -T option (Truncate Only) for SQL Server 2005 or the -G option (No Log). Both the -T and -G command options are compatible with level full and level 1 (differential) backups. If the -T or -G command options are specified, then the SQL Server truncates the transaction log before the backup completes.

The transaction log truncation after the backup takes place when NMM

determines that the database does not support transaction log backups. The SQL Server databases that use the simple recovery model do not use transaction log backups.

n Select the Truncate content before performing backup option in the Database Properties page.

Prevent log overflow

In Windows, prevent database logs from overflowing available log space by creating an alert in the SQL Server Performance Monitor that forces an incremental backup when the database’s log space reaches a certain capacity (for example, 80% full). An alert is a user-defined response to a SQL Server event. An incremental (transaction log) backup truncates the logs and clears disk space.

Named and default instances of SQL Server

NMM supports backup and recovery of named and default instances.

NMM supports recovery from the default instance or named instances of SQL Server, using a copy restore to any instance of a SQL Server. This includes recovery operations when the destination server is different from the source.

Each named instance has a unique instance name in the following format: computerName\instanceName

where:

l computerName is the network name of the computer.

Introduction

(24)

l instanceNameis the logical name of the named instance.

Note

When naming a SQL database or an instance, select names that are unique. Examples of poor database name choices are: the name SQL Server uses to identify itself (MSSQL:) and names of installed SQL instances you have installed

The syntax for specifying a SQL standalone named instance of SQL Server at a command prompt is as follows:

MSSQL$Standalone_Named_Instance:[dbName ...][.fgName ...][.fileName ...] An entry of MSSQL: for the Save Set attribute during the Client resource configuration

yields a backup of all databases on the SQL Server host.

When running multiple instances, the nsrsqlsv and nsrsqlrc commands only support specification of one instance at a time. If save sets for more than one instance are specified, the backup or restore operation fails.

Index entries for stand-alone named instances are created by using the local host on which the instance is running. Index entries for clustered named instances are created with the SQL virtual server name. To differentiate backups for the default instance and named instances, the index name has been extended to logically partition the index for a client.

All running named instances are maintained in the client file index directory, excluding clustered instances and the default instance. This named instance directory is created at the end of each traditional backup. Running nsrinfo after backups verifies the existence of this directory, for example:

%SystemDrive% nsrinfo -V -L -n mssql <client name>

Multi-stream Data Domain Boost

NMM supports multi-stream backups for a SQL Server to a Data Domain device. This support leverages the Data Domain Boost feature. SQL Server multi-stream backups over Data Domain Boost enhances the performance by running the backups three times faster.

Database consistency checks

NMM provides the option for database consistency checks (DBCC) before backup is performed.

A DBCC performs a thorough check of the entire database. It examines all tables in the database to find out whether index and data pages are correctly linked and indexes are in proper-sorted order. It also checks that all pointers are consistent and that the data information on each page, and page offsets are reasonable. It enables the early

recognition of problems and thus prevents problem escalation and possible loss of data. You can run DBCC from either of the following options:

l For manual backups: From the EMC NetWorker page of the Microsoft SQL Server Management Studio. Performing manual backups from the Microsoft SQL Server Management Studio GUI on page 41 provides more information.

l For manual backups: From the NetWorker User for SQL Server GUI:

n Select the Perform DBCC consistency checks option in the Database Properties page by right-clicking a database in the Backup page.

n Select the Perform DBCC consistency checks option in the General tab in the Backup options window.

(25)

Performing manual backups from the NetWorker User for SQL Server GUI on page 44 provides more information.

l For scheduled and federated backups: From the NetWorker Management Console (on the NetWorker Server):

n Type NSR_CONSISTENCY_CHECKS=<database1,datbase2> in the Application Information field, where with the database names in an instance for which you want to run a consistency check are added along with the variable.

For example: NSR_CONSISTENCY_CHECKS=testdb3,CopyOfDB010,test4

Ensure that there are no spaces between the database names. For example, using

NSR_CONSISTENCY_CHECKS=testdb3, CopyOfDB010,test4 is incorrect.

n Add NSR_CONSISTENCY_CHECKS=ALL in the Application Information field, to specify all the databases in an instance for which you want to run a consistency check.

l From the Client Backup Configuration wizard, select the Perform DBCC consistency check option when configuring the client resource. Either select All to perform DBCC for all the databases in an instance, or specify the databases for which you want to run the DBCC checks.

l From the Command Line, in addition to various other backup command options with the nsrsqlsv command:

n Type the command option -j testdb3,CopyOfDB010,test4 to perform DBCC checks for databases in an instance.

Where testdb3, CopyOfDB010, and test4 are the names of the databases in the instance. Ensure that there are no spaces between the database names. For example, using testdb3, CopyOfDB010,test4 is incorrect.

n Type the command option -j ALL to perform DBCC checks for all the databases in an instance.

If the DBCC runs successfully for a database, a message appears in the NMM logs or backup output page.

Figure 4 Message showing DBCC was successful

If DBCC for a database fails, the failure status appears as part of savegroup notification and the backup of the database is skipped. The DBCC failure is reported in the NMM logs or backup output page.

Introduction

(26)

Improved SQL save group notifications

A notification provides information about events that occur in the NetWorker and NMM environments. By default, the NetWorker server sends notifications to log files that are located in the install_dir\applogs directory.

In previous NMM releases, when SQL Server instance-level backups of the MSSQL: and MSSQL$<INSTNACE NAME>: were performed, the complete information of backup success or failure was not displayed in the NetWorker Server save group notifications.

NMM provides support for SQL save group notifications that list the backup success or failure status, with important details about a failure that has occurred.

The following figure shows an example of SQL save group notification.

Figure 5 Example of SQL save group notification

Support on Microsoft Hybrid Cloud environment

NMM supports SQL Server 2014 VDI backups and recoveries on Microsoft Hybrid Cloud environment. Both Private and Hybrid cloud are supported for SQL Server 2014 for standalone and federated environments. The NetWorker server must be deployed only in the On Premise site for this support.

The On-Premise backup workflow is the same as that for SQL Server 2012 or later AlwaysOn Availability Group.

AlwaysOn Availability Group feature of Microsoft SQL Server 2012 or later and Federated Backup on page 63 provides details.

(27)

Access privileges for backup and recovery

This section lists the privileges that must be taken care of before performing backup and recovery.

l Grant the Windows logon account that the NMM backup process uses to connect to SQL Server the following roles:

n SQL Server system administrator (sysadmin) role to issue the T-SQL BACKUP query.

n SQL Server sysadmin role to open a shared memory handle when initializing the VDI.

l Ensure that the NMM administrator is a member of the: n Local backup operators group.

n Local administrators group.

l Windows Server 2008 introduced User Access Control, which causes processes to run as a standard user even if part of the administrator’s group. NMM processes account for this change.

l Before performing a SQL Server 2012 or later backup, ensure that for Windows Server 2008 R2 the User Account Control is disabled for administrators.

Perform these steps:

1. Open the Local Security Policy (secpol.msc) on the Windows 2008 R2 client. 2. Go to Local Policies > Security Options.

3. Change User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode to Elevate without prompting.

4. Disable User Account Control: Run all administrators in Admin Approval Mode. 5. Restart the machine.

The esg114125 on the EMC Online Support (http://support.8.2.com) provides details.

l (For SQL Server 2012 and later) In the SQL Server Management Studio > Security > Login > Login Properties page, provide the SQL Server system dbcreator, public, and sysadmin permissions to the Windows logon account. Provide these

permissions to the NTAUTHORITY\SYSTEM user.

Introduction

(28)

Figure 6 Granting permissions to view subcomponents in the SQL Management Studio

l When installing NMM, you are required to log in with Administrator privileges.

However, if you are logged in as a Domain User, provide the Run as Administrator

privilege before using NMM.

SQL Server backups

This section provides an introduction about backups of SQL Server by using NMM.

Types of supported backups

NMM supports manual, scheduled, and federated backups of the SQL Server. l Manual or traditional backup—NMM provides support for traditional backups.

Traditional backups are often referred to as manual backups. A traditional backup of SQL data can be performed at any time and is independent of any scheduled backup. NMM supports traditional backup of:

n Database n File n Filegroup n Filestream

(29)

n Transaction log

In addition to creating full backups of file or filegroup, the SQL Server supports the creation of filegroup differential and file differential backups.

A filegroup differential backup can actually reduce both media requirements and recovery time. The data can be stored across more than one disk or disk partition, and recovery time is reduced. A differential can substitute for any log backups performed between the full and differential backups. A full backup must be performed first.

Note

A full backup of SQL Server data (including files and filegroups) created by using NMSQL can be recovered by using NMM. However, NMM cannot recover snapshot (PowerSnap based) backup created by using NMSQL.

l Scheduled backup—The most reliable way of protecting SQL data is to ensure that backups of the SQL Server are run at regular intervals, that is, setting up scheduled backups. Scheduled backups ensure that all SQL Server data is automatically saved, including the NetWorker server’s client indexes and bootstrap file. The client indexes and bootstrap file are vital for restoring data to the SQL Server in the event of a disaster.

l Federated backup—NMM provides support for SQL Server 2012 or later federated backup functionality for SQL Server 2012 AlwaysOn databases.

Backup levels

NMM supports three levels of backup.

The following table describes the SQL Server VDI backup levels.

Table 2 Backup levels in NMM for SQL VDI backups

Backu p levels

Description

Full Entire database backup, including all filegroups or files in the database. Increm

ental

An incremental backup, corresponds to a SQL Server transaction log backup. A log file backup by itself cannot be used to recover a database. A log file backup is used after a database recovery to restore the database to the point of the original failure.

Differe ntial

A differential backup, specified as any level from 1 to 9, is performed from the

command line, and created a copy of all the pages in a database modified after the last full database backup.

The following table shows how the terminology for backup levels used in the SQL Server product differs from the terminology used for NMM.

Table 3 Terminology used in NMM and the corresponding SQL Server term

NMM

term Function Corresponding SQL Serverterm

Full Backs up an entire file, filegroup, filestream, or database.

File, filegroup or filestream, or database backup

Introduction

(30)

Table 3 Terminology used in NMM and the corresponding SQL Server term (continued)

NMM

term Function Corresponding SQL Serverterm

Incremen tal

Backs up all transaction log changes since the most recent full, differential, or transaction log backup.

Transaction log

(also called xlog)backup Differenti

al

Backs up all database changes since the last full backup.

Differential backup

Setting backup levels

NMM enables you to specify backup levels in addition to database full, database differential, and database incremental.

The availability of a backup level depends on the type of data selected for backup and any SQL Server settings on those objects, as listed in the following table.

Table 4 Backup levels for SQL Server data

SQL Server data objects Supported SQL Server versions

full diff incr

All databases of SQL default or named instances yes yes yes

Specified databases yes yes yes

All filegroups in specified databases yes yes N/A Filestream data in specified databases yes yes yes Specified filegroups in specified database yes yes N/A Specified files in filegroups in specified databases yes yes N/A

For SQL Server data objects for which incremental backup can be performed, ensure that the SQL Server database options are properly configured. The Microsoft SQL Server documentation provides more information. Individual items are subject to promotion.

Example strategies for backing up SQL Server data

This section describes example strategies for backing up SQL Server data. If the SQL Server manages a significant amount of data, schedule a backup of the databases every one to two weeks, as shown in the following table.

Table 5 Full backup every one to two weeks

Fri Sat Sun Mon Tues Wed Thurs

full incr incr incr incr diff incr incr incr incr diff incr incr incr full Repeat

(31)

Another backup strategy is to schedule incremental backups on several successive days immediately following the previous full backup, as shown in the following table. This schedule backs up all data that has changed since the previous incremental backup.

Table 6 Incremental backup after a full backup

Fri Sat Sun Mon Tues Wed Thurs

full incr incr incr diff incr incr Repeat

A level 1 differential backup can also be scheduled after several days of incremental backups. This schedule backs up all data since the previous full backup.

NOTICE

If a database is read-only, perform a full backup of the database. A read-only database cannot be restored from a transaction log backup that already exists.

Using backup levels

Because it is not practical or efficient to run full backups every day, other backup levels can be specified for automatic, scheduled backups. Limiting the frequency of full backups can decrease server load while ensuring data is protected.

Differences between backup levels

The following table outlines the differences between the backup levels.

Table 7 Backup level advantages and disadvantages

Backup level Advantages Disadvantages

Full l Fastest restore time. l Slow backup.

l Increases load on client, server, and

network.

l Uses the most volume space.

Incremental (transaction log)

l Faster than a full backup. l Decreases the load on server

and Uses the least volume space.

l Enables point-in-time restore.

l Slow restore.

l Data can spread across multiple

volumes.

l Multiple transaction logs can spread

across multiple volumes. Differential l Faster than a full backup.

l Captures all changes since last

full.

l Generally more time-consuming than

a incremental backup (depending on the backup schedule strategy).

Combining data objects to create backup levels

NMM enables the selection of SQL Server data objects in various combinations to create scheduled backups of different levels, as shown in the following table.

Introduction

(32)

Table 8 Creating additional backup levels with data objects

Backup level Database objects

Full database Select one or more databases to create a level full database backup of the selected databases and their transaction log files.

Full file or filegroup Select one or more files or one or more filegroups to create a level full file or filegroup backup of the selected files or filegroup, but not their transaction logs.

Database incremental

Select one or more databases to create a database incremental level backup of only the incremental for the selected databases.

The SQL database must be previously configured to enable incremental backups.

Database

differential (level 1)

Select one or more databases to create a database level differential backup of only the changes made to the selected databases since the last full level backup was created.

File or filegroup differential

Select one or more files, or one or more filegroups to create a file or filegroup level differential backup of only the changes made to the selected files or filegroups since the last full level backup was created.

Promoting backup levels

Guidelines for Microsoft SQL Server best practices indicate that a full database backup should be the first step in implementing a recovery strategy for a database. In adhering to these guidelines, the NMM supports backup level promotion. The following table

explains what prompts a promotion.

Table 9 Backup level promotion process

Item Requested

level Level ofpromoted Reason

Database Differential Full Database full backup does not exist. Database Incremental Full l Database full backup does not exist.

l Transaction log backup types are not

supported for simple recovery model databases.

l Database is currently in emergency

mode.(1) on page 32

File/Filegroup Full Database full Full backup of the entire database does not exist.(2) on page 33

File/Filegroup Differential Database full Full backup of the entire database does not exist.

File/Filegroup Incremental Full File or filegroup incremental backups are not supported.

Table 9 Backup level promotion process

(1) Refer to the Microsoft SQL Server Books Online for more information.

(33)

Table 9 Backup level promotion process

(2) Databases consist of files and groups that contain files. The default configuration is a primary filegroup with the main data file. Elaborate database configurations can contain more filegroups; each with more files. If a filegroup or file level backup is specified, and a full database backup is not on record, the filegroup or file backup is promoted to a database full backup.

SQL Server recovery

This section provides an introduction about recovery of SQL Server by using NMM.

Types of supported recovery

This section lists the types of supported recovery for SQL Server VDI.

NOTICE

NMM supports recovery of a SQL Sever 2012 or later database only after the AlwaysOn replication has been removed for the corresponding database.

The following table lists the types of recovery for SQL Server VDI in NMM.

Table 10 Types of recovery for SQL Server VDI

Type of

recovery When used Description

Traditional recovery

For data that was backed up by traditional backup, NMM supports traditional recovery.

Data recovery from a traditional backup can be performed:

l At any time by using NMM.

l By running NMM recover command (nsrsqlrc) from

the command prompt.

Traditional recovery operations recover files, filegroups, databases, and transaction log backups. Normal

recovery

NMM uses the normal restore type as the default.

The normal restore type restores:

l The entire set of data associated with one or more

SQL Server backups, including full, incremental, and differential backups.

l A file, filegroup, or a database to the database

originally backed up.

l Level full, level 1 (differential), and level incremental

backups in the order required by SQL Server. NMM can back up and restore specified files and filegroups. In addition, a single filegroup, or multiple filegroups or files, can be restored from a full database backup.

Copy recovery

A copy recovery is an operation in which data is recovered to a SQL Server host other than

The copy recovery type creates a copy of a database by restoring a SQL Server database to a new location, or to a new database name. The copy recovery type makes it easy to duplicate a database that was previously backed

Introduction

(34)

Table 10 Types of recovery for SQL Server VDI (continued)

Type of

recovery When used Description

the one from which it was backed up. Note that copy restore from and to the same SQL Server instance can also be done.

up. You can only mark a single item for this operation. In addition, you can copy a system database, but you cannot overwrite it.

NMM does not support copy recovery of filestream databases.

Recovery modes

To recover a database, you must specify a recovery mode. A recovery mode instructs the SQL Server how to interact with the database after the recovery operation completes. For instance, recovery modes can leave the database in an intermediate state, so that additional transaction logs can be applied.

The following table shows how the recovery modes correspond to SQL Server database restore options.

Table 11 Recovery modes

Types of recovery mode

Description

Normal The normal restore mode instructs SQL Server to leave the database in an operational state after the restore completes. This then enables database reads and writes. The normal restore mode is the default mode NMM uses when restoring a database.

No-recovery The no-recovery restore mode activates the SQL Server NORECOVERY database restore option for the last stage restored. The no-recovery restore mode places the database in a state that cannot be loaded after the restore, but is still able to process additional transaction log restore operations.

Standby The standby restore mode activates the SQL Server STANDBY database restore option for the last stage restored, which forces the database to be in a read-only state between transaction log restore operations. The standby restore mode provides an undo file for SQL Server to use when rolling back the transactions. Online SQL Server provides the ability to perform a restore operation while a SQL Server

database is active. The database is completely offline only while the primary filegroup is being restored. Once the primary filegroup is restored, the database can be brought online while the rest of the filegroups are being restored, and then only the data that is being restored is unavailable. The rest of the database remains available during this type of restore. Earlier versions of SQL Server require that you bring a database offline before you restore the database.

Recovery time

Backups can be recovered to a specific time. The recovery time controls which backup data should be reinstated when a database is recovered. The recovery time also controls

(35)

the portions of an incremental level backup that must be recovered when NMM is instructed to discard transactions performed after a given time.

The default or current recovery time for each database comes from the create time of the marked item. By default, the most recent backup is recovered. If the most recent backup is incremental level or 1, dependent backups are recovered first. User-specified recovery times can restore older backup versions or perform point-in-time recovery operations. For example, a point-in-time recovery is specified by using a recovery time that is earlier than the create time of the transaction log backup, but later than the create time of the previous backup.

NMM provides three methods for recovering to a specific time: l Database backup versions

l Point-in-time recovery of a transaction log (level incremental) backup l Recovering to a named log mark

Recovery window restrictions

In the Recovery window, the rules for marking an item are based on the selected restore type. The normal restore type does not restrict marking in any way. All restorable objects (file, filegroup, filestream data, database) can be marked. When the copy restore type is chosen, only one database object can be marked. Marking the root SQL Server item is not permitted, the filegroups and files of the selected database are automatically marked and restored as part of the full database restore.

The recovery process

This section describes the recovery process. A recovery uses the following process:

1. NMM recovers the most recent full backup, and then recovers the most recent differential (level 1) backup (if any).

If a full database backup is removed from the NetWorker server, and an incremental backup is attempted, the recovery fails. NMM checks the SQL Server instance to determine if a full database backup was performed, but does not verify if a full backup still exists on the NetWorker server.

2. NMM recovers all the transaction log backups that ran after the most recent differential backup (or that ran after the last full backup, if there was no differential backup). To correctly recover uncommitted transactions, the SQL Server NORECOVERY mode is specified for all intermediate transaction logs.

The recovery of the final transaction log specifies the restore mode if STANDBY or NORECOVERY is selected. The default selection is Normal.

For example, if you selected a restore mode of NORECOVERY, that specification appears in the output for a database restore as follows:

C:> nsrsqlrc -s NetWorker_server_name my_database nsrsqlrc: Restoring database my_database... nsrsqlrc: RESTORE database my_database FROM virtual_device='BSMSQL' WITH norecovery, stats nsrsqlrc: RESTORE database my_database from

virtual_device='BSMSQL' WITH norecovery (differential) nsrsqlrc: RESTORE transaction my_database FROM virtual_device='BSMSQL' WITH norecovery

Introduction

(36)

nsrsqlrc: RESTORE transaction my_database FROM virtual_device='BSMSQL' WITH norecovery

Received 1.0 MB 4 files from NSR server.

NMM imposes the following restrictions on database file relocation:

l Only database backups can be relocated. Individual file and filegroup backups cannot be relocated without relocating the database that contains those files. l If the configuration of a database has changed since the most recent, level full

database back up was created, you cannot relocate the database. Configuration changes include the deletion or addition of files, filegroups, or transaction log files. l A system database might not be the destination database of a relocation.

l The relocation fails if the destination does not have sufficient space to create a new database.

User interfaces for backup and recovery

This section summarizes the various locations from where backup procedures can be initiated and the backup levels that are supported for each interface.

The NetWorker Module for Microsoft Administration Guide provides details about the NetWorker User for SQL Server GUI and NetWorker SQL Adhoc Plugin.

Table 12 Where to initiate backup operations

Backup type Backup initiated from Backup levels available

Full Incr Diff

Scheduled

Scheduled Backup on page 51

provides details.

The NetWorker Administration GUI on the NetWorker server

Yes Yes Yes

Manual

Manual Backups on page 39 and

Command Line Interface on page 119 provide details.

Command line on the SQL Server, which is the client

Yes Yes Yes NetWorker User for SQL Server

GUI

Yes No No NetWorker SQL Adhoc Plugin Yes Yes Yes

The following table summarizes where recovery procedures can be initiated.

Table 13 Where to initiate recovery operations

Recovery type Recovery initiated from

Full

Data Recovery on page 71 provides details.

NetWorker User for SQL Server GUI NetWorker SQL Adhoc Plugin

(37)

Error logs for backup and recovery

To help you diagnose problems, certain information is written to an application-specific log file during backup and restore operations.

The following types of information are available: l Software configuration information

l Operation parameters

l Operation status and error messages

Application logs are generated for the nsrsqlsv.exe and nsrsqlrc.exe programs, and are created in the nsr\applogs folder on the SQL Server host. NMM logs are cumulative and are appended each time the nsrsqlsv.exe or nsrsqlrc.exe program runs. A log is truncated when disk space is exhausted. The following table cross-references the program and log file names.

Table 14 Program and log file names

Program Log file

nsrsqlsv.exe nsrsqlsv.raw nsrsqlrc.exe nsrsqlrc.raw XBSA library code xbsa.messages

The logging capabilities of nsrsqlsv and nsrsqlrc are not cluster-aware. For both clustered and nonclustered configurations, the logs are stored on a local disk. The xbsa.messages file collects messages from the X-Open Backup Services application programming interface.

Prerequisites

When installing NMM, you have the option of running the System Configuration Checker from the installer. It is recommended that you run the System Configuration Checker to ensure that your setup is properly configured for backup and recovery.

The NetWorker Module for Microsoft Installation Guide provides details.

In addition, ensure that the following prerequisites are taken care of before performing backup and recovery procedures:

l Scheduled backup—Prerequisites on page 53 l Data recovery—Prerequisites on page 72

l Cluster backup and recovery—Prerequisites on page 108

Introduction

(38)
(39)

CHAPTER 2

Manual Backups

This chapter includes the following sections:

l Overview of manual backups...40 l Performing manual backups...40 l Specifying browse and retention policies for manual backups...41 l Performing manual backups from the Microsoft SQL Server Management Studio GUI

... 41 l Performing manual backups from the NetWorker User for SQL Server GUI... 44

(40)

Overview of manual backups

You can initiate a manual backup of SQL data at any time. A manual (unscheduled) backup can be started immediately.

The following combinations of data objects can be backed up by using NMM: l The entire SQL Server storage hierarchy

l One or more entire databases l One or more filegroups

l One or more files in a filegroup

l A heterogeneous collection of files, filegroups, and databases l Transaction log backups

Note

Filestream data, stored in SQL Server 2008 or later databases, is displayed in the backup window as a single filegroup folder with no subordinate objects

The storage hierarchy is defined as the database storage components exposed to third-party backup vendors by the SQL Server Storage Engine. The storage components include files, filegroups, databases, and transaction logs.

You must log on the NetWorker client host with an account that has SQL Server administrative privileges.

Performing manual backups

You can perform a manual backup by using either the EMC NetWorker tab in the Microsoft SQL Server Management Studio GUI or the NetWorker User for SQL Server GUI.

When performing a manual full level backup of a file or filegroup, also perform a database incremental level backup to maintain the validity of the transaction log.

NOTICE

For maximum data protection, perform scheduled NetWorker backups of SQL Server databases at regular intervals. Scheduled Backup on page 51 provides details on running scheduled backups. Manual backups are generally performed under special circumstances, such as during setting up of NMM. Due to the complexity of configuring scheduled backups, you should first either perform a manual backup or use the Client Backup Configuration wizard to configure a basic scheduled backup.

Procedure

l The EMC NetWorker option—You can use the EMC NetWorker tab in the Microsoft SQL Server Management Studio GUI to perform a backup from a single user interface, without having to navigate between the NetWorker User for SQL Server GUI and the Microsoft SQL Management Studio GUI. Performing manual backups from the Microsoft SQL Server Management Studio GUI on page 41 provides details. l The NetWorker User for SQL Server GUI—You can start a manual backup from the

NetWorker User for SQL Server GUI. Performing manual backups from the NetWorker User for SQL Server GUI on page 44 provides details.

(41)

l The nsrsqlsv command from the command prompt—Command Line Interface on page 119 provides command syntax.

Specifying browse and retention policies for manual backups

If a browse or retention policy is specified with a manual backup from the command prompt, the browse or retention policy takes effect for all of the save sets included in the manual backup. Specify browse and retention policies with a manual backup from the command prompt by using the save -w -y command. Both the browse and the retention policies must be entered in time and date formats accepted by the nsr_getdate program. The EMC NetWorker Command Reference Guide or the UNIX man pages provide more information about save and nsr_getdate.

If a browse or retention policy is not specified for a manual backup, the policies are determined as follows:

l Browse policy - The save sets included in a manual backup adopt the browse policy of the Client resource. If there are multiple Client resources for the NetWorker host, the Client resource with the longest browse time is adopted. For example, if there are three Client resources for the NetWorker client mars, each with one of these browse periods:

n One week n One month n One year

l Retention policy - The save sets included in a manual backup adopt the retention policy of the Client resource according to the same rules that were described previously for browse policies. However, if a retention policy is set up for the media pool to which the backup is directed, the retention policy will be the longer of either: n The Client resource retention policy

n The media pool retention policy

Performing manual backups from the Microsoft SQL Server

Management Studio GUI

In the Microsoft SQL Server Management Studio GUI, select the SQL Server instance for which manual backup must be performed and click the EMC NetWorker Backup tab. In the EMC NetWorker page that appears, click the Backup tab to see the following views: l General

l Options l Monitor

The Script option is available in all the views. Click Script to generate the CLI equivalent script, which you can use to create a .bat file to perform scheduled backups, automation, and other tasks.

Manual Backups

(42)

General view

In the General view, under Source provide the required details.

Figure 7 General view

Procedure

1. In the SQL Server Instance field, select the SQL Server instance that you want to back up from the menu list. The SQL Server instance selected in the Microsoft SQL Server Management Studio GUI is displayed by default.

You can select the option to select all the databases in that instance for backup or select the particular database that you want to back up in that instance.

2. In the Databases field, select the particular database that you want to back up from the selected SQL Server instance.

3. The Recovery model is a read-only field.

4. In the Backup type field, select the backup type from the menu list: l Full

l Transaction Log l Differential

5. In the NetWorker Server field, the NetWorker server that was selected during the NMM installation appears in the NetWorker field. You can select a different NetWorker server from the list that is available. Use Update to update the list of available NetWorker servers.

The EMC NetWorker option for SQL Server Management Studio (SSMS) does not detect NetWorker server automatically when started.

6. In the > Debug level > field, select the level of debug information to be sent to the backup status window during the backup operation. Levels range from 0-9, with 0 representing no information and 1 representing the least amount of information. 7. Click Run.

(43)

Options view

In the Options view, provide the required details.

Figure 8 Options view

Procedure

1. Select the Perform DBCC consistency check option for a thorough check of the entire database before the backup is performed.

2. Select Perform checksum before writing to media option to perform a checksum operation with the backup and save the information to the backup media. Another checksum is performed before a restore to ensure that it matches the backup.

A checksum is used to detect a partial backup or restore state. The SQL Server verifies the checksum by calculating a local result and comparing it with the stored value. If the values do not match, you can choose to continue the backup or restore operation. Select the Continue on checksum error option to back up and restore if errors are detected.

3. Select the Create a striped backup option to enable the SQL Striped feature. If this attribute is checked, the Stripes list is enabled. To select the number of stripes for backup, select a number from the Stripes list.

The maximum number of stripes NMM supports is 32. However, the maximum number of stripes cannot be more than the value set for NetWorker client parallelism.

Striped Backup and Recovery on page 113 provides more information about striping. 4. Select the Select backup pool option. If this attribute is checked, the Full backup pool

menu is enabled. Select the type of pool you want to backup to from the Full backup pool menu. This option allows you to select the pool where this adhoc backup can be stored. The pools in the menu are picked from the NetWorker server.

5. Select the Deduplication option and then either Data Domain or Avamar. From the Select node menu, select the node details according to your setup.

6. Select the Use encryption option for the data to be backed up with AES encryption. Data is encrypted with the default or current pass phrase provided by the NetWorker Server. If the NetWorker Server has a different pass phrase at recovery time, you must

Manual Backups

(44)

specify the pass phrase used at the time of backup. The NetWorker Administration Guide provides complete information about AES encryption, and setting the pass phrase.

7. Select the Compress the backup content using NetWorker option to apply XBSA compression to all marked databases before writing the backup data to the storage device. In the same manual backup, certain databases cannot be backed up with compression and others without.

Compressing data for a backup generates less network traffic and uses less backup media space, but it consumes additional CPU resources. Most tape devices perform compression, which makes software compression unnecessary.

8. Select the Compress the backup content using SQL Server option to compress the backup content (using SQL Server). The Microsoft SQL Server product documentation provides more information.

9. Click Run to run the backup.

Monitor view

The Monitor view is similar to the Monitor view of the NetWorker User for Microsoft GUI. Use the Monitor view for the backup information.

Figure 9 Monitor view

Performing manual backups from the NetWorker User for SQL

Server GUI

The Backup window of the NetWorker User for SQL Server GUI displays data that is available for backup based on the SQL Server database settings. The SQL database items that cannot be backed up are not displayed in the Backup window.

The NetWorker Module for Microsoft Administration Guide provides an introduction to the NetWorker User for SQL Server GUI through which you can perform manual backups The SQL database items include, but is not limited to databases in the following states:

Standby

(45)

l Recovering l Suspect l Offline l Not recovered l Loading l Pre-recovery l Restoring l Recovery Pending

l Single user with active user connections

You must complete the required steps to perform a manual backup. Procedure

1. From the Start menu, select Programs > EMC NetWorker > NetWorker User for SQL Server.

If multiple instances of SQL Server are active on the computer, the Select SQL Instance dialog box appears.

2. Select the SQL Server instance for NMM backup, and click OK.

The NetWorker User for SQL Server GUI connects to the selected SQL Server instance and the main window appears.

3. To select a NetWorker server other than the server that was specified during the NMM installation, click the Select NetWorker Server button on the toolbar.

The Change Server dialog box appears.

4. Select a NetWorker server from the list, and click OK.

5. To select the SQL Server data to back up, select Backup from the Operation menu. The Backup window displays a hierarchical list of SQL Server data objects available for backup. The NetWorker User for SQL Server GUI always performs a full backup for the SQL Server data.

Figure 10 The Backup window with a hierarchical list of SQL Server data objects

Manual Backups

References

Related documents

You can perform granular level recovery (GLR) for SharePoint Server 2007, SharePoint Server 2010, and SharePoint Server 2010 SP2 content databases by using NMM and a

Whether or not a transaction log and the descendent file groups and files of the database are available for backup or restore, depends on the recovery model specified in the

The NetWorker Module for Microsoft SQL Server provides three methods for restoring to a specific time: database backup versions, point-in-time restore of a transaction log

◆ Overview of the NMSQL commands...A-2 ◆ Using the nsrsqlsv command ...A-3 ◆ Using the nsrsqlrc command...A-8 ◆ Using the nwmssql command...A-15 ◆ Backup and restore command

For an Exchange Server 2010 DAG, use the workaround provided in the &#34;Configuring backups to use a remote storage node in a DAG environment section&#34; in the EMC NetWorker

Use the additional command syntax shown in the following table to back up or restore SQL Server data with the nsrsqlsv and nsrsqlrc NetWorker backup and recovery commands. Enter

Note: If a backup was created by using the NetWorker Module for Microsoft SQL Server release 3.0 or later, a SQL Server 7.0, 2000, or 2005 file or filegroup can also be

You must complete the required steps to perform a directed recovery of the SQL content databases to the same host where backup was