Docu 96381
Docu 96381
User Guide
REV 01
November 2019
Copyright © 2007-2019 Dell Inc. or its subsidiaries. All rights reserved.
Dell 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.” DELL 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 DELL SOFTWARE DESCRIBED
IN THIS PUBLICATION REQUIRES AN APPLICABLE SOFTWARE LICENSE.
Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be the property
of their respective owners. Published in the USA.
Dell EMC
Hopkinton, Massachusetts 01748-9103
1-508-435-1000 In North America 1-866-464-7381
www.DellEMC.com
2 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CONTENTS
Figures 7
Tables 9
Preface 11
Chapter 1 Overview 15
Using NMM with Virtual Device Interface API................................................... 16
SQL Server backup and restore workflow......................................................... 18
Traditional backup workflow (stand-alone backup over a storage node)..
18
Federated backup workflow (AlwaysOn Availability Group
configuration).......................................................................................19
Recovery workflow.............................................................................. 20
SQL Server cluster environments..................................................................... 22
SQL Server backups......................................................................................... 23
Types of supported backups................................................................ 23
Setting backup levels........................................................................... 24
Backup promotion................................................................................ 27
SQL Server recovery........................................................................................ 29
Types of supported recovery............................................................... 29
Recovery modes.................................................................................. 30
Recovery time...................................................................................... 31
Recovery window restrictions.............................................................. 32
The recovery process...........................................................................32
SQL Server instance and database names for backup and recovery................. 33
Named and default instances of SQL Server........................................ 33
Supported special characters in database names for NMM backup and
recovery ..............................................................................................34
Chapter 2 Configuration 37
Configuring NMM in a SQL VDI environment.................................................... 38
Supported Windows Server and SQL Server versions.......................... 38
Migrating from VSS solution to VDI solution for SQL Server data
protection............................................................................................ 38
Multi-stream Data Domain Boost......................................................... 38
Microsoft SQL Server Always On Availability Group feature ............... 38
Availability group listeners....................................................................39
Clusterless availability group listeners.................................................. 39
SQL Client Direct to AFTD or DD devices............................................ 40
Microsoft SQL Server named log marks...............................................40
Database consistency checks............................................................... 41
Microsoft hybrid cloud environments................................................... 42
Transparent data encryption................................................................ 42
Setting the MAXTRANSFERSIZE environment variable....................... 43
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 3
Contents
4 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Contents
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 5
Contents
6 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
FIGURES
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 7
Figures
8 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
TABLES
1 Revision history................................................................................................................. 12
2 Style conventions.............................................................................................................. 12
3 Backup levels for SQL Server data....................................................................................25
4 Full backup every 1 to 2 weeks.......................................................................................... 25
5 Logs-only backup after a full backup.................................................................................26
6 Backup level advantages and disadvantages..................................................................... 26
7 Creating additional backup levels with data objects.......................................................... 26
8 Backup level promotion process ....................................................................................... 27
9 Types of recovery for SQL Server VDI ............................................................................. 29
10 Recovery modes ............................................................................................................... 31
11 Supported special characters in database names.............................................................. 34
12 Access privileges required for backup and recovery operations........................................ 44
13 Where to start backup operations.....................................................................................50
14 Where to start restore operations.....................................................................................50
15 Command options for nsrsqlsv ......................................................................................... 63
16 Command syntax for SQL Server data.............................................................................. 68
17 Command syntax for names containing a period................................................................ 71
18 Command syntax for names containing a backslash...........................................................71
19 Command syntax for names containing a colon................................................................. 71
20 Tasks for configuring SQL Server VDI backups ................................................................ 79
21 Backup levels for SQL Server data....................................................................................80
22 Save sets in a standalone environment..............................................................................87
23 Save sets in a cluster environment.................................................................................... 87
24 Application Information field values...................................................................................88
25 Save sets...........................................................................................................................91
26 Application Information field values................................................................................... 91
27 Advanced restore options................................................................................................108
28 Command options for nsrsqlrc .........................................................................................112
29 Command syntax for SQL Server data.............................................................................122
30 Command syntax for names containing a period.............................................................. 124
31 Command syntax for names containing a backslash........................................................ 124
32 Command syntax for names containing a colon............................................................... 124
33 ItemPoint for SQL Server requirements.......................................................................... 128
34 Guidelines for fail-safe striped recovery.......................................................................... 142
35 Disaster recovery features...............................................................................................146
36 Rebuilding SQL Server system databases........................................................................148
37 Rebuilding SQL Server system databases........................................................................149
38 Rebuilding SQL Server system databases........................................................................150
39 Rebuilding SQL Server system databases........................................................................ 151
40 Rebuilding SQL Server system databases........................................................................162
41 Rebuilding SQL Server system databases........................................................................165
42 Program and log file names without debug logging enabled.............................................168
43 Program and log file names with debug logging enabled.................................................. 168
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 9
Tables
10 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Preface
As part of an effort to improve product lines, periodic revisions of software and hardware are
released. Therefore, all versions of the software or hardware currently in use might not support
some functions that are described in this document. The product release notes provide the most
up-to-date information on product features.
If a product does not function correctly or does not function as described in this document,
contact a technical support professional.
Note: This document was accurate at publication time. To ensure that you are using the latest
version of this document, go to the Support website https://www.dell.com/support.
Purpose
This guide contains information about using the NetWorker Module for Microsoft (NMM) 19.2
software to back up and recover SQL Server using the Virtual Device Interface (VDI) technology.
Note: The NetWorker Module for Microsoft Administration Guide supplements the backup and
recovery procedures described in this guide and must be referred to when performing
application-specific tasks. Ensure to download a copy of the NetWorker Module for Microsoft
Administration Guide from the Support website at https://support.emc.com before using this
guide.
Audience
This guide is part of the NetWorker Module for Microsoft documentation set and is intended for
use by system administrators during the setup and maintenance of the product. Readers should be
familiar with the following technologies used in backup and recovery:
l NetWorker software
l Microsoft Virtual Device Interface (VDI) technology
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 11
Preface
Revision history
The following table presents the revision history of this document.
Related documentation
The NMM documentation set includes the following publications:
l NetWorker Module for Microsoft Release Notes
l NetWorker Module for Microsoft Administration Guide
l NetWorker Module for Microsoft Installation Guide
l NetWorker Module for Microsoft for SQL and SharePoint VSS User Guide
l NetWorker Module for Microsoft for SQL VDI User Guide
l NetWorker Module for Microsoft for Exchange VSS User Guide
l NetWorker Module for Microsoft for Hyper-V User Guide
l ItemPoint for Microsoft SQL Server User Guide
l ItemPoint for Microsoft Exchange Server User Guide
l ItemPoint for Microsoft SharePoint Server User Guide
l NetWorker documentation set
Special notice conventions that are used in this document
The following conventions are used for special notices:
NOTICE Identifies content that warns of potential business or data loss.
Note: Contains information that is incidental, but not essential, to the topic.
Typographical conventions
The following type style conventions are used in this document:
Bold Used for interface elements that a user specifically selects or clicks,
for example, names of buttons, fields, tab names, and menu paths.
Also used for the name of a dialog box, page, pane, screen area with
title, table label, and window.
Italic Used for full titles of publications that are referenced in text.
Monospace Used for:
l System code
l System output, such as an error message or script
l Pathnames, file names, file name extensions, prompts, and
syntax
l Commands and options
12 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Preface
You can use the following resources to find more information about this product, obtain support,
and provide feedback.
Where to find product documentation
l https://www.dell.com/support
l https://community.emc.com
Where to get support
The Support website https://www.dell.com/support provides access to product licensing,
documentation, advisories, downloads, and how-to and troubleshooting information. The
information can enable you to resolve a product issue before you contact Support.
To access a product-specific page:
1. Go to https://www.dell.com/support.
2. In the search box, type a product name, and then from the list that appears, select the
product.
Knowledgebase
The Knowledgebase contains applicable solutions that you can search for either by solution
number (for example, KB000xxxxxx) or by keyword.
To search the Knowledgebase:
1. Go to https://www.dell.com/support.
2. On the Support tab, click Knowledge Base.
3. In the search box, type either the solution number or keywords. Optionally, you can limit the
search to specific products by typing a product name in the search box, and then selecting the
product from the list that appears.
Live chat
To participate in a live interactive chat with a support agent:
1. Go to https://www.dell.com/support.
2. On the Support tab, click Contact Support.
3. On the Contact Information page, click the relevant support, and then proceed.
Service requests
To obtain in-depth help from Licensing, submit a service request. To submit a service request:
1. Go to https://www.dell.com/support.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 13
Preface
14 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 1
Overview
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 15
Overview
16 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
The following figure describes the recovery process that takes place between NMM and the SQL
Server using VDI:
1. The user starts the recovery process with NMM.
2. The restore command is sent to the SQL Server. This interaction is performed through the VDI
API.
3. NMM reads the data from the NetWorker server and passes the data to the SQL Server using
VDI.
4. NMM notifies the user when the recovery is complete.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 17
Overview
18 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
The NetWorker Administration Guide provides information about the NetWorker services and
operations.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 19
Overview
Note: The coordinator process always goes through the nsrjobd service to start the worker
process on the secondary nodes to ensure that the NetWorker server and nsrjobd can
communicate with secondary nodes.
Recovery workflow
During a traditional recovery operation that uses a storage node without the Client Direct feature,
process interactions occur between the NetWorker client (that is, NMM), the NetWorker server,
and the SQL Server.
The following process occurs in a traditional recovery operation:
1. The nsrsqlrc program starts the recovery.
2. The NetWorker XBSA API translates the object names that NMM requests into a format that
NetWorker understands and forwards the translated object names to the NetWorker server
nsrd service.
3. The nsrmmd media service, contacts the nsrmmdbd service to search the NetWorker server’s
media database for the volumes that contain the requested objects.
4. After the media is mounted, the nsrmmd program sends the data through the NetWorker
XBSA API to nsrsqlrc, which then sends data to the SQL Server.
The following figure shows the traditional recovery workflow.
20 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 21
Overview
22 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
If each SQL virtual server is running on a different physical node in the cluster, an active or active
cluster configuration exists, and no failover occurs, NMM automatically communicates with the
SQL virtual server that is running on the same physical node.
Multi-subnet cluster configurations
NMM supports SQL AlwaysOn Availability Groups in a multi-subnet cluster. You can back up and
restore the AlwaysOn Availability Group data in a multi-subnet cluster by using the Availability
Group Listener client resource. The following sections provide information:
l Availability group listeners on page 39
l Clusterless availability group listeners on page 39
l Configuring a client resource on page 80
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 23
Overview
l For full backups of a secondary replica, SQL Server supports only copy-only backups.
Backup levels
Learn about the backup levels that NMM supports
Note: NetWorker 8.2.x defines backup levels differently than NMM 19.2. If you are using
NetWorker 8.2.3 or 8.2.4 server with the NMM 19.2 client, refer to the NetWorker Module for
Microsoft for SQL VDI User Guide version 8.2 SP1 for information about backup levels.
NMM supports the following three levels of backup.
Full backups
Entire database backup, including all file groups or files in the database.
Cumulative incremental backups
A cumulative incremental backup captures all changes since the last full backup.
Logs-only backups
A logs-only backup that corresponds to a SQL Server transaction log backup. A log file backup
cannot be used to recover a database.
A log file backup is used after a database recovery to restore the database to the point of the
original failure.
The logs only backup option appears in the NetWorker Management Console. When using the
command prompt to perform a logs-only backup, use the txnlogs -l command.
Note: When a logs-only backup is taken, NMM records two entries in the media database. One
entry is the database save set, which lists the backup level as txnlog. The second entry is a
cover set entry, which lists the backup level as incr. Both entries are required for cloning and
restore operations.
Copy-only backups
You can take a manual SQL Server copy-only backup at any time without affecting the backup
schedule or log chain. You can perform copy-only backups at the full or logs-only backup level.
Copy-only backups are not promoted to a different backup level, which allows other backups to
run without disrupting the backup chain.
Copy-only full backups are not considered level full backups during promotion. Having a copy-only
full backup does not prevent subsequent backups from being promoted to a full backup.
24 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
When you perform a logs-only backup for SQL Server data objects, ensure that the SQL Server
database options are correctly configured. The Microsoft SQL Server documentation provides
more information. Individual items are subject to promotion.
If the SQL Server manages a significant amount of data, schedule a backup of the
databases every 1 to 2 weeks, as shown in the following table.
Full Repeat
A level 1 cumulative incremental backup can also be scheduled after several days of
logs-only backups, as shown in the following table. This schedule backs up all data
since the previous full backup.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 25
Overview
Repeat
Logs only l Faster backup time than a full backup. l Slow restore.
l Decreases the load on server and uses the l Data can spread across multiple volumes.
least volume of space. l Multiple transaction logs can spread
l Enables point-in-time restore. across multiple volumes.
Cumulative l Faster backup time than a full backup. Generally more time-consuming than a logs-
incremental only backup (depending on the backup
l Captures all changes since the last full schedule strategy).
backup.
Full database To create a level full database backup of the selected databases and their
transaction log files, select one or more databases.
26 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
Full file or file group To create a level full file or file group backup of the selected files or file
group, but not their transaction logs, select one or more files or one or
more filegroups.
Database logs only To create a database logs only level backup of only the logs only for the
selected database, select one or more databases.
Database cumulative incremental (level To create a database level cumulative incremental backup of only the
1) changes that are made to the selected databases since the last full level
backup was created, select one or more databases.
File or file group cumulative To create a file or file group level cumulative incremental backup, select
incremental one or more files or one or more filegroups. This backup only includes the
changes that are made to the selected files or filegroups since the last full
level backup.
Backup promotion
Guidelines for Microsoft SQL Server best practices indicate that a full database backup should be
the first step in implementing a restore strategy for a database. In adhering to these guidelines,
NMM supports backup level promotion. Backup level promotion is based on data on the NetWorker
server and the SQL Server.
Note: NMM does not support backup promotion during copy-only backups.
The following table explains the scenarios which cause backup promotion to occur.
Database Cumulative Database full l A full database backup does not exist.
incremental
l A restore was done after the most recent full
database backup.
l The last database backup was not performed with
NMM.
l The database name is "master" or "msdb."
l In the case of Always On Availability Groups, the last
full backup was performed on a different node.
l Either the mirror partner has a more recent backup
or its backup status cannot be determined.
Logs only Database full l A full database backup does not exist.
l A restore was done after the most recent full
database backup.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 27
Overview
File/Filegroup Full Database full l A full database backup does not exist.
l A restore was done after the most recent full
Cumulative Database full
database backup.
incremental
l The last database backup was not performed with
NMM.
l The database name is "master" or "msdb."
l Either the mirror partner has a more recent backup
Logs only Database full or its backup status cannot be determined.
28 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
l If you disable backup promotion, data loss may occur if the backup chain is broken. For
example, if a transaction logs backup is taken with a third party software or SQL native
backup tools in between two NMM logs only backups for the same database, NMM may be
unable to restore the database using the logs only backup.
The Manual Backups chapter and the Scheduled Backups chapter provide more information about
changing backup promotion settings.
Traditional recovery For data that was backed up by Data recovery from a traditional
traditional backup, NMM supports backup can be performed:
traditional recovery.
l At any time with NMM.
l By running NMM recover
command (nsrsqlrc) from the
command prompt.
Traditional recovery operations
recover files, file groups,
databases, and transaction log
backups.
Normal recovery NMM uses the normal restore type The normal restore type restores:
as the default.
l The entire set of data that is
associated with one or more SQL
Server backups, including full,
logs only, and cumulative
incremental backups.
l A file, file group, or a database to
the database originally backed
up.
l Level full, level 1 (cumulative
incremental), and level logs only
backups in the order required by
SQL Server.
NMM can back up and restore
specified files and file groups.
Also, a single file group, or
multiple file groups or files, can
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 29
Overview
Copy recovery A copy recovery is an operation in The copy recovery type creates a
which data is recovered to a SQL copy of a database by restoring a
Server host other than the one from SQL Server database to a new
which it was backed up. A copy location, or with a new database
restore from and to the same SQL name. The copy recovery type makes
Server instance can also be done. it easy to duplicate a database that
was previously backed up. You can
only mark a single item for this
operation. Also, you can copy a
system database, but you cannot
overwrite it.
NMM does not support copy
recovery of filestream databases.
Flat file recovery Flat file recovery allows you to When you perform a flat file
restore the backup to a file. recovery, NMM writes the backup to
files instead of directly to the SQL
database. This feature allows you to
restore the recovery files later
without access to the network by
using the standard T-SQL file restore
command.
Granular-level recovery (GLR) Granular-level recovery allows you to By using GLR with SQL Server, you
recover SQL server data at the table can recover individual tables to the
level. production database. This feature
reduces the space requirements on
local system storage during a restore
operation. Depending on the size of
the content database, GLR may also
reduce recovery time. Granular-level
recovery is performed using NMM
and ItemPoint for Microsoft SQL
Server.
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 additional transaction logs can
be applied.
The following table shows how the recovery modes correspond to SQL Server database restore
options.
30 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
Recovery time
Backups can be recovered to a specific time. The recovery time controls which backup data should
be reinstated when a database is recovered. The recovery time also controls the portions of a logs
only backup that must be recovered when NMM is instructed to discard transactions that are
performed after a particular 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 logs only level
or 1, dependent backups are recovered first. User-specified recovery times can restore older
backup versions or perform point-in-time recovery operations. For example, a point-in-time
recovery is specified by using a recovery time that is earlier than the create time of the transaction
log backup, but later than the create time of the previous backup.
NMM provides three methods for recovering to a specific time:
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 31
Overview
32 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
l The relocation fails if the destination does not have sufficient space to create a database.
An entry of MSSQL: for the Save Set attribute during the client resource configuration yields a
backup of all databases for the default instance.
When running multiple instances, the nsrsqlsv and nsrsqlrc commands support specification
of only one instance at a time. If save sets for more than one instance are specified, the backup or
restore operation fails.
Index entries for stand-alone named instances are created by using the local host on which the
instance is running. Index entries for clustered named instances are created with the SQL virtual
server name. To differentiate backups for the default instance and named instances, the index
name has been extended to logically partition the index for a client.
All running named instances, except clustered instances and the default instance, are maintained in
the client file index directory. This named instance directory is created at the end of each
traditional backup. Run the nsrinfo command after a backup to verify that this directory was
created. For example, type:
%SystemDrive% nsrinfo -V -L -n mssql client_name
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 33
Overview
Supported special characters in database names for NMM backup and recovery
The following table lists the special characters that may be used in SQL Server database names
when performing backup and recovery in stand-alone, cluster, Always On Availability Group, and
federated configurations.
34 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Overview
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 35
Overview
36 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 2
Configuration
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 37
Configuration
Migrating from VSS solution to VDI solution for SQL Server data protection
Review this section if you are using an NMM version earlier than NMM 2.4 to recover SQL Server
data with VSS technology and want to use NMM 8.2 or later to back up and recover SQL Server
data with VDI technology.
l If you are using NetWorker 8.2.3 or 8.2.4 server with NMM 19.2 client, in the Backup Group
Properties window, clear the Snapshot option.
l Assign a backup schedule to the backup.
l In the Client Properties dialog box for each client resource:
n In the Backup Command field, type nsrsqlsv. For SQL virtual server in a cluster
environment, specify nsrsqlsv -A SQL virtual server.
n Leave the Application Information field empty.
n Change the save set to MSSQL: for SQL default instance-level backup or MSSQL:dbname for
database-level backup on a SQL default instance.
38 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Configuration
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 39
Configuration
40 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Configuration
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 41
Configuration
n To perform DBCC checks for databases in an instance, type the command option -j
testdb3,CopyOfDB010,test4.
Where testdb3, CopyOfDB010, and test4 are the names of the databases in the instance.
Ensure that there are no spaces between the database names. For example, using
testdb3, CopyOfDB010,test4 is incorrect.
n To perform DBCC checks for all the databases in an instance, type the command option -j
ALL.
If the DBCC runs successfully for a database, a message appears in the NMM logs or backup
output page.
The following figure shows an example of the message that appears when the DBCC is successful.
Figure 6 Message showing DBCC was successful
If DBCC for a database fails, the failure status appears as part of the policy notification and the
database backup is omitted. The DBCC failure is reported in the NMM logs or backup output page.
42 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Configuration
read into memory. When using this feature, ensure that the certificate and private key are backed
up with the encrypted data.
Note: NMM does not support third party transparent data encryption for SQL VDI.
Microsoft SQL Server 2008 and later introduce the TDE database-level encryption feature. This
feature provides protection for the entire database at rest, without affecting existing applications.
NMM supports SQL data encryption at the cell level, at the full database level by using TDE, or at
the file-level with encryption options provided by Microsoft.
The Microsoft SQL Server product documentation provides more information about TDE, enabling
data encryption, and protecting the encryption keys.
Note: When enabling TDE, back up the certificate and the private key associated with the
certificate. If the certificate becomes unavailable or if the database is restored on another
server, backups of both the certificate and the private key must be available to open the
database.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 43
Configuration
Microsoft SQL Server user Windows user groups NetWorker user roles
roles
Assign the user to the Assign the user to the Assign the user to the
following server roles with the following user groups on the Operators role in the
Microsoft SQL Server Studio Windows application host on NetWorker Administration
Management (SSMS) GUI: all SQL nodes: GUI.
l sysadmin l Backup Operators The NetWorker Administration
Guide provides more
l public l Administrators
information about assigning
Assign the NT AUTHORITY Note: The user must be a NetWorker User roles.
\SYSTEM user to the domain user for failover
following server roles with the cluster or availability
Microsoft SSMS GUI: group backups. You can
use a local user for
l sysadmin
standalone backups.
l public
44 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Configuration
4. Right-click the name of the user that you want to assign backup and recovery privileges to,
and then click Properties.
The Login Properties window appears.
5. On the Server Roles page, ensure that sysadmin and public are selected, and then click
OK.
Figure 7 Assigning SQL Server privileges
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 45
Configuration
46 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Configuration
5. Add the user to the Backup Operators and Administrators user groups, and then click
Apply.
The user groups are listed on the Member Of tab.
Figure 8 Adding a user to Windows User Groups
Enable user access for NMM when User Access Control (UAC) is used
Grant the Windows "Log on as a batch job" privilege to the remote user that performs NMM
operations. This privilege allows the user to log in with a privileged security token
About this task
Note: These steps must be performed on each node in the SQL Server cluster.
Procedure
1. Open the Local Security Policy (secpol.msc) on the client
2. Browse to Local Policies > User Rights Assignment.
3. Add the Backup Operators and Administrators user groups to the Log on as a batch job
privilege.
4. Click OK.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 47
Configuration
48 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 3
Graphical User Interfaces
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 49
Graphical User Interfaces
The following table summarizes the locations, from which you can start restore operations.
50 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Graphical User Interfaces
To use this feature, select the NMM SSMS plug-in GUI option during NMM installation. To enable
the Table Restore tab, select the SQL Granular Level Recovery option whenever you install NMM.
Note: If you have not installed the SSMS option and want to launch the NMM SSMS plug-in
GUI, navigate to the <install_path>\nsr\bin\ folder, and then double-click the
nwssmsaddinapp.exe file.
Backup tab
In the NetWorker window, click the Backup tab to see the following pages which must be used to
perform backup operations:
l General
l Options
l Monitor
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 51
Graphical User Interfaces
52 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 4
Manual Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 53
Manual Backups
54 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 55
Manual Backups
If you specify a retention policy with a manual backup from the command prompt, the retention
policy takes effect for all the save sets in the manual backup. To specify a retention policy with a
manual backup at the command prompt, type the following command:
nsrsqlsv -y
The retention policy value must be typed in time and date formats accepted by the nsr_getdate
program.
The NetWorker Command Reference Guide or the UNIX man pages provide more information about
the nsr_getdate program. Refer to the "Command Prompt" chapter for information about using
the nsrsqlsv command for manual backups.
If you do not specify a retention policy for a manual backup, the save sets in a manual backup
adopt the browse policy of the client resource. If multiple client resources exist for the NetWorker
host, the client resource with the longest retention policy is adopted. However, if a retention
policy is set up for the media pool to which the backup is directed, the retention policy is the
longer of either:
l The client resource retention policy
l The media pool retention policy
The NetWorker Administration Guide provides more information about retention policies.
56 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
The list is populated with databases available for backup. If an AG is selected from the
list, under Connections, the Cluster and the Backup Preference appear.
c. Select one or more databases that you want to back up.
d. Under Client type, perform one of the following actions for availability groups:
l To use the cluster name, select Cluster.
l To use an availability group listener, select Listener, and then select a listener from
the list.
Note: The Client type setting can be modified only for availability group backups. In
non-availability group environments, it is greyed out.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 57
Manual Backups
Note: The backup levels are the same regardless of the version of the NetWorker
server you are using.
b. In the Debug level box, select the level of troubleshooting information to be sent to the
backup status window during the backup operation.
Levels range 0–9, with 0 representing no information and 9 representing the most
amount of information.
5. (Optional) To specify additional backup options, under Select a page, click Options.
The Options page appears.
The following figure shows the NetWorker window open to the Backup tab, on the Options
page.
Figure 11 NetWorker Backup Options page
58 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
Note: When Perform DBCC consistency check is selected in the SSMS plug-in, the
script generated contains -j ALL even when specific databases are selected. This
does not affect functionality.
l To perform a checksum operation with the backup and save the information to the
backup media, select Perform checksum before writing to media. Another checksum
is performed before a restore to ensure that it matches the backup.
A checksum detects a partial backup or restore state. The SQL Server verifies the
checksum by calculating a local result and comparing the local value with the stored
value.
l To continue with backup and restore even if errors are discovered during the checksum,
select Continue on error.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 59
Manual Backups
60 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 61
Manual Backups
-M + log_mark_name
l Ensure that you use brackets ([ ]) to denote the optional portions of a command. When
starting an actual backup or recovery operation, do not include brackets.
l Ensure that data items follow all other command options and parameters at the command
prompt.
62 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
[-Z]
-a Specifies whether to check the status of the selected databases and ignore
"NSR_SKIP_NON_BACKUPABLE_ST the databases that are not ready or available to be backed up. If the status of
ATE_DB={TRUE | FALSE}" a database is online, the database is ready and available to be backed up. If
the status of a database is offline, emergency (single user mode), suspect,
restoring, recovering, or recovery pending, the database is not ready or
available to be backed up.
The default value is FALSE.
-a "NSR_COPY_ONLY={TRUE | Performs a copy-only backup from the SQL Server. Copy-only backups do
FALSE}" not disturb the SQL Server backup chain and do not affect backup-level
promotion and log truncation. This option works only if you specify either full
or transaction log as the backup type in the -l <Backup_Type> option.
The default value is FALSE.
You rarely need to perform copy-only transaction log backups because they
are generally required only to perform online restores.
-a "BACKUP_PROMOTION={ALL| Specifies backup promotion options. The following values are valid:
NONE|NONE_WITH_WARNINGS|
l ALL (Default): Enables backup promotion to occur in any applicable
SKIP_RECOVERY_MODEL}"
scenario.
l NONE: Disables backup promotion. Logs a warning when backup
promotion would normally occur.
l NONE_WITH_WARNINGS: Disables backup promotion. Logs a warning
when backup promotion would normally occur.
l SKIP_RECOVERY_MODEL: Disables database recovery model change
detection. Backup promotion as a result of recovery model change will
not occur, but backup promotion in other scenarios will still occur.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 63
Manual Backups
The setting specified with this option applies to every database in the SQL
instance when this setting is specified along with the SQL instance level save
set MSSQL: or MSSQL$<instance name>.
Similarly, the setting specified with this option applies only to specified
databases when this setting is specified with a database level save set
MSSQL: <database name> or MSSQL$<instance name>:
<database name>.
-a "Device interface={data Specifies whether data deduplication should be set with Data Domain or
domain | avamar}" Avamar.
-a "Deduplication client Specifies the deduplication client to use for the backup.
name=client"
-A virtual_server Specifies the virtual server name when a SQL Server is configured to run in
an MSCS cluster.
-c client 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.
-D <debug_level> Generates detailed logs that you can use to troubleshoot backup issues. The
default value is 0 (zero). If you want to enable debug logs, specify a level
between 1 and 9.
-f aes Enables the NetWorker server to back up data using AES encryption.
-g group Specifies the savegroup. The NetWorker server and the savegrp command
use the group parameter to select the media pool.
64 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
When you use wildcards you must enclose the database name in square
brackets, for example, ["DB?"].
For example, consider the following scenarios:
l To exclude only DB_1 and DB_2 from the backup, type the following
command:
nsrsqlsv -s bv-customer.belred.emc.com -h "DB_1" -h
"DB_2" MSSQL:
l To exclude all databases that are named with the format of DB_x, such
as DB_9 and DB_a, type the following command:
nsrsqlsv -s bv-customer.belred.emc.com -h ["DB_?"]
MSSQL:
l To exclude all databases with names ending in DB, type the following
command:
nsrsqlsv -s bv-customer.belred.emc.com -h ["*DB"]
MSSQL:
-I text_file Specifies a text file that lists multiple SQL Server save sets. The -I option
can also be specified with the nsrsqlsv command for the Backup
Command field in the NetWorker Administration GUI.
-l backup_level Specifies the backup level. The following values are valid:
l full
l diff
l txnlog
The "Combining data objects to create backup levels" section provides
more information about which backup levels are supported for various
SQL Server data objects.
The -l option is valid only for manual backups that are 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 you
start a backup in the NetWorker Administration GUI.
Sample outputs for each of the three different levels of backups follow:
l Full backup of the database to a specified NetWorker server:
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 65
Manual Backups
At least one SQL Server data item (file, file group, or database) must be
specified, and the data items and list of data objects must follow all
other command options and parameters at the command prompt.
-N name 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.
When performing a federated backup of an availability group, you must
specify the save set name with -N.
66 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
l BUFFERCOUNT=number_of_IO_buffers
This option specifies the total number of IO buffers that can be used
during a backup operation.
l READ_WRITE_FILEGROUPS
This option backs up only the read/write (active) filegroups within the
database.
If you are specifying multiple options, separate each argument with a
comma. For example:
nsrsqlsv -s NetWorker_server_name -O
"BUFFERCOUNT=number_of_IO_buffers,
READ_WRITE_FILEGROUPS" MSSQL:
-P password Specifies the SQL Server user password. When the -U user name 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 in to SQL Server with
SQL server authentication.
-s NetWorker_server_name Specifies the name of the NetWorker server that will be used for the backup
operation.
-U username 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 in to SQL Server with
SQL server authentication.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 67
Manual Backups
-y retention_period Specifies the retention period of the backup. The value must be typed in
time and date formats accepted by the nsr_getdate program. The
NetWorker Command Reference Guide or the UNIX man pages provide more
information about the nsr_getdate program.
-Z Applies to the backup of up databases for a SQL Server 2005, and is usually
used in the online restore scenario from the command prompt. The -Z option
specifies that the logs-only (transaction log) backup after restore is not
promoted to full backup. Without the -Z option, the backup is promoted to
full.
-z federated_backup_option Specifies federated backup options. Use the following values with the -z
option:
l -z FEDERATED_SLAVE=true
This option denotes that the process is SQL Federated secondary
process.
l -z FEDINDEX_NAME =SQL instance name under which the
backups are browsable
For example, MSSQL or MSSQL$InstanceName
l -z FEDCLIENT_NAME =Windows cluster client name
68 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
or
or
[MSSQL:dbName.fgName MSSQL:dbName.fgName2
MSSQL:dbName2.fgName MSSQL:dbName2.fgName2 ...]
[MSSQL:dbName.fgName.filename
MSSQL:dbName.fgName2.filename
MSSQL:dbName2.fgName.filename
MSSQL:dbName2.fgName2.filename ...]
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:
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 69
Manual Backups
Example 5 Using clustered instance SQL Server virtual server names with -A or -c
Instead of using clustered named instances in this syntax, use clustered instance SQL
Server virtual server names with -A or -c options, as shown in the following command:
where:
Create a client resource under the SQL Server virtual server DNS name.
For scheduled backups of a SQL Server virtual server client, you do not need to
specify the -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.
70 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
The following table lists the syntax for file names, file groups, and databases containing a
backslash.
The SQL file group named MyFileGroup\2 for the SQL MyDatabase\\COM.MyFileGroup\\2
database named MyDatabase\COM MSSQL$MyInstance:MyDatabase\
\COM.MyFileGroup\\2
The following table lists the syntax for file names, file groups, and databases containing a colon.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 71
Manual Backups
where:
l SQL_virtual_server_name is the virtual server name when the SQL Server is configured to run
in a WSFC cluster.
l NetWorker_server_name is the NetWorker server that is designated for the backup.
l dbName is the name of the SQL Server database that is to be backed up.
Specifying -A SQL_virtual_server_name starts the following actions:
l Contacts the SQL virtual server.
l Creates save set entries under SQL_virtual_server_name in the NetWorker client index.
Perform a full backup of an Always On Availability Group
nsrsqlsv.exe -s nwsrvr -m automation -a device interface="data domain" -b
Default "MSSQL$SQ12INST4#sql2012-aag3:"
where:
l nwsrvr is the NetWorker server
l automation is the Windows cluster name
l MSSQL$SQ12INST4#sql2012-aag3: is the save set name:
n MSSQL is a mandatory term.
n SQ12INST4 is the SQL Server instance name.
If you use a named instance, ensure that you perform the backup by using the same
instance name, even if the SQL Server has failed over to another node in the Always On
Availability Group.
n # indicates a federated backup.
n sql2012-aag3 is the Always On Availability Group name.
l MSSQL$SQ12INST4#sql2012-aag3: is the backup object name, where all the databases of the
sql2012-aag3 Always On Availability Group are backed up.
Back up a specific database in an Always On availability group
To restrict the backup to specific databases, specify the database names. For example, to back up
database1 only, type "MSSQL$SQ12INST4#sql2012- aag3:database1" "MSSQL
$SQ12INST4#sql2012-aag3:database1"
72 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Manual Backups
Use that same instance name when naming the backup object, regardless of which node in the
availability group the backup is started on.
For example, consider the following scenario:
l There are two instances, SQ12INST4 and SQ12INST5, are present on Node 1 and Node 2
respectively.
l You want to use SQ12INST4 for the backup.
l Node 1 is down, and as the result, the SQ12INST4 instance is down.
l You must perform the backup on Node 2 because Node 1 is down.
In this scenario, to use SQ12INST4, you must specify the save set and the backup object as
"MSSQL$SQ12INST4#sql2012-aag3:" "MSSQL$SQ12INST4#sql2012- aag3:" instead of "MSSQL
$SQ12INST5#sql2012-aag3:" "MSSQL $SQ12INST5#sql2012-aag3:".
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 73
Manual Backups
74 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 5
Scheduled Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 75
Scheduled Backups
Prerequisites
Before you perform scheduled database backups with a SQL virtual server, you must meet several
prerequisites.
Ensure that the following prerequisites are met before you perform scheduled backups:
l The NetWorker interface displays diagnostic attributes. In the Administration window, click
View > Diagnostic Mode.
l When backing up filestream data, in the SQL Server Configuration Manager, on the Properties
page of the SQL Server instance, select Allow Remote Clients Access to Filestream Data.
This action is a requirement for backups to be successful. The SQL Server documentation
provides details about the SQL Server Configuration Manager.
Prerequisites for cluster environments
You must meet additional prerequisites for cluster environments:
l Create a NetWorker client that is configured for database backups for each SQL virtual server
that you want to protect.
l Configure the NetWorker client to either:
n Back up all databases with MSSQL:.
n Back up specific databases with MSSQL:User_Database.
Add more databases to an existing NetWorker client or create a new database client when
additional databases are added to an existing NetWorker client or a new database client is
created.
l Specify virtual servers by typing the following command at the command prompt:
–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:
76 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
SQL Server 2012 or later provides the following options that determine where backups run for a
specific Availability Group replica:
l AUTOMATED_BACKUP_PREFERENCE—Specify any one of the following options:
n PRIMARY—Specifies that the backups will 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 operations run on a secondary replica.
n SECONDARY_ONLY—Specifies that backups will never be performed on the primary replica. If
the primary replica is the only replica that is online, the backup will not occur.
n SECONDARY (Prefer Secondary)—Specifies that backups should occur on the secondary
replica. If the primary replica is the only replica online, the backup is performed using the
primary replica. This is the default option.
n NONE (Any replica)—Specifies that you prefer that backup jobs ignore the role of the
availability replicas when choosing the replica on which 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.
l BACKUP_PRIORITY =n—Specifies your priority for performing backups on this replica relative
to the other replicas in the same availability group. The value is an integer in the range of 0 -
100. These values have the following meanings:
n 0 indicates that this availability replica will never be chosen for performing backups.
This choice is useful for a remote availability replica for which you never want backups to
fail over.
n 1 indicates the lowest priority that an availability replica could be chosen for a backup
operation.
If BACKUP_PRIORITY = 1, the availability replica will be chosen only if no higher priority
availability replicas are available.
n 100 indicates the highest priority that an availability replica could be chosen for a backup
operation.
Follow the procedures provided in the article “Configure Backup on Availability Replicas (SQL
Server)” on the Microsoft MSDN website http://msdn.microsoft.com/en-us/library/
hh710053.aspx to decide which replica the backups will be run on.
Note: Federated backup operations fail if a replica has the Readable Secondary field set to
No. For backups to succeed, in the Availability Group Properties window, set the Readable
Secondary configuration option to either Yes or Read-intent only for each of the primary and
secondary replicas.
Note: The following limitations apply to SQL Server backups of a secondary SQL Server replica
in an Availability Group:
l For full backups of a secondary replica, SQL Server supports only copy-only backups.
l Backup promotion is not supported for copy-only backups, including copy-only transaction
log backups.
l SQL Server does not support differential backups on secondary SQL Server replicas.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 77
Scheduled Backups
78 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
Tasks Considerations
Configuring a client resource You can use either of the following methods
to configure the client resource:
l Client Backup Configuration wizard
l Client Properties dialog box
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 79
Scheduled Backups
For SQL Server data objects for which logs only backup can be performed, ensure that the SQL
Server database options are correctly configured. The Microsoft SQL Server documentation
provides more information. Individual items are subject to promotion.
80 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
Configuration wizard. Click the question mark icon at the lower left of each page of the Client
Backup Configuration wizard for details about each field on the page.
About this task
When you configure a client resource for a SQL Server cluster, remember the following points:
l Do not use a short name alias for a virtual server node that is not registered on the NetWorker
server with a fully qualified domain client name.
l Select the SQL Server cluster instance or individual databases for backup. Do not select
databases from two instances for backup. Databases that are in offline, restoring, or loading
state are unavailable for selection.
Note: If you are using NetWorker server 8.2.3 or 8.2.4 and NMM 19.2:
l Configure a regular NetWorker backup group instead of configuring a data protection
policy. Do not enable the Snapshot option.
l For the Client Backup Configuration wizard to function correctly, ensure that JRE 8 is
installed on the system where NMC is used. While the NMC for NetWorker 8.2.3 and later
is compiled with JRE 7, the NMM 19.2 Java plug-in for NMC is compiled with JRE 8.
l The procedure to create a client resource is different between NetWorer server 8.2.3 and
NetWorker server 19.2. Follow the procedure provided in the NetWorker Module for
Microsoft for SQL VDI User Guide version 8.2 SP1 when you are using NetWorker server
8.2.3 or later.
Procedure
1. In the NetWorker Administration window, click the Protection tab.
2. In the expanded left pane, right-click Clients and select New Client Wizard.
The following figure shows the NetWorker Administration window menu option to start the
Client Configuration wizard.
Figure 13 Starting the Client Configuration wizard
The Client Backup Configuration window opens to the Specify Client Information page.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 81
Scheduled Backups
4. Click Next.
5. On the Specify Backup Configuration Type page, specify the following information:
l In the Client Operating System field, the client operating system that is used during the
configuration setup is automatically displayed.
l In the NetWorker Version field, the NetWorker version that is used during the
configuration setup is automatically displayed.
l From the Available Application list, select SQL Server.
l Do not select Enable NetWorker Snapshot Management on the selected application.
The following figure shows the Client Configuration wizard Specify Backup Configuration
Type page.
82 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
6. Click Next.
7. On the Select the NetWorker Client Properties page, specify the following information:
l In the Priority field, select the priority level.
l In the Parallelism field, select the level of parallelism.
l In the Remote Access field, type the required attributes.
During the client resource configuration, you can control client recover access with the
attributes in the Remote Access field. The Remote Access attribute displays a list of
the users that can recover save sets for a client. Depending on the level of security that
the files require, add or remove user names.
l In the Data Domain Interface field, select the device type from the list.
l In the Block Based Backup field, leave this option clear. This feature is not supported
for SQL Server VDI.
l The Client Direct field, selected by default, enables the client to bypass the storage
node and send backup data directly to the storage device.
Note: To use the default NetWorker Client settings, do not update the options that are
provided on the page.
8. Click Next.
9. On the Select the Backup Objects page, from the prepopulated list, select the SQL Server
instance at root level or individual databases for backup.
Note: Do not select databases from two or separate instances for backup. Also,
databases that are in offline, restoring, or loading state are unavailable for selection.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 83
Scheduled Backups
11. On the Specify the Virtual Server Credentials page, in the Remote User Name and
Password fields, type the login information for a Windows account that can backup the
SQL server.
Note: Before performing this step, ensure that the User Account Control for Windows
Server 2008 R2 is disabled for administrators.Access privileges for backup and recovery
on page 44 provides details.
84 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
15. On the Client Configuration Summary page, check to ensure that the configuration
choices are correct. Click Back to make changes, or click Create to configure the client
resources.
The Check Results page appears.
16. On the Check Results page, review the messages to ensure that the client was successfully
created. You should see the following message:
Successfully added new client "client_name"
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 85
Scheduled Backups
Note: To make updates to an existing client resource, right-click the client resource and select
Client Backup Configuration > Modify Client Wizard.
Click the question mark icon at the lower left of each page for details about each field in the
page.
Procedure
1. In the Administration window, click Protection.
2. In the expanded left pane, select Clients.
3. From the File menu, select New.
4. On the General tab:
l In the Name field, type the fully qualified domain name (FQDN) of the SQL Server,
Windows cluster, or availability group listener. If you create multiple client resources for
the same SQL Server, use the same name for each.
Note: Do not type the IP address as the client name.
l In the Comment field, type a description. If you create multiple client resources for the
same NetWorker client host computer, use this attribute to differentiate each resource's
purpose.
l In the Tag field, type one or more tags to identify this client resource for dynamic client
groups in data protection policies.
l 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.
86 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
l Leave the Block based backup option clear. This feature is not supported for SQL
Server VDI.
l From the Directive list, select an option.
Directives are resources that contains special instructions that control how the
NetWorker server processes files and directories during backup.
l Select Scheduled Backups.
The Backup type field displays the SQL Server.
l In the Save Set field, specify the components to be backed up as listed in the following
tables.
Note: When nodes within an availability group (AG) reside on SQL server instances
with different names, any instance name can be used. NMM will automatically detect
the AG that resides on the instance name.
MSSQL: Backs up all the databases on the SQL Server host or the SQL default instance.
MSSQL:dbName1 [MSSQL:dbName2 Backs up the specified databases from the SQL default instance.
MSSQL:dbName3 ...]
All This save set for the physical nodes is the default value.
MSSQL#<AlwaysOn_Availability_Group_name>: This save set for the listener client backs up all the databases
of the AlwaysOn Availability Group that is configured with the
SQL default instance.
MSSQL This save set for the listener client backs up all the databases
$<SQL_named_instance>#<AlwaysOn_Availabili of the AlwaysOn Availability Group that is configured with the
ty_Group_name>: SQL named instance.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 87
Scheduled Backups
l In the Backup command field, type the nsrsqlsv command and any necessary
command options.
Command options for nsrsqlsv on page 63 provides the supported backup command
options.
l For Application Information field, type the required values. The following table
describes the available application information variables.
NSR_SKIP_SIMPLE_DB l TRUE: Omits user-created simple databases during a logs only backup.
This option does not affect the backup of system databases, such as master
and msdb, which are promoted to level full during a logs only backup and
cannot be omitted from the backup.
l FALSE (Default): Includes simple databases in the backup. During a logs only
backup that includes simple recovery model databases, the simple databases
are backed up at level full.
This option does not apply to full and cumulative incremental backups.
NSR_SKIP_NON_BACKUPABLE_STATE l TRUE: Omits databases that are in not in a state to be backed up from the
_DB backup operation. The savegroup reports success for the SQL instance level
backups.
l FALSE (Default): Includes databases that are in not in a state to be backed up
from the backup operation. The backup of these databases fail and the
savegroup reports failure of the SQL instance level backups.
NSR_MIRROR_INSTANCE_PORT=<por Specifies the port number when a SQL mirror database is configured with custom
t number> TCP port.
88 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
l For data deduplication using a Data Domain device, under Deduplication, select Data
Domain backup.
6. On the Globals (1 of 2) tab, complete fields, as required.
7. For federated backups, type all known aliases for the SQL Server host as in the following
example:
mars mars.emc.com
Include both the DNS short name and long name for the SQL Server host.
8. On the Globals (2 of 2) tab, in the Remote Access field, type the user IDs or hostnames of
other clients.
This field grants copy restore type permissions, which enables the named hosts to access
the NetWorker server and receive directed recover data. If this field is empty, only
administrators and users who are logged in to the SQL Server host have access.
For mirroring, this should be the same user account and password that you used to set up
the mirroring relationship. If multiple accounts have been set up, only one must be specified.
According to Microsoft SQL documentation, a domain account must be used to set up the
mirroring relationship.
9. Click OK.
10. Run the backup from the savegroup.
Configuring cluster client resources with the Client Properties dialog box
When you create client resources manually for cluster configurations, ensure that a client resource
is created for Windows cluster name and that dummy client resources are created for the other
participating nodes in the cluster. If you do not create dummy clients for each of the nodes in the
cluster, the backup fails. Do not assign a group for the dummy clients.
Creating client resources for each cluster node
When you create client resources, edit the client resource for each physical node of the cluster. In
the NetWorker Administration GUI, in the left pane, select Clients, and then in the right pane,
right-click to create a new resource.
About this task
On the General tab, in the Name field, type the fully qualified domain name for the cluster node
name. For example:
wash-2k.belred.emc.com
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 89
Scheduled Backups
7. In the Name field of the client resource, type the short name for the SQL virtual server
without the domain specification. This field should contain the name of the virtual server,
not a node name.
8. On the Apps & Modules tab (for NetWorker), in the Backup command field, type the
nsrsqlsv command with the necessary options.
For virtual server backups, the -A SQL_virtual_server_name command option is required.
9. On the Globals (2 of 2) tab, in the Remote Access field, add entries similar to the following
one to grant access to all physical nodes in the cluster.
RemoteUser@physicalnode_hostname
where:
l RemoteUser is the account under which the backup will run.
l physicalnode_hostname is the fully qualified domain name of the physical node.
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 an NMM client before
any backup or restore operation begins. Follow this step for each virtual server client
resource in the cluster.
10. On the Apps & Modules tab, in 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.
11. Use NMC to start the backup group manually, or wait for the next scheduled backup to
occur.
Configuring client resources for clusterless availability group listener and physical nodes of an
AlwaysOn Availability Group
To perform AlwaysOn Availability Group backups by using a clusterless availability group listener,
you must manually create client resources for the listener and the physical nodes of the AlwaysOn
Availability Group by using the Client Properties dialog box of the NetWorker Administration
window.
About this task
Note: Before you configure a client resource for the clusterless availability group listener,
ensure that you review the basic information and the requirements in the Clusterless
availability group listeners on page 39 section.
Procedure
1. In the Administration window, click Protection.
2. In the expanded left panel, select Clients.
3. From the File menu, select New.
4. On the General tab:
l In the Name field, type the short name of the clusterless availability group listener client.
l In the Comment field, type a description.
l In the Tag field, type one or more tags to identify this client resource for dynamic client
groups in data protection policies.
l In the Retention Policy field, select a retention policy from the list.
90 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
The retention policy determines the time period during which the rolled-over data is
available.
l Leave the Block based backup option clear. NMM does not support block based
backups of SQL Server VDI data.
l From the Directive list, select an option.
Directives are resources that contains special instructions that control how the
NetWorker server processes files and directories during a backup.
l Select Scheduled Backups.
The Backup type field displays the SQL Server.
l In the Save Set field, type the AlwaysOn Availability Group save set as the following
table lists:
All This save set for the physical nodes is the default value.
MSSQL#<AlwaysOn_Availability_Group_name>: This save set for the listener client backs up all the databases
of the AlwaysOn Availability Group that is configured with the
SQL default instance.
MSSQL This save set for the listener client backs up all the databases
$<SQL_named_instance>#<AlwaysOn_Availabili of the AlwaysOn Availability Group that is configured with the
ty_Group_name>: SQL named instance.
l From the Protection group list field, select the appropriate option.
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.
l In the Schedule field, select a backup schedule.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 91
Scheduled Backups
NSR_MIRROR_INSTANCE_PORT=<port Specifies the port number when a SQL mirror database is configured
number> with custom TCP port.
NSR_PS_DEBUG_LEVEL=<number_1_through Generates detailed logs that you can use to troubleshoot the backup
_9> issues. You can specify a value 1 through 9. The default value is 0
(zero).
92 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
mars
mars.emc.com
7. On the Globals (2 of 2) tab, in the Remote Access field, add entries similar to the following
to grant access to all physical nodes in the AlwaysOn Availability Group.
RemoteUser@physicalnode_hostname
where:
l RemoteUser is the account, under which the backup is performed.
l physicalnode_hostname is the FQDN of the physical node.
The Remote Access field enables the NMM server to access the physical node that is
configured with the clusterless availability group listener in the AlwaysOn Availability Group,
and authenticates the node as an NMM client before any backup or restore operation
begins.
8. Specify the fields on the other tabs according to your requirement, and then click OK.
9. Configure client resources for the physical nodes in the AlwaysOn Availability Group.
To configure a client resource for each physical node, repeat steps 1 through 8, but with the
following changes:
a. In step 4:
l In the Name field, type the short name of the physical node.
l In the Save Set field, type All.
b. In step 6, in the Aliases field, type the DNS short name and the FQDN of the physical
node each in a separate line.
10. Create a policy, a workflow, an action, and a group for the listener client that you have
created.
Setting data protection policies on page 93 provides information.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 93
Scheduled Backups
Creating a policy
Policies provide an organizational container for the workflows, actions, and groups that support
and define the backup, management, and system maintenance actions that you want to perform.
Procedure
1. Open the NetWorker Administration GUI. From the Protection tab, right-click Policies from
the expanded left pane, and then click New.
The Create Policy window appears.
2. In the Name field, type a name for the policy.
The following figure shows the Create Policy window.
Figure 18 Create Policy window
3. Click OK.
Results
The policy is created and the NetWorker Administration GUI opens to the page for the newly
created policy.
After you finish
Add workflows, actions, and protection groups to the policy.
Creating a workflow
Workflows define the start time for a series of actions, the frequency in which the actions run, the
order of actions in a sequence, and the protection group to which the workflow applies.
Before you begin
Create a policy.
Procedure
1. Open the NetWorker Administration GUI.
94 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
2. From the Protection tab, click the policy that you must create a workflow for.
The Policy page opens.
3. Click Create a new Workflow.
The New Workflow window opens.
The following figure shows the New Workflow window.
Figure 19 Creating a workflow for the policy
4. In the Name field, type a name for the workflow and either specify the workflow settings or
accept the default settings.
5. Click OK.
Results
The workflow is created and the NetWorker Administration GUI opens to the page for the newly
created workflow.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 95
Scheduled Backups
4. On the Specify the Action Information page, in the Name field, type a name for the action.
5. In the Comment field, type a description for the action.
6. To ensure that the action runs when the policy or workflow that contains the action is
started, select Enabled. To prevent the action from running when the policy or workflow
that contains the action is started, clear this option.
7. From the Action Type list, select the action.
8. In the Workflow area, assign the action to a policy and workflow.
9. In the Period area, specify the backup schedule.
Note: NetWorker supports backup levels full, logs-only, and cumulative incremental with
SQL Server VDI.
The following figure shows the Policy Action wizard.
Figure 20 Specifying action information in the Policy Action wizard
14. Review the messages on the Action Wizard Results page and ensure that the action was
successfully created.
15. Click Finish to exit the wizard.
Results
The action is created within the specified workflow and is displayed in the NetWorker
Administration GUI, on the Workflow page.
96 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 97
Scheduled Backups
7. Click OK.
Results
The group is created and appears in the Group tab of the policy in the NetWorker Administration
GUI.
98 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Scheduled Backups
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 99
Scheduled Backups
100 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 6
Data Restore
l Overview..............................................................................................................................102
l Prerequisites........................................................................................................................102
l Restoring data by using the NMM SSMS plug-in GUI.......................................................... 103
l Restoring data by using the CLI............................................................................................110
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 101
Data Restore
Overview
You can restore SQL Server data by using one of the following methods:
l The NMM SSMS plug-in GUI
l The CLI — nsrsqlrc restore command
The Data Domain compressed restore feature is enabled by default.
A compressed restore uses less bandwidth by restoring the backed-up data in a compressed form
from the Data Domain system to the SQL Server host. However, the feature is beneficial in a
constrained bandwidth environment, but can impact the performance of the restore because of
the usage of compression resources on the Data Domain system and the SQL Server host.
To disable the feature, perform the following steps:
1. On the SQL host, on which you perform the restore operation, go to the \nsr\debug folder.
2. Create the disable_compressed_restore file without any file extension.
Note: Consider the following limitations:
l You cannot restore SQL Server data by using NMC.
l You cannot restore the data that was backed up by using the third-party tools.
Prerequisites
Review the prerequisites in this section before performing a recovery.
l Ensure that the user that is performing the recovery is assigned the required privileges, as
defined in the section Access privileges for backup and recovery on page 44.
l Read the SQL Server product documentation to understand the limitations that are associated
with recovery types on the various SQL Server versions.
l Ensure that the NetWorker server software is running on the host and the NetWorker Remote
Exec Service is started on the SQL Server host.
l Ensure that no applications or services are waiting for or trying to log in to the SQL instance
because restoring the SQL master database requires a restart of the SQL instance in single
user mode followed by logging in to that instance. Single user mode allows only one
administrator to log in.
l Wait for any database backups to finish. SQL Server will not restore a database while another
database backup is in progress.
l Wait for any SQL Server startups to finish before starting a restore operation.
l Review the ERRORLOG file to determine if a database is being recovered, or search the
ERRORLOG file for the Recovery complete string.
If the nsrsqlrc program starts 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.
l 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.
102 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
Note: For the supported SQL Server versions, if the primary file group is not under restore,
the online (piecemeal) restore functionality allows users to access a database while a
backup or restore operation is in progress.
l Ensure that the SQL Server filestream feature is enabled on the recovery instance when you
are recovering filestream data of SQL Server 2008 or later.
l Ensure that the primary file group is part of each piecemeal restore.
SQL Server Enterprise Edition databases consisting of multiple file groups that can be restored
in stages with piecemeal restore. The database remains offline during the restore process.
Piecemeal restore is a multistage process that restores a database to itself or to another
location. The initial stage must include the primary file group and optionally other file groups.
After the primary file group is restored, you can bring the database online and continue
restoring the remaining file groups in subsequent stages.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 103
Data Restore
Loading icons appear while the information from the last restore is being loaded. While
loading, you can specify other restore settings. Once the information is loaded, NMM
populates all of the fields under Sources. To clear the saved settings, click the Clear Cache
button.
3. Under Sources, make the following selections:
a. From the NetWorker Server list, select the server that contains the backup.
Click Update to update the list of available NetWorker servers.
The SQL Server Instance list is refreshed after you select the NetWorker server.
b. From the SQL Server Host list, select the client that contains the backup.
If you used a cluster or an availability group listener to perform the backup, select the
same cluster or listener name from the SQL Server Host list.
c. From the SQL Server Instance list, select the server instance that contains the backup.
Available backups are populated in the database list.
d. From the Backup time list, select or browse for the time when the database backup was
taken.
e. From the database list, select one or more databases for restore.
4. Under Destination, choose the location where the backup is restored to:
l To perform a restore directly to the database, select Restore to SQL Server, and then
specify the destination:
104 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
The following figure shows the NetWorker window open to the Database Restore tab,
on the General page, with the database name for copy restore, copy_c1_test_dbAG,
entered in the Database field.
Figure 26 NetWorker dialog box—Database Restore tab General page for copy restore
l To perform a flat-file restore, select Restore backups as files, and then in the Folder
field, specify the destination for the files.
5. Under Restore, perform the following steps:
a. Specify the browse time through one of the following methods:
l From the Browse time list, select a time.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 105
Data Restore
b. From the table, select the save set that you want to restore.
6. To specify optional file settings, under Select a page, click Files/Filegroups.
The Files/Filegroups page appears.
The following figure shows the NetWorker window open to the Database Restore tab, on
the Files/Filegroups page.
Figure 27 NetWorker dialog box—Database Restore Files/Filegroups page
7. (Optional) To filter the list of available database files by file group, under Filegroup options,
select a file group from the Select Filegroup to restore list.
To list all available files, select All files from the list.
8. (Optional) To restore files to a different location, select a relocation option:
l To relocate all datafiles to one folder and the log file to another folder, select Relocate
all files to folder.
Click the buttons on the right of Data file folder and Log file folder to specify the
destination paths of the datafiles and the log file respectively.
When you specify the target path for a copy restore, the operation keeps the original
logical file name of the database.
l To relocate specific files to a folder, where the operation can also change the logical
names, select Relocate specific files to folder.
106 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
a. In the Source folder field, type the location path for the datafiles.
b. In the Destination folder field, type the destination path. The files are restored to
this location.
c. Click Update.
Repeat these steps to relocate multiple file paths during a restore.
10. (Optional) Under Restore Options, select the following options as required:
l To instruct the SQL Server to create the specified database and its related files, even if
another database exists with the same name, select Overwrite the existing database.
If another database exists with the same name, that database is deleted.
l To specify a restore state, in the Recovery state field, select one of the following
options:
n To instruct the SQL Server to leave the database in operational state after the
restore, select Normal mode.
Normal is the default mode.
n To activate the SQL Server NORECOVERY database restore option for the last stage
restored, select No Recovery mode.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 107
Data Restore
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.
n To enable the standby undo file feature for SQL Server to use when rolling back the
transaction, select Standby mode.
l If the restore is in standby mode, from the Standby File field, browse and select an undo
file.
l To select the level of information recorded in the logs that you can use for
troubleshooting restore issues, select Select a debug level, and then select the
troubleshooting level. Levels range 0-9, with 0 representing no information and 1
representing the least amount of information.
l To specify a timeframe for flat-file restore, select Specify a start time for restore, and
then select a date and time.
The date and time that is selected in this field is the start time for the restore period, and
the end time is the time selected on the General page, from the Browse time list.
l To provide an alternate pass phrase, select Specify alternate decryption pass phrase.
If the NMC pass phrase is unavailable, then the alternate pass phrase is used.
l To specify advanced restore options, in the Advanced options field, select or type
advanced restore options. Separate multiple entries with a comma, for example:
BUFFERCOUNT=2, KEEP_CDC, KEEP_REPLICATION
The following table outlines the advanced restore options that NMM supports:
BUFFERCOUNT=number_of_IO_buffers This option specifies the total number of IO buffers that can be used during
restore.
KEEP_REPLICATION This option preserves the replication when restoring a published database. This
option is required if a database was replicated when the backup was created.
l To verify that the backup is complete and readable, select Verify only.
l To specify the clone pool where the save set is restored, select Select a restore pool,
and then type the name of the restore pool in the field.
l To change the number of entries that are retrieved from the server, in the Number of
entries to retrieve field, select a number.
The value that is specified in this field is the page size for number of backup versions
that are listed for restore in the Restore table in the General view. This value also
determines the number of entries that are retrieved when querying backup versions from
the server.
108 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
The smaller the number that is specified, the faster the backup versions list is available.
The minimum value is 1, the default value is 50, and the maximum value is 10000.
11. (Optional) Under Tail-log backup, select the following options as required:
l To perform a logs-only backup of the data before you perform a restore operation, select
Take tail-log backup before restore.
A tail-log backup ensures that the operation backs up the data that has changed from
the previous backup.
Note: NMM does not support tail-log backups when multiple databases are being
restored. NMM also does not support tail-log backups for SQL AAG databases.
l To specify a log file pool, select Select the log file pool, and then select the log file pool
from the list of available pools.
12. (Optional) Under Server connections, select Close existing connections to destination
database to ensure exclusive access to the database during the restore operation if multiple
connections exist.
13. To start the restore operation, click Run.
If you have not enabled the instant file initialization feature, a warning message appears
before the restore operation starts. To continue with the restore, click OK. To abort the
operation, click Cancel.
See Microsoft documentation for details on enabling the database instant file initialization
feature on the SQL Server.
Results
The restore operation runs.
To view the status of the restore operation, open the Monitor page.
The following figure shows the NetWorker window open to the Database Restore tab, on the
Monitor page.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 109
Data Restore
Note: If you do not have the instant file initialization feature enabled, the following warning
message will appear in the output:
Instant file initialization is not enabled, please enable this feture for improved
restore performance.
110 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
-l backup_level
-lbackup_level
The following expression is invalid because a space is not allowed between the + argument and
log_mark_name:
-M + log_mark_name
l Ensure that you use brackets ([ ]) to denote the optional portions of a command. When
starting an actual backup or recovery operation, do not include brackets.
l Ensure that data items follow all other command options and parameters at the command
prompt.
l If you do not have the instant file initialization feature enabled, the following warning message
will appear in the output:
Please ensure that instant file initialization is enabled on the
destination SQL Server instance for improved restore performance.
However, the restore operation will continue. See Microsoft documentation for details on
enabling the database instant file initialization feature on the SQL Server.
nsrsqlrc [-fjqVku]
[-$ instance_name]
[-a "option_key=value"]
[-A virtual_server_name]
[-b pool_name]
[-c client_name]
[-C file=path,file2=path2,...]
[-d MSSQL:destination_dbName]
[-e pass_phrase]
[-f]
[-H "'source_path';'destination_path'"]
[-j]
[-k]
[-M [+|-]log_mark_name]
[-O "Option1, Option2, Option3"]
[-P password]
[-q]
[-R fgName1,fgName2,...]
[-s NetWorker_server_name]
[-S normal|standby:undo_file|norecover]
[-t date]
[-u]
[-U username]
[-V MSSQL:dbName]
[-z]
[MSSQL: dbname dbname.fgName dbName.fgName.filename ...]
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 111
Data Restore
-$ MSSQL$ instance_name Specifies a named SQL Server instance as the source of the copy
recovery.
The following example copies the Sales database 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
-d MSSQL$MARS:
-$ MSSQL$VENUS:
"MSSQL$VENUS:Sales"
-a "RESTORE_TO_SOURCE_PATH=TRUE" Ensures that the backup is restored to the original path by default
during a redirected restore operation. The -a
"RESTORE_TO_SOURCE_PATH=TRUE" option is overridden if
the -C or -H relocation options are used.
-a Specifies the directory where the recovery files are saved for
"FLAT_FILE_RECOVERY_DIR=<destinatio flat-file recovery.
n_directory>"
112 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
-A virtual_server_name Specifies the virtual server name when the SQL Server is
configured to run as a clustered service in an MSCS cluster.
-b pool_name Specifies the clone pool where the save set is restored from.
-c client_name Specifies the NetWorker client name from which the SQL Server
data is to be recovered.
-C file=path,file2=path2,... Copies the database that is being restored to either the same
SQL Server or a different SQL Server. This option 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 file names and fully
qualified domain database file name relocation paths. Specify the
relocation list only when you restore a database. Each file name
and relocation path is joined by the equal sign (=), and pairs are
delimited in the list by commas.
["][’] file[’]=[’]path[’],[’]
file2[’]=[’]path2[’],...["]
For example, to copy the Project database from a client host that
is named ClientHost1 to a different location on ClientHost1,
specify the relocation list for the database files, but do not
include the client hostname 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 must be enclosed by double quotation marks to
allow for spaces in the relocation elements and path names. A
logical file name or relocation path must be enclosed by single
quotation marks to also allow for spaces. If a file name or path
contains a single quotation mark, precede the single quote with
another single quotation mark to prevent the NMM from parsing
the single quotation mark as a delimiter, for example:
nsrsqlrc -s NetWorker_server_name
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 113
Data Restore
-d MSSQL:CopyOfProject
-C File’=C:\Relocate Dir\Path\,
=’C:\Relocate Dir\Path\’,...,
MSSQL:destination_dbname MSSQL:source_dbname
where:
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 at the command prompt.
-e pass_phrase Enables the use of an alternate pass phrase with AES encryption
when recovering data.
114 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
For example, if the testdb1 database has four datafiles that are in
the C:\datapath source path and you want to relocate the
database to the D:\datapath destination path, type the
following:
To relocate individual files, see the table entry for the -C option.
You cannot use the -C option with -H.
The way the mark name is prefixed determines how the data is
recovered:
l When the mark name is prefixed with a plus sign (+), the data
is recovered to and includes the named transaction.
l When the mark name is prefixed with a minus sign (-), the
data is recovered up to the named transaction.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 115
Data Restore
nsrsqlrc -sNetWorker_server_name -M
+transaction_mark MSSQL:dbName
nsrsqlrc -s NetWorker_server_name -M -
transaction_mark MSSQL:dbName
Specify only one SQL Server database, followed by all the other
command options and parameters at the command prompt.
-O "Option1, Option2, Option3" This option specifies advanced recovery options. The syntax is as
follows:
-O "Option1, Option2, Option3"
You can specify the following advanced recovery options:
l BUFFERCOUNT=number_of_IO_buffers
This option specifies the total number of IO buffers that can
be used during a recovery operation.
l KEEP_CDC
116 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
-P password Specifies the SQL Server user password. When the -U username
command option is specified, the password command option
must also be provided, as follows:
Use the SQL Server username and password to log in to the SQL
Server with SQL server authentication.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 117
Data Restore
where:
-R ""
l Project is the name of the SQL database to restore.
l PartOfProject is the name of the SQL database to which the
source database is to be recovered.
When -C, -M, -R, or -d are used, the list of data objects can
include only one database. The list of data objects must follow all
other command options and parameters at the command prompt.
118 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
nsrsqlrc -s NetWorker_server_name -
ddestination_dbName -S
where:
nsrsqlrc -s NetWorker_server_name
-S"standby:C:\temp\undo filename"
-d MSSQL:NewProjectName MSSQL:Project
-t "MM/DD/YY HH:MM:SS" Recovers the SQL Server data on 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 you format the date. See the
NetWorker Command Reference Guide for details on the
nsr_getdate command syntax.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 119
Data Restore
-V MSSQL:dbName Verifies the SQL Server database that is 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
120 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 121
Data Restore
or
or
[MSSQL:dbName.fgName MSSQL:dbName.fgName2
MSSQL:dbName2.fgName MSSQL:dbName2.fgName2 ...]
[MSSQL:dbName.fgName.filename
MSSQL:dbName.fgName2.filename
MSSQL:dbName2.fgName.filename
MSSQL:dbName2.fgName2.filename ...]
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:
122 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
Example 8 Using clustered instance SQL Server virtual server names with -A or -c
Instead of using clustered named instances in this syntax, use clustered instance SQL
Server virtual server names with -A or -c options, as shown in the following command:
where:
Create a client resource under the SQL Server virtual server DNS name.
For scheduled backups of a SQL Server virtual server client, you do not need to
specify the -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.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 123
Data Restore
The following table lists the syntax for file names, file groups, and databases containing a period.
The following table lists the syntax for file names, file groups, and databases containing a
backslash.
The SQL file group named MyFileGroup\2 for the SQL MyDatabase\\COM.MyFileGroup\\2
database named MyDatabase\COM MSSQL$MyInstance:MyDatabase\
\COM.MyFileGroup\\2
The following table lists the syntax for file names, file groups, and databases containing a colon.
124 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Data Restore
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 125
Data Restore
126 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 7
Granular Level Recovery
l Overview..............................................................................................................................128
l Considerations..................................................................................................................... 128
l Performing Granular Level Recovery....................................................................................133
l Dismounting backups after performing GLR........................................................................ 136
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 127
Granular Level Recovery
Overview
NMM supports GLR of SQL Server backups that are created by using NMM and SQL VDI.
GLR enables you to restore specific items from a single backup without having to restore the
entire backup. By using GLR with SQL Server, you can restore individual tables to the production
database. This feature reduces the space requirements on local system storage during a restore
operation. Depending on the size of the content database, GLR may also reduce restore time.
NMM SQL GLR requires GLR enabled backups. NMM SQL GLR enabled backups are enabled by
default for NMM 9.1 and later. GLR enabled backups perform additional inline processing during a
backup operation, and store additional metadata on the save set backup records. GLR enabled
backups are not supported for direct backups to tape devices.
NMM SQL GLR is managed from the Table Restore tab in the NMM SSMS plug-in GUI. The Table
Restore tab allows you to select the database and backup version for GLR. The Table Restore tab
constructs a list of save sets that are contained in the selected backup version. NMM uses a
mount service and the NetWorker Virtual File System (NWFS) to mount all save sets in the
selected SQL backup version. The NWFS exposes the save sets as SQL native backup files on a
virtual file system on the NMM client.
After the Table Restore tab mounts all save sets as a virtual file system, ItemPoint™ for Microsoft
SQL Server launches. ItemPoint reads the NWFS and presents the database and tables that are
contained in the backup, enabling you to restore SQL tables to the production database. Once GLR
is performed through ItemPoint and the program is exited, the NMM SSMS plug-in GUI unmounts
the backup.
The NMM SSMS plug-in GUI mounts SQL backups as NWFS by using a mount service. The mount
service enables lifecycle management of the mount. While a backup is mounted, the mount service
system tray icon appears. You can use the tray icon to inspect the mount path, extend the mount
time, and unmount the backup.
Considerations
ItemPoint environmental requirements
Before using ItemPoint for Microsoft SQL Server, consider the environmental requirements listed
in the following table:
Component Requirement
128 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Granular Level Recovery
Component Requirement
Virtual environments Note: Virtual operation of tape devices may have restrictions
imposed by virtual operating systems.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 129
Granular Level Recovery
Component Requirement
130 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Granular Level Recovery
n Columnstore indexes
Note: Tables with a columnstore index cannot be accessed.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 131
Granular Level Recovery
NMM 9.1 or later. Backups that are taken with older versions of NMM are not GLR-enabled.
Backups that use the NetWorker AES encryption or NetWorker compression technology are not
supported for GLR.
GLR is supported only for SQL Server backups that are taken with an AFTD or Data Domain
device. Client Direct must be enabled for the volumes containing the save sets to be restored in
order for the mount operation to succeed. If a Client Direct session cannot be established, the
mount operation fails.
If the backup is on a tape device, the backup must be cloned to an AFTD or Data Domain device
before you can perform a GLR operation. In this scenario, it is also required to set the recovery
pool in the registry. Contact support for details.
The default creation of SQL GLR compatible backups does not affect backup workflow. For
example, if you are performing a type of backup that is not supported for GLR, the backup
completes successfully. However, if a backup is not GLR-compatible, NMM writes warning
messages to the operational logs. If these warning messages impact group completion statuses,
disable GLR backups by typing ENABLE_GLR=NO in the application information field of the client
resource.
The following backup types are not supported for SQL table-level restore:
l Columnstore indexes
Note: Tables with a columnstore index cannot be accessed.
132 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Granular Level Recovery
If you observe this problem, an alternative to using SQL table-level restore is to restore the backup
as flat files to a server where you have enough space, and the use ItemPoint with the files on the
local disk.
Restore considerations
Consider the following ItemPoint for Microsoft SQL Server restore limitations:
l Referential integrity, indexes, and permissions are not restored.
l When restoring tables with TimeStamp columns, the TimeStamp column is not preserved. The
value is the time of the restoration for that row. This is the normal behavior for TimeStamp
columns.
l Restoring tables with identity columns does not preserve the value of the identity column. The
restored table follows the rules of the identity column on the target table.
For example, if the source table has three rows with identity values of 1, 3, 5, once restored,
the target has values of 1, 2, 3 because this behavior is the normal behavior of identity
columns.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 133
Granular Level Recovery
3. Select the NetWorker server where the backup is located from the NetWorker Server list.
Use the Update button to update the list of available NetWorker servers.
The SQL Server Instance list is refreshed after you select the NetWorker server.
4. From the SQL Server Host list, select the client that contains the backup.
If you used a cluster or an availability group listener to perform the backup, select the same
cluster or listener name from the SQL Server Host list.
5. From the SQL Server Instance list, select the server instance that contains the backup.
6. From the Database list, select the database.
7. Specify the browse time by using one of the following options:
l Use the Browse time list.
l Click Show versions and choose the browse date and time.
The table is populated with the save sets in the SQL database instance that are available for
restore. The number of available backup versions appears in the bottom bar.
8. From the table, select the save set that contains the items for GLR.
9. To specify additional GLR options, under Select a page, click Options.
The Options page appears.
The following figure shows the NetWorker window open to the Table Restore tab, on the
Options page.
134 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Granular Level Recovery
10. (Optional) Under Mount Options, modify the following settings as required:
l Edit the Mount Folder field to change the location where database is mounted as files.
The default mount path is the registry key folder that is specified during installation.
l Edit the Mount Expires field to change the amount of time that the backup remains
mounted. The default setting is 8 hours, and the maximum setting is 24 hours.
Valid mount expiration values are 2, 4, 8, 16, and 24 hours.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 135
Granular Level Recovery
The following figure shows the NetWorker window open to the Table Restore tab, on the
Monitor page.
Figure 32 NetWorker dialog box—Table Restore Monitor page
13. Perform GLR of the mounted database by using the ItemPoint for Microsoft SQL Server
software.
The ItemPoint for Microsoft SQL Server User Guide provides instructions about performing
GLR. The NMM SSMS plug-in GUI is disabled till GLR is complete with ItemPoint.
136 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Granular Level Recovery
The following actions are available through the Mount system tray icon:
l Dismount Backups—Dismount a backup.
l Mount Details—View mount details.
l Extend Timeout—Extend the period for which the backup is mounted.
The mount timeout can be extended by 2, 4, 8, 16, or 24 hours.
The following figure shows the Mount Details window.
Figure 34 Mount Details window
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 137
Granular Level Recovery
138 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 8
Striped Backup and Recovery
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 139
Striped Backup and Recovery
where:
n Lowercase -s specifies the NetWorker server name.
n Uppercase -S with n specifies the number of stripes.
Performance considerations
Review the following suggestions in this section to improve striped backup performance.
l In the NetWorker Administration GUI, in the Create Device or Edit Device dialog box,
configure target sessions for the NetWorker devices that are performing the striped backup.
Always specify one session per device when using striping. This configuration eliminates
interleaving, yielding the best backup performance on the client host.
l Keep the following criteria in mind when you allot a separate backup device (such as a tape
drive) for each strip in the backup or recovery operation:
n Use a different NetWorker server for the backup and the recovery operations that is
unrelated to the SQL Server.
n Use a dedicated storage node for the striped backups.
l NMM automatically recovers data using the same number of stripes that were specified for the
backup.
140 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Striped Backup and Recovery
For best recovery performance, ensure that the same number of devices that are used for the
backup are available at recovery time.
l Configure the computer to run the following components:
n NetWorker client as a NetWorker storage node
n NMM
n SQL Server
Note: The NetWorker server cannot be installed on the same host as the NMM client software.
where n specifies the number of stripes you want to use, for example, -S3.
l From the NetWorker Administration GUI:
1. Click Protection.
2. In the expanded left pane, click Clients.
3. In the right pane, right-click the client, and then select Modify Client Properties.
4. On the Apps & Modules tab, append -Sn to the nsrsqlsv command, where n is the
number of stripes to use.
5. Click OK.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 141
Striped Backup and Recovery
If Then
142 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Striped Backup and Recovery
If Then
Fewer devices are available Use NMC to determine if a device has been
deactivated or is performing an operation for
another client.
NOTICE You do not need to restart the NetWorker services to activate this setting.
7. From the NMM SSMS plug-in GUI, start the restore operation.
8. If the volumes with the striped restore are not managed by an autochanger, monitor events
in NMC.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 143
Striped Backup and Recovery
144 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 9
Disaster Recovery
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 145
Disaster Recovery
System database restore automation Certain system databases require SQL Server service control, including the
master and the msdb databases. NMM automates the control of these
services as follows:
l For the master database, the SQL Server restarts in single-user mode as
required by the SQL Server.
l For the msdb database, the SQL Agent shuts down to close the
connections to the msdb database.
Note: NMM does not support snapshot backups or restores of the SQL
Server master database. Restore from a traditional backup of the master
system database during a disaster recovery.
Database restore order When you restore a complete backup of all databases or when you restore
certain system databases, the restore must occur in a specific order. If
system databases are present in the restore list, NMM ensures that the
restore order follows SQL Server procedures as follows:
1. The master database is always restored first. This order ensures that
metadata present in the master database is correct for all subsequent
restored databases.
2. The msdb database is always restored after the master database and
before all other databases. This sequence ensures that scheduling and
other system data present in the msdb database are correct for all
subsequent restored databases.
3. The model database is always restored after the master and the msdb
databases and before all other databases. This sequence ensures that
the database configuration is correct for all subsequent databases.
146 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Disaster Recovery
SQL Server startup complete When the SQL Server is started, a database startup process is also started.
detection 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
fail. Subsequent restore 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 restore. NMM waits for the restore 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 restore that
follows a SQL Server startup.
Overwriting capability Use the Files/Filegroups page settings on the Database Restore tab in the
NMM SSMS plug-in GUI to specify that you want to overwrite all databases
during a restore operation.
NMM does not handle all dependent services. When restoring 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 before it
restores a database as required by the SQL Server. Such open connections
must be manually closed. The Microsoft SQL Server documentation provides
more information.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 147
Disaster Recovery
6. Complete the disaster recovery through the NMM SSMS plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
c. Under Sources, make the following selections:
l Select the NetWorker server.
l Select the SQL Server host.
l Select the SQL Server instance.
l Change the backup time, which is the current time by default.
l In the list of backed-up records that appears, select all the items to restore.
148 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Disaster Recovery
6. Start the restore in the NetWorker User for SQL Server GUI. Select Replace to restore the
SQL Server master database and the msdb database.
7. Restore the other SQL application databases.
Note: You can run steps 6 and 7 as a single operation:
From a command prompt, type the following command:
nsrsqlrc -s... -f MSSQL:
8. Complete the disaster recovery through the NMM SSMS plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
c. Under Sources, make the following selections:
l Select the NetWorker server.
l Select the SQL Server host.
l Select the SQL Server instance.
l Change the backup time, which is the current time by default.
l In the list of backed-up records that appears, select all the items to restore.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 149
Disaster Recovery
e. Under Restore Options, select Overwrite the existing database (WITH REPLACE).
f. Click Run.
10. Complete the disaster recovery through the NMM SSMS plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
150 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Disaster Recovery
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 151
Disaster Recovery
9. Restore the other SQL application databases. Restore the SQL Server to the most recent
backup.
Note: To run steps 8 and 9 as a single operation from the command line, type the
following command:
For information about how you can install various SQL Server versions from the
command prompt, visit http://msdn.microsoft.com/en-us/library/
ms144259(v=sql.100).aspx. Use the Other Versions list at the top of the page to view
information for a particular SQL version.
10. Complete the disaster recovery through the NMM SSMS plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
c. Under Sources, make the following selections:
l Select the NetWorker server.
l Select the SQL Server host.
l Select the SQL Server instance.
l Change the backup time, which is the current time by default.
l In the list of backed-up records that appears, select all the items to restore.
152 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Disaster Recovery
5. When restore is started, in the NetWorker User for SQL Server GUI, select Replace to
restore the SQL Server master database and the msdb database.
6. Restore the other SQL application databases.
Note: To run steps 5 and 6 as a single operation from the command line, type the
following command:
7. Complete the disaster recovery through the NMM SSMS plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
c. Under Sources, make the following selections:
l Select the NetWorker server.
l Select the SQL Server host.
l Select the SQL Server instance.
l Change the backup time, which is the current time by default.
l In the list of backed-up records that appears, select all the items to restore.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 153
Disaster Recovery
154 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 10
Bare Metal Recovery
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 155
Bare Metal Recovery
Overview
Bare-metal recovery (BMR) is a technique in the field of data recovery and restoration where the
backed up data is available in a form that allows you to restore a system from bare metal, that is,
without any requirements as to previously installed software or operating system.
Typically, the backed up data includes the necessary operating system, applications, and data
components to rebuild or restore the backed up system to an entirely separate piece of hardware.
The hardware receiving the restore should have a similar configuration as that of the hardware
that was the source of the backup.
The basic BMR is the process of bringing up a server after a disaster and ensuring that the system
recovers with the operating system, the applications, and the data as they were at the time of the
failure.
Restoring a server to the exact configuration that it had at the time of its destruction can be a
difficult task. When this restoration is performed to another hardware, it can add to the complexity
of the process and can be time-consuming. Windows BMR solution provides a flexible and reliable
method of restoring a server after a disaster.
System requirements
The following sections list requirements to perform Windows BMR. However, the NetWorker E-LAB
Navigator , which is available at https://elabnavigator.emc.com/eln/elnhome, provides the latest
information about the system requirements to perform Windows BMR by using NMM.
156 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Bare Metal Recovery
http://support.microsoft.com/kb/249694
CPU requirements
Consider the following CPU requirements:
l The operating system architecture and the processor architecture must match.
l Basic Input/Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) must
match.
l You can treat AMD or Intel processors as being the same if they follow the same architecture.
You can recover the operating system backup of an AMD x64 computer to an Intel x64
computer. The process is reversible.
l You can restore the backup of an x86 operating system version only to an x86 processor
computer.
l You can restore the backup of an x64 operating system version only to an x64 processor
computer.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 157
Bare Metal Recovery
includes the Microsoft application binaries, and the volume on which they are installed is
marked as critical.
Note: This registry key may not be in the registry by default. If it is not in the registry,
create the HKLM\System\CurrentControlSet\Control\SystemWriter
\ReportWin32ServicesNonSystemState registry key.
90108:save: Unable to save the SYSTEM STATE save sets: cannot create the
snapshot.
2. If you use a NetWorker server earlier than 9.0.x, create a NetWorker group without enabling
the Snapshot option. Otherwise, create a policy.
3. Create a NetWorker client resource, and assign it to the group that you created in step 2.
4. Configure the NetWorker client resource by typing ALL in the Save set field, and clearing
the Backup command and Application information fields.
5. Perform a backup.
6. Use NMM to perform a full backup of application data.
The NMM application specific user guides provide details about how to perform a full
backup.
158 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Bare Metal Recovery
Creating client resources by using the NetWorker Client Backup Configuration Wizard
Create separate client resources to back up the application data and the file system data. The
client resource for the file system data must include the ALL save set.
About this task
The section Access privileges for backup and recovery on page 44 provides information about how
to create a client resource to back up the application data.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 159
Bare Metal Recovery
The "Creating a client resource with the Client Backup Configuration Wizard" section in the
NetWorker Administration Guide provides information about how to create a client resource to back
up the file system data.
2. Create a client resource to back up the ALL save set on the active node:
a. In the NetWorker Administrator window, click Protection.
b. In the expanded left panel, right-click Clients and select New.
c. In the Create Client dialog box:
a. In the Name field, type the name for the active node.
b. In the Group list, select the group that you created in step 1.
c. In the Save set field, type ALL.
d. Specify other fields according to the requirements.
e. Click OK.
7. Create a client resource with SQL virtual name to back up the SQL application data:
a. In the NetWorker Administrator window, click Protection.
160 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Bare Metal Recovery
d. On the Apps & Modules tab, in the Backup command field, type nsrnmmsv.
e. Specify other fields according to the requirements.
f. Click OK.
8. Create dummy client resources for the physical nodes of the cluster.
9. Perform the backup.
Ensure that the backup successfully completes.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 161
Bare Metal Recovery
e. Click Recover.
f. In the Source Client dialog box, select the source client with the SQL virtual name and
click OK.
g. In the Destination Client dialog box, select the destination client with the active node
name and click OK.
h. Select all the SQL cluster drives and recover the drives.
4. Build the msdb and model databases:
a. Start the physical nodes of the cluster.
b. Ensure that you have the SQL Server installation software on the active node.
c. In the software, go to the folder where the SETUP file exists and run the following
command:
Setup/QUIET/ACTION=REBUILDDATABASE/INSTANCENAME=SQL Server instance
name/SQLSYSADMINACCOUNTS=Domain\administrator username/
IAcceptSQLServerLicenseTerms
Refer to Microsoft documentation for information about how to rebuild the SQL Server
system databases. The following table provides links to relevant Microsoft documentation
for various versions of SQL Server.
5. In the Failover Cluster Management window of the Cluster Configuration UI, perform the
following steps:
a. Open the SQL Server Properties dialog box.
The following figure shows the SQL Server Properties dialog box.
162 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Bare Metal Recovery
b. On the Dependencies tab, add all the SQL Server dependencies that you must bring
online before you bring the SQL Server online. For example, add any dependent cluster
disk.
c. Bring the SQL virtual resources online.
d. Bring the SQL Server online.
e. Perform the failover and ensure that the failover is successful.
6. Restore the databases by using the NetWorker User for Microsoft GUI:
a. Open the NetWorker User for Microsoft GUI.
b. Select the SQL Server and relevant SQL virtual server instance, and then click Recover.
c. On the Recover tab page, click the Browse tab.
d. Expand APPLICATIONS, and then select SqlServerWriter.
e. Perform the restore operation.
f. After the restore operation completes, ensure that the SQL Server service starts for the
recovered instance.
Creating client resources by using the NetWorker Client Backup Configuration Wizard
Create separate client resources to back up the application data and the file system data. The
client resource for the file system data must include the ALL save set.
Access privileges for backup and recovery on page 44 provides information about how to create a
client resource to back up the application data.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 163
Bare Metal Recovery
The "Creating a client resource with the Client Backup Configuration Wizard" section in the
NetWorker Administration Guide provides information about how to create a client resource to back
up the file system data.
b. On the Apps & Modules tab, ensure that the Backup command and Application
information fields are clear.
c. Specify other fields according to the requirements.
d. Click OK.
5. Perform the backup.
Ensure that the backup successfully completes.
7. In the right panel, right-click the client resource and select Modify Client Properties.
8. In the Client Properties dialog box:
a. On the General tab:
l In the Group list, select the group that you have created in step 1.
l In the Save set field, type the name of the SQL Server instance that contains the
databases you must restore:
n MSSQL: for the default SQL Server instance.
n MSSQL$<named_instance> for a named SQL Server instance.
164 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Bare Metal Recovery
b. On the Apps & Modules tab, in the Backup command field, type nsrsqlsv.
c. Specify other fields according to the requirements.
d. Click OK.
9. Perform the backup.
Ensure that the backup successfully completes.
3. Restore the databases by using the NMM Microsoft SQL Server Management Studio
(SSMS) plug-in GUI:
a. Open the NMM SSMS plug-in GUI.
b. On the Database Restore tab, under Select a page, click General.
c. Under Sources, make the following selections:
l Select the NetWorker server.
l Select the SQL Server host.
l Select the SQL Server instance.
l In the list of backed-up records that appears, select the databases to restore.
d. From the NMM SSMS plug-in GUI, start the restore of the databases.
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 165
Bare Metal Recovery
166 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
CHAPTER 11
Troubleshooting
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 167
Troubleshooting
Table 42 Program and log file names without debug logging enabled
nsrsqlsv.exe nsrsqlsv.log
nsrsqlrc.exe nsrsqlrc.log
Table 43 Program and log file names with debug logging enabled
nsrsqlsv.exe nsrsqlsv_<timestamp>.<processid>.
log
nsrsqlrc.exe nsrsqlrc_<timestamp>.<processid>.
log
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.
168 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide
Troubleshooting
Troubleshooting GLR
View the log files to troubleshoot GLR, which are by default located at C:\Program Files\EMC
NetWorker\nsr\applogs. Set a higher debug level in the Options view of the NMM SSMS
plug-in GUI for more detailed logs for troubleshooting.
This section contains solutions to common problems.
Mount failure because save set is not GLR-capable
While mounting a backup for GLR by using the SSMS plug-in, the Monitor page provides
messages about the status of the mount operation. If the backup selected for table-level restore is
not a GLR capable backup, then the operation fails and the following error message appears:
Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide 169
Troubleshooting
170 Dell EMC NetWorker Module for Microsoft for SQL VDI User Guide