Beruflich Dokumente
Kultur Dokumente
Users Guide
MSG-101-5.6-EN-01 03/23/10
Copyrights
NetVault: Backup APM for SQL Server Users Guide
Software Copyright 2010 BakBone Software
Documentation Copyright 2010 BakBone Software
This software product is copyrighted and all rights are reserved. The distribution and sale of this
product are intended for the use of the original purchaser only per the terms of the License
Agreement. All other product trademarks are the property of their respective owners.
The NetVault: Backup APM for SQL Server Users Guide is copyrighted and all rights are
reserved.
This document may not, in whole or part, be copied, photocopied, reproduced, translated,
reduced or transferred to any electronic medium or machine-readable form without prior consent
in writing from BakBone Software.
THIS PUBLICATION IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT.
THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL
ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE
CHANGES WILL BE INCORPORATED INTO NEW EDITIONS OF THE PUBLICATION.
BAKBONE SOFTWARE MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE
PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS PUBLICATION AT ANY
TIME.
19992010 BakBone, BakBone Software, NetVault, Application Plugin Module, BakBone
logo, Integrated Data Protection, SmartDisk, Asempra, FASTRecover, ColdSpark and
Spark Engine are all trademarks or registered trademarks of BakBone Software, Inc., in the
United States and/or in other countries. All other brands, products or service names are or may
be trademarks, registered trademarks or service marks of, and used to identify, products or
services of their respective owners.
BakBone Software
9540 Towne Centre Drive, Suite 100 San Diego, California 92121 866.484.2663
Table of Contents
Chapter 1: Introducing
NetVault: Backup APM for SQL Server
11
17
23
4
- Backing Up System Databases ..................................................................................................... 36
- Backing Up Replicated Databases ................................................................................................ 37
57
NetVault: Backup
APM for SQL Server Users Guide
87
Appendix B: Troubleshooting
97
Troubleshooting ............................................................................................................. 97
NetVault: Backup
APM for SQL Server Users Guide
Chapter 1:
INTRODUCING
NETVAULT: BACKUP
APM FOR SQL SERVER
1.1.0
Key Benefits
Feature Summary
Target Audience
Technical Support
Documentation Updates
Chapter 1
Introducing NetVault: Backup APM for SQL Server
1.2.0
Key Benefits
Copy-Only backups
Advanced Full and Differential File backups along with Partial Database
and Differential Partial Database backups
Backup-compression support
Full, differential, incremental, and time and marked transaction point-intime restores
NetVault: Backup
APM for SQL Server Users Guide
Rename of datafiles
Disaster recovery
1.3.0
Feature Summary
Copy-Only backups
Advanced Full and Differential File backups along with Partial Database and
Differential Partial Database backups
Backup-compression support
Rename of datafiles
Disaster recovery
10
Chapter 1
Introducing NetVault: Backup APM for SQL Server
1.4.0
Target Audience
This guide is intended for users who are responsible for the backup and recovery
of SQL Server. Familiarity with SQL Server administration and the operating
system (OS) under which the database is running is assumed. Advanced
knowledge of SQL Server would be useful for defining an efficient backup and
recovery strategy for the database.
1.5.0
1.6.0
Technical Support
BakBone Software is dedicated to providing friendly, expert advice to its
customers. BakBones highly trained professionals are available to answer
questions, offer solutions to problems, and generally help make the most of any
BakBone software purchase. Log on to the web site for more information.
http://www.bakbone.com/supportportal
1.7.0
Documentation Updates
For late-breaking documentation updates, refer to the BakBone Software
Knowledge Base. BakBones Knowledge Base article for NVBU APM for SQL
Server can be found at:
http://kb.bakbone.com/5420
NetVault: Backup
APM for SQL Server Users Guide
11
Chapter 2:
Installation Prerequisites
2.1.0
Important Considerations
Installation Prerequisites
Before installing the SQL Server APM, make sure the following software is
installed and properly configured on the machine that is to serve as the SQL
Server:
SQL Server VSS Writer Services If you want to implement a VSS backup
strategy for SQL Server 2005/2008 databases, the SQL Server VSS Writer
service must be running. The SQL Server VSS Writer is automatically
installed with SQL Server 2005/2008. However, the service is not set to start
automatically. To enable VSS backups, start this service from the Windows
Services panel (Start > Control Panel > Administrative Tools > Services).
BakBone recommends that you set the startup type for this service to
Automatic.
Note: For Users Upgrading from a Previous Version of SQL Server APM
With the introduction of SQL Server APM v5.0, SQL Server APMs internal name
has changed from MS SQL to SQL Server. When upgrading to v5.x from an
12
Chapter 2
Installing and Removing SQL Server APM
earlier version, do not remove the earlier version of the software before installing
v5.0. Installing v5.0 over an earlier version ensures that the backups created using
the previous versions can be restored using SQL Server APM v5.0. If you have
accidentally removed the previous version prior to installing v5.0, reinstall the
previous version first, and then install SQL Server APM v5.0; otherwise, the
previous backups will not be visible on the Selections tab in the Restore window.
NVBUs Application Cluster Support functionality offers support for the backup and
restore of clustered instances of SQL Server (Active/Passive). For complete
details on the installation, configuration, and backup procedures required to set up
this functionality with the SQL Server APM, see Using SQL Server APM in a
Failover Cluster Environment on page 87.
2.2.0
Figure 2-1:
Deployment
2.2.1
Important Considerations
NetVault: Backup
APM for SQL Server Users Guide
13
The SQL Server APM will consider each of these nodes as individual Clients.
2.3.0
Figure 2-2:
SQL Server
already added
to the NVBU
Server as a
Client
14
Chapter 2
Installing and Removing SQL Server APM
3. In the additional window that appears, navigate to the location of the .npk
installation file for the SQL Server APM (for example, the NetVault: Backup
APM Installation CD or the directory to which the file was downloaded from
the BakBone web site).
Based on the OS in use, the directory path for this software may vary on the
installation CD.
4. Select the file entitled sql-xxxx.npk (where xxxx represents various
software platforms and version numbers), and click Open.
The installation process will occur automatically.
5. When the Install Software dialog appears that indicates the software was
successfully installed, click OK to dismiss it.
Figure 2-3:
Install
Software
dialog
2.4.0
Figure 2-4:
Remove
Software
dialog with
SQL Server
APM selected
for removal
NetVault: Backup
APM for SQL Server Users Guide
15
4. When the Remove Software dialog appears, click OK to proceed (or Cancel
to abort).
Figure 2-5:
Remove
Software
dialog
5. When the confirmation message appears that indicates the software was
removed, click OK to close the dialog and return to the Client Management
window.
Figure 2-6:
Software
removed
successfully
16
Chapter 2
Installing and Removing SQL Server APM
NetVault: Backup
APM for SQL Server Users Guide
17
Chapter 3:
CONFIGURING
SQL SERVER APM
3.1.0
To configure authentication:
1. From the NVBU Console running on the NVBU Server, open the Backup
window (via either of the toolbar buttons or by clicking Operations >
Backup).
A list of NVBU Clients is displayed on the Selections tab.
2. Locate the Client configured as the SQL Server, and open it to display a list of
APMs/plugins installed on the machine.
18
Chapter 3
Configuring SQL Server APM
To open any node on the Selections tab, do either of the following:
Right-click the node, and select Open from the pop-up menu.
Logon security mode Based on the Authentication Mode set for the
SQL Server, you can specify either a Windows Administrator or a SQL
Server Administrator account. To specify a Windows Administrator
account, select the Windows option. For a SQL Server Administrator
account, select SQL Server.
Important: You can only select SQL Server if the SQL Server Authentication
Mode is set to Mixed Mode/SQL Authentication.
NetVault: Backup
APM for SQL Server Users Guide
19
Instance Name Specify the exact name of the SQL Server instance
running (for example, SQLSERVER if the default instance, or
<HostName>\<InstanceName> and so on). As the instance is
successfully located, it is displayed on the Selections tab in the Backup
window for browsing and inclusion in a backup job.
20
Chapter 3
Configuring SQL Server APM
3.1.1
Right-click the node, and select Open from the pop-up menu.
3.2.0
NetVault: Backup
APM for SQL Server Users Guide
21
4. Select the SQL Server APM tab, where the following options are displayed:
Error Encountered During Checksum SQL Server lets you specify the
action that should be taken if an error is encountered when performing
checksums on backups and restores. You can specify the default action to
take on encountering checksum errors by selecting one of the following
two options from the drop-down list:
Continue after error This is the default action set during the APM
installation. With this value selected, the backup or restore job will
continue in spite of checksum errors.
Stop on error Select this option to set it as the default action. With
this value selected, the backup or restore job will stop when a
checksum error is encountered.
Do full database backup This is the default action set during the
APM installation. Retaining this option will instruct the APM to perform
full backup of all the new databases that have been added since the
last Full Database or Database - Complete backup.
Ignore Selecting this option will request that the SQL Server APM
ignore any databases that have been created since the last Full
Database or Database - Complete backup (that is, any databases
that were created after the last backup will be left out of the
Transaction Log or Differential Database backup).
22
Chapter 3
Configuring SQL Server APM
Undo File for Standby Restores For performing Standby Restores the
SQL Server APM requires a temporary Undo File. It is required only when
the Action After Restore field on the Restore Options tab is set to With
STANDBY; More Transaction Logs can be Restored (SQL Server
2000) or With STANDBY (SQL Server 2005/2008).
By default, the path is blank. Specify the directory path for the temporary
UNDO.DAT file in this field.
Incomplete Backup of ALL Items Selected The SQL Server APM can
do one of the following when this error condition occurs:
If either of the following occurs, the SQL Server APM overrides the
Incomplete Backup of ALL Items Selected setting and responds as
indicated:
5. Click the OK button to apply the settings, and close the Remote
configurator window.
Now, when the Backup Options tab is accessed for defining a job, each
option will be automatically set to the action type specified in this procedure.
Important: This only changes how these options are set by default on the Backup
Options and Restore Options tabs. You can still change the action type on a perjob basis.
NetVault: Backup
APM for SQL Server Users Guide
23
Chapter 4:
BACKING UP DATA
4.1.0
Defining an Online VDI (or Named Pipe) Backup Strategy and Reviewing
Types
24
Chapter 4
Backing Up Data
A backup-and-restore strategy is divided into two pieces: a backup piece and a
restore piece.
The backup piece defines the type and frequency of backups that are
required to meet the goals for availability of the database and for minimizing
data loss.
The restore piece defines who is responsible for performing restores, and
how restores should be performed to recover from the particular type of
damage or failure.
Important: If you use SQL Server APM, make sure that you are not using a thirdparty program to complete additional backups of SQL Server. Otherwise, a conflict
might occur during the restore or recovery process when the differential backups
do not match.
4.1.1
SQL Server APM supports implementing an Online VDI or a pure VSS backup
strategy; that is, your backup strategy should include either Online VDI backups or
VSS backups, not a combination of the two.
4.1.1.a
4.1.1.b
NetVault: Backup
APM for SQL Server Users Guide
25
4.1.1.c
4.1.2
Simple Recovery Model With a Simple Recovery Model, log backups are
not supported. Therefore, changes since the most recent backup are not
protected. In the unfortunate event of failure, these changes must be reexecuted. Point-in-time recovery is not allowed.
Full Recovery Model Full Recovery Model databases require log backups;
therefore, no work is lost due to a lost or damaged data file. Point-in-time
recovery is supported, assuming backups are complete up to the point-offailure.
26
Chapter 4
Backing Up Data
Full Recovery Model that permits high-performance bulk-copy operations.
This model reduces log space usage by bulk-logging most bulk operations. If
a log is damaged or bulk-operations have occurred since the most recent
Transaction Log backup, these changes must be re-executed. Point-in-time
recovery is not supported for bulk-logged databases.
4.1.2.a
Full Recovery Model The Full Recovery Model should be enabled for
transactional databases where full recoverability and preventing work loss in
a full range of recovery scenarios is required.
4.1.3
Answering these questions will help the DBA define the type and frequency of
backups that should be implemented.
SQL Server APM provides the following types of Online VDI Backup:
Full Database
Differential Database
Copy-Only
NetVault: Backup
APM for SQL Server Users Guide
4.1.3.a
Tail-Log
Partial Database
27
A Full Database backup is a backup of the entire database. In SQL Server 2005, a
Full Database backup also includes part of the transaction log, which enables
recovery of the database to the point at which the backup was completed.
Full Database backups consume more space and time per backup and are
typically supplemented by differential backups, which are created more frequently.
With Full Database backups, you can re-create an entire database in one step by
restoring the database.
4.1.3.b
With a Differential Database, back up only the data that has changed since the last
Full Database backup is backed up. Differential backups are smaller and faster to
create than the full backups.
A Differential Database backup is useful if some of the databases tables are
modified more frequently than others. In this case, Differential Database backups
allow you to back up frequently without the overhead of Full Database backups.
4.1.3.c
Copy-Only Backup
Copy-Only backups are supported by:
Copy-Only backups are independent of the normal sequence of backups. A CopyOnly data backup does not impact the differential bitmap, so subsequent
differential backups are unaffected by the Copy-Only backup. These types of
backups are ideal for situations that require special purposes, such as creating
test environments or standby databases.
28
Chapter 4
Backing Up Data
4.1.3.d
SQL Server Transaction Logs are essential to data recovery and need to be
backed up regularly. With Transaction Log backups, you can recover the database
to a point-of-failure or specific point-in-time.
An Incremental Transaction Log backup captures all the transaction logs including
the transaction logs that have been generated since the last Full Database/File or
Filegroup, Differential Database/File or Filegroup, or Incremental Transaction Log
backup. An Incremental Transaction Log backup should not be performed in the
following conditions:
4.1.3.e
Until a Full Database or Full File and Filegroup backup has been created
because the transaction log contains changes made to the database after the
last backup was created.
After the transaction log has been manually truncated, until a Full Database
or Differential Database backup has been performed. Microsoft strongly
recommends against manually truncating transaction logs.
Tail-Log Backup
Tail-Log backups are supported by:
A Tail-Log backup captures the transaction logs that have not yet been backed up
and is the last backup restored in a restore sequence. SQL Server 2005/2008
requires you to back up the tail of the log before restoring a database that is
currently attached to the SQL Server instance. Therefore, a Tail-Log backup is the
first step in most restore sequences.
A Tail-Log differs from an Incremental Transaction Log in the following ways:
If the database is damaged or offline, for example, the database does not
start, a Tail-Log backup can be attempted. However, taking a Tail-Log
backup succeeds only if the log files are undamaged, the database is in a
state that supports Tail-Log backups, and the database does not contain any
bulk-logged changes.
NetVault: Backup
APM for SQL Server Users Guide
4.1.3.f
29
A Full File and Filegroup backup backs up all the data in one or more files or
filegroups. A complete set of Full File and Filegroup backups is equivalent to a Full
Database backup.
Full File and Filegroup backups have the following advantages over Full Database
backups:
With a Full File and Filegroup backup, you can back up and restore the files
in a database individually. This can speed up the recovery process as it is
possible to restore only damaged files without restoring the rest of the
database.
Full File and Filegroup backups increase the flexibility in dealing with large
databases that contain data with varying update characteristics. For example,
consider the following recommendations:
The primary disadvantage of Full File and Filegroup backups is the risk that a
media failure can render an entire database unrecoverable if a damaged file lacks
a backup.
In SQL Server 2000, Full File and Filegroup backups are not supported for Simple
Recovery Model databases. In addition, Full File and Filegroup backups do not
contain log records, and you must explicitly apply a log backup to recover their
data.
In SQL Server 2005/2008, by default, file backups contain enough log records to
roll forward the file to the end of the backup operation. Under Simple Recovery
Model in SQL Server 2005/2008, the Full File and Filegroup backups are restricted
to read-only secondary filegroups. You can create a file backup of a read/write
filegroup, but before you can restore the read/write file backup, you must set the
filegroup to read-only and take a differential read-only file backup.
4.1.3.g
A Differential File and Filegroup backup captures only the data changed since the
last file backup. In SQL Server 2005/2008, these backups are extremely fast
30
Chapter 4
Backing Up Data
because the Database Engine tracks changes made since the file was last backed
up, eliminating the need to scan the file.
For Simple Recovery Model databases, Differential File backups provide a quick
and space-saving way to create current file backups while dramatically reducing
recovery time for Full Recovery Model databases by reducing the number of
transaction logs that must be restored.
Differential File and Filegroup backups should be considered when:
4.1.3.h
You are backing up some files much less frequently than others.
Your files are large and the data is updated infrequently, or the same data is
updated repeatedly.
Designed to create more flexibility for Simple Recovery Model databases, a Partial
Database backup is similar to a Full Database backup except that a Partial
Database backup does not contain all the databases filegroups. A Partial
Database backup contains all the data in the primary filegroup and every readwrite filegroup. Optionally, specified read-only files can also be included. However,
a partial backup of a read-only database contains only the primary filegroup.
A Partial Database backup is useful when a database contains read-only files that
do not need to be included in every database backup. A Partial Database backup
can also be used as a basis for a piecemeal restore scenario, which will be
supported in a future release of the APM.
4.1.3.i
Used only with Partial Database backups, a Differential Partial backup contains
only those extents changed in the primary filegroup and read-write filegroups
since the previous partial backup. If only some of the data captured by a partial
backup has changed, using a Differential Partial backup lets you back up
frequently without the overhead of Full Database backups.
For more information on the effect of adding, deleting, or modifying Filegroups on
Partial Differential backups, refer to Differential Partial Backups in the SQL Server
Books Online.
NetVault: Backup
APM for SQL Server Users Guide
4.1.4
31
4.1.4.a
32
Chapter 4
Backing Up Data
Secondary read-only filegroups only need to be backed up once after the initial
load and after subsequent updates. When business requirements guarantee data
protection up to the previous day for read-write filegroups, performing nightly
Partial Database backups should be sufficient.
4.1.4.b
For example, Full Database backups are performed every night while Incremental
Transaction Log backups are performed every four to eight hours. Each
NetVault: Backup
APM for SQL Server Users Guide
33
Incremental Transaction Log backup includes the transaction logs since the last
Full Database or Incremental Transaction Log backup.
Restore sequences that use Incremental Transaction Log backups require that
every Incremental Transaction Log backup between the last Full Database backup
and the point-of-failure must be restored in succession. This can lead to longer
restores and increased DBA intervention to initiate multiple restore jobs. To speed
up restores, include Differential Database backups, which reduces the number of
Incremental Transaction Log backups that must be restored.
34
Chapter 4
Backing Up Data
performed every hour. Each Differential File and Filegroup backup includes all the
changes since the last Full File and Filegroup backup, and each Incremental
Transaction Log backup includes the transaction logs since the last Differential
File and Filegroup backup.
Restore sequences that use Incremental Transaction Log backups require that
every Incremental Transaction Log backup between the last Full File and
Filegroup or Differential File and Filegroup backup and the point-of-failure must be
restored in succession. This can lead to longer restores and increased DBA
intervention to initiate multiple restore jobs. To speed up restores, increase the
frequency of the Differential File and Filegroup backups to every four to eight
hours, which reduces the number of Incremental Transaction Log backups that
must be restored. This strategy provides complete protection of the entire
database with the flexibility to restore only the files or filegroups that are damaged
while supporting most restore scenarios.
4.1.5
4.1.5.a
Full Database
Differential Database
Copy-Only
A VSS Full Database backup backs up database data and all the log files
necessary to bring the database up to a transactionally consistent state at restore
time. Full Database backups consume more space and time per backup and are
typically supplemented by differential backups, which are created more frequently.
With Full Database backups, you can re-create an entire database in one step by
restoring the database.
4.1.5.b
A VSS Differential Database backup backs up only the data that has changed
since the most recent base Full Database backup. A Differential Database backup
contains only those parts of the database files that have changed. Differential
Database backups are smaller and faster to create than the Full Database
NetVault: Backup
APM for SQL Server Users Guide
35
4.1.5.c
Copy-Only Backup
Copy-Only backups are supported by:
4.1.6
36
Chapter 4
Backing Up Data
No matter when recovery is performed, the same number of restore jobs is
required. For example, if recovery is performed on Tuesday, Sundays Full
Database backup and Mondays Differential Database backup must be restored.
Whereas, if recovery is performed on Thursday, Sundays Full Database backup
followed by Wednesdays Differential Database backup must be restored.
Even though Differential Database backups will increase not only in size but in
duration, restores are quicker due to the fewer number of restore jobs that must be
executed.
Copy-Only Backups
When business requirements demand that a backup be created without interfering
with regular scheduled backup sequences, Copy-Only backups is a valid strategy.
Often times, you must create a full backup outside of the regular backup schedule,
such as when refreshing your test databases. This could potentially interfere with
the regular backup schedule and throw off subsequent differential backups. The
Copy-Only backup allows administrators to run non-regular Full Database
backups at any time without interfering with scheduled backups.
4.1.7
msdb and model The msdb database is used by SQL Server, SQL Server
Management Studio, and SQL Server Agent to store data, including
scheduling information and backup and restore history information. The
model database is the template used by SQL Server when you create a user
database. The entire contents of the model database, including database
options, are copied to the new database.
NetVault: Backup
APM for SQL Server Users Guide
37
You can back up the model and msdb databases in the same way as user
databases. Back up the model and msdb databases whenever they are
updated. BakBone recommends that you create only Full Database backups
of the model database. As it is small and rarely changes, backing up the log
is unnecessary.
Note: The SQL Server APM cannot back up tempdb or Resourcedb databases.
For more information, refer to Backing Up and Restoring System Databases in
SQL Server Books Online.
4.1.8
The master and msdb system databases at the Publisher, Distributor, and all
Subscribers. These databases should be backed up at the same time as
each other and the relevant replicated database.
For example, back up the master and msdb databases at the Publisher at
the same time that you back up the publication database. If the publication
database is restored, ensure that the master and msdb databases are
consistent with the publication database in terms of replication configuration
and settings.
The replicated databases can be backed up in the same way as the non-replicated
databases with the APM. If you perform regular Incremental Transaction Log
backups, any replication-related changes should be captured in the Incremental
Transaction Log backups. If you do not perform Incremental Transaction Log
backups, a backup should be performed whenever a setting relevant to replication
is changed.
For more information, refer to Strategies for Backing Up and Restoring Snapshot
and Transactional Replication, Strategies for Backing Up and Restoring Merge
Replication, and Common Actions Requiring an Updated Backup in the SQL
Server Books Online.
38
Chapter 4
Backing Up Data
4.2.0
4.2.1
Figure 4-1:
SQL Server
APM opened
to display
items available
for inclusion in
a backup job
(in SQL Server
2000)
Right-click the node, and select Open from the pop-up menu.
NetVault: Backup
APM for SQL Server Users Guide
39
Open an individual database to display its files and filegroups, and select
the items to be included in the backup.
Important: For the File and Filegroup backup type, a readonly filegroup must be selected explicitly in the selection tree to
include it in the backup. Though a green check mark will appear
against the read-only filegroups when you select the parentlevel database, these filegroups will not be actually backed up. When including a
read-only filegroup in a backup, select the individual items instead of selecting the
parent-level database.
4.2.1.a
40
Chapter 4
Backing Up Data
4.2.2
4.2.2.a
Database - Complete Equivalent to a Full Database backup, a Database Complete backup backs up the entire database. In SQL Server 2000,
Database - Complete backups do not contain log records. Database Complete backups consume more space and time per backup, and are
typically supplemented by differential backups, which are created more
frequently. With Full Database backups, you can re-create an entire database
in one step by restoring the database.
NetVault: Backup
APM for SQL Server Users Guide
41
File and Filegroup A File and Filegroup backup backs up all the data in
one or more files or filegroups. A complete set of Full File backups is
equivalent to a Full Database backup.
File and Filegroup backups have the following advantages over Full
Database backups:
With a file backup, you can back up and restore the files in a database
individually. This can speed up the recovery process as you can restore
only damaged files without restoring the rest of the database.
File and Filegroup backups increase the flexibility in dealing with large
databases that contain data with varying update characteristics. For
example, consider the following recommendations:
The primary disadvantage of File and Filegroup backups is the risk that a
media failure can render an entire database unrecoverable if a damaged file
lacks a backup.
In SQL Server 2000, File and Filegroup backups do not contain log records
and you must explicitly apply a log backup to recover their data.
After the transaction log has been manually truncated, until a Database Complete or Database - Differential backup has been performed.
42
Chapter 4
Backing Up Data
Microsoft strongly recommends against manually truncating the
transaction logs.
4.2.2.b
Transaction Log Options When backing up the transaction logs, you can
specify whether the inactive portion of the log must be truncated. Select one
of the following two options to set the action to be performed:
Normal Select this option if you want SQL Server APM to truncate the
inactive portion of the log file and make it available for re-use. This is the
default for Transaction Log backup.
Ignore Selecting this option instructs the SQL Server APM to ignore any
databases that have been created since the last Database - Complete
backup (that is, any databases that were created after the last backup will
be left out of the Transaction Log or Database - Differential backup).
Do Full Backup This option instructs the APM to perform a full backup
of all new databases that have been added since the last Database Complete backup.
NetVault: Backup
APM for SQL Server Users Guide
43
Important: To change the default action for all subsequent jobs, see Specifying a
Default Configuration (Optional) on page 20.
4.2.2.c
Figure 4-3:
Backup
Methods frame
Use Named Pipe With this backup method selected, the SQL Server APM
uses a named pipe for performing the backups. A named pipe is an Inter
Process Communication construct that allows programmatic communication
between a client and a server.
Use Virtual Device Interface (VDI) This method (the default) lets you take
advantage of Microsofts VDI Application Program Interface (API), which
provides maximum reliability and flexibility when defining a backup strategy.
You can set the following options for this backup method:
Block Size (Bytes) This field allows for the input of a device block size
(in bytes). The default value for this field is 64 kilobytes (KB), that is,
65536 bytes.
Number of VDI Devices The value specified in this field determines the
number of VDI devices to use for storing the backup job. In the default
setting, all backup job options have one VDI device set to the job, when
Use Virtual Device Interface (VDI) is selected. You can add additional
VDI devices; however, the minimum number of VDI devices is 1, and the
maximum number cannot exceed 32.
Important: The number of VDI devices selected must be equal to or less than
the number of available media or tape drives. For example, if the number of VDI
devices selected is 5, a minimum of five media or tape drives must exist.
44
Chapter 4
Backing Up Data
4.2.3
4.3.0
4.3.1
Right-click the node, and select Open from the pop-up menu.
NetVault: Backup
APM for SQL Server Users Guide
45
Open an individual database to display its files and filegroups, and select
the items to include in the backup.
Figure 4-4:
Selections tab
for SQL Server
2008 VDI
Important: For the backup types Full File and Filegroup, Differential File and
Filegroup, Partial Database, and Differential Partial Database, a read-only
filegroup must be explicitly selected in the selection tree to include it in the backup.
Though a green check mark will appear against the read-only filegroups when you
select the parent-level database, these filegroups will not actually be backed up.
When including a read-only filegroup in a backup, select the individual items
instead of the parent-level database.
46
Chapter 4
Backing Up Data
4.3.1.a
4.3.2
NetVault: Backup
APM for SQL Server Users Guide
47
Figure 4-5:
Backup
Options tab for
SQL Server
2008 VDI
4.3.2.a
Select the Use Virtual Device Interface (VDI) option to select the VDI backup
method.
4.3.2.b
Block Size (Bytes) This field allows for the input of a device block size (in
bytes). The default value for this field is 64KB (that is, 65536 bytes).
48
Chapter 4
Backing Up Data
Transfer Multiple The value specified in this field is used as a multiplier for
the value specified in the Block Size field. The overall value of the two serves
as the maximum allowable data transfer size (that is, the Block Size default
of 65536 bytes multiplied by the default Transfer Multiple of 24, results in a
maximum allowable transfer size of 1.6MB).
Number of VDI Devices The value specified in this field determines the
number of VDI devices to be used for storing the backup job. In the default
setting, all backup job options have one VDI device set to the job, when Use
Virtual Device Interface (VDI) is selected. You can add additional VDI
devices; however, the minimum number of VDI devices is 1, and the
maximum number cannot exceed 32.
Important: The number of VDI devices selected must be equal to or less than
the number of available media or tape drives. For example, if the number of VDI
devices selected is 5, a minimum of five media or tape drives must exist.
4.3.2.c
Full Database
Differential Database
Copy-Only
Tail-Log
Partial Database
For information on these backup types, see Defining an Online VDI (or Named
Pipe) Backup Strategy and Reviewing Types on page 26.
4.3.2.d
NetVault: Backup
APM for SQL Server Users Guide
49
choose to either ignore it or take a full backup of it. You can set this action by
selecting the applicable option from the drop-down list provided here:
Do Full Database Backup This option will instruct the APM to perform
full backup of all the new databases that have been added since the last
Full Database backup.
Ignore Selecting this option will instruct the SQL Server APM to ignore
any databases that have been newly created since the last Full Database
backup (that is, any databases that were created after the last backup will
be left out of the Differential Database or Incremental Transaction Log
backup).
Transaction Log Options When backing up the transaction logs, you can
specify whether the inactive portion of the log must be truncated. Select one
of the following two options to set the action to be performed:
Normal Select this option if you want the SQL Server APM to truncate
the inactive portion of the log file and make it available for re-use. This is
the default for Incremental Transaction Log backups.
Enable Backup Checksum You can instruct the SQL Server APM to
perform checksum on the backups. Specifying this option tells SQL Server to
verify the page (checksum or torn page) if this information is present on the
page prior to writing a page to the backup media. Regardless of whether
page checksums are present, SQL Server generates a separate backup
checksum for the backup streams. Restore operations can optionally use the
backup checksum to validate that the backup is not corrupt. The backup
checksum is stored on the backup media, not on the database pages and can
affect workload and backup throughput. Select this check box to enable
backup checksum.
50
Chapter 4
Backing Up Data
what the SQL Server APM should do if it encounters a checksum error.
Select one of the following options from the drop-down list:
Continue After Error This is the default action set during the APM
installation. With this value selected, the backup job will continue
despite encountering errors, such as invalid checksums.
Stop on Error With this value selected, the backup job will fail.
Important: To change the default action for this option for all subsequent jobs,
see Specifying a Default Configuration (Optional) on page 20.
Enable Enable backup compression for this job regardless of the SQL
Server Instance setting.
Disable Disable backup compression for this job regardless of the SQL
Server Instance setting.
Incomplete Backup of ALL Items Selected The SQL Server APM can do
one of the following when this error condition occurs:
NetVault: Backup
APM for SQL Server Users Guide
51
If either of the following occurs, the SQL Server APM overrides the
Incomplete Backup of ALL Items Selected setting and responds as
indicated:
4.3.3
4.4.0
52
Chapter 4
Backing Up Data
A VSS backup using SQL Server APM in SQL Server 2005/2008 can be divided
into the following phases:
Important: Prior to initiating VSS backups, make sure that the SQL Server VSS
Writer service is running on the SQL Server. The SQL Server VSS Writer is
automatically installed with SQL Server 2005/2008. However, the service is not
enabled to start automatically. For VSS backups, start this service from the
Windows Services panel (Start > Control Panel > Administrative Tools >
Services). BakBone recommends that you set the startup type for this service to
Automatic.
You can define a VSS backup job regardless of the state of this service. However,
the job will fail if it is run while the SQL Server VSS Writer service is not running.
The log for the failed backup job will contain a message stating Please ensure the
SQL Server Writer service is started.
4.4.1
Right-click the node, and select Open from the pop-up menu.
NetVault: Backup
APM for SQL Server Users Guide
53
Figure 4-6:
Selections tab
for SQL Server
2008 VSS
4.4.1.a
54
Chapter 4
Backing Up Data
4.4.2
NetVault: Backup
APM for SQL Server Users Guide
55
Figure 4-7:
Backup
Options tab for
SQL Server
2008 VSS
4.4.2.a
Select the Use Volume Shadow Copy Services (VSS) option to select the VSS
backup method.
4.4.2.b
Full Database
Differential Database
Copy-Only
56
Chapter 4
Backing Up Data
For information on these backup types, see Defining a VSS Backup Strategy and
Reviewing Types on page 34.
4.4.3
NetVault: Backup
APM for SQL Server Users Guide
57
Chapter 5:
RESTORING DATA
5.1.0
58
Chapter 5
Restoring Data
5.2.0
5.2.1
5.2.1.a
5.2.1.b
Full Database
Differential Database
Copy-Only
Partial Database
Differential Database
NetVault: Backup
APM for SQL Server Users Guide
5.2.1.c
59
5.2.2
5.2.2.a
File Restore
In a file restore for a Simple Recovery Model database, the goal is to restore one
or more damaged read-only files without restoring the entire database. This type
of restore will involve a Full File and Filegroup backup.
60
Chapter 5
Restoring Data
5.2.2.b
File Restore
In a file restore for a Full or Bulk-Logged Recovery Model database, the goal is to
restore the entire database while leaving the option available to restore one or
more damaged files without restoring the entire database. This type of restore will
involve the following restore sequence:
1. Perform Tail-Log backup.
2. Restore Full File and Filegroup backup with With NO RECOVERY restore
option.
3. Restore Differential File and Filegroup backup with With NO RECOVERY
restore option.
4. Restore all subsequent Incremental Transaction Log backups in order
while selecting the With NO RECOVERY restore option.
5. Restore and recover the Tail-Log backup while selecting the With
RECOVERY restore option.
NetVault: Backup
APM for SQL Server Users Guide
61
5.2.3
5.2.3.a
62
Chapter 5
Restoring Data
The restoration of the master database will include the following steps:
1. Start the server instance in single-user mode.
2. Restore a Full Database backup of the master database.
The SQL Server instance will be stopped automatically on completion of the
data restoration process.
3. Because the changes made to master since the last backup were lost,
re-create them by executing those steps again.
4. After the master has been restored and changes reapplied, back up the
master immediately.
5.2.3.b
The master database has been rebuilt. In this case, it will be necessary to
restore model from a backup because rebuilding master re-creates model.
The model or msdb database has been damaged (for example, due to
media failure).
5.2.4
NetVault: Backup
APM for SQL Server Users Guide
5.3.0
63
5.3.1
Figure 5-1:
Selections tab
for SQL Server
2008 VDI
2. Locate the Client configured as the SQL Server, and open it to display a list of
the APMs/plugins that have been used to back up data.
64
Chapter 5
Restoring Data
To open any node on the Selections tab in the Restore window, do either of
the following:
Right-click the node, and select Open from the pop-up menu.
3. Locate SQL Server APM in the list, and open it to display the backup
savesets created with the APM.
Each saveset will be labeled with its given Job Title followed by its backup
type and the time that the backup was performed. The backup type identifiers
are outlined in the following table:
Backup Type
Database - Complete
VDI FULL
Database - Differential
VDI DIFFERENTIAL
VDI FILEGROUP
Transaction Log
VDI INCREMENTAL
4. Open the applicable backup saveset to display the SQL Server instance that
was the target of the backup.
5. From this level, double-click a node to open it (the right-click method is not
available).
The database name is displayed when you open this node. For the File and
Filegroup backup saveset, you can further open the database node and
select the individual files or filegroups. For other backup types, further drilldown will show items but you cannot select them.
Important: When restoring a read-only filegroup, the filegroup
must be explicitly selected in the selection tree. Though a green
check mark will appear against the read-only filegroup when you
select the parent-level database, the filegroup will not be
actually restored. When including a read-only filegroup in a restore, select the
individual items instead of selecting the parent-level database.
6. Select the applicable instance or the database for inclusion in the restore
procedure.
5.3.1.a
Sorting the Savesets To sort the savesets listed on the Selections tab,
select one of the following methods in the Selection Method list:
NetVault: Backup
APM for SQL Server Users Guide
65
Plugin This is the default method. The savesets are ordered according
to the plugin used to generate them.
Backup Set To sort the savesets by the Selection Set used for the
backup, select Backup Set in the Selection Method list.
Job To sort the savesets by the Job Title, select Job in the Selection
Method list.
Figure 5-2:
Selection
Method
options
By Date Range Select the By Date Range check box, and enter or
select the From and To dates in the boxes provided to list the savesets
generated during a given period.
Show On-line Status Select the Show On-line Status check box to list
the savesets stored on the currently online media.
Figure 5-4:
Search
command for
locating and
displaying data
Searching for Data Items To find a data item inside a saveset, right-click it
and select Search. Enter the item name in the Search String box, and click
Search.
66
Chapter 5
Restoring Data
Viewing Media List To view the media list for a saveset, right-click it and
select Media List.
Figure 5-5:
Media List
command for
displaying
media-related
information for
a saveset
Figure 5-6:
Compress
command for
compressing
an index
NetVault: Backup
APM for SQL Server Users Guide
5.3.2
67
Figure 5-7:
Restore
Options tab for
SQL Server
2000
Backup Type The type of backup that was performed, based on the
saveset chosen for a restore on the Selections tab, is displayed here.
Action After Restore Frame This frame contains the following options:
68
Chapter 5
Restoring Data
Important: SQL Server 2000 supports creating standby servers only with
Database - Complete backups. Therefore, a restore will fail if the Set Database
With STANDBY; More Transaction Logs can be Restored option is enabled for
File or Filegroup backup types.
Undo File for Standby Restores For performing Standby Restores the
SQL Server APM requires a temporary Undo file. It is required only when the
Action After Restore field on the Restore Options tab is set to Set
Database with STANDBY; More Transaction Logs can be Restored.
By default, the path is blank. Specify the directory path for the temporary
UNDO.DAT file in this field. You can set a default path for field in the
Configurator. For more information, see Specifying a Default Configuration
(Optional) on page 20.
Figure 5-8:
Options for
performing a
time-based
point-in-time
recovery
Point in Time Restore Available only for Transaction Log backups, this
option lets you perform time-based point-in-time recovery. Select this option
and specify the date and time in the respective fields to apply the transactions
up to that point in the Transaction Log backup. The specified recovery point
must be contained in the Transaction Log backup.
Target Instance This field lets you restore the database to a different SQL
Server Instance. The procedure for performing this type of restore is outlined
in Restoring a Database to an Alternate Instance on page 83.
Leave this option blank for a standard restore of the database to the same
instance.
Restore Method This frame contains options that allow you to select the
restore method of the SQL Server APM.
Figure 5-9:
Restore
Method frame
Use Named Pipe Select this option to perform the restore of selected
data using the Named Pipe method, which is an Inter Process
Communication construct that allows programmatic communication
NetVault: Backup
APM for SQL Server Users Guide
69
between a client and a server. With this method selected, the other
options in this frame do not apply.
5.3.3
Use Virtual Device Interface (VDI) Select this option to take advantage
of Microsoft's VDI API, which provides offers the maximum reliability and
flexibility. You can set the following options for this method:
Block Size (Bytes) This field lets you specify the device block size
(in bytes). The default value for this field is 64KB (that is, 65536 bytes).
5.4.0
70
Chapter 5
Restoring Data
This section outlines the various steps to be performed in these phases to
complete data restoration successfully.
5.4.1
Figure 5-10:
Selections tab
for SQL Server
2008 VDI
2. Locate the Client configured as the SQL Server, and open it to display a list of
the APMs/plugins that have been used to back up data.
To open any node on the Selections tab in the Restore window, do either of
the following:
Right-click the node, and select Open from the pop-up menu.
NetVault: Backup
APM for SQL Server Users Guide
71
3. Locate SQL Server APM in the list, and open it to display the backup
savesets created with the APM.
Each saveset will be labeled with its given Job Title followed by its backup
type and the time that the backup was performed. The backup type identifiers
are outlined in the following table:
Backup Type
Full Database
VDI FULL
Differential Database
VDI DIFFERENTIAL
Copy - Only
VDI INCREMENTAL
Transaction Log
VDI INCREMENTAL
Tail-Log
VDI TAIL-LOG
VDI FILEGROUP
Partial Database
VDI PARTIAL
4. Open the applicable backup saveset to display the SQL Server instance that
was the target of the backup.
5. From this level, double-click a node to open it (the right-click method is not
available).
The database name is displayed when you open this node. For the Full File
and Filegroup, Differential File and Filegroup, Partial Database, and
Differential Partial Database backup types, you can further open the
database node and select the individual files or filegroups. For other backup
types, further drill-down will show items but you cannot select them.
Important: When restoring a read-only filegroup, the filegroup
must be explicitly selected in the selection tree. Though a green
check mark will appear against the read-only filegroup when you
select the parent-level database, the filegroup will not be
actually restored. When including a read-only filegroup in a restore, select the
individual items instead of selecting the parent-level database.
6. Select the applicable instance or the database for inclusion in the restore
procedure.
72
Chapter 5
Restoring Data
5.4.1.a
Sorting the Savesets To sort the savesets listed on the Selections tab,
select one of the following methods in the Selection Method list:
Plugin This is the default method. The savesets are ordered according
to the plugin used to generate them.
Backup Set To sort the savesets by the Selection Set used for the
backup, select Backup Set in the Selection Method list.
Job To sort the savesets by the Job Title, select Job in the Selection
Method list.
Figure 5-11:
Selection
Method
options
By Date Range Select the By Date Range check box, and enter or
select the From and To dates in the boxes provided to list the savesets
generated during a given period.
Show On-line Status Select the Show On-line Status check box to list
the savesets stored on the currently online media.
NetVault: Backup
APM for SQL Server Users Guide
73
Searching for Data Items To find a data item inside a saveset, right-click it
and select Search. Enter the item name in the Search String box, and click
Search.
Viewing Media List To view the media list for a saveset, right-click it and
select Media List.
Figure 5-13:
Search
command for
locating and
displaying data
Figure 5-14:
Media List
command for
displaying
media-related
information for
a saveset
Figure 5-15:
Compress
command for
compressing
an index
74
Chapter 5
Restoring Data
5.4.2
Figure 5-16:
Restore
Options tab
5.4.2.a
Backup Method The backup method that was used for the backup that
was chosen to be restored on the Selections tab is displayed here.
Backup Type The type of backup that was performed for the backup that
was chosen to be restored on the Selections tab is displayed here.
Restore Type Frame This frame lets you specify the action that must be
performed after the restore operation. You can select from the following
options:
NetVault: Backup
APM for SQL Server Users Guide
75
VDI Options The VDI restore method lets you take advantage of
Microsofts VDI API, which provides the maximum reliability and flexibility.
You can set the following options for this method:
Block Size (Bytes) This field lets you specify the device block size (in
bytes). The default value for this field is 64KB (that is, 65536 bytes).
Target Instance This field lets you restore the database to a different
SQL Server Instance. The procedure for this type of restore is outlined in
Restoring a Database to an Alternate Instance on page 83. Leave this
option blank for a standard restore of the database to the same SQL
Server Instance.
Continue After Error This is the default action set during the APM
installation. With this value selected, the restore job will proceed, if the
76
Chapter 5
Restoring Data
corruption permits, after returning a checksum error with the number of
the page containing the invalid checksum.
Stop on Error With this value selected, the restore job will report a
checksum error and stop if it encounters errors.
To change the default action for this option for all subsequent jobs, see Specifying
a Default Configuration (Optional) on page 20.
5.4.2.b
Figure 5-17:
Transaction
Log tab for
SQL Server
2008 VDI
The SQL Server APM supports time-based and marked transaction-based pointin-time recovery of a database. To set the recovery point for a log backup, access
the Transaction Log Options tab that is displayed on the Restore Options tab
when an Incremental Transaction Log or Tail-Log backup is selected for
restore. This tab contains the following options for setting the recovery point:
Enable Point-in-Time Restore Select this check box to enable point-intime recovery of the log backup.
NetVault: Backup
APM for SQL Server Users Guide
5.4.3
77
Mark Enter the string to identify the transaction mark. Select Stop
At from the drop-down list to perform recovery till this transaction
(the marked transaction will be included). Select Stop Before to
recover all transactions before this mark.
5.5.0
Important: The SQL Server Instance must be stopped when restoring the master
database.
5.5.1
78
Chapter 5
Restoring Data
You will see a list of NVBU Clients that have been the target of successful
backup jobs on the Selections tab.
2. Locate the Client configured as the SQL Server, and open it to display a list of
the APMs/plugins that have been used to back up data.
To open any node on the Selections tab in the Restore window, do either of
the following:
Right-click the node, and select Open from the pop-up menu.
3. Locate SQL Server APM in the list, and open it to display the backup
savesets created with the APM.
Each saveset will be labeled with its given Job Title followed by its backup
type and the time that the backup was performed. The backup type identifiers
are outlined in the following table:
Backup Type
Full Database
VSS Full
Differential Database
VSS Differential
Copy-Only
4. Open the applicable backup saveset to display the SQL Server instance that
was the target of the backup.
5. From this level, double-click a node to open it (the right-click method is not
available).
Opening it further will display the database name. Though further drill-down
will show items, you cannot select them.
6. Select the applicable instance or the database for inclusion in the restore
procedure.
NetVault: Backup
APM for SQL Server Users Guide
5.5.2
79
Figure 5-18:
Restore
Options tab for
SQL Server
2008 VSS
The following restore options are available for all VSS backup types:
Backup Method The backup method that was used for the backup that
was chosen to be restored on the Selections tab is displayed here.
Backup Type The type of backup that was performed, based on the
database chosen for a restore on the Selections tab, is displayed here.
Restore Type This frame lets you specify the action that must be
performed after the restore operation. You can select from the following
options:
80
Chapter 5
Restoring Data
5.5.3
5.6.0
5.6.1
NetVault: Backup
APM for SQL Server Users Guide
81
Rename Database Select the Rename To check box, and enter the
new name for the database in the text box. The database will be restored
with the name specified in this field.
Relocate Database Select the Relocate To check box, and enter the
new path to which the database must be restored.
The SQL Server APM lets you relocate the log files to a directory other
than the data files directory. To restore to separate directories, type in the
paths to the directories where the data files and log files are to be
restored. The data file directory must be specified first, followed by the
path to the log file directory. The two directory paths must be separated by
comma (no space must exist before or after the comma). The directory
specified in this field must exist at job run-time.
82
Chapter 5
Restoring Data
Figure 5-20:
A database
marked with its
Rename/
Relocation
information on
the Selections
tab
NetVault: Backup
APM for SQL Server Users Guide
5.6.2
83
Figure 5-21:
Restoring to
alternate
instance
5.6.2.a
Prerequisites
Prior to initiating this type of restore, make sure that the following prerequisites are
met:
5.6.2.b
Same Version of SQL Server Both the source instance from which the
data was backed up and the target instance to which the data is to be
restored must be running the same version of SQL Server software.
84
Chapter 5
Restoring Data
Important: You can also rename or relocate a database while performing this type
of restore for VDI-based backups. For more information, see Renaming or
Relocating a Database on page 80.
5.6.3
Figure 5-22:
Restoring to
alternate SQL
Server
This functionality is useful during disaster recovery operations. You can restore a
database to a different SQL Server by using the steps provided in the following
sections.
Important: Microsofts VSS backup method does not support restoring a VSSbased backup to an alternate Instance; therefore, restoring VSS-based backups to
an alternate instance with the SQL Server APM is not supported.
5.6.3.a
Prerequisites
The following requirements must be met on the new restore target before
attempting this procedure:
Same Version of SQL Server Installed The SQL Server version must be
the same as the version running on the existing database server.
NVBU Software and the SQL Server APM Installed The same version of
NVBU software and the SQL Server APM must be installed and configured
on the new restore target.
Client Added to the NVBU Server The target machine must be added to
the NVBU Server via the Client Management window of the NVBU Console.
NetVault: Backup
APM for SQL Server Users Guide
5.6.3.b
85
Figure 5-23:
New restore
target selected
on Target
Client tab
86
Chapter 5
Restoring Data
Specify a detailed name that lets you identify the job easily for monitoring
its progress.
f. Click the Submit button.
You can monitor the restore job progress and log entries via the Job
Management, Status, and NVBU Logs windows. For more information
on accessing these windows and their use, refer to the section dedicated
to Restore functionality in the NetVault: Backup Administrators Guide.
NetVault: Backup
APM for SQL Server Users Guide
87
Appendix A:
A.1.0
Important Considerations
Installation Prerequisites
Backing Up Data
Restoring Data
Using Multiple SQL Server Virtual Servers in the Same Failover Cluster
Installation Requirements
Configuration Requirements
Backup Requirements
Restore Requirements
88
Important: In NVBU terminology, a cluster node is referred to as a Virtual Client.
The references to Virtual Client in the SQL Server APM are basically references
to the Virtual Server in the SQL Server Failover Cluster environment.
The SQL Server APM provides support for SQL Server Failover Clustering. Using
the failover cluster network name, the SQL Server APM is able to identify the
current node that is in control of the SQL Server Virtual Server and target it for
backup.
The installation, configuration, backup, and restore procedures differ slightly in a
SQL Server Failover Cluster environment.
A.2.0
A.2.1
Backing Up Data
Restoring Data
Important Considerations
Unless outlined in the sections that follow, backups and restores performed
with the SQL Server APM of clustered data are the same as those performed
with traditional Microsoft SQL Server data.
Before you continue, BakBone strongly recommends that you review all
cluster-related information provided in the NetVault: Backup Administrators
Guide to understand how the following information works in conjunction with
SQL Server Failover Cluster functionality.
NetVault: Backup
APM for SQL Server Users Guide
A.3.0
A.3.1
89
A.3.2
A.3.2.a
90
Figure A-1:
Virtual client
set up with
same name as
its associated
instance
Only Include Relevant Cluster Nodes in the Virtual Client The hosts that
are to be included in the creation of a Virtual Client should only be those
nodes within the cluster that are relevant to the SQL Server Virtual Server
that is to be backed up and restored.
After the creation of the Virtual Client, the APM is transferred to all designated
cluster nodes and installed locally. You can use the installed SQL Server APM via
the Virtual Client to back up and restore shared data (you can only perform
backups and restores of data established as shared within the cluster).
A.4.0
A.5.0
NetVault: Backup
APM for SQL Server Users Guide
91
4. Right-click the All Instances node, and select Configure from the pop-up
menu.
5. In the window that appears, set the applicable configuration options.
The options available are the same as those covered in Configuring
Authentication Details on page 17.
Important: You must add each cluster instance in the Instances field of the
Configure window. To add an instance, specify the SQL Server cluster name as
VIRTUAL SERVER NAME\INSTANCE NAME.
6. If you anticipate having to create additional backup jobs or modify existing
backup jobs on the secondary node, perform the following steps:
a. Fail over the primary node to the secondary node.
b. Repeat Step 1 through Step 5.
c. Fail back to the primary node.
7. With the applicable options set, click the OK button to confirm the settings
and close this window.
A.6.0
Backing Up Data
Backing up data using the SQL Server APM that has been set up for use in a
Virtual Client is relatively simple. Open the SQL Server APM node on the
Selections tab in the Backup window, and select the SQL Server Virtual Server
(or the items contained within) for inclusion in the backup.
Figure A-2:
Shared
instance
running on
Virtual Client
(SQL Server
Virtual Server)
Note that the instance name displayed in this window is actually the SQL Server
Virtual Server that is established as the Virtual Client during the installation
process (as outlined in Creating a Virtual Client on page 89). If other SQL Server
Virtual Servers are running on this node, those instances will also be displayed
within the SQL Server APM node. Data from these other instances must not be
selected for inclusion in the backup.
Note: When you back up or restore data, make sure that you execute the process
using the Virtual Client and not from one of the nodes. If you open or expand one
of the nodes and drill down through the hierarchy, you might see a dimmed SQL
Server instance identified as local. While the system might use this instance in
92
maintaining log information, you should not be attempting to execute any
processes at this level.
A.7.0
Restoring Data
Restoring a backup of a Virtual Client is conducted in the same manner as a
restore performed to a traditional NVBU Client. All options available for a restore
with the SQL Server APM are also available for Failover Clustering environments,
and data selection is performed in the same way as well. The only difference is
that restorable backups of a Virtual Client are displayed on the Selections tab in
the Restore window under the name of the Virtual Client, not the specific NVBU
Client or node that was active during each backup. When a restore job is initiated,
NVBU will communicate with all member Clients to determine which machine is
currently in control of the failover cluster, and then target this machine for the
restore.
Figure A-3:
Restore
classified
under the
name of the
Virtual Client
even though
individual
client was
used for each
backup
All the instructions offered in this guide in reference to performing a restore can be
used in the recovery of a Virtual Client. For more information on restoring a
SQL Server APM backup, see Restoring Data on page 57.
NetVault: Backup
APM for SQL Server Users Guide
A.8.0
93
A.8.1
Installation Requirements
In this scenario, you must create an NVBU Virtual Client for each SQL Server
Virtual Server. Each Virtual Server will have its own network name and IP address,
and it will be displayed as a separate Virtual Client in NVBU.
Create an Individual NVBU Virtual Client for Each SQL Server Virtual
Server For each SQL Server Virtual Server in the failover cluster, create a
separate Virtual Client. During the creation process, ensure that the following
are included:
Figure A-4:
Creation of
Virtual Client
for first SQL
Server Virtual
Server in
clustered
environment
that contains
Virtual Servers
Copy the nvsqlserver.cfg file before creating the next NVBU Virtual
Client Because creating a new Virtual Client overwrites the configuration
94
file, which includes the Logon Detail information, BakBone recommends that
you perform the following steps:
1. Store a copy of the first nvsqlserver.cfg file in a safe location.
You can find this file in: \\<NVBUinstallDirectory>\config
2. Create the next Virtual Client, store a copy of the its nvsqlserver.cfg
file in a safe location, and repeat this step for every new Virtual Client that
you need to create.
Ensure that the correct network name for the SQL Server Virtual Server
and IP address is provided for each.
3. When you are finished creating Virtual Clients, copy the applicable
information from the [Security-<instanceName>] and [ServerList:List]
sections in each nvsqlserver.cfg file to the same sections in the
nvsqlserver.cfg file on the primary node.
4. If you have browsed the Virtual Client, close and reopen the Backup
window.
A.8.2
Configuration Requirements
After the proper installation steps for this environment have been followed, you
must set configuration options for each individual Virtual Client created.
1. From the NVBU Console, access the Backup window (via either of the
toolbar buttons or by clicking Operations > Backup).
2. On the Selections tab, all the newly created Virtual Clients will be revealed;
locate the one that was set up for the first SQL Server Virtual Server, and
open it.
3. Locate SQL Server APM in the list, and open it.
All the SQL Server Virtual Servers within the failover cluster will be revealed.
4. Locate the first SQL Server Virtual Server in the tree, right-click it, and select
Configure from the pop-up menu.
5. In the window that appears, set the applicable configuration options.
The options available are the same as those covered in Configuring
Authentication Details on page 17.
With the configuration set for the first SQL Server Virtual Server in its
corresponding Virtual Client, it is now necessary to repeat the process for all
remaining SQL Server Virtual Servers.
6. Repeat steps Step 2 through Step 5 for all remaining Virtual Clients, ensuring
that the proper SQL Server Virtual Server is selected for each Virtual Client.
NetVault: Backup
APM for SQL Server Users Guide
A.8.3
95
Backup Requirements
While performing backups in this scenario, it is important to select the correct SQL
Server Virtual Server on the Selections tab. For example, using the same sample
setup illustrated in the configuration section, for a backup of the first SQL Server
Virtual Server, perform the following steps:
1. Open the Virtual Client created for the first SQL Server Virtual Server, which
is SQL_Virtual_Server_1.
2. Locate SQL Server APM in the list, and open it.
3. With the correct SQL Server Virtual Server selected, perform the backup in
the same manner as a traditional SQL Server APM backup (that is, use the
instructions provided in Backing Up Data on page 23).
Important: It is not necessary to select an entire SQL Server Virtual Server when
backing up in this manner. You can select individual databases within. However,
the correct SQL Server Virtual Server must be identified and then opened to
select its individual contents.
A.8.4
Restore Requirements
There are no specific requirements for the restore of data in a multiple instance
environment. Provided the previous three sections were followed correctly, backed
up data of this type should be restored the same as any other SQL Server APM
data.
96
NetVault: Backup
APM for SQL Server Users Guide
97
Appendix B:
TROUBLESHOOTING
B.1.0
Troubleshooting
Troubleshooting
The following table describes commonly encountered problems and possible
solutions. In cases where an error occurs and it is not described in this table, view
the job log to extract the Microsoft SQL Server error number, and then refer to the
relevant Microsoft SQL Server documentation for the resolution.
Symptom
Reason/Symptom
Solution
Transaction
Log backup
failed
Transaction Log backups are not For taking Transaction Log backups,
allowed for Simple Recovery
the recovery model for the database
Model databases.
must be set to Full Recovery Model.
Or clear the Simple Recovery Model
databases.
98
Symptom
Reason/Symptom
Solution
Backup
Completed
with
Warnings
Method 1:
Access the Device Management
window of the NVBU Console, and
perform a scan of the media targeted by
the job (that is, by right-clicking the
target media and selecting Scan from
the pop-up menu). NVBU stores index
information for backup jobs in two
locations: in the NVBU Database and
on the media targeted by the backup.
By performing this scan, the index
information will be added to the NVBU
Database. To verify this, open the
Restore window and locate the specific
job.
If you can browse it and set up a restore
job, the scan process has corrected the
problem.
Method 2:
If the previous method failed, it will be
necessary to re-run the backup job.