SQL User Guide
SQL User Guide
User Guide
P/N 302-000-095
REV 06
Copyright © 2007 - 2014 EMC Corporation. All rights reserved. Published in the USA.
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.
EMC2, 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 the technical documentation and advisories section on the
EMC online support website.
2 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CONTENTS
Preface
Revision History
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 3
Contents
4 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Contents
Glossary
Index
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 5
Contents
6 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
TABLES
Title Page
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 7
Tableses
8 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
FIGURES
Title Page
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 9
49 Full backup for federated backup.................................................................... 121
50 Select the Backup Objects page..................................................................... 126
51 Specify the Virtual Server Credentials page.................................................... 126
10 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
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 representative 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
(http://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 3.0 SP1 software to back up and recover Microsoft SQL Server using the Virtual
Device Interface technology.
The EMC NetWorker Module for Microsoft Release 3.0 SP1 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
EMC NetWorker Module for Microsoft Release 3.0 SP1 Administration Guide from EMC
Online Support (http://support.emc.com) before using this guide.
Audience
This guide is part of the NMM documentation set, and is intended for users using NMM to
back up and recover Microsoft SQL Server using the Virtual Device Interface technology.
Readers should be familiar with the following technologies used in backup and recovery:
◆ NetWorker software
◆ Microsoft Virtual Device Interface (VDI) technology
Related documentation
Table 1 on page 11 lists the EMC publications that provide additional information.
EMC NetWorker Module for Microsoft Release 3.0 SP1 Provides information about new features and changes, problems fixed
Release Notes from previous releases, known limitations, and late-breaking information
that was not provided in the remaining documentation set.
EMC NetWorker Module for Microsoft Release 3.0 SP1 Provides pre-installation, installation, silent installation, and
Installation Guide post-installation information about NMM 3.0 SP1.
EMC NetWorker Module for Microsoft Release 3.0 SP1 Provides information common to all the supported Microsoft applications
Administration Guide that can be backed up and recovered by using EMC NetWorker Module for
Microsoft.
Preface 11
Preface
EMC NetWorker Module for Microsoft for SQL and Provides information about using NMM for backup and recovery of SQL
SharePoint VSS Release 3.0 SP1 User Guide Server VSS and SharePoint Server VSS.
EMC NetWorker Module for Microsoft for Exchange VSS Provides information about using NMM for backup and recovery of
Release 3.0 SP1 User Guide Exchange Server VSS.
EMC NetWorker Module for Microsoft for Hyper-V VSS Provides information about using NMM for backup and recovery of
Release 3.0 SP1 User Guide Hyper-V Server VSS.
EMC NetWorker Module for Microsoft for Windows Bare Provides information about using NetWorker and NMM for Windows Bare
Metal Recovery Solution Release 3.0 SP1 User Guide Metal Recovery (BMR) solution and the procedures required for disaster
recovery of the supported Microsoft applications.
EMC NetWorker Performing backup and recovery of Provides information for performing backup and recovery of a SharePoint
SharePoint Server by using NetWorker Module for Server by using the SQL Server Virtual Device Interface (VDI) technology
Microsoft SQL VDI solution Release 3.0 SP1 Technical and the SharePoint VSS Writer with NMM.
Notes
EMC NetWorker Performing Exchange Server Granular Provides information about using NMM with Ontrack PowerControls to
Recovery by using NetWorker Module for Microsoft with perform granular level recovery (GLR) of deleted Microsoft Exchange
Ontrack PowerControls Release 3.0 SP1 Technical Server mailboxes, public folders, and public folder mailboxes.
Notes
EMC NetWorker Cloning Integration Guide Provides planning, practices, and configuration information for using the
NetWorker, NMM, and NMDA cloning feature.
EMC NetWorker SolVe Desktop NetWorker SolVe Desktop, which is an executable download, can be used
to generate precise, user-driven steps for high-demand tasks carried out
by customers, support, and the field.
EMC NetWorker Licensing Guide Provides information about licensing NetWorker and its modules.
EMC NetWorker Software Compatibility Guide Provides a list of supported client, server, and storage node operating
systems for the following software products: NetWorker and NetWorker
application modules and options (including deduplication and
virtualization support), AlphaStor, Data Protection Advisor, and
HomeBase.
EMC NetWorker and EMC Data Domain Deduplication Provides planning and configuration information about the use of Data
Devices Integration Guide Domain devices for data deduplication backup and storage in a
NetWorker environment.
EMC NetWorker and EMC Avamar Integration Guide Provides planning and configuration information about the use of
Avamar in a NetWorker environment.
NOTICE is used to address practices not related to personal injury.
12 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Preface
Typographical conventions
EMC uses the following type style conventions in this document:
Normal Used in running (nonprocedural) text for:
• Names of interface elements, such as names of windows, dialog boxes,
buttons, fields, and menus
• Names of resources, attributes, pools, Boolean expressions, buttons,
DQL statements, keywords, clauses, environment variables, functions,
and utilities
• URLs, pathnames, filenames, directory names, computer names, links,
groups, service keys, file systems, and notifications
Bold Used in running (nonprocedural) text for names of commands, daemons,
options, programs, processes, services, applications, utilities, kernels,
notifications, system calls, and man pages
Used in procedures for:
• Names of interface elements, such as names of windows, dialog boxes,
buttons, fields, and menus
• What the user specifically selects, clicks, presses, or types
Italic Used in all text (including procedures) for:
• Full titles of publications referenced in text
• Emphasis, for example, a new term
• Variables
Courier Used for:
• System output, such as an error message or script
• URLs, complete paths, filenames, prompts, and syntax when shown
outside of running text
Courier bold Used for specific user input, such as commands
Courier italic Used in procedures for:
• Variables on the command line
• User input variables
<> Angle brackets enclose parameter or variable values supplied by the user
[] 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 nonessential information omitted from the example
Technical support — For technical support, go to EMC online support and select Support.
On the Support page, you will see several options, including one to create a service
request. 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 solution. Interactively
engage online with customers, partners, and certified professionals for all EMC products.
13
Preface
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:
DPAD.Doc.Feedback@emc.com
14 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
REVISION HISTORY
05 July 22, 2014 Fifth release of this document. Incorporated technical feedback in “Providing access
privileges for backup and recovery” on page 29.
04 July 15, 2014 Fourth release of this document. Incorporated technical feedback in “SQL Server
recovery” on page 36 and Chapter 8, “Command Line Interface.”
03 February 07, 2014 Third release of this document. Incorporated technical feedback.
02 December 23 2013 Second release of this document. The updates in this revision are as following:
• The list of documents in the NMM documentation set has been updated. “Related
documentation” on page 11 provides the list.
• Incorporated technical feedback.
01 November 14, 2013 First release of this document for EMC NetWorker Module for Microsoft Release 3.0
SP1.
Revision History 15
Revision History
16 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 1
Overview of SQL Server VDI
If you are migrating from NetWorker Module for SQL Server (NMSQL) to NMM, ensure to
perform a full backup of the SQL Server data by using NMM because the SQL snapshot
data backed up by using NMSQL cannot be recovered by NMM.
Backup environments
This section provides details about the various NMM environments for SQL Server
backups using VDI.
18 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
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 calculates and detects the
Backup Preference and priority from the Availability group, and starts the slave backup
process in detected preferred node.
20 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
Recovery environments
The following figure describes the functional relationship between the NetWorker client
(NMM), the NetWorker server, and the SQL Server during a traditional recovery operation.
Cluster environments
NMM can back up or recover data exported by a SQL Server that is running as a virtual
server in an WSFC cluster.
NMM uses the virtual server name to perform the following tasks:
◆ Connect to the appropriate SQL Server instance.
◆ Initialize the SQL Server VDI to accept data from or deliver data to the appropriate SQL
Server in the cluster.
◆ 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.
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.
22 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
Migrating from VSS solution to VDI solution for SQL Server data protection
If you are using an earlier NMM version to recover SQL Server data with VSS technology,
and would now like to use NMM 3.0 SP1 to back up and recover SQL Server data with VDI
technology, ensure that you have taken care of the following tasks:
◆ Clear the Snapshot option under Backup Group Properties.
◆ Specify the Backup Command as nsrsqlsv. For SQL virtual server in a cluster
environment, specify nsrsqlsv -A SQL virtual server.
◆ Keep the Application Information field blank.
◆ Change the save set to MSSQL: for SQL default instance level backup or
MSSQL:dbname for database level backup on a SQL default instance.
24 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
To perform backups of secondary replicas by using NMM 3.0 SP1, set the Readable
Secondary option of SQL Server 2012 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 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 Data Domain devices or Advanced File Type Device
The NetWorker 8.1 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.
The EMC NetWorker Administration Guide provides information about the Client Direct to
Data Domain or AFTD devices.
By default, the option to run a DBCC is disabled. “Performing a database consistency
check” on page 27 provides information about how to trigger a DBCC before a scheduled
save is initiated.
26 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
If this option is enabled and the DBCC is completed successfully, NMM proceeds with a
backup of the specified databases.
If the DBCC does not complete successfully, the backup is terminated and NMM displays a
message to indicate the DBCC success or failure.
Database consistency on a restored database can also be checked by initiating a restore
from the command line on the restore host by using the -j command line option with the
nsrsqlrc command. This command invokes the DBCC on the database after the restore
operation finishes.
Data consistency check can not be configured using NetWorker User for SQL Server GUI for
backup or recovery.
where:
◆ computerName is the network name of the computer.
◆ instanceName is the logical name of the named instance.
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 in the Client resource 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 server virtual 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>
When Analysis Services is running, it may use the only database connection if SQL
Server is in single user mode. Analysis Services must be stopped before restoring the
master database.
28 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
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.
◆ (For only SQL Server 2012 and later) In the SQL Management Studio > Security > Login >
Login Properties page, grant the SQL Server system dbcreator, public, and sysadmin
permissions to the Windows logon account, as shown in the following figure. Provide
these permissions to the NTAUTHORITY\SYSTEM user.
◆ 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.
30 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
A full backup of SQL Server data (including files and filegroups) created by using
NMSQL can be recovered by using NMM 3.0 SP1. However, NMM 3.0 SP1 cannot
recover snapshot (PowerSnap based) backup created by using NMSQL.
◆ 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.
Chapter 3, “Scheduled Backup,” provides details.
◆ Federated backup—NMM provides support for SQL Server 2012 Federated backup
functionality for SQL Server 2012 AlwaysOn databases.
Chapter 4, “Federated Backup,” provides details.
Backup levels
The following table describes the SQL Server VDI backup levels. NMM supports three
levels of backup.
Full Entire database backup, including all filegroups or files in the database.
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
Corresponding SQL
NMM term Function Server term
Incremental Backs up all transaction log changes since the Transaction log
most recent full, differential, or transaction log (also called xlog) backup
backup.
Differential Backs up all database changes since the last full Differential backup
backup.
The following table summarizes where backup procedures can be initiated and which
backup levels are supported for each interface.
Manual Command line on the SQL Server, which is the Yes Yes Yes
client
32 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
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.
full Repeat
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.
If a database has been made read-only, a full backup of the database should be made. A
read-only database cannot be restored from a transaction log backup that may already
exist.
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 differential Select one or more databases to create a database level differential
(level 1) backup of only the changes made to the selected databases since the last
full level backup was created.
File or filegroup Select one or more files, or one or more filegroups to create a file or
differential filegroup level differential backup of only the changes made to the
selected files or filegroups since the last full level backup was created.
34 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
Requested Level of
Item level promoted Reason
File/Filegroup Full Database full Full backup of the entire database does not
exist.2
File/Filegroup Differential Database full Full backup of the entire database does not
exist.
36 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
The following table lists the types of recovery for SQL Server VDI in NMM.
Traditional recovery For data that was backed Data recovery from a traditional backup can
up by traditional backup, be performed:
NMM supports traditional • At any time by using NMM.
recovery. • By running NMM recover command
(nsrsqlrc) from the command prompt.
Traditional recovery operations recover files,
filegroups, databases, and transaction log
backups. Chapter 2, “Manual Backups,”
provides additional information about
traditional recovery operations.
Normal recovery NMM uses the normal The normal restore type restores:
restore type as the default. • The entire set of data associated with one
or more SQL Server backups, including full,
incremental, and differential backups.
• A file, filegroup, or a database to the
database originally backed up.
• 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 restore is an The copy recovery type creates a copy of a
operation in which data is database by restoring a SQL Server database
recovered to a SQL Server to a new location, or to a new database name.
host other than the one The copy recovery type makes it easy to
from which it was backed duplicate a database that was previously
up. Note that copy restore backed up. You can only mark a single item
from and to the same SQL for this operation. In addition, you can copy a
Server instance can also be system database, but you cannot overwrite it.
done.
Note: 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.
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 may also
control which portions of an incremental level backup are to 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
instance, a point-in-time recovery may be 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.
38 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
nsrsqlsv.exe nsrsqlsv.raw
nsrsqlrc.exe nsrsqlrc.raw
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.
40 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Overview of SQL Server VDI
Prerequisites
When installing NMM 3.0 SP1, 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 EMC NetWorker Module for Microsoft Release 3.0 SP1 Installation Guide provides
details.
In addition, ensure that the following prerequisites are taken care of before performing
backup and recovery procedures:
◆ Scheduled backup—“Prerequisites” on page 57
◆ Data recovery—“Prerequisites” on page 86
◆ Cluster backup and recovery—“Prerequisites” on page 124
Prerequisites 41
Overview of SQL Server VDI
42 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 2
Manual Backups
Manual Backups 43
Manual Backups
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.
NMM provides the NetWorker SQL Adhoc Backup Plugin support for SQL Server 2008
or later. This support is not available for SQL Server 2005 versions.
44 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Manual Backups
◆ The NetWorker User for SQL Server GUI—You can start a manual backup from the
NetWorker User for SQL Server GUI. “NetWorker User for SQL Server GUI of NMM” on
page 49 provides details.
◆ The nsrsqlsv command from the command prompt—Chapter 8, “Command Line
Interface,” provides command syntax.
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.
For maximum data protection, perform scheduled NetWorker backups of SQL Server
databases at regular intervals. Chapter 3, “Scheduled Backup,” 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
Configuration Wizard to configure a basic scheduled backup.
Figure 5 EMC NetWorker Backup for SQL Databases page - General View
46 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Manual Backups
The NetWorker SQL Adhoc Backup Plug-in for SQL Server Management Studio (SSMS)
backup plugin does not detect NetWorker server automatically when started.
6. Debug level—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 Ok.
The following figure displays the Options view.
Figure 6 EMC NetWorker Backup for SQL Databases page - Options View
2. Stripes—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.
Chapter 7, “Striped Backup and Recovery,” provides more information about striping.
3. Pool—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.
4. Deduplication—Select the Deduplication option and then either Data Domain or
Avamar. From the Select node menu, select the node details according to your setup.
5. Others—Select the appropriate fields:
a. Use encryption—Specifies that data is 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 specify the pass phrase used at the time of backup. The EMC NetWorker
Administration Guide provides complete information about AES encryption, and
setting the pass phrase.
b. Compress the backup content using NetWorker—Applies 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.
c. Compress the backup content using SQL Server—Compress the backup content
(using SQL Server). The Microsoft SQL Server product documentation provides
more information.
d. Click Ok to run the backup.
The following figure displays the Monitor view, which is similar to the Monitor view of the
NetWorker User for Microsoft GUI. Use the Monitor view for the backup information.
48 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Manual Backups
Figure 7 EMC NetWorker Backup for SQL Databases page - Monitor View
5. To expand an object, click the plus sign (+) beside the object name in the left pane.
The descendants of the object are listed in the right pane.
6. Mark one or more objects for backup. Some SQL Server data items are visible in the
Backup window, but cannot be marked. If certain database options are set, the SQL
Server prohibits a file or filegroup backup. These unavailable objects appear grayed
out to distinguish them from those that are available to back up.
50 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Manual Backups
7. Select the required attributes in the Backup Options dialog box, as shown in the
following figure, before starting the backup.
The selected fields apply to each marked object for all backup operations performed
until the NetWorker User for SQL Server GUI is closed. Selected pools, however, are
stored in the registry and persist from one session to another. If a field is not selected,
then the default option is used.
8. On the General tab, select the appropriate attributes:
• Compress the backup content (using NetWorker)—Applies 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.
• Create a striped backup—Creates a striped backup by using the SQL Striped
feature. If this attribute is checked, the Stripes list is enabled. Chapter 7, “Striped
Backup and Recovery,” provides more information about striping.
To select the number of stripes for backup, select a number from the list box.
The maximum number of stripes the NMM software supports is 32. However, the
maximum number of stripes cannot be more than the value set for NetWorker
client parallelism.
• Use pools for media management—Lists media volume pools for storing the
backup contents. This attribute applies only to manual backup operations
performed from the NetWorker User for SQL Server program or from a command
prompt. If this attribute is checked, the Full Backup Pool and the Log File Pool lists
are enabled.
To select volume pools:
a. Check the Use pools for media management attribute.
b. Select a pool from the Full backup pool list to store full SQL Server backups,
including databases and filegroups.
c. Select a pool from the Log file pool list to store transaction log or differential
(level 1) SQL Server backups.
The pool names in the Full backup pool or Log file pool lists are initially created by
using NMC and are stored in the operating system registry.
52 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Manual Backups
This option is available with SQL Server 2005 or later instances.
c. Click OK.
11. Before starting a backup, ensure that a labeled media volume is mounted in the
backup device because otherwise a backup cannot run. The volume should be
labeled for the volume pool where the backup is to be directed. If there is no volume
in the backup device when a backup is started, no messages appear in the Backup
Status window and the backup waits for operator intervention.
To start the backup:
a. Select Start Backup from the File menu.
b. Monitor the backup messages in the Backup Status window or from NMC.
After the backup is finished, a Backup Completed message appears.
The amount of time required to back up a database depends on database size,
network traffic, server load, and tape positioning.
where:
• printer_name is the name of the printer where the bootstrap information is printed
at the end of the bootstrap backup.
• NetWorker_client is the hostname of the SQL Server.
54 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 3
Scheduled Backup
Scheduled Backup 55
Scheduled Backup
For nonscheduled manual backups that are initiated from NMM on the client computer,
unavailable databases are silently skipped.
Limitations of the savegrp program reporting and savegrp log file may make failure
identification and the specific unavailable databases difficult to isolate. The savegrp
information is displayed alphabetically, leaving some early information suppressed, and
the success or failure information combined.
56 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
Definitive results are available in the daemon.raw file, located on the NetWorker server
and in the nsrsqlsv.raw file on the client computer. After the completion of a backup, the
following types of error messages may be listed in the daemon.log file:
◆ Database 'Acme' cannot be opened because it is offline.
◆ Processing Acme failed, the item will be skipped.
◆ Database 'Acme' is in warm-standby state (set by executing RESTORE WITH STANDBY)
and cannot be backed up until the entire load sequence is completed.
◆ Processing Acme failed, the item will be skipped.
To include or exclude databases that are not in a state to be backed up for the instance
level save set backup, use the Application Information variable
NSR_SKIP_NON_BACKUPABLE_STATE_DB when configuring the client resource for
scheduled backup. The list of databases states that cannot be backed up and can be
skipped during backup are:
◆ Mirror copy
◆ Standby
◆ Recovery Pending
◆ Offline
◆ Loading
◆ Prerecovery
Prerequisites
Before performing scheduled backups, ensure that you have taken care of the following
requirements:
◆ The NetWorker interface is configured to display hidden attributes. For NetWorker 7.6
SP 3 and later servers, hidden attributes are called diagnostic attributes. To display
diagnostic attributes in the Administration window, select Diagnostic Mode from the
View menu.
◆ When backing up filestream data, select the Allow Remote Clients Access to Filestream
Data option in the Properties page of the SQL Server instance in the SQL Server
Configuration Manager. This is a requirement for the backups to be successful. The
SQL Server documentation provides details about the SQL Server Configuration
Manager.
Prerequisites 57
Scheduled Backup
All the procedures described in this section must be performed on a NetWorker server by
using the NetWorker Administration GUI. Click the question mark icon at the bottom
left of each page for details about each field in the page. Review the EMC NetWorker
Administration Guide for details.
Tasks Considerations
“Setting up backup levels” on page 58 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.
“Setting up a pool to sort backup data” on Use the criteria defined in the NMC to create, modify, or remove a pool resource for
page 61 scheduled backups. Pool settings specified in the Backup Options dialog box of the
NetWorker User for SQL Server GUI apply only to manual backups.
“Configuring a backup schedule” on Set up a consistent schedule of full farm level backups. Configure a backup schedule
page 62 so that a farm is backed up automatically at a regular interval, and the farm data is
later recovered successfully. You must configure only full backups of SharePoint and
SQL writers.
If backing up individual content databases, schedule these in between the full farm
level backups.
The EMC NetWorker Module for Microsoft Release 3.0 SP1 Administration Guide
provides details about this task.
“Configuring a NetWorker backup group” Create a backup group. Backup groups enable you to balance backup loads to reduce
on page 62 the impact on your storage and network resources.
• Put all the client resources in the same NetWorker group to avoid inconsistencies in
SQL data.
• Do not put more than one instance of a client resource in the same group.
The EMC NetWorker Module for Microsoft Release 3.0 SP1 Administration Guide
provides details about this task.
“Configuring a client resource” on page 63 You can use either of the following methods to configure the client resource:
• Use the Client Configuration Wizard
• Use the NetWorker Administrator Program
58 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
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.
full Repeat
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.
If a database has been made read-only, a full backup of the database should be made. A
read-only database cannot be restored from a transaction log backup that may already
exist.
The following table outlines the differences between the backup levels.
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 differential Select one or more databases to create a database level differential
(level 1) backup of only the changes made to the selected databases since the last
full level backup was created.
File or filegroup For SQL Server 2005 only, select one or more files, or one or more
differential 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.
60 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
Requested Level of
Item level promoted Reason
File/Filegroup Full Full Full backup of the entire database does not
(Database) exist.2
File/Filegroup Differential Full Full backup of the entire database does not
(Database) exist.
Media pools act as filters that tell the server which backup volumes should receive
specific data. The NetWorker server uses media pools in conjunction with label
templates (if the Match Bar Code Labels attribute is not used for the library resource)
to keep track of what data is on which specific volume. Using label templates provides
more information on label templates.
◆ Labeling the device—Before a device can be used for backups, it must be labeled by
using the pool that you created in the previous step.
The EMC NetWorker Administration Guide provides details.
62 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
set belong two different groups. You are recommended to create only one group
resource for one client resource even when both full and incremental level backups
are performed.
The EMC NetWorker Administration Guide provides more information.
You must complete the required steps to create a group:
1. Open the NetWorker Administration GUI.
2. Click Configuration.
3. In the expanded left pane, select Groups.
4. From the File menu, select New.
5. In the Name field, type a name for the group.
6. In the Comment field, type a description of the group.
7. For the Start Time field, type the time when you want the first VDI backup to begin.
8. For the Autostart field, select Enabled.
9. For SQL Server VDI-based backups, leave the Snapshot field clear.
10. Do not select any value in the Snapshot Policy attribute or a Snapshot Pool field.
11. Go to Media-Media Pools and double-click on the media pool previously created.
Then, in the Groups field, select the newly created group.
12. Click OK to create the backup group.
For SQL Server 2012, for SQL VDI backups to be successful ensure the following:
— The SQL Server 2012 service runs as a domain account.
— nsrexecd service runs as system account.
By default, the system account which is the service account of the nsrexecd service does
not have the sysadmin role for the SQL server. When configuring the client resource, you
must set the username and password of an Windows account with the sysadmin role on
the SQL server and administrator role on the client in the Remote user name and Password
fields of NMC.
64 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
– Avamar deduplication backup—If you are using Avamar device for data
deduplication. After selecting this option, choose the Avamar node from the
available list.
d. Click Next.
The Select the Backup Objects page appears, containing a list of all instances and
their components.
6. In the Select the Backup Objects page, select the SQL Server instance at root level or
individual databases for backup. The following figure shows the Select the Backup
Objects page for all other SQL Server backups.
Ensure not to select databases from two separate instances for backup. All databases
that are selected must be from the same instance. Also, databases that are in offline,
restoring, or loading state are unavailable for selection.
Click Next.
Figure 11 Select the Backup Objects page (default page) for non-federated backup
7. For SQL virtual server or SQL Server 2012 backups, in the Specify the Virtual Server
Credentials page:
a. Enter the Remote user name and Password.
b. Click Next.
The Specify the Virtual Server Credentials page is not displayed when other SQL
Server versions are used.
Before performing this step, ensure that for Windows Server 2008 R2 the User Account
Control is disabled for administrators. Chapter 1, “Overview of SQL Server VDI” and
esg114125 on the EMC Online Support (http://support.emc.com) provide details.
8. In the Specify the Backup Options page, as shown in the following figure, select the
required options and click Next.
66 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
The simple database is skipped when the NSR_SKIP_SIMPLE_DB environmental
variable is set to TRUE in client Application Information. Otherwise, the
incremental backup request is promoted to full.
f. Specify the number of stripes to backup the specified data items—Select when
using stripes during backup.
The Select the NetWorker Client Properties page appears.
9. In the Select the NetWorker Client Properties page:
a. Select the browse policy, retention policy, and backup schedule for the backup.
b. Type a comment for the client in the Client Comment field.
c. Leave the Remote Access field blank.
d. Click Next.
The Specify the NetWorker Backup Group page appears.
10. In the Specify the NetWorker Backup Group page, you can select either of the following
options and click Next:
• Add to existing group—Select a group from the existing list. Only groups without
snapshot policies are available for selection.
• Create a new group—To create a new group, select this option:
– Type the a group name.
– Select the client retries.
– Choose the schedule backup time in the Schedule Backup Start Time.
– Select the Automatically start backup at the scheduled time to start the backup
automatically at the designated time.
If a storage node is being used in your configuration setup, the Specify the Storage
Node Options page appears.
Ensure that the newly created group is associated with a backup pool (and associated
backup device) of your choice.
To associate a backup group with a pool resource, go back to the pool resource,
right-click and select Properties. Now select the newly created group listed under
Basic > Data Source > Groups. This step can be performed only after exiting the Client
Configuration Wizard.
11. In the Specify the Storage Node Options page, under Backup Storage Nodes, select
either of the following options and click Next:
• Backup to the NetWorker server only—When a NetWorker storage node is not being
used.
• Backup to the following storage nodes—To select the NetWorker storage node
name and other details.
The Backup Configuration Summary page appears.
12. Check the details in the Backup Configuration Summary page, and select Back revisit
the previous pages, or select Create to configure the client resources. The following
figure provides a sample Backup Configuration Summary page.
The Client Configuration Results page appears with details about the client resources
that have been created for a required SQL Server.
13. Click Finish.
14. To verify the details for the client, select the client, right-click and view the Client
Properties page in the NetWorker Management Console.
To make changes to the configuration that was created earlier, right-click on that client
resource and select Client Backup Configuration > Modify.
68 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
The All save set appears in the Save Set attribute field by default. Delete the All save
set.
g. For the Group field, select the backup group to which this client resource will be
added.
If client resources for the same NMM host are added to different backup groups,
ensure that the Start Time attribute for each backup group is spaced such that the
backups for the host’s client resources do not overlap.
h. For the Schedule field, select a backup schedule.
6. Click the Apps & Modules tab, as shown in the following figure.
In the Remote User field, to enable NMM to back up the SQL Server virtual server
and/or a mirrored server, enter the username for a Windows user account that has
SQL Server administrator privileges.
The flag NSR_SKIP_NON_BACKUPABLE_STATE_DB is applicable only to SQL
instance level backups and does not affect database level backups.
70 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Scheduled Backup
72 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 4
Federated Backup
Federated Backup 73
Federated Backup
Federated backups of SQL Server are not supported when an Availability Group is
configured with SQL virtual server instances. For example, when the Availability Group is
configured with two SQL virtual server configurations, or when an Availability Group is
created between two SQL virtual instances where the primary replica node is a virtual SQL
Server instance and the secondary node is a virtual SQL Server instance.
In such scenarios, to be able to perform a federated backup successfully, ensure that there
is a standalone node (secondary replica) that can be set as the preferred replica.
Backup settings
The SQL Server backup preference for the Availability Group can be configured by using
the Microsoft SQL Server Management Studio or using Transact-SQL.
SQL Server 2012 provides the following settings options that determine where the
backups are run for the given AG replica:
◆ AUTOMATED_BACKUP_PREFERENCE—Specify any one of the following:
• PRIMARY—Specifies that the backups should always occur on the primary replica.
This option is useful if you need backup features, such as creating differential
backups that are not supported when backup is run on a secondary replica.
• SECONDARY_ONLY—Specifies that backups should never be performed on the
primary replica. If the primary replica is the only replica online, the backup should
not occur.
• SECONDARY (Prefer Secondary)—Specifies that backups should occur on a
secondary replica except when the primary replica is the only replica online. In that
case, the backup should occur on the primary replica. This is the default option.
• NONE (Any replica)—Specifies that you prefer that backup jobs ignore the role of
the availability replicas when choosing the replica to perform backups. Note
backup jobs might evaluate other factors such as backup priority of each
availability replica in combination with its operational state and connected state.
74 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Federated Backup
Backup fails if the secondary copy has Readable Secondary field set to NO for SQL Server
VDI federated backups. All the primary and secondary replicas participating in the
Availability Group must have Readable Secondary field set to Yes. Under Availability Group
properties > General tab, set the Readable Secondary field set to Yes.
This is required for SQL Server VDI to run the Copy Only full backups from the secondary
replica and full backups from the primary replica.
To use the Client Configuration Wizard in a federated environment, ensure that the active
node of the Windows cluster contains a SQL Server 2012 instance.
You must complete the required steps to configure a client resource using the Client
Configuration Wizard:
1. Open the NetWorker Administrator GUI.
2. Click Configuration and perform either of the following tasks:
• Select Client Backup Configuration > New.
• Right-click the client and from the menu that appears, click Client Backup
Configuration > New.
3. In the Specify the Client Name and Type page that appears, for SQL Sever 2012
federated backups:
a. Type the Windows cluster name in the Client name field.
b. Click Next.
The wizard automatically detects the applications that are installed on the client
specified in the Specify the Client Name and Type page, and displays the list from
which you can select the backup type. Because a supported SQL Server version is
installed, the backup option SQL Server appears in Select the Backup Configuration
Type page.
4. In the Select the Backup Configuration Type page:
a. The client operating system and the NetWorker version being used in the
configuration setup are automatically displayed in the Client Operating System
field and NetWorker Version field respectively.
b. Select the SQL Server option.
c. Click Next.
The Select the Client Backup Options page appears. This page displays the SQL Server
version and the list of all the available components.
5. In the Specify the Client Backup Options page:
a. The Client Direct option is selected by default. The Client Direct support provided
by NetWorker 8.1.1 is available in NMM. The EMC NetWorker Module for Microsoft
Release 3.0 SP1 Administration Guide and EMC NetWorker Administration Guide
provide details about this feature.
b. Select a NetWorker volume pool or another target pool of your choice. If the Target
Pool field is left blank, the client is not associated to any pool.
c. Select one of the following options:
– None—If you have not set up data deduplication.
– Data Domain backup—If you are using a Data Domain device for data
deduplication.
76 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Federated Backup
– Avamar deduplication backup—If you are using Avamar device for data
deduplication. After selecting this option, choose the Avamar node from the
available list.
d. Click Next.
The Select the Backup Objects page appears, containing a list of all instances and
their components.
6. In the Select the Backup Objects page, for SQL Server 2012 federated backup, by
default the entire cluster is selected for backup, as shown in the following figure. You
can perform either of the following steps:
• Clear the selection at the instance level and just select the individual databases
that you would like to back up. If there are duplicate databases, ensure to select
only one database for each AG even if it belongs to a different instance. Otherwise,
an error message appears. For example, select one DB007 option and one DB008
option even if multiple nodes are present under AG004. Click Next.
• Click Next to continue to the next page of the wizard.
Figure 15 Select the Backup Objects page (default page) for federated backup
7. In the Specify the Backup Options page, as shown in the following figure, select the
required options and click Next.
The simple database is skipped when the NSR_SKIP_SIMPLE_DB environmental
variable is set to TRUE in client application information. Otherwise, the incremental
backup request is promoted to full.
78 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Federated Backup
f. Specify the number of stripes to backup the specified data items—Select when
using stripes during backup.
The Select the NetWorker Client Properties page appears.
8. In the Select the NetWorker Client Properties page:
a. Select the browse policy, retention policy, and backup schedule for the backup.
b. Type a comment for the client in the Client Comment field.
c. Leave the Remote Access field blank.
d. Click Next.
The Specify the NetWorker Backup Group page appears.
9. In the Specify the NetWorker Backup Group page, you can select either of the following
options and click Next:
• Add to existing group—Select a group from the existing list. Only groups without
snapshot policies are available for selection.
• Create a new group—To create a new group, select this option:
– Type the a group name.
– Select the client retries.
– Choose the schedule backup time in the Schedule Backup Start Time.
– Select the Automatically start backup at the scheduled time to start the backup
automatically at the designated time.
If a storage node is being used in your configuration setup, the Specify the Storage
Node Options page appears.
To associate a backup group with a pool resource, go back to the pool resource,
right-click and select Properties. Now select the newly created group listed under
Basic > Data Source > Groups.
10. In the Specify the Storage Node Options page, under Backup Storage Nodes, select
either of the following options and click Next:
• Backup to the NetWorker server only—When a NetWorker storage node is not being
used.
• Backup to the following storage nodes—To select the NetWorker storage node
name and other details.
The Backup Configuration Summary page appears.
11. Check the details in the Backup Configuration Summary page, and select Back revisit
the previous pages, or select Create to configure the client resources. The following
figure provides a sample Backup Configuration Summary page.
The Client Configuration Results page appears with details about the client resources
that have been created for a required SQL Server.
12. Click Finish.
13. To verify the details for the client, select the client, right-click and view the Client
Properties page in the NetWorker Management Console.
To make changes to the configuration that was created earlier, right-click on that client
resource and select Client Backup Configuration > Modify.
80 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Federated Backup
In the procedure provided in this section for creating a client resource, the AG name is
AG1. AG1 is created out of the default instance using Windows Cluster named
MSCSALWAYSON.nmmdev.com. The cluster nodes for AG1 are named MW2K8X64SQL1
and MW2K8X64SQL2.
You must complete the required steps to create a SQL VDI client resource:
1. Open the NetWorker Administrator GUI.
2. Click Configuration.
3. In the expanded left pane, select Clients.
4. From the File menu, select New.
5. Click the General tab:
a. In the Name field, the Windows Server cluster name appears.
b. In the Comment field, type a description.
If you are creating multiple client resources for the same NetWorker client host
computer, use this field to differentiate the purpose of each resource.
c. In the Browse Policy field, select a browse policy from the list.
The browse policy determines the time period during which the rolled-over data is
available for quick access.
d. In the Retention Policy field, select a retention policy from the list.
The retention policy determines the time period during which the rolled-over data
is available, although not necessarily quickly.
e. Select the Scheduled Backups field.
f. In the Save Set field, specify the components to be backed up. The following table
provides the list.
g. For the Group field, select the backup group to which this client resource will be
added.
If client resources for the same NMM host are added to different backup groups,
ensure that the Start Time field for each backup group is spaced such that the
backups for the host’s client resources do not overlap.
h. For the Schedule field, select a backup schedule.
6. Click the Apps & Modules tab, as shown in the following figure.
7. Type the remote user name and password in the Remote user and Password fields
respectively.
8. In the Backup command field, type the following command:
nsrsqlsv.exe
where server name is the Windows cluster name and for which Netbios name or FQDN
must be used.
9. In the Application Information field, type the required value.
The simple database is skipped when the NSR_SKIP_SIMPLE_DB environmental
variable is set to TRUE on the client to skip the backup for simple databases.
Otherwise, the incremental backup request is promoted to full.
10. Under Deduplication, select either of the following:
• Data Domain backup—For data deduplication by using a Data Domain device.
• Avamar deduplication backup—For data deduplication by using a Avamar device.
• Avamar deduplication node—Select the Avamar deduplication node from the
choices provided, if you are using Avamar for deduplication. The Avamar node is
previously configured and appears in the choices.
Ensure that the Avamar deduplication backup option is selected in the NetWorker
client resource for successful Avamar deduplication backups.
11. Click the Globals (1 of 2) tab.
12. In the Remote Access field, enter the user IDs or hostnames of other clients for the
Remote Access field. This grants copy restore type permission to the hosts, which
enables the named hosts to access the NetWorker server and receive directed recover
data. If this field is left empty, only administrators and users logged on to the SQL
Server host have access.
82 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Federated Backup
13. In the Aliases field, type all known aliases for the SQL Server host in the Aliases field
on the Preference tab, as in the following example:
mars
mars.emc.com
Include both the DNS short name and long name for the SQL Server host.
14. Click OK.
15. Run the backup from the save group.
84 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 5
Data Recovery
Data Recovery 85
Data Recovery
Prerequisites
The Restore window displays the database objects available for restoring. Based on the
restore type selected, restore windows restrict the marking of database objects:
◆ For normal restore type, the marking of database objects is not restricted for restore.
◆ For copy restore type, only database objects can be marked for restore.
To restore SQL Server data, use the NetWorker User for SQL Server program or the nsrsqlrc
command. You cannot restore SQL Server data by using the NetWorker Management
Console, or restore data that was backed up by third-party vendors.
To rebuild system databases for SQL Servers by using the Command Prompt, refer to the
information provided at the following link:
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx
Read the SQL Server product documentation to understand the limitations associated
with recover types on the various SQL Server versions.
Before starting a restore, complete the following prerequisites:
◆ Ensure that the NetWorker server software is running on the appropriate host and the
NetWorker Remote Exec Service is started on the SQL Server host.
◆ Restoring the SQL master database requires a restart of the SQL instance in single user
mode followed by logging on to that instance. Single user mode only allows one
administrator to log on. Ensure that no other applications or services are waiting for or
attempting to log on to the SQL instance.
◆ If a backup of a database is in progress, wait for it to finish. SQL Server will not restore
a database while another database backup is in progress.
◆ If a SQL Server startup is in progress, wait for it to finish before starting a restore
operation.
◆ Review the ERRORLOG file to determine if a database is currently being recovered or
search the ERRORLOG file for the “Recovery complete” string.
If the nsrsqlrc program is started while the SQL Server is recovering databases, the
following error message appears:
Could not find database ID. Database may not be activated yet or may
be in transition.
◆ Ensure that all database users are logged off the database. A restore fails if other
users try to use the database during the restore operation.
For the supported SQL Server versions, if the primary filegroup is not under restore,
then the online (piecemeal) restore functionality allows user access to a database
while backup or restore is in progress.
◆ Restoring filestream data of SQL Server 2008 or later, requires that the SQL Server
filestream feature be enabled on the recovery instance.
86 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
Performing recoveries
To recover SQL Server data from a backup, perform the following tasks:
◆ “Setting up the restore” on page 88
◆ “Specifying the browse time” on page 104
◆ “Viewing the required volumes” on page 106
◆ “Setting the restore properties” on page 106
◆ “Starting the recovery” on page 119
The SQL Server databases must be restored in the correct order. Chapter 8, “Command
Line Interface,” provides examples.
The amount of time that it takes to restore a database depends on the following variables:
◆ The amount of data
◆ Network traffic
◆ Server load
◆ Backup volume availability
◆ Tape positioning
If the backup volume with the databases is loaded at a storage node (backup device) local
to the NetWorker server, the restore proceeds. If the restore does not begin, it is possible
that either the wrong volume or no volume is mounted in the backup device.
When restoring an incompatible database by using the name of an existing database, or
when restoring from a media failure where one or more database files were lost, the
Overwrite the Existing Database field must be selected under the Files tab.
After recovery is complete, the completion time appears in the Restore Status window.
Performing recoveries 87
Data Recovery
You can also select Restore from the Operation menu, and then select Normal or Copy
(if running SQL Server Enterprise Edition).
88 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
Options and actions that are available are dependant upon the version of SQL Server
that is to be restored and the type of recovery selected.
4. Specify the following in the General tab:
• Back up the active portion of the transaction log before restoring the
database—This option backs up the active portion of the transaction log before
performing the recovery.
This option is selected by default for a Normal restore, and NMM attempts the
transaction log backup by using the NO_TRUNCATE and NORECOVERY SQL
keywords. The recovery operation proceeds regardless of whether the transaction
log backup succeeds or fails.
There is no log backup in Simple mode. If the option to back up the log is selected,
a full backup of the log is performed on a database that is set to be recovered.
Performing recoveries 89
Data Recovery
The most common reason for recovering databases is to restore from operator
errors, which are recorded in the transaction log. If you recover the database
without applying the transaction log you lose the information since the last
backup. If you apply the entire transaction log you re-corrupt the database.
Point-in-time recovery data can be recovered to the time of the error minus
approximately one second. This assumes that the database is functional enough
to complete the final transaction log backup. If the Specify a Restore Time box
under the Restore Time tab is checked, the backup proceeds, but the latest
transactions captured in the active transaction log backup are not restored.
• Perform the restore using this recovery mode—Select the mode for recovery:
– Normal mode—Instructs SQL Server to leave the database in operational state
after the restore. This is the default mode.
– No Recovery mode—Activates the SQL Server NORECOVERY database restore
option for the last stage restored. This mode places the database in a state that
cannot be loaded after the restore. However, the database can still process
additional transaction log restore operations.
– Standby mode—Specifies an undo file for SQL Server to use when rolling back
the transactions. By default, this field displays a default filename and path:
%DriveLetter:\default_path\default_dbName undo.ldf
where:
default_path is the default SQL Server backup path obtained from the SQL
Server registry.
default_dbName is the name of the database backup selected for the restore.
To specify another name and path for this file, enter a valid name and path, or click
the ellipses button.
The Specify the Standby Undo File dialog box appears, as in the following figure.
90 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
In the Specify the Standby Undo File dialog box, specify the following values:
Type a path in the File Location text box, or browse the file system tree and
highlight a file.
Type the filename in the File Name text box, or browse the file system tree and
highlight an existing file.
• Perform checksum before reading from media—This option (in the Properties
dialog box) performs a checksum operation before a restore to ensure that it
matches the backup.
The NMM 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
restore operation by selecting the Continue on checksum error option.
5. Select the Files tab, as shown in the following figure.
Performing recoveries 91
Data Recovery
This field includes the WITH REPLACE SQL keyword in the restore sequence. The
WITH REPLACE keyword restores files over existing files of the same name and
location. Microsoft SQL Server Books Online provides more information.
The set of filegroups marked in this field is copied into the list of the Modify the
destination for the files in field.
• Modify the destination for the files in—Displays a set of views for the database
files to be restored, and enables filtering of files that are visible in the File and
destination table. The following table identifies the supported views:
Table 23 Views displayed by the Modify the destination for the files in field
All files All of the files for the database, including transaction log files.
Drive letter All files located on a given drive at the time the backup occurred, even if
those files have since been relocated to a different drive.
• File and destination table—Lists the SQL Server logical filenames and locations.
The files listed in this table are associated to the marked database to be restored.
When performing a normal restore, this table displays the current name and
destination based on the SQL Server physical filename and logical location for the
restored file.
Filestream data is displayed as a folder with no subordinate objects.
92 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
– Click a file in the list, and then click Destination to display the Specify the file
destination dialog box, as shown in the following figure.
Source file name The file currently selected in the File and Destination lists. This text cannot be modified. When multiple files
are selected, this text box is empty.
Source location The location and the file selected in the File and destination list. This information cannot be modified. When
multiple files are selected, the location of the first selected file in the list is displayed.
Destination The file system location for the restored file. When multiple files are selected, the default SQL data path is
location opened, but not selected.
Enter a pathname, or browse the file system tree and highlight a directory or file to change the location.
Destination file The name of the file currently selected in the File and Destination table. When multiple files are selected, the
name field is empty.
Enter a new name or browse the file system tree and highlight a file to change the name.
Performing recoveries 93
Data Recovery
7. Click the Restore Time tab to configure a restore schedule, as shown in the following
figure.
This tab enables you to select a backup version and modify the restore date and time.
The default selection for the restore is listed in the Backup Version table. When a
point-in-time restore is performed, the restore procedure reinstates only transactions
from the backup version that occurred before the specified restore date and time.
You can change the backup version or transaction time.
8. To perform a point-in-time restore, specify the following in the Restore Time tab:
• Select the Specify a Restore Time check box to schedule the restore.
If the Backup the active portion of the transaction log before restoring the
database check box on the General tab is selected, and you choose this option but
do not specify the point-in-time in the transaction log, the latest transactions
captured in the active transaction log backup are not restored.
The latest transactions captured in the active transaction log backup will be
restored to the specified point-in-time only if it was specified in the transaction
log.
• Specify a time to perform a point-in-time restore.
The restore time indicates what data from the marked backup version is reinstated
during the restore, and when to stop restoring transactions. This text box can be
modified by clicking the Point-in-Time button.
94 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
• When the incremental backup, or the latest backup (regardless of whether it is full,
level incremental or level differential) is marked in the Backup Versions table, the
Point-in-time button is enabled for setting the time for a point-in-time backup. If a
full or differential backup is marked but is not the latest backup, this button
displays an error message.
• The Specify a Time text box displays the date and time for the backup that is
currently marked. Only one backup version can be selected and marked.
• Perform the restore by using a named log mark. This field is only enabled when log
marks exist for the selected database backup. When this field is selected, the
Restore to the End of the Log Mark and the Restore to the Beginning of the Log
Mark buttons are enabled.
Specify which type of named log mark restore to perform by selecting one of the
following:
– To restore the backup and stop immediately after the named log mark, select
Restore to the End of the Log Mark. This type of restore includes the named
transaction in the restore.
– To restore the backup and stop immediately before the named log mark, select
Restore to the Beginning of the Log Mark. This type of restore excludes the
named transaction.
• Use the Log Mark table field to specify a log mark to use for the restore.
Double-click a log mark or select a log mark in the list and click the Mark button.
9. When finished, click OK.
There are additional restore options that you can define.
10. Select Restore Options from the Options menu.
Performing recoveries 95
Data Recovery
The Restore Options dialog box is displayed, as shown in the following figure.
This field is selected by default. It is controlled by the Windows registry entry
NSR_DETECT_TAPES, which can be modified. Regardless of whether this field is
selected, it retains its setting from one session to the next.
96 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
If you specify debug level logging, watch the size of the NMM log files. The files are
located at:
installpath\nsr\applogs
where installpath is typically C:\Program Files\EMC NetWorker and can grow very
large. Log files with debug output can be deleted (or archived).
• The Disable log mark display option disables the potentially time-consuming
retrieval of log mark information. This option can be selected when log marks will
not be used for most restore operations, particularly if the client file index is large.
This setting persists across multiple invocations of the user interface. When log
mark display is disabled, the log mark in the backup will not be displayed in the
Restore Time tab.
When this option is selected, the log mark information is not displayed in the
Restore Time tab of the Restore Properties dialog box. When it is not selected, the
information is displayed.
• With supported SQL Servers, transaction log backups are required prior to
restoring databases. This ensures that the database can be restored to the most
recent point-in-time possible. This option is selected by default.
When the Transaction log backup before restore option is not selected, the Back
Up the Active Portion of the Transaction Log Before Restoring the Database option
(selected by default) is enabled in the Properties dialog. Choosing not to back up
the active portion of the transaction log and not overwriting the existing database
as shown in the following figure.
You can choose not to back up the transaction log by selecting No for Restore with
overwrite in the precautionary message box. This will replace the existing database
by using the T-SQL option WITHREPLACE. This will improve performance in cases
where the database is too damaged to perform the transaction log backup or it is
known that the transaction log is not of interest.
• The Alternate decryption pass phrase option specifies a pass phrase for AES
encryption other than the default or current phrase used by the NetWorker server.
If data was backed up using AES encryption and an alternate pass phrase, (and the
original pass phrase is no longer current), that phrase must be specified to decrypt
data during the restore. If multiple pass phrases are required, they must be
specified at the command line. The EMC NetWorker Administration Guide provides
complete information about AES encryption, and setting the pass phrase.
Performing recoveries 97
Data Recovery
2. Specify the NetWorker client from which SQL Server backups are imported for restore
to the local SQL Server by selecting one of the following fields:
• The current SQL Server Instance field displays the name of the current NetWorker
client host. Select this field to use a database backup from the SQL Server
currently connected to the NMM client.
• By default, the A [different] NetWorker SQL Server client field is disabled and the
text box displays the name of a NetWorker client host. Select this field to select a
different SQL Server host from which to obtain the existing database backup.
In order to select other client machines as the source of a copy restore, the
destination machine and an appropriate user account or group must be specified
in the list of NetWorker administrators on the NetWorker server (or remote access).
A new dialog box is displayed if the following applies to the selected NetWorker
client:
– A backup exists.
– A named instance directory in the index.
98 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
This dialog box enables the selection of the source from default and named
instances.
3. Select either the SQL Server default instance or an SQL Server named instance, and
click Continue. After choosing a SQL instance, all database backups are listed.
A CopyOf prefix is added in front of the database (and database file) names only if a
database by the same name already exists on the target system. This may not be the
case for copy restore between systems or between instances of SQL Server (or if the
original database has been removed). In these cases the default database and
filenames will be the same as the original names.
If backups for the SQL default or other named instance were not performed, or are no
longer available, the message shown in the following figure appears.
4. After you select a SQL instance, the Restore window, shown in the following figure,
lists the databases that can be restored.
If the copy restore type is selected, only one database object can be marked. Files and
filegroups of the selected database are not visible in the browse window since they
require a database backup. The files and filegroups can be viewed and configured in
the Files tab of the Properties dialog box.
If you select copy restore type, you must specify the restore properties before starting
the restore. Otherwise, the restore fails to start.
Performing recoveries 99
Data Recovery
The Properties dialog box appears and the General tab is displayed, as shown in the
following figure.
Check the generated filenames. If you change the name of the database from
CopyOfAcme Sales back to Acme Sales, by using overwrite, then you may remove
the CopyOf prefix from the associated filenames as well. Default names are
generated when the dialog box is first displayed. Any database name edits are not
propagated to the database filenames. These changes must be made manually.
You can monitor the status of the restore in the Restore Status window.
100 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
If the copy restore type is selected, only one database object can be marked. Files and
filegroups of the selected database are not visible in the browse window, and require
a database backup. The files and filegroups are available in the Properties dialog box.
3. Once the restore is set up, start the operation. “Starting the recovery” on page 119
provides more information.
102 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
Only one database object can be marked for piecemeal restore. Files and filegroups of
the selected database are not visible in the browse window. These operations require
a database backup. The files and filegroups can be viewed and configured in the Files
tab of the Properties dialog box.
3. (Optional) Right-click the parent server to open the Restore Options dialog box.
4. Click OK.
5. Right-click the database and select Properties.
In piecemeal restore operations, you must specify the restore properties before
starting the restore. Otherwise, the restore fails to start.
If you do return to the Properties dialog box, the message shown in the following
figure, appears.
8. Click the Play button in the toolbar of the Restore dialog box to start the restore.
Piecemeal restore is iterative. You can continue to restore additional filegroups in
subsequent operations. Previously restored filegroups will not be available for selection
unless you specify New Piecemeal.
104 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
b. Select a date and time from the Date and Time lists.
c. Click OK.
The dialog box closes and the Specify a browse time field in the Change Browse
Time dialog box appears with the new date and time. The backup version list is
also updated.
• By default, the Select a backup version to change browse time field marks the
current browse time in the backup version list. Select this field to enable the
backup version list and Mark button. The backup version list displays the known
backup version times, which correspond to save times of the root browse directory.
The root browse directory is created anytime a SQL Server backup is performed.
To select a new browse time, do one of the following:
– Double-click a backup time in the list, and then click OK.
– Select a backup time in the list, click Mark, and then click OK.
The Specify a Browse Time field is updated to reflect the new setting.
When you change the browse time, previous selections in the Restore window are
discarded. Any file, filegroup, or database property settings are lost.
106 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
If you select copy restore type, you must specify the restore properties before starting the
restore. Otherwise, the restore fails to start.
3. In the General tab, indicate whether to back up the active portion of the transaction.
When selected, a transaction log backup starts by using the NORECOVERY keyword.
The restore operation proceeds regardless of whether the transaction log backup
succeeds or fails.
Specify a point-in-time restore to any time within the transaction log backup. This
option applies to all SQL Server restores, and addresses database failure if that occurs
after the last scheduled incremental backup.
By backing up the active portion the active portion of the log prior to the restore, users
can specify a restore for time of failure.
4. To specify a point-in-time restore, select the Restore Time tab, and make entries as
appropriate.
Point-in-time restore can use either a full, level incremental, or level deferential
backup, as long as the selected backup is an incremental and/or the latest backup.
5. Specify a recovery mode to use for the restore:
• Normal mode—Instructs SQL Server to leave the database in operational state
after the restore. This is the default mode.
• No Recovery mode—Activates the SQL Server NORECOVERY database restore
option for the last stage restored. This mode places the database in a state that
cannot be loaded after the restore. However, the database can still process
additional transaction log restore operations.
• Standby mode—Enables the Standby Undo File Name which specifies an undo file
for SQL Server to use when rolling back the transactions. By default, this field
displays a default filename and path as follows:
%DriveLetter:\<default_path>\<default_dbName>undo.ldf
where:
– default_path is the default SQL Server backup path obtained from the SQL
Server registry.
– default_dbName is the name of the database backup selected for the restore.
6. Select Checksum and Continue with error.
If checksums are not calculated for the backup specifying them for the restore causes
the restore operation to fail.
108 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
The file location and name are listed in the text boxes.
3. Select a file from the file system tree. The file location and name appear in the text
boxes.
4. Specify the required values for the following fields:
• The File Location field—Displays the path for the standby undo file. Type a path in
the File Location field, or browse the file system tree and highlight a file. When a
file in the browse tree is highlighted, the file’s path is listed in the File Location
field.
• The File Name field—Specifies the standby undo filename. Type the filename in the
File Name field, or browse the file system tree and highlight an existing file. When a
file is highlighted, the filename is listed in the File Name text box.
5. Click OK.
These file and filegroup restore properties are not available for copy restore type
operation.
You must complete the required steps to view the restore properties for a file or filegroup.
1. From either pane of the Restore window, right-click a selected file or filegroup.
2. Select Properties.
The Properties dialog box is displayed. Properties differ depending on the version of
SQL Server that is run.
The following figure displays the properties for a filegroup.
110 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
Server specifies the WITH REPLACE SQL keyword in the restore sequence. The file
or filegroup is restored to the exact location (drive and pathname) as the location
on the source host from which the data was backed up.
• The Backup versions table lists the date and time of all the backups available for
the restore operation.
If the text boxes in this dialog box are empty, review the file configuration information.
“Specifying Read File Configuration properties” on page 114 provides details.
• The Database to restore field displays the name of the database (on secondary
storage) selected for the restore. This field is informational only and cannot be
modified.
• The Name for restored database field specifies the name for the restored
database:
– If performing a normal restore, this text box displays the name of the selected
database is disabled.
If you specify a different name, the data and log files retain the default name, as
shown in the File and Destination table. For example, if copy restore is selected
when restoring a database named Project to a database named Test, and the data
and log filenames retain the values of CopyOfProject_Data.MDF or
CopyOfProject_Log.LDF. The data and log filenames must be changed.
When the Name for restored database field is set to the name of an existing
database, the Overwrite the existing database field is enabled when you click
Apply or OK. These two values can then be used together. The name of the existing
database is then used for the restored database when the two databases are
incompatible.
• The Overwrite the existing database field Instructs the SQL Server to create the
specified database and its related files, even if another database already exists
with the same name. In such a case, the existing database is deleted.
This field causes the WITH REPLACE SQL keyword to be included in the restore
sequence. The WITH REPLACE keyword restores files over existing files of the same
name and location.
• Select or clear the filegroups to restore. If performing a normal or copy restore this
field displays the filegroups of the database selected. The set of filegroups marked
in this field is copied into the Modify the Destination for the files in list.
• The Modify the destination for the files in lists a set of different views for the
database files to be restored, and enables filtering of files that are visible in the
File and Destination table.
• The File and Destination table’s File column lists SQL Server logical filenames. The
Destination column lists physical filename and locations. The files listed in this
table are associated to the marked database to be restored.
– If performing a normal restore, this table displays the current name and
destination based on the SQL Server physical filename and logical location for
the restored file.
– If performing a copy restore, this table displays a default name and destination
based on the SQL Server physical filename and logical location for the restored
file.
The default location for the data files and log files is in the data path of the default
SQL Server installation directory. If this directory is on the system drive, provide
enough disk space for the database files, or specify another location that does.
112 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
You cannot edit the File and Destination table. You can, however, modify the
destination location.
To modify the destination, do one of the following:
– Double-click a file to display the Specify the file destination dialog box. Then
follow the instructions in the next section.
– Click a file, and then click the Destination button to display the Specify the file
destination dialog box. Then follow the instructions in the next section.
◆ The Destination file name field, by default, lists the name of the file currently selected
in the File and Destination table. When multiple files are selected, the field is empty.
To modify this field, enter a new name in the Destination File Name text box or browse
the file system tree and highlight a file. When a file is highlighted, the filename
appears in the Destination File Name text box.
Default filenames are generated when the dialog box is first displayed. Verify that the
filenames are correct. This is particularly important after changes to the database
name.
114 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
If the back up the active portion of the transaction log check box on the General tab is
selected, and you select the Specify a Restore Time field, not all of the transactions in
the transaction log backup will be present in the restored database. Only data up to
the point-in-time restored appear. You can specify a point-in-time restore between the
last scheduled full, incremental, or differential backup and the current time. The
transaction log will be backed up as the initial portion of the restore operation and, if
the transaction log backup is successful, the log is also restored.
2. Select Specify a Restore Time to enable the following restore time controls:
• Using a specific backup version—When this field is selected, the following options
are enabled.
– The Specify a time to perform a point-in-time restore field indicates what data
from the marked backup version is reinstated during the restore, and the time
to stop restoring transactions. This text box can be modified for a backups
selected in the Backup Versions table if a backup is the latest or an incremental
backup.
– If an incremental backup is selected in the Backup Versions table, that text box
can be modified by clicking the Point-in-Time button. The Point-in-Time button
is also enabled for any latest backup (full, incremental, or differential) for which
the Backup the active portion of the transaction log before restoring the
database check box is checked on the General tab. If the backup that is marked
is not the latest backup, this button displays an error message.
• The Backup Versions table contains the four columns identified in the following
table.
Type The backup type, including “full” for level full backups, “incr” for level
incremental backups, and “1” for level differential backups.
Method The Traditional Recover method is used to create the backup that is to be
restored.
Backup Time The date and time, in seconds, when the backup was created.
• Perform the restore by using a named log mark. If log marks are not used, then
display of this information can be disabled.
This field has the following characteristics:
– Can use a maximum of 1024 log marks.
– Is enabled only when log marks exist for the selected database backup. When
this field is selected, the Restore to the End of the Log Mark and the Restore to
the Beginning of the Log Mark buttons are enabled.
Specify which type of named log mark restore to perform by selecting one of the
following:
To restore the backup and stop it immediately after the named log mark, select
Restore to the End of the Log Mark. This type of restore includes the named
transaction in the restore.
116 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
To restore the backup and stop it immediately before the named log mark,
select Restore to the Beginning of the Log Mark. This type of restore excludes
the named transaction.
• Use the Log Mark table field to specify the log mark to use for the restore. Only one
log mark may be selected. The following table shows the columns in the Log Mark
table.
Date Modified The date and time, in granularity of milliseconds, on which the named
transaction log mark was created.
Description The any information about the log mark that was entered when the transaction
was performed.
The Point-in-time restore dialog box appears, as shown in the following figure.
A point-in-time restore is successful only when the time of the NetWorker server and NMM
client is synchronized.
118 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
2. In the NetWorker User for SQL Server GUI, select the Operation > Select NetWorker SQL
Server Client option, as shown in the following figure.
5. Browse the backed up Availability Group databases, as shown in the following table.
120 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Data Recovery
A full backup is performed as part of the recovery process when SQL VDI federated
recovery is started. In the dialog box that appears when federated recovery is
performed, as shown in the following table, click Yes to run a full backup or click No to
restore the database with replace.
3. On the secondary replica server, delete the AlwaysOn database, which is in restoring
mode.
You must complete the required steps to perform instance level recovery.
1. On the primary replica server:
a. Recover all the system databases.
Note: For database level restores for AlwaysOn, skip this step.
b. Recover all the user databases or just AlwaysOn database, as the need may be.
2. On secondary replica server, recover the same AlwaysOn database using the No
Recovery option in Normal Restore under database properties.
3. On the primary replica server, to rejoin the AlwaysOn database to the Availability
Group.
a. Right-click the Availability Group and select Add Database.
b. In the dialog box that appears, select the database and click Next.
c. In the dialog box that appears, specify the shared location and click Next.
d. Connect to the instance and click Finish.
Do not create a client resource using the AlwaysOn Availability Group virtual name when
performing a backup. Otherwise the backup will fail.
122 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 6
Cluster Servers Backup and Recovery
Prerequisites
There are several prerequisites for performing scheduled database backups with a SQL
virtual server in a cluster environment:
◆ A NetWorker client, configured for database backups, must be created for each SQL
virtual server to be protected.
◆ Configure the NetWorker client to either:
• Back up all databases by using MSSQL:.
• Back up specific databases by using MSSQL:User Database.
Additional databases may be added to an existing NetWorker client or a new
database client may be created.
◆ The command argument to specify virtual servers is –A SQL_virtual_server. Use the
fully qualified domain name for the client configuration and the –A option to specify
the SQL virtual server, as in the following example:
nsrsqlsv -s servername -A SQL_virtual_server
124 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Cluster Servers Backup and Recovery
3. In the Specify the Client Name and Type page that appears:
a. Type the fully qualified domain name (FQDN) of the SQL virtual server in the Client
name field.
b. Click Next.
The wizard automatically detects the cluster instances that are installed on the client
specified in the Specify the Client Name and Type page, and displays the list from
which you can select the backup type. Because a supported SQL Server version is
installed, the backup option SQL Server appears in Select the Backup Configuration
Type page.
4. In the Select the Backup Configuration Type page:
a. The client operating system and the NetWorker version being used in the
configuration setup are automatically displayed in the Client Operating System
field and NetWorker Version field respectively.
b. Select the SQL Server option.
c. Click Next.
The Specify the Client Backup Options page appears. This page displays the SQL
Server version and the list of all the available components.
5. In the Specify the Client Backup Options page:
a. The Client Direct option is selected by default. The Client Direct support provided
by NetWorker 8.1.1 is available in NMM. The EMC NetWorker Module for Microsoft
Release 3.0 SP1 Administration Guide and NetWorker Release Administration
Guide provide details about this feature.
b. Leave the Target Pool field blank so that no client is associated to any pool.
c. Select one of the following options under Deduplication:
– None— If you have not set up data deduplication.
– Data Domain backup—If you are using a Data Domain device for data
deduplication.
– Avamar deduplication backup—If you are using Avamar device for data
deduplication. After selecting this option, choose the Avamar node from the
available list.
d. Click Next.
The Select the Backup Objects page appears, containing a list of all instances and
their components.
6. In the Select the Backup Objects page, select the SQL Server cluster instance or
individual databases for backup.
The following figure shows the Select the Backup Objects page for all other SQL Server
backups.
Ensure not to select databases from two separate instances for backup. All databases
that are selected must be from the same instance. Also, databases that are in offline,
restoring, or loading state are unavailable for selection.
Click Next.
7. On the Specify the Virtual Server Credentials page:
a. Enter the Remote user name and Password.
b. Click Next.
126 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Cluster Servers Backup and Recovery
Before performing this step, ensure that for Windows Server 2008 R2 the User
Account Control is disabled for administrators. Chapter 1, “Overview of SQL Server
VDI” and esg114125 on the EMC Online Support (https://support.emc.com) provide
details.
8. In the Specify the Backup Options page, select the required options and click Next.
The options are:
a. Under Compression/Encryption Options > NetWorker compression or 256-bit AES
software encryption—Select if using 256-bit AES software encryption.
b. SQL Compression Option—Select if using SQL server 2008 and later versions.
c. Checksum Option—Select if using SQL server 2005 supported versions.
d. Do not Truncate Log—Select when backing up transaction logs for SQL server 2005.
e. Skip simple recovery model databases during incremental backup—Select when
performing instance level backup. If this option is not selected when performing
database level backup, the database is not skipped and the simple recovery model
database is promoted to full backup.
The simple database is skipped when the NSR_SKIP_SIMPLE_DB environmental
variable is set to TRUE in client Application Information. Otherwise, the
incremental backup request is promoted to full.
f. Specify the number of stripes to backup the specified data items—Select when
using stripes during backup.
The Select the NetWorker Client Properties page appears.
9. In the Select the NetWorker Client Properties page:
a. Select the browse policy, retention policy, and backup schedule for the backup.
b. Type a comment for the client in the Client Comment field.
c. Leave the Remote Access field blank.
d. Click Next.
The Specify the NetWorker Backup Group page appears.
10. In the Specify the NetWorker Backup Group page, you can select either of the following
options and click Next:
• Add to existing group - Select a group from the existing list. Only groups without
snapshot policies are available for selection.
• Create a new group - To create a new group, select this option:
– Type the a group name.
– Select the client retries.
– Choose the schedule backup time in the Schedule Backup Start Time.
– Select the Automatically start backup at the scheduled time to start the backup
automatically at the designated time.
If a storage node is being used in your configuration setup, the Specify the Storage
Node Options page appears.
Ensure that the newly created group is associated with a backup pool (and associated
backup device) of your choice.
To associate a backup group with a pool resource, go back to the pool resource,
right-click and select Properties. Now select the newly created group listed under
Basic > Data Source > Groups. This step can be performed only after exiting the Client
Configuration Wizard.
11. In the Specify the Storage Node Options page, under Backup Storage Nodes, select
either of the following options and click Next:
• Backup to the NetWorker server only - When a NetWorker storage node is not being
used.
• Backup to the following storage nodes - To select the NetWorker storage node
name and other details.
The Backup Configuration Summary page appears.
12. Check the details in the Backup Configuration Summary page, and select Back revisit
the previous pages, or select Create to configure the client resources.
The Client Configuration Results page appears with details about the client resources
that have been created for a required SQL Server.
13. Click Finish.
14. To verify the details for the client, select the client, right-click and view the Client
Properties page in the NetWorker Administration GUI.
The SQL virtual server client and the client resources for the physical nodes get
created after completing the Wizard.
By using NMC
You must complete the required steps to configure scheduled backups by using the
NetWorker Administration GUI.
◆ “Creating group resources for the cluster” on page 128
◆ “Create client resources for each cluster node” on page 129
◆ “Create client resources for a virtual server” on page 129
The EMC NetWorker Administration Guide provides detailed instructions on configuring
NetWorker server resources.
128 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Cluster Servers Backup and Recovery
The Remote Access field enables the NMM server to access the cluster node to
authenticate the computer (on which the virtual server is running) as a NMM client
before any backup or restore operation begins. Follow this step for each virtual
server Client resource in the cluster.
d. On the Apps & Modules tab, for the User Name and Password fields, add the
username and password, respectively, for a Windows user account that has both
SQL Server administrator privileges and Windows administrator privileges. The
User Name and Password fields enable NMM to back up the SQL Server virtual
server. Follow these steps for each virtual server Client resource in the cluster.
2. Use the NMC to start the backup group manually, or wait for the next scheduled
backup to occur.
130 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Cluster Servers Backup and Recovery
For example, to back up a SQL virtual server database, enter the following:
nsrsqlsv -A SQL_virtual_server_name -c SQL_virtual_server_name -s
NetWorker_server_name MSSQL:dbName
where:
◆ SQL_virtual_server_name is virtual server name when SQL Server is configured to run
in an WSFC cluster.
◆ NetWorker_server_name is the NetWorker server to use for the backup.
◆ dbName is name of the SQL Server database to be backed up.
Specifying -A SQL_virtual_server_name initiates the following:
◆ Contact the SQL virtual server.
◆ Create save set entries under SQL_virtual_server_name in the NetWorker client index.
Chapter 8, “Command Line Interface” provides more information.
132 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 7
Striped Backup and Recovery
Specifying striping
You can specify striping from one of the following:
◆ From the Backup Options dialog box in the NetWorker User for SQL Server GUI.
◆ From the NetWorker Administration GUI for a scheduled backup.
◆ From the Windows command prompt on the client host.
Append -Sn to the nsrsqlsv command, for example:
nsrsqlsv -s NetWorker_server_name -S3 db_name
134 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Striped Backup and Recovery
To change the default setting, clear the Detect Available Tape Sessions Prior to Restoring a
Striped Backup field in the Restore Options dialog box. The current setting persists from
session to session.
You can also use the regedit command at the command line to change the default setting.
Modify the NSR_DETECT_TAPES entry in the following registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Legato\BSMSQL\Environment\
Performance considerations
For improved striped backup performance, follow these suggestions:
◆ In the Create Device or Edit Device dialog box in the NetWorker Administration GUI,
configure target sessions for the NetWorker devices that are performing the striped
backup.
Always specify one session per device when using striping. This yields the best
backup performance on the client host by eliminating interleaving.
◆ Allot a separate backup device (such as a tape drive) for each stripe in the backup or
recovery operation with the following criteria:
• Use a different NetWorker server for the backup and the recovery operations not
related to the SQL Server.
• Use a dedicate a storage node exclusively to the striped backups.
◆ NMM automatically recovers data by using the same number of stripes that were
specified for the backup.
For best recovery performance, ensure that the same number of devices used for the
backup are also available at recovery time.
◆ Configure the computer to run the following:
• NetWorker client as a NetWorker storage node
• NMM
• SQL Server
The NetWorker server cannot be installed on the same host where NMM is installed.
where n specifies the number of stripes you want to use, for example, -S3.
◆ From the NetWorker Administration GUI:
a. Click Configuration.
b. In the expanded left pane, click Clients.
c. In the right pane, right-click the client, and select Properties.
d. In the Apps & Modules tab of the Properties dialog box, append -Sn to the nsrsqlsv
command, where n is the number of stripes to use.
e. Click OK.
136 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Striped Backup and Recovery
When a striped recovery is performed along with interleaving, NMM stops responding and
the recovery hangs forever. As a workaround, enable the failsafe option and then perform
the recovery.
The following table provides guidelines for determining when to activate the fail-safe
striped recovery algorithm.
If Then
The backup was Use NMC to determine if a second mount request has occurred for a volume
interleaved that is already assigned tape sessions.
Fewer devices are Use NMC to determine if a device has been deactivated, or is busy
available performing an operation for another client.
Because enabling striped recoveries on the NetWorker server may cause file system
recoveries to fail, do not use this recovery method as a permanent solution.
138 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Striped Backup and Recovery
5. (Optional) Enable striped recoveries on the NetWorker server by creating the file
striped_recovery in the \nsr\debug directory on the NetWorker server.
You do not need to restart the NetWorker services to activate this setting.
6. Start the recovery process from the NetWorker User for SQL Server GUI or from the
command line.
7. If the volumes with the striped recovery are not managed by an autochanger, then
monitor events in NMC.
When a media wait event occurs, load the appropriate volume.
8. After recovery, clear the option for the Detect Available Tape Sessions Prior to
Restoring a Striped Backup field in the NetWorker User for SQL Server GUI.
Because this setting is maintained in the Windows registry, disabling the option
allows the next striped recovery to proceed at maximum performance.
140 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 8
Command Line Interface
While the following expression is invalid because a space is not allowed between the
+ argument and log_mark_name:
-M + log_mark_name
◆ Brackets ([ ]) are used to denote the optional portions of a command. For example,
command options and corresponding arguments, if any. When initiating an actual
backup or recovery operation, do not include brackets.
◆ Data items must follow all other command options, and parameters on the command
line.
When using the nsrsqlsv and nsrsqlrc commands, the Windows logon account must be
granted the SQL Server sysadmin role.
142 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
The -b and -l command options are valid only for manual backups started from a Windows
command prompt on a client host. Do not use either of these options when configuring a
scheduled backup in the NetWorker Administration GUI.
Command
options Descriptions
-a Specifies whether data deduplication should be set with Data Domain or Avamar.
-A Specifies the virtual server name when a SQL Server is configured to run in an MSCS cluster. Chapter 6, “Cluster
Servers Backup and Recovery,” provides more information.
-b Assigns a destination pool for a save set. Specifying -b pool_name overrides all other pool-selection criteria either
provided by the NetWorker client, or specified in the Backup Options dialog box of the NetWorker User for SQL
Server GUI. The pool must be created with a corresponding label template before running a command that includes
the -b option.
-c Specifies the NetWorker client name for which the SQL Server data is to be backed up.
-C Specifies compression of the backup data before the NetWorker client sends the data to the NetWorker server.
-f aes Enables the NetWorker server to back up data using AES encryption.
-g Specifies the save group. The NetWorker server and the savegrp command use the group parameter to select the
media pool.
-G Specifies a NO_LOG transaction log backup before backing up the database. This command option is valid only for
level full backups.
-H Uses the NORECOVERY option when backing up transaction logs. It leaves the database in Restoring state.
-I Specifies a text file that lists multiple SQL Server save sets. The -I option may also be specified with the nsrsqlsv
command for the Backup Command field in the NetWorker Administration GUI.
144 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
Command
options Descriptions
Note: “Combining data objects to create backup levels” on page 60 provides more information about which backup
levels are supported for various SQL Server data objects.
The -l option is valid only for manual backups initiated from a Windows command prompt on a client host. For
scheduled backups, set the backup level in the Set Level dialog box of the schedule resource in the NetWorker
Administration GUI. Do not use the -l option when starting a backup in the NetWorker Administration GUI.
Sample outputs for each of the three different levels of backup follow:
• Full backup of the database to a specified NetWorker server:
nsrsqlsv -s server -c client -b poolname -l full dbname
nsrsqlsv -s swraj -c SQL2012RC1Named -b Sub9VDI -l full 5
43708:(pid 6004):Start time: Sat Jan 28 09:07:42 2012
43621:(pid 6004):Computer Name: SQL2012-NODE3 User Name: Administrator
NSR_BACKUP_LEVEL: full;
NSR_CLIENT: SQL2012RC1Named.joy.com;
NSR_DATA_VOLUME_POOL: Sub9VDI;
NSR_LOG_VOLUME_POOL: Sub9VDI;
NSR_SAVESET_NAME: "MSSQL:5";
NSR_SERVER: Swraj.joy.com;
37994:(pid 6004):Backing up 5...
4690:(pid 6004):BACKUP database [5] TO
virtual_device='EMC#4018d580-f511-4457-abc3-a62c4c3f0ff9' WITH
name=N'EMCNWMSQL'
53085:(pid 6004):Backing up of 5 succeeded.
nsrsqlsv: MSSQL:5 level=full, 2261 KB 00:00:02 1 file(s)
43709:(pid 6004):Stop time: Sat Jan 28 09:07:49 2012
• Differential backup:
nsrsqlsv -s NetWorker_server_name -l diff my_database
nsrsqlsv: Backing up my_database...
nsrsqlsv: BACKUP database my_database TO virtual_device='BSMSQL' WITH
differential, stats
nsrsqlsv: my_database level=diff, 719 KB 00:00:05 1 file(s)
• Incremental backup:
nsrsqlsv -s NetWorker_server_name -l incr my_database
nsrsqlsv: Backing up my_database...
nsrsqlsv: BACKUP log my_database TO virtual_device =’BSMSQL’
nsrsqlsv: my_database level=incr, 61 MB 00:00:05 1 file(s)
At least one SQL Server data item (file, filegroup, or database) must be specified, and the data items and list of data
objects must follow all other command options and parameters on the command line.
-N Specifies the symbolic name of the save set. By default, the most common prefix of the path arguments is used as
the save set name.
Command
options Descriptions
-P Specifies the SQL Server user password. When the -U username command option is specified, the password
command option must also be provided, as follows:
nsrsqlsv -s NetWorker_server_name -U username
-P password MSSQL:
Use the SQL Server username and password to log onto SQL Server by using SQL Server integrated security.
-q Displays nsrsqlsv messages in quiet mode; only summary information and error messages appear.
-T Performs a TRUNCATE_ONLY transaction log backup before backing up the database and is valid for only full
backups.
-U Specifies the SQL Server username. When this command option is specified, the -P password command option
must also be provided, as follows:
nsrsqlsv -s NetWorker_server_name -U username -P password MSSQL:
Use the SQL Server username and password to log onto SQL Server using SQL Server integrated security.
-v Displays nsrsqlsv messages in verbose mode, providing detailed information about the progress of the backup
operation.
-Z Applies to the backup of up databases for a SQL Server 2005, and is usually used in the online recovery scenario
from the command line. The -Z option specifies that the incremental (transaction log) backup after recovery is not
promoted to full backup. Without the -Z option, the backup is promoted to full.
146 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
Command
options Descriptions
-$ Specifies a named SQL Server instance as the source of the copy recovery. The syntax is:
-$ MSSQL$instance_name:
where:
-$ specifies to use a named instance instead of the default instance as the source for the copy recovery.
$instance_name is the name of the instance to use.
The following example copies the database Sales from the SQL Server prod-sql, instance Venus, to the SQL Server
test-sql, instance Mars:
nsrsqlrc -s nw_server.company.com
-c prod-sql. company.com
-$ MSSQL$VENUS:
-d “MSSQL$MARS:Sales”
-C” ‘Sales ‘=’D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\Sales.mdf',
'Sales_log'='D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\Sales_log.ldf'"
-t "Fri Dec 01 08:01:19 2006"
"MSSQL$VENUS:Sales"
If the -$ switch is used, and no instance is named, for example "-$ MSSQL:", or the -$ switch is omitted, the default
instance is used.
-A Specifies the virtual server name when the SQL Server is configured to run as a clustered service in an MSCS
cluster. Chapter 6, “Cluster Servers Backup and Recovery,” provides more information.
-c Specifies the NetWorker client name from which the SQL Server data is to be recovered.
Command
options Descriptions
-C Copies the database being restored to either the same SQL Server or a different SQL Server. It can be used for
normal, copy, and partial restores. Use the relocation list to specify new locations for recovered database files. The
relocation list is composed of pairs of logical database filenames and fully qualified domain database filename
relocation paths. Specify the relocation list only when restoring a database. Each filename and relocation path is
joined by the equal sign (=), and pairs are delimited in the list by commas.
The syntax is:
["][’] file[’]=[’]path[’],[’] file2[’]=[’]path2[’],...["]
For example, to copy a database named Project from a client host named ClientHost1 to a different location on
ClientHost1, specify the relocation list for the database files, but do not include the client host name command
option:
nsrsqlrc -s NetWorker_server_name
-d MSSQL:CopyOfProject
-C Project_Data=C:\Relocation\Path\Project_Data.mdF,
Project_Data2=C:\Relocation\Path\Project_Data2.ndF,...,
Project_Log=C:\Relocation\Path\Project_Log.ldF MSSQL:Project
The relocation list may be enclosed by double quotes to allow for spaces in the relocation elements and
pathnames. A logical filename or relocation path may be enclosed by single quotes to also allow for spaces. If a
filename or path contains a single quote, precede the single quote with another single quote to prevent the NMM
from parsing the single quote as a delimiter, for example:
nsrsqlrc -s NetWorker_server_name
-d MSSQL:CopyOfProject
-C "’File’=C:\Relocate Dir\Path\,
=’C:\Relocate Dir\Path\’,...,
’=C:\Relocate Dir\Path\’’" MSSQL:Project
When no relocation list is specified, NMM reads the source database filenames and location from the client index
metadata or the backup. This information is used to generate a default list by relocating all files to the default SQL
data path for the target SQL Server. The filenames are guaranteed to be unique, but sufficient disk space is not
ensured.
-d Performs a copy operation. The copy operation recovers SQL Server data from a client host to another database
name on the same client host. The syntax is:
nsrsqlrc -s NetWorker_server_name -C client_name -d
MSSQL:destination_dbname MSSQL:source_dbname
where:
destination_dbName is the name of the SQL database to which the source database is to be recovered.
source_dbName is the name of the SQL database to restore.
When -C, -M, -R, or -d are used, the list of data items can include only one database. The list of data items must
follow all other command options and parameters on the command line.
-e Enables use of an alternate pass phrase with AES encryption when recovering data.
-f Performs a recovery operation by replacing the target database with the source. This option recovers a source
database to an existing, incompatible database of the same name on the target host. This option is also used to
recover damaged files.
-j Performs a database consistency check between the backed up SQL Server data and the recovered SQL Server
data.
148 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
Command
options Descriptions
-M Performs a SQL Server data recovery of the named transaction specified in log_mark_name (for SQL Server 2005
only).
How the mark name is prefixed, determines how the data will be recovered:
When the mark name is prefixed with a plus sign (+), the data is recovered to and includes the named transaction.
When the mark name is prefixed with a minus sign (-), the data is recovered up to the named transaction.
The log_mark_name should immediately follow the plus or minus symbol. The use of a space separator is not
allowed. The default is the plus sign.
For example, to recover the SQL data to and include the named transaction transaction_mark, enter the following
command:
nsrsqlrc -s NetWorker_server_name
-M +transaction_mark MSSQL:dbName
To recover the SQL data only to the named transaction transaction_mark, enter the following command:
nsrsqlrc -s NetWorker_server_name
-M -transaction_mark MSSQL:dbName
Only one SQL Server database may be specified, and the database must follow all other command options and
parameters on the command line.
-P Specifies the SQL Server user password. When the -U username command option is specified, the password
command option must also be provided, as follows:
nsrsqlrc -s NetWorker_server_name -U username
-P password MSSQL:
Use the SQL Server username and password to log onto SQL Server using SQL Server integrated security.
-q Displays nsrsqlrc messages in quiet mode, which provides minimal information about the progress of the recovery
operation, including error messages.
-R Performs a partial database recovery or a piecemeal recovery of the specified filegroups. This command option is
not available with other versions of SQL Server. The partial database recovery operation restores specific
filegroups from a single full SQL Server database backup. Add the filegroups to the -R command option in a list,
with items separated by commas. The -C parameter may be used, and should specify all files for the database. The
-d parameter is also required:
nsrsqlrc -s NetWorker_server_name
-R ["][’]fgName[’],[’]fgName2[’],[’]...[’]["]
-C Project_Data=C:\Relocation\Path\Project_Data.mdF,
Project_Data2=C:\Relocation\Path\Project_Data2.ndF,...,
Project_Log=C:\Relocation\Path\Project_Log.ldF MSSQL:Project-d
MSSQL:PartOfProject MSSQL:Project
where:
• Project is the name of the SQL database to restore.
• PartOfProject is the name of the SQL database to which the source database is to be recovered.
• fgName,... are the names of the filegroups to restore.
To allow spaces:
• Between the filegroup names for the -R option, enclose the list of filegroup names within double quotes.
• Within filegroup names, enclose each filegroup name within single quotes.
• If a filegroup name contains a single quote, precede the single quote with another single quote to prevent the
NetWorker client from parsing the single quote as a delimiter.
For example, to accommodate for the space in Filegroup A, the space after the first comma, and the single quote in
Filegroup A’, use the following syntax:
-R "’Filegroup A’, ’Filegroup A’’’"
When an empty relocation list is supplied, use the following syntax:
-R ""
Command
options Descriptions
-S Performs the recovery operation according to the specified database restore mode of normal, standby, or no
recovery. The syntax is:
nsrsqlrc -s NetWorker_server_name -d destination_dbName -S
normal | "standby:undo_file" | norecover MSSQL:source_dbName
where:
• destination_dbName is the name of the SQL database to which the source database is to be restored.
• source_dbName is the name of the SQL database to restore.
The recovery modes are as follows:
• The normal recovery mode recovers the database in normal, operational mode.
• The standby recovery mode activates the SQL Server STANDBY option, which forces the database to be in a
read-only state between transaction log recovers operations.
• The no-recovery recovery mode activates the SQL Server NORECOVER option, which places the database in an
unloadable state after the recovery, but still able to process additional transaction log recovery operations.
For example, to recover a database named Project in normal, operational mode to a new database named
NewProjectName, enter the following command:
nsrsqlrc -s NetWorker_server_name -S normal
-d MSSQL:NewProjectName MSSQL:Project
To recover the database in standby mode, the standby parameter must be immediately followed by a colon, and
the standby undo file location and filename must be specified. If a filename or location contains a space, enclose
the filename or location within double quotes, for example:
nsrsqlrc -s NetWorker_server_name
-S "standby:C:\temp\undo filename"
-d MSSQL:NewProjectName MSSQL:Project
-t Recovers the SQL Server data at a specified date. If the date of a backup version is before or is equivalent to the
specified date, the backup version is recovered. Follow the nsr_getdate command syntax guidelines when
formatting the date. To avoid adversely affecting the database, do not use the -t option if restoring a file or
filegroup.
150 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
Command
options Descriptions
-U Specifies the SQL Server username. When the username command option is specified, the -P password command
option must also be provided, for example:
nsrsqlrc -s NetWorker_server_name -U username -P password MSSQL:
Use the SQL Server username and password to log onto SQL Server by using SQL Server integrated security.
-V Verifies the SQL Server database selected for the recovery. The -V command option verifies only that the selected
database backup is suitable for restoring, the backup is not recovered. The syntax is:
nsrsqlrc -s NetWorker_server_name -V MSSQL:dbName
-z Enables implementation of a recovery plan in independent command line operations. Normally NMM builds the
recovery plan, ensuring all the required backups are available and executed in the proper order and with the
proper options. The –z option removes NMM safety checks.
This option is used in more complex recoveries. For example, given a backup history of:
savetime 1:00 – Full
savetime 2:00 – Incr
savetime 3:00 – Incr
To recover multiple backups and restore a database in a single command use:
nsrsqlrc ... -t “savetime 3:00” ...
This recovers the entire recovery chain, from the first full backup to the last incremental backup.
To recover this recovery chain and restore a database in a series of independent commands use:
nsrsqlrc ... -s norecovery -t “savetime 1:00” ...
nsrsqlrc ... -z -S norecovery -t “savetime 2:00” ...
nsrsqlrc ... -s -S norecovery -t “savetime 3:00” ...
These three commands recover each backup individually. The -z option leaves the database ready for more
restores. The final command recovers the last incremental backup and brings the database on-line.
The database is not available for general usage until after the final recovery completes. Any missing, incorrect, or
out of order save times will result in SQL Server reporting errors.
The AcmeOnline database name and file locations are different from AcmeBank.
Command options
for nwmssql Description
-t Diagnoses the current backup or recovery command issued by NMM. The NetWorker User for SQL Server GUI
displays the full backup or recovery command in the operation status window, but does not execute the
backup or restore operation.
-b Limits the browse time to what is mentioned in the -b command line parameter.
152 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
You can specify more than one data object and combine different types of data. The SQL
data objects must be specified by using the syntax shown in the following table.
Specifying MSSQL before each data object name is optional and does not affect the
expression or the resulting operation. However, when MSSQL is specified, it must be
followed by a colon (:).
For example, the following two commands are equivalent:
nsrsqlsv -s NetWorker_server_name dbName.fgName
nsrsqlsv -s NetWorker_server_name MSSQL:dbName.fgName
For example, to back up all of the databases for instanceOne, type the following:
nsrsqlsv -s NetWorker_server_name MSSQL$instanceOne:
For example, to recover several filegroups for instanceTwo, type the following:
nsrsqlrc -s NetWorker_server_name
MSSQL$instanceTwo:dbName.fgName
MSSQL$instanceTwo:dbName.fgName2
Backup and recovery command syntax for SQL Server data 153
Command Line Interface
Instead of using clustered named instances in this syntax, use clustered instance SQL
Server virtual server names with -A or -c option. For example:
nsrsqlsv -s NetWorker_server_name -A SQL_virtual_server_DNS_name
SQL_virtual_server_DNS_name
MSSQL”nsrsqlsv -s NetWorker_server_name -c
SQL_virtual_server_DNS_name
MSSQL:
where:
◆ NetWorker_server_name is the hostname of the NetWorker server.
◆ SQL_virtual_server_DNS_name is the Domain Name System (DNS) name for the SQL
Server virtual server.
Create a client resource under this name.
For scheduled ba ckups of a SQL Server virtual server client, it is not necessary to specify
-A or -c option with the SQL Server virtual server name. The savegrp process automatically
specifies the virtual server name to the nsrsqlsv process by using the -m option.
The nsrsqlsv and nsrsqlrc commands only support specification of a single instance. If
save sets for more than one instance are specified, the backup fails. The nsrsqlrc
command supports mixing of instances for a copy restore operation.
154 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Command Line Interface
◆ The backslash period (\.) character sequence replaces each literal period in the SQL
identifier.
◆ The double backslash (\\) character sequence replaces each literal backslash in the
SQL identifier.
The SQL filegroup named MyFileGroup\2 for the SQL database MyDatabase\\COM.MyFileGroup\\2
named MyDatabase\COM MSSQL:MyDatabase\\COM.MyFileGroup\\2
MSSQL$MyInstance:MyDatabase\\COM.MyFileGroup\\2
The SQL file named MyFile\2, which is a member of the SQL MyDatabase\\COM.MyFileGroup\\2.MyFile\\2
filegroup named MyFileGroup\2 for the SQL database named MSSQL:MyDatabase\\COM.MyFileGroup\\2.MyFile\\2
MyDatabase\COM MSSQL$MyInstance:MyDatabase\.COM.MyFileGroup\.2
.MyFile\\2
Backup and recovery command syntax for SQL Server data 155
Command Line Interface
Table 35 Command syntax for names containing periods, back slashes, and colons
156 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
CHAPTER 9
Disaster Recovery
The EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution
Release 3.0 SP1 User Guide provides information about performing Bare Metal Recovery
for SQL Server (VDI).
NMM does not support snapshot backups or recoveries of the SQL Server master
database. Recover from a traditional backup of the master system database during a
disaster recovery.
158 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Disaster Recovery
b. The msdb database is always recovered after the master database and before all
other databases. This ensures that scheduling and other system data present in
the msdb database are correct for all subsequent restored databases.
c. The model database is always recovered after the master and the msdb databases,
and before all other databases. This ensures that the database configuration is
correct for all subsequent databases.
◆ SQL Server startup complete detection—When the SQL Server is started, a database
startup process is also started. The SQL Server enables user connections while the
startup process is running. However, if the startup process is interrupted by a
database RESTORE query, any database that has not yet started is marked as suspect.
When the interruption occurs, subsequent restores of the msdb database fails.
Subsequent recovery of any user database might also fail unless the Overwrite the
Existing Database field is specified in the Properties dialog box.
NMM waits for the SQL Server to complete the database startup process for all
databases before starting a recovery. NMM waits for the recovery of the master
database to complete. This wait process enables a proper restore of the msdb
database and user databases following a SQL Server startup.
Always use the -f option with the nsrsqlrc command for a recovery that follow a SQL
Server startup.
◆ Overwriting capability—Use the Files tab in the Properties dialog box of the NetWorker
User for SQL Server GUI to specify overwriting all databases during a restore.
NMM does not handle all dependent services. When recovering application services,
such Metadata or Replication services, as well as the databases on which these
services depend, the services must be manually shut down.
NMM does not ensure that all connections to a database are closed prior to recovering
a database as required by the SQL Server. Such open connections must be manually
closed. The Microsoft SQL Server documentation provides more information.
To run steps 4 and 5 as a single operation from the command line, type the following
command:
nsrsqlrc -s... -f MSSQL:
To use the NetWorker User for SQL Server GUI to complete steps 4 and 5, see “Using
the NetWorker User for SQL Server GUI to complete disaster recovery” on page 164.
160 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Disaster Recovery
To run steps 7 and 8 as a single operation from the command line, type the following
command:
nsrsqlrc -s... -f MSSQL:
To use the NetWorker User for SQL Server GUI to complete steps 7 and 8, see “Using
the NetWorker User for SQL Server GUI to complete disaster recovery” on page 164.
6. Rebuild the databases on the SQL Server. Information about rebuilding various SQL
Server is available on the Microsoft MSDN website:
• For information about rebuilding databases on SQL Server 2012, go to
http://msdn.microsoft.com/en-us/library/dd207003.aspx
• For information about rebuilding databases on SQL Server 2008, go to
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx
• For information about rebuilding databases on SQL Server 2005, go to
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.90).aspx
7. Restart the SQL Server.
8. When recovery is started, in the NetWorker User for SQL Server GUI, select the replace
option to restore the SQL Server master database and the msdb database.
9. Recover the other SQL application databases.
To run steps 8 and 9 as a single operation from the command line, type the following
command:
nsrsqlrc -s... -f MSSQL:
To use the NetWorker User for SQL Server GUI to complete steps 8 and 9, see “Using
the NetWorker User for SQL Server GUI to complete disaster recovery” on page 164.
162 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Disaster Recovery
To run steps 8 and 9 as a single operation from the command line, type the following
command:
nsrsqlrc -s... -f MSSQL:
To use the NetWorker User for SQL Server GUI to complete steps 8 and 9, see “Using
the NetWorker User for SQL Server GUI to complete disaster recovery” on page 164.
IMPORTANT
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx provides details
about how you can install various SQL Server versions from the command prompt. Use the
Other Versions list at the top of the page to view information for a particular SQL version.
To run steps 5 and 6 as a single operation from the command line, type the following
command:
nsrsqlrc -s... -f MSSQL:
To use the NetWorker User for SQL Server GUI to complete steps 8 and 9, see “Using the
NetWorker User for SQL Server GUI to complete disaster recovery” on page 164.
Using the NetWorker User for SQL Server GUI to complete disaster recovery
You must complete the required steps to complete the disaster recovery by using the
NetWorker User for SQL Server GUI:
1. Click Restore.
2. Select Normal, and then click Continue.
The Restore (Normal) window appears.
3. Right-click the SQL Server root and select Mark All Databases.
4. From the Options menu, select Restore Options.
The Restore Options dialog box appears.
5. Click Automatically Overwrite Any Database Marked for Restore, and then click OK.
6. Click Start.
164 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
GLOSSARY
This glossary contains terms related to the NetWorker Module for Microsoft. Many of these
terms are used in this manual.
A
ad hoc backup See manual backup.
administrator The person normally responsible for installing, configuring, and maintaining NetWorker
software.
Administrators group A Microsoft Windows user group whose members have all the rights and abilities of users
in other groups, plus the ability to create and manage all the users and groups in the
domain. Only members of the Administrators group can modify operating system files,
maintain the built-in groups, and grant additional rights to groups.
archive volume A tape or other storage medium used for NetWorker archives, as opposed to a backup
volume.
autochanger A mechanism that uses a robotic arm to move media among various components located
in a device, including slots, media drives, media access ports, and transports.
Autochangers automate media loading and mounting functions during backup and
recovery.
B
backup group See “group.”
Backup Operators group A group of Microsoft Windows users who can log on to a domain from a computer or a
server, and back up and restore its data. Backup operators also can shut down servers or
computers.
bootstrap A save set that is essential for the NetWorker disaster recovery procedures. The bootstrap
is composed of three components that reside on the NetWorker server: the media
database, the resource database, and a server index.
browse policy A NetWorker policy that determines how long entries for backed up data remain in the
client file index.
browse time A feature of the NMM program that allows you to select the date and time of the backup
save sets that are displayed in the Restore window, so you can restore data from previous
backups. By default, the browse time is the current date and time.
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 165
Glossary
C
client See “NetWorker client.”
client direct The Client Direct feature reduces bandwidth usage and bottlenecks at the storage node,
and provides highly efficient backup data transmission.
client file index A database of information the NetWorker server maintains that tracks every database
object, file, or file system backed up. The NetWorker server maintains a single client index
file for each client computer.
client resource NetWorker server resource that identifies the save sets to be backed up on a client. The
Client resource also specifies information about the backup, such as the schedule, browse
policy, and retention policy for the save sets.
cluster 1. A group of independent network servers that operate and appear to clients as if they
were a single unit.
2. A group of disk sectors. The operating system assigns a unique number to each cluster
and then keeps track of files according to which clusters they use.
compression Compress the contents of a database before backup to generate less network traffic and
use less backup media space. Compression can increase the backup time.
copy restore Create a copy of a database by restoring a SQL Server 7.0 or later database backup to a
new location or to a new database name. The copy restore type replaces the directed
recovery operation, which existed in versions of the NetWorker Module before release 3.0.
D
default instance In a Microsoft SQL Server multiple instance configuration, the first installation of SQL
Server on a computer is called the default instance. The name of the default instance is
the network name for the local computer.
device 1. A storage unit that reads from and writes to storage volumes (see volume). A storage
unit can be a tape device, optical drive, autochanger, or file connected to the server or
storage node.
2. When dynamic drive sharing (DDS) is enabled, refers to the access path to the physical
drive.
differential A backup level that corresponds to a NetWorker Module level (1-9) backup. All of the
pages in a database that were modified after the last database backup are saved.
directive An instruction directing the NetWorker software to take special actions on a given set of
files for a specified client during a backup.
disaster recovery Restore and recovery of data and business operations in the event of hardware failure or
software corruption.
166 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Glossary
E
enabler code A special code provided by EMC that activates the software. The enabler code that unlocks
the base features for software you purchase is referred to as a base enabler. Enabler codes
for additional features or products (for example, autochanger support) are referred to as
add-on enablers.
F
fake objects Data items contained in the storage hierarchy that are not available for backup. To be able
to browse the filegroups and files contained in a database, the NetWorker User for SQL
Server program may display these fake objects.
federated backup During federated backups, NMM detects the SQL Server preferred backup setting for the
Availability Group and performs the backup at the preferred node.
file server A computer with disks that provides services to other computers on the network.
full A backup level that corresponds to a Microsoft SQL Server database backup. The entire
database is saved, which includes both data files and transaction log files.
G
group A client or group of clients configured to start backing up files to the NetWorker server at a
designated time of day.
I
incremental (i) A backup level that corresponds to a Microsoft SQL Server transaction log backup. Only
the log file is saved.
instant restore The process of copying data created during an backup back to its original location on the
SQL Server during a recover operation. NMM supports instant restores of SQL Server
databases.
L
level (1-9) A backup level that corresponds to a Microsoft SQL Server differential backup. All of the
pages in a database that were modified after the last database backup are saved.
License Manager (LLM) Application that provides centralized management of product licenses.
M
manual backup An unscheduled backup of SQL Server data, performed either with the NetWorker User for
SQL Server program, or by running nsrsqlsv at the command prompt.
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 167
Glossary
master database The SQL Server master database contains information about all SQL Server databases on
the SQL Server host.
media database A database that contains indexed entries about the storage volume location and the life
cycle status of all data and volumes the NetWorker server manages.
media manager The NetWorker component that tracks the location status and purpose of storage media.
Microsoft Cluster Server A Microsoft Windows server feature that supports the connection of multiple servers into a
(MSCS) “cluster” for higher availability of data and applications.
N
named instance An installation of SQL Server that is given a name to differentiate it from other named
instances and from the default instance on the same computer. A named instance is
identified by the computer name and instance name.
named log marks Named log marks are created by database applications when transactions are performed.
The marks enable access to specific transaction points in a database transaction log
backup.
NetWorker An EMC network-based software product for backing up and recovering file systems.
NetWorker client A computer that has the NetWorker client software installed and can access the backup
and recover services from a NetWorker server.
NetWorker resource A component of the s software that controls the functionality of the NetWorker server and
its clients. Examples of NetWorker resources include devices, schedules, clients, groups,
and policies. Each resource consists of a list of values that defines the resource’s specific
parameters.
NetWorker server The computer on a network running the NetWorker software, containing the online
indexes, and providing backup and recovery services to the clients on the same network.
NetWorker storage node A storage device physically attached to another computer whose backup operations are
administered from the controlling NetWorker server.
NetWorker SQL Adhoc Install the graphical user interface plugin when installing NMM by selecting the option for
Backup Plugin it. You can perform manual backups without having to navigate between the NetWorker
User for SQL Server GUI and the SQL Management Studio GUI.
NetWorker User for SQL The graphical user interface for the NetWorker Module for Microsoft software. From this
Server interface you can initiate manual backups as well as recoveries.
no recovery Equivalent to the SQL Server NORECOVER option, which places a database in an
unloadable state after a restore, but enables the database to process additional
transaction log restore operations.
168 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Glossary
nsrhost The logical hostname of the computer that is the NetWorker server.
nsrsqlrc The command used to browse the SQL Server storage hierarchy and to restore files from a
backup version.
nsrsqlsv The command used to browse the SQL Server storage hierarchy and to backup data
objects, which consist of databases, filegroups, and files.
nwmssql The command used to invoke the NetWorker User for SQL Server program.
O
online indexes The databases located on the NetWorker server that contain all the information pertaining
to the client backups (“client file index”) and backup volumes (“media”).
operator The person who monitors the server status, loads backup volumes into the server devices,
and otherwise executes the day-to-day NetWorker tasks.
override A NetWorker feature that allows you to configure a different backup level for a specific date
listed in a Schedule resource.
P
partial restore When a partial database restore is performed, the primary filegroup and associated files
are always restored. The primary filegroup contains information necessary for restoring the
database to the proper structure.
pathname A set of instructions to the operating system for accessing a file. An absolute pathname
indicates how to find a file starting from the root directory and working down the directory
tree. A relative pathname indicates how to find a file starting from the current location.
point-in-time Restore SQL Server data to a specific point in time, such as a named log mark or
transaction time within a backup version.
pool A feature that enables you to sort backup data to selected volumes. A pool contains a
collection of backup volumes to which specific data has been backed up.
primary The SQL server primary filegroup contains information necessary for restoring a database
to the proper structure. When a partial database restore is performed, the primary
filegroup and associated files are always restored.
primary storage A SQL server storage subsystem that contains SQL data backups of the data.
promotion When the server performs a backup at a higher level than originally requested. For
example, the server performs a level full backup when a level differential backup was
requested.
proxy client A surrogate client that performs the NetWorker save operation for the client that requested
the backup.
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 169
Glossary
R
recovery model The Microsoft SQL Server recovery model represents the trade-offs made when deciding
which databases to back up and how often, and the impact back up and restore time have
on system performance. Recovery models include: full, bulk_logged, and simple.
recycle-able volume A volume whose data has passed both its browse and retention policies and is available
for relabeling.
relocation list The relocation list is used during a normal or copy restore type operation to specify where
to locate the restored files. The list is composed of pairs of logical database filenames and
fully qualified domain database filename relocation paths.
restore The process of retrieving individual data files from backup storage and copying to disk.
restore mode The restore mode instructs the NMM on how to interact with a database after a restore
operation has completed. Restore modes correspond to SQL Server database restore
options and include: normal, no recovery, and standby.
restore time The restore time controls which backup data should be reinstated when a database is
restored; may also control which portions of a level incremental backup are to be restored,
when you inform the NMM to discard transactions performed after a given time.
restore type The restore type is based on the level and type of backup created, as well as the set of
data needed to restore from a backup. The restore type must be specified before browsing
and selecting objects to restore. Restore types include normal, copy, partial, and verify
only.
retention policy A NetWorker policy that determines how long entries are retained in the media database.
rolloveronly backup A backup method that employs a “proxy client” to move the data from primary storage on
the application server host computer to secondary storage.
root item The top level data object in a SQL Server storage hierarchy.
S
save The NetWorker command that backs up client files to backup volumes and makes data
entries in the online index. See also ”nsrsqlsv.”
save set A set of files backed up onto storage media using the NetWorker software.
save set ID An internal identification number that NetWorker software assigns to a save set.
scanner The NetWorker command used to read a backup volume when the online indexes are no
longer available.
170 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
Glossary
scheduled backup A type of backup that is configured to start automatically at a specified time for a group of
one or more NetWorker clients. Scheduled backups are configured using either the
NetWorker Configuration Wizard, or the NetWorker Administrator program on the
NetWorker server.
secondary storage A storage library attached to the NetWorker server or storage node, used to store
traditional or snapshot backups. A NetWorker server Device resource must be configured
for each secondary storage device. See also ”primary storage.”
stand-alone device A storage device that contains a single drive for backing up data. Stand-alone devices
cannot store or automatically load backup volumes.
standby Equivalent to the SQL Server STANDBY option, which forces a database to be in a read-only
state between transaction log restore operations.
stripes One or more streams of data that may be extracted in parallel from a database, and
written in parallel to multiple media devices, such as tape drives.
sysadmin System administrator account, or system account, one having full privileges.
SQL Server AlwaysOn SQL Server 2012 AlwaysOn allows for the more granular control of an environment with
Availability Group the introduction of AlwaysOn Availability Groups (AAG’s). By using AAG, groups of
databases can be configured to failover all together when there is a problem with the host
server. SQL Server AlwaysOn provides a high-availability and disaster-recovery solution for
SQL Server 2012. It makes use of existing SQL Server features, particularly Failover
Clustering, and provides new capabilities such as availability groups.
T
traditional backup A NMM backup operation that uses the NetWorker “XBSA” API. These operations are
referred to as “traditional” because this method has been in use since the NetWorker
Module was first released.
traditional restore A NMM restore operation that use the NetWorker “XBSA” API.
transaction log A SQL Server transaction log contains named transactions or listings of changed files of a
SQL Server database. Transaction logs can be truncated prior to a full database backup or
backed up separately by performing an incremental level backup.
truncate Equivalent to the SQL Server TRUNCATE_ONLY option, which causes the transaction log
files to be truncated before creating a backup.
V
verify-only restore Verifies the backup media for the selected SQL Server backups. Selecting the verify-only
restore type does not restore any SQL Server data. In addition, when verify-only is
specified, item-level properties for database, filegroup, and file objects are not available.
virtual server In a Microsoft Cluster Server configuration, SQL Servers appear as a set of two nodes and
virtual servers. Each node is a physical computer with its own IP address and network
name, and the virtual servers have their own IP addresses and network names. Each
virtual server also owns a subset of shared cluster disks and is responsible for starting
cluster applications that can fail over from one cluster node to another.
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 171
Glossary
volume A unit of storage media, such as a magnetic tape, an optical disk, or a file. A storage
device reads from and writes to volumes, which can be physical units (for example, a
labeled tape cartridge) or logical units (for example, optical media can store multiple
volumes on a single physical platter).
X
XBSA Acronym for X/Open Backup Services Application Programming Interface, which connects
NetWorker functionality to the NetWorker Module.
172 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
INDEX
A features 158
AES encryption SQL Server 163
backup 48, 52 distribution database 161
restore 97
AlwaysOn Availability Group feature 74 E
AUTOMATED_BACKUP_PREFERENCE 74 ERRORLOG file 86
B F
backup failover cluster support 22
AES encryption 48, 52 fail-safe recovery 137
canceling 54 Federated backups 19
in a cluster 130 filegroups
levels backing up and restoring 87, 111
comparison 34, 60 specifying for restore 111
levels, defined 32 files
levels, SQL Server terminology 32 backing up and restoring 87, 111
manual 32 filestream data 31, 39, 86
Microsoft Cluster Server data 22
monitoring 54
options G
volume pools 52 groups
parallelism 134 configuring for backup 62
performance 134
properties 52 I
required time 54 interleaving 134
scheduled 32, 171
starting 54
backup command attribute M
DPM 70, 82 marking items
backup groups restrictions 39, 50
configuring 62 MSCS (Microsoft Cluster Server)
backup options 51 active/active cluster configurations 23
backup pool active/passive cluster configurations 23
creating for snapshots 61 failover support 22
backup status window 54 multiple instance 22
BACKUP_PRIORITY 75 named instances 22
binary disk crash 161 virtual server 22, 23
browse time, changing 105
N
C named instances 22, 28
canceling a backup 54 named log mark
client resource defined 25
configuring when in a cluster 58 NetWorker
cluster server debug directory 139
scheduling backups for 58 NetWorker Remote Exec Service 86
cluster virtual server 23 NetWorker Administrator program
create time 38 display hidden attributes 57
NetWorker client 63
NetWorker User for SQL Server
D Backup Status window 54
database file relocation restrictions 40 marking items restrictions 39, 50
DBCC (database consistency check) 26 nwmssql command 142
disaster recovery striped restore 139
basic instructions 159
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 173
Index
174 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide
IndexIndex
V
virtual cluster server
scheduling backups for 58
virtual server 22, 23
volume pools 52
W
Windows logon account 30
EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide 175
Index
176 EMC NetWorker Module for Microsoft for SQL VDI Release 3.0 SP1 User Guide