NetBackup AdminGuide MSSQL Win
NetBackup AdminGuide MSSQL Win
for Windows
Release 7.1
Symantec NetBackup™ NetBackup for Microsoft SQL
Server Administrator's Guide
The software described in this book is furnished under a license agreement and may be used
only in accordance with the terms of the agreement.
Legal Notice
Copyright © 2011 Symantec Corporation. All rights reserved.
Symantec, the Symantec Logo, and NetBackup are trademarks or registered trademarks of
Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This Symantec product may contain third party software for which Symantec is required
to provide attribution to the third party (“Third Party Programs”). Some of the Third Party
Programs are available under open source or free software licenses. The License Agreement
accompanying the Software does not alter any rights or obligations you may have under
those open source or free software licenses. Please see the Third Party Legal Notice Appendix
to this Documentation or TPIP ReadMe File accompanying this Symantec product for more
information on the Third Party Programs.
Portions of this software are derived from the RSA Data Security, Inc. MD5 Message-Digest
Algorithm. Copyright 1991-92, RSA Data Security, Inc. Created 1991. All rights reserved.
The product described in this document is distributed under licenses restricting its use,
copying, distribution, and decompilation/reverse engineering. No part of this document
may be reproduced in any form by any means without prior written authorization of
Symantec Corporation and its licensors, if any.
THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,
ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO
BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL
OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING,
PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED
IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights in
Commercial Computer Software or Commercial Computer Software Documentation", as
applicable, and any successor regulations. Any use, modification, reproduction release,
performance, display or disclosure of the Licensed Software and Documentation by the U.S.
Government shall be solely in accordance with the terms of this Agreement.
Symantec Corporation
350 Ellis Street
Mountain View, CA 94043
[Link]
Technical Support
Symantec Technical Support maintains support centers globally. Technical
Support’s primary role is to respond to specific queries about product features
and functionality. The Technical Support group also creates content for our online
Knowledge Base. The Technical Support group works collaboratively with the
other functional areas within Symantec to answer your questions in a timely
fashion. For example, the Technical Support group works with Product Engineering
and Symantec Security Response to provide alerting services and virus definition
updates.
Symantec’s maintenance offerings include the following:
■ A range of support options that give you the flexibility to select the right
amount of service for any size organization
■ Telephone and Web-based support that provides rapid response and
up-to-the-minute information
■ Upgrade assurance that delivers automatic software upgrade protection
■ Global support that is available 24 hours a day, 7 days a week
■ Advanced features, including Account Management Services
For information about Symantec’s Maintenance Programs, you can visit our Web
site at the following URL:
[Link]/techsupp/
Customer service
Customer service information is available at the following URL:
[Link]/techsupp/
Customer Service is available to assist with the following types of issues:
■ Questions regarding product licensing or serialization
■ Product registration updates, such as address or name changes
■ General product information (features, language availability, local dealers)
■ Latest information about product updates and upgrades
■ Information about upgrade assurance and maintenance contracts
■ Information about the Symantec Buying Programs
■ Advice about Symantec's technical support options
■ Nontechnical presales questions
■ Issues that are related to CD-ROMs or manuals
Maintenance agreement resources
If you want to contact Symantec regarding an existing maintenance agreement,
please contact the maintenance agreement administration team for your region
as follows:
Symantec Early Warning Solutions These solutions provide early warning of cyber attacks, comprehensive threat
analysis, and countermeasures to prevent attacks before they occur.
Managed Security Services These services remove the burden of managing and monitoring security devices
and events, ensuring rapid response to real threats.
Consulting Services Symantec Consulting Services provide on-site technical expertise from
Symantec and its trusted partners. Symantec Consulting Services offer a variety
of prepackaged and customizable options that include assessment, design,
implementation, monitoring, and management capabilities. Each is focused on
establishing and maintaining the integrity and availability of your IT resources.
Educational Services Educational Services provide a full array of technical training, security
education, security certification, and awareness communication programs.
To access more information about Enterprise services, please visit our Web site
at the following URL:
[Link]
Select your country or language from the site index.
Contents
About NetBackup for SQL Server with database mirroring ................. 177
Configuring NetBackup to support database mirroring ...................... 178
Effect on backup ........................................................................ 178
Effect on recovery ...................................................................... 179
■ Technical overview
Microsoft SQL Server is referred to as SQL Server. NetBackup for Microsoft SQL
Server is referred to as NetBackup for SQL Server.
NetBackup operations
NetBackup for SQL Server includes the following operation features.
■ Full integration with the NetBackup master server and Media Manager.
■ Stream-based backup and restore of SQL Server objects to tape or disk with
SQL Server's high-speed virtual device interface.
■ Snapshot-based backup and restore of SQL Server objects with NetBackup
Snapshot Client methods.
■ Backup and recovery of databases, differentials, files, filegroups, and
transaction logs.
■ Browse capability for SQL Server objects on the local nodes and remote nodes.
■ Support for redirection of SQL Server restores to different locations.
■ Support for multiple SQL Server instances.
■ Client operation monitoring through the NetBackup Client job monitor. Server
monitoring is also available through the NetBackup master.
■ Performance tuning through user control of backup stripes, transfer size, and
buffer usage.
■ Job launch is supported through the following options:
■ Immediate launch through the NetBackup Database Extension GUI
■ Scheduled backup in a backup policy
■ Command line launch
■ Support for instances of SQL Server that are clustered with Microsoft Cluster
Server or Veritas Cluster Server.
■ Recovery of the Microsoft SQL Server images that were backed up with Backup
Exec, through the Backup, Archive, and Restore (NetBackup Client) interface.
■ Support for SQL Server 2005 enhancements: page level validation, page level
recovery, database mirroring, on-line restore, and partial database backup and
restore.
Introduction to NetBackup for SQL Server 17
About NetBackup for SQL features
Term Definition
batch file The script that is used to back up or to restore SQL Server objects. The
database agent performs all operations through a batch file. Batch
files are typically stored in the install_path\dbext\mssql\
directory. For operations executed immediately from the NetBackup
Microsoft SQL Client, a temporary batch file is placed in the following
directory:
\Veritas\Netbackup\dbext\mssql\temp directory
full backup A complete backup of the database that contains all of the data files
and the log file. (Note that a full backup does not truncate the
transaction log.)
differential backup A backup of the changed blocks since the last full backup.
transaction log A backup of the inactive portion of the transaction log. Typically, this
backup portion of the transaction log is truncated after it has been backed up
successfully.
SQL host The host machine on which SQL Server resides. It may also refer to
the virtual name of a cluster that supports a SQL Server installation.
source client A NetBackup term that identifies a host machine. The source client
is commonly the network name of the host. It can also be an IP address
or a cluster name, depending on how it is identified in the client
configuration.
backup stripes A data stream that is used for a backup or a restore of SQL Server
objects. The user specifies the number of stripes for the backup.
NetBackup performs a separate job each stripe that is specified.
Introduction to NetBackup for SQL Server 19
Technical overview
Term Definition
multiplex When more than one backup stripe is written simultaneously to the
same tape.
ODBC An open interface protocol that NetBackup for SQL Server uses to
interact with SQL Server.
Technical overview
This topic describes the NetBackup for SQL Server database agent in more detail.
These details include the following:
■ What are the components of NetBackup for SQL Server?
■ How does NetBackup for SQL Server back up a database?
■ How does NetBackup for SQL Server recover a database?
■ What factors affect the data transfer rate during a SQL Server backup or restore
operation?
■ How does NetBackup resolve SQL Server host and instance names?
graphical user [Link] You use this interface to browse database objects
interface (GUI) and backup images, create backup and restore
scripts, and launch backup and restore operations.
20 Introduction to NetBackup for SQL Server
Technical overview
2 [Link]
1
[Link] NetBackup
server
4 [Link]
6
3 8 9
5 NetBackup
[Link]
Media Manager
[Link]
SQL Server
DBMS
The following interactions occur between NetBackup for SQL Server and other
software components:
■ Every backup or restore operation is initiated through [Link], in one
of the following ways:
■ Scheduled backups
Introduction to NetBackup for SQL Server 21
Technical overview
The NetBackup scheduler calls bphdb (1), which calls dbbackex (2).
■ GUI-initiated backups
[Link] invokes [Link] (3).
■ Command line
[Link] is invoked directly from a command line or third-party tool.
backup image. If there are multiple stripes, then the metadata is associated with
the first backup image. The adjunct stripes are associated with one another based
upon a common naming convention.
What factors affect the data transfer rate during a SQL Server backup
or restore operation?
To optimize your system for SQL Server backups the first step is to tune your
environment for standard backup operations. Details are provided in the NetBackup
Backup Planning and Performance Tuning Guide. With this information as a
background, you still must adjust several things specific to SQL Server. Note that
some of the following factors are only applicable to SQL Server stream-based
operations and have no affect on snapshot backups or restores. A detailed
description of how to make these adjustments is available.
See “Performance factors” on page 51.
The following factors affect the data transfer rate during a SQL Server backup or
restore operation.
Introduction to NetBackup for SQL Server 23
Technical overview
MAXTRANSFERSIZE (stream-based only) The size that SQL Server uses for
transferring data. Among the SQL Server-specific factors,
MAXTRANSFERSIZE has the greatest overall potential for
optimizing transfer rates. In general, improved performance
correlates directly with an increased MAXTRANSFERSIZE
value.
NUMBER OF BUFFERS PER (stream-based only) Setting this factor to a value greater
STRIPE than one enables multi-buffer during data transfer.
Multi-buffer prevents short-term producer-consumer
imbalances during a backup or restore operation. Although
you can set the number of buffers as high as 32, normally
a value of 2 or 3 is sufficient.
NUMBER OF STRIPES You can improve performance if you increase the number
of stripes that you use to back up a SQL Server object. You
must meet the following requirements:
How does NetBackup resolve SQL Server host and instance names?
Normally SQL Server identifies its installations with a combination that includes
the name of the host on which the installation resides plus an instance name. If
you omit the instance name then NetBackup assumes that the installation is the
default installation on the host. For example, a single host may contain several
SQL Server installations, such as, TIGER, TIGER\ACCOUNTING, and
TIGER\WAREHOUSE. However, a clustered instance of SQL Server resides jointly
on multiple hosts and is identified with a virtual name.
Backups for a host are cataloged under the client name that is specified in the
client properties for that host. Ordinarily, the client name is the same as the host
name on which SQL Server resides. Normally, this name is the host's NetBIOS
name (such as TIGER). However, some backup administrators prefer to identify
the client to NetBackup in other ways. For example, an administrator might use
the IP name (for example, [Link]) or the fully qualified domain name
([Link]). Or, an administrator might use an alternate network
interface that is attached to the host ([Link]). For clustered SQL
instances, the client name is the virtual SQL Server name that is used for the
virtual SQL Server installation.
In most cases when you browse for backup images using the NetBackup Microsoft
SQL Client, you only need to specify the SQL Server host name. Specify this name
in the Backup History Options dialog box.
NetBackup then displays the backup images for all of the instances on that host.
However, to ensure that NetBackup displays the backup images you want, consider
the following special cases:
■ Retrieval of backups on a network interface not having the same name as the
host name (such as tiger1 or [Link]).
In this case, the backup images are stored under the network interface name
and not the NetBIOS name. To retrieve these images, you should specify the
host name in the SQL Host field and the network interface name in the Source
Client field.
SQL Host: TIGER
Source Client: TIGER1
■ Retrieving backups from a UNIX (or Linux) server.
This scenario may present a problem because UNIX names are case sensitive,
whereas Windows names are not. In this case, NetBackup tries to retrieve the
backup images by specifying the client name with all upper case characters
or all lower case characters. If the UNIX client name has mixed uppercase and
lowercase characters, you must provide the client name in the Source Client
field.
SQL Host: TIGER
Introduction to NetBackup for SQL Server 25
Technical overview
■ Verifying the operating system and platform compatibility for NetBackup for
SQL Server
■ NetBackup server and client software requirements for NetBackup for SQL
Server
■ SQL Server server software requirements for NetBackup for SQL Server
■ About support for Microsoft Cluster server (MSCS) clusters with NetBackup
for SQL
■ About support for Veritas Cluster Server (VCS) clusters with NetBackup for
SQL
■ Configuration and licensing requirements for NetBackup for SQL Server with
Snapshot Client
Step 1 Verify the installation prerequisites. See “Verifying the operating system and platform
compatibility for NetBackup for SQL Server” on page 28.
Step 2 Add the license key for NetBackup for See “Adding the NetBackup for SQL Server license key”
SQL Server. on page 31.
Table 2-2 Maximum failover nodes and virtual servers allowed in an MSCS
maximum failover 4 8 XX
nodes allowed,
32-bit systems
maximum failover - 4 XX
nodes allowed,
64-bit systems
maximum virtual 24 24 XX
servers allowed
If SQL Server shares a cluster with a virtual NetBackup server, then SQL Server
and the NetBackup server may be placed in the same group. The SQL Server and
the NetBackup server must have different IP and network names.
To add a NetBackup for SQL Server license key in the NetBackup Administration
Console
1 On the master server, open the NetBackup Administration Console.
2 Choose Help > License Keys.
3 Click the New icon.
4 Type the license key and click Add.
Chapter 3
Configuring NetBackup for
SQL Server
This chapter includes the following topics:
■ Configuring the Maximum jobs per client for NetBackup for SQL Server
■ Performance factors
number_of_streams The number of backup streams between the database server and
NetBackup. If striping is not used, each separate stream starts a new
backup job on the client. If striping is used, each new job uses one
stream per stripe.
number_of_policies The number of policies of any type that can back up this client at the
same time. This number can be greater than one. For example, a client
can be in two policies in order to back up two different databases.
These backup windows can overlap.
Configuring NetBackup for SQL Server 35
About configuring a backup policy for an SQL Server database
11 When you have added all the schedules, clients, and backup selections you
need, click OK.
Table 3-1 Policy attribute descriptions for NetBackup for SQL Server policies
Attribute Description
Policy type Determines the types of clients that can be in the policy. In some cases the policy type
determines the types of backups that NetBackup can perform on those clients. To use the
SQL Server database agent, you must define at least one policy of type that is MS-SQL-Server.
Keyword phrase Although you can create a keyword phrase for MS-SQL-Server policies, NetBackup for SQL
Server does not record this information with the backup image.
Table 3-2 Example settings for an NetBackup for SQL Server Application
Backup schedule
Retention 2 weeks
00:08:00 - 22:00:00
Table 3-3 Example settings for a NetBackup for SQL Server automatic backup
schedule
Retention 2 weeks
Property Description
Type of backup Specifies the type of backup that this schedule controls. The selection list shows only the
backup types that apply to the policy you want to configure.
See “About the types of NetBackup for SQL Server backups” on page 40.
40 Configuring NetBackup for SQL Server
About configuring a backup policy for an SQL Server database
Property Description
Schedule type You can schedule a backup in one of the following ways:
■ Frequency
This setting is used only for scheduled backups. It is not used for user-directed backups.
Frequency specifies the period of time that can elapse until the next backup or archive
operation begins on this schedule. For example, assume that the frequency is seven
days and a successful backup occurs on Wednesday. The next full backup does not
occur until the following Wednesday. Typically, incremental backups have a shorter
frequency than full backups.
■ Calendar
This setting is used only for scheduled backups. It is not used for user-directed backups.
The Calendar option allows you to schedule backup operations that are based on specific
dates, recurring week days, or recurring days of the month.
Retention The retention period for an Application Backup schedule refers to the length of time that
NetBackup keeps backup images (stream-based backups). The retention period for an
automatic schedule controls how long NetBackup keeps records of when scheduled backups
occurred (proxy backups). For example, if your database is backed up once every Sunday
morning, you should select a retention period of at least 2 weeks.
The retention period is affected by the type of schedule you select, as follows:
■ Frequency-based scheduling
Set a retention period that is longer than the frequency setting for the schedule. For
example, if the frequency setting is set to one week, set the retention period to be more
than one week. The NetBackup scheduler compares the latest record of the automatic
backup schedule to the frequency of that automatic backup schedule to determine
whether a backup is due. This means that if you set the retention period to expire the
record too early, the scheduled backup frequency is unpredictable. However, if you set
the retention period to be longer than necessary, the NetBackup catalog accumulates
unnecessary records.
■ Calendar-based scheduling
The retention period setting is not significant for calendar-based scheduling.
Multiple copies If you want to specify multiple copies of a backup for the policy, configure Multiple copies
on the Application Backup schedule.
Automatic Backup An Automatic Backup schedule specifies the dates and times for
NetBackup to automatically start backups. NetBackup runs the
scripts in the order that they appear in the file list. If there is more
than one client in the policy, the scripts are run on each client.
Note: Specify the correct batch file names in the backup selections list to prevent
an error or possibly a wrong operation. Make sure that the batch file resides on
the client before you try to add it to the backup selections list.
To add batch files to the backup selections list from the Java interface
1 Open the Policy dialog box.
To access the Policy dialog box, double-click the policy name in the Policies
list in the NetBackup Administration Console.
2 Click the Backup Selections tab.
3 Click New.
4 Specify the names of the batch files that you want NetBackup to use by doing
the following:
Configuring NetBackup for SQL Server 43
About configuring a backup policy for an SQL Server database
■ In the Script box, type the full path name of a batch file on the client.
For example, a path name for a batch file that backs up a database may
be:
install_path\NetBackup\DbExt\Mssql\[Link]
5 Click OK.
To add batch files to the backup selections list from the Windows interface
1 In the Policy dialog box, click the Backup Selections tab.
To access the Policy dialog box, double-click the policy name in the Policies
list in the NetBackup Administration Console.
2 Click New.
3 Specify the names of the batch files that you want NetBackup to use.
Use one of the following methods:
■ Type the full path name of the batch file on the client.
For example, a path name for a batch file that backs up a database may
be:
install_path\NetBackup\DbExt\Mssql\[Link]
4 Click OK.
44 Configuring NetBackup for SQL Server
Testing configuration settings for NetBackup for SQL Server
3 Set Maximum streams per drive to the number of stripes that you plan to
use.
4 In the Backup Microsoft SQL Server Objects dialog box, select a Stripes
setting equal to the number of stripes that you want to use.
In the following procedure, the NetBackup client machine that backs up SQL
Server is SQLHOST. The private interface that is used to back up SQLHOST is
SQLHOST-NB.
To configure a policy for a multi-NIC
1 Open the NetBackup Administration Console.
2 Create a new policy or open an existing policy.
3 In the Clients list for the policy, add a new client.
Specify the Client name as the private interface name. For example,
SQLHOST-NB.
Adding the permissions that allow for browsing of backups across the
private interface
The administrator can enable all clients or single clients to browse and restore
backups that are performed over the multi-nic connection.
To allow all clients to browse for backups and perform restores across the private
interface
◆ Add the empty file NB_INSTALL\db\altnames\[Link] on the master
server.
This option allows any NetBackup client to browse the backups the SQL Server
host machine makes.
To allow a single client to browse for backups and perform restores across the
private interface
◆ Add the empty file, NB_INSTALL\db\altnames\SQLHOST on the master server.
This configuration only allows the SQL Server host machine, SQLHOST, to
access the backups the master server manages.
Set the public interface name the NetBackup Microsoft SQL Client interface,
in the "SQL Server connection properties" dialog box.
If you select integrated security, then SQL Server ignores the user ID and password
that you provided in the SQL Server connection properties dialog box of the
Configuring NetBackup for SQL Server 49
About setting the SQL Server logon for scheduled operations
HKEY_CURRENT_USER\SOFTWARE\VERITAS\NETBACKUP\NetBackup for
Microsoft SQL Server\
To perform an operation with standard SQL Server security, NetBackup for SQL
Server looks up the SQL Server user ID and password from the registry.
Note: Since NetBackup for SQL Server does back up and restore commands and
issues select statements against the master database, review the SQL Server user
documentation to determine exactly what privileges are required by the user
accounts that you establish for NetBackup for SQL Server.
Note: If your site does not place any SQL Server security restrictions on the right
to back up databases then you do not need to authorize schedule operations or
configure standard SQL Server security.
50 Configuring NetBackup for SQL Server
Authorizing scheduled operations (for sites with SQL Server security restrictions)
Note: If your site does not place SQL Server security restrictions on the right to
back up databases, authorization of scheduled operations is not needed.
To authorize scheduled operations for a site with SQL Server security restrictions
1 If you use standard SQL Server security, first map a Windows account to a
standard SQL Server user ID.
See “Mapping a Windows account to a standard SQL Server user ID”
on page 51.
2 Open the Windows Services application.
3 Double-click the NetBackup Client Service entry.
4 Click the Log On tab.
5 Select This account.
6 Type the name of the account, or browse for and select an account.
7 Type the password and the password confirmation.
If you later change the password, you must also indicate the new password
for the NetBackup Client Service, then restart the NetBackup Client Service.
If you do not indicate the new password, NetBackup scheduled backup
operations fail.
8 Log on to Windows with the Windows account selected in step 6.
9 Select the SQL host and instance.
See “Selecting the SQL host and instance” on page 72.
The database logon parameters are used for the SQL Server backups that the
NetBackup scheduler launches.
10 Stop and restart the NetBackup Client Service from the service dialog box.
Configuring NetBackup for SQL Server 51
Mapping a Windows account to a standard SQL Server user ID
Note: If your site does not place SQL Server security restrictions on the right to
back up databases, you do not need to perform this procedure.
Performance factors
Your hardware environment and the settings in SQL Server, the NetBackup master
server, and NetBackup for SQL Server, can all influence the backup performance.
This topic discusses the most prominent factors in SQL Server and NetBackup for
SQL Server. The availability of buffer space has a definite influence on how fast
backups run.
MAXTRANSFERSIZE
The MAXTRANSFERSIZE parameter can be set for each backup or restore
operation. It ranges in size from 64 kilobytes to 4 MB. The default is 64 kilobytes.
MAXTRANSFERSIZE is the buffer size used by SQL Server for reading and writing
backup images. Generally, you can get better SQL Server performance by using a
larger value.
Set the MAXTRANSFERSIZE for your NetBackup for SQL Server session by
choosing File > Set NetBackup client properties or add this parameter to batch
file.
See “Using batch files” on page 105.
BLOCKSIZE
The BLOCKSIZE parameter can be set for each backup operation. For restores,
NetBackup for SQL Server automatically chooses the same size that you backed
up with. BLOCKSIZE ranges from 512 bytes to 64 kilobytes. The default is 512
bytes. BLOCKSIZE is the incremental size that SQL Server uses for reading and
writing backup images.
Set the BLOCKSIZE for your NetBackup for SQL Server session using the NetBackup
client properties dialog box. Otherwise, you can use the BLOCKSIZE parameter
to set this value when you create a batch file manually.
See “Using batch files” on page 105.
Backup stripes
You can divide the backup operation into multiple concurrent streams. This
configuration applies in any situation in which SQL Server dumps data faster
than your tape drive is capable of writing. NetBackup does supports multiplexing
many stripes to the same drive. Though you generally realize performance gains
only if you use the same number of tape drives as streams.
To divide a backup operation into multiple stripes, modify the Stripes value. This
value is in the Backup Microsoft SQL Server objects dialog box of the Microsoft
SQL Client interface.
The default NetBackup buffer size is 64 kilobytes, but this value can be
overridden in the following settings:
install_path\Netbackup\db\config\SIZE_DATA_BUFFERS (for tape backups),
or,
install_path\Netbackup\db\config\SIZE_DATA_BUFFERS_DISK (for disk
backups)
You can set the SQL Server blocksize either in the NetBackup client properties
dialog box of the NetBackup Database Extension GUI. Or you can adjust it
directly using the BLOCKSIZE option in your batch file.
■ NetBackup for SQL Server must be started with the same account as the
NetBackup Client Service.
The backups that are initiated from an automatic backup policy are started
with the NetBackup Client Service so the same account is already in use.
However, you can start an SQL Server backup through NetBackup for SQL
Server or through dbbackex. Then your logon account must be the same as
the NetBackup Client Service account. Then your backups can be candidates
for the alternate buffer method.
Page verification
With SQL Server 2005 or later, you can choose to perform page verification before
you perform a backup or restore. When this option is enabled, it imposes a
performance penalty on a backup or restore operation.
16:33:26 [1208,2348] <16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return
code <-1>, SQL State <37000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL
Server]Database 'Mumbo' is in warm-standby state (set by executing RESTORE WITH
STANDBY) and cannot be backed up until the entire load sequence is completed.>
56 Configuring NetBackup for SQL Server
Backing up SQL Server in an environment with log shipping
Chapter 4
Backup and recovery
concepts
This chapter includes the following topics:
■ Overview
■ Reducing backup size and time by using read-only filegroups (SQL Server 2005
or later)
■ Recovery factors
Overview
A SQL Server instance is created on a Windows host by installing Microsoft SQL
Server. You can install multiple instances on a single host including a default
instance and multiple named instances. You can select the database instance that
you want to browse and back up. Select File > Set SQL Server connection
properties.
58 Backup and recovery concepts
Overview
msdb The Microsoft SQL Agent uses the msdb for schedules, alerts, and for
recording the backup history. All types of backups can be performed
on it, providing that it has the full or bulk-load recovery option set.
Model The model database serves as a template for new databases when the
Create Database statement is executed. All types of backups can be
performed on it, providing that it has the full or bulk-load recovery
option set.
tempdb The tempdb is for the temporary databases that applications use. It
cannot be backed up and does not appear in the NetBackup for SQL
Server backup browser.
Database backups
The following types of backup operations can be performed on databases:
Full The database, including all of its component files are backed up as a
single image. The log file is included in a full database backup.
Note: The transaction log is not automatically truncated following a
full backup. Thus a common practice to preserve disk space is to
manually truncate the transaction log following a successful full
backup.
Differential All of the changes since the last full are backed up to a single image.
Backup and recovery concepts 59
Overview
Transaction log Transaction log backups are only available for the full and bulk-load
recovery options. In this operation, the inactive portion of the
transaction log is backed up. Four options are available when you
select transaction log backup:
Filegroup backups
In addition to database backups, you can use separate images to back up the logical
filegroups and files that comprise databases.
Filegroups can be backed up in the following ways:
Filegroup Backups A backup can be created from a single filegroup. Scripts for filegroup
backups are created when you select individual filegroups in the object
browser of the backup database dialog box.
Backup of all a You effectively back up a filegroup when you back up all of the
filegroup’s database files in the filegroup.
database files
Differential backups
Differential backups can be created on the full database as well as all three types
of filegroup backup units as described in the previous section. A differential backup
contains the changes to the contents of the object since the last time that it was
captured in a full backup.
Note: Note that SQL Server does not let you create a differential on a database
file.
use master
CREATE DATABASE MultiFileDB
ON
PRIMARY ( NAME = FileX,
FILENAME = 'd:\mssql\data\[Link]'),
FILEGROUP AltGroup
( NAME = AltGroupFil,
FILENAME = 'd:\mssql\data\[Link]')
GO
use MultiFileDB
CREATE TABLE Table1 (col1 char(10),col2 char(10), col3 char(10)) on AltGroup
go
create unique clustered index index4 on Table1 (col2)
go
Notice in this example, Table1 has been placed in filegroup AltGroup but its index
is placed (by default) in the primary filegroup.
If you do place a table into a different filegroup than one of its indices and use
NetBackup for SQL Server to back it up, you may fail. The following SQL Server
error message is displayed:
backups are performed. Similarly, after you create a database file, you should
back up all of the files in the filegroup to which it belongs.
Note: Immediately back up any filegroup when you change it from read-write
to read-only.
9 This backup is done automatically through the schedule you created in step
3.
10 Or you can manually back up the read-write filegroups.
11 View the read-only backup set.
If necessary, confirm all read-only groups are backed up.
Recovery factors
This section helps you define a recovery plan that is suitable to your application
environment. Much of this information is based on Microsoft’s SQL Server Books
Online. See that resource for a more inclusive discussion.
■ Transaction logs
■ Recovery strategies
■ Backing up the transaction log
■ Differential backups
■ File and filegroup backups
■ Database recovery
■ Staging recovery
Transaction logs
SQL Server maintains a write-ahead transaction log for each database. This log
helps to maintain database updates in cache memory to ensure that data is not
written to disk before it has been committed. Database writes occur as a part of
the checkpoint procedure.
SQL Server determines the checkpoint frequency based upon the "recovery
interval." This interval is a configuration parameter that indicates the maximum
time interval that can be tolerated during a system restart. When checkpoint
occurs the portion of the transaction log that is no longer needed for system
restart becomes inactive and is optionally truncated. The recovery strategy
determines whether the transaction log is truncated or not.
See “Recovery strategies” on page 64.
If the checkpoint procedure does not truncate the transaction log, then it can be
backed up. Then it can be used for point-in-time recovery, failure from disk crash,
or move and copy operations.
64 Backup and recovery concepts
Recovery factors
Recovery strategies
SQL Server provides the following levels for database recovery. Each level has
different implications for both backup performance and for the granularity of
recovery.
These levels are as follows:
Simple With this method the inactive portion of the transaction log cannot
be retained beyond the database checkpoint. This method provides
for minimal usage of log space. However, the database can only be
restored to the last full backup. Transaction log restores, including
point in time recovery and named transaction recovery are not
supported. In addition, maximum performance is provided for bulk
operations, such as (Create Index, Select Into, and Bulk Copy) because
they are not logged.
Full With this method, the inactive portion of the transaction log is retained
until it is truncated, which normally occurs when it is backed up. The
transaction log can then be used to stage a recovery either to a point
in time or to a named transaction. The Full Recovery model provides
maximum recoverability but it uses the most log space and does not
provide maximum performance for bulk operations.
Bulk-Logged This method is identical to the Full Recovery model except that bulk
operations are not logged and thus cannot be recovered.
Differential backups
Unlike the transaction log backup, the differential backup is a backup of the
database. The differential includes all of the changes that were made since the
last full backup. If you made several differential backups since the last full backup,
you only need to restore the last full database, followed by the last differential.
You would not need to restore any of the intermediate differentials.
Differential backups include the following types of backups:
■ Databases differential
■ Individual filegroup differentials
■ Read-write filegroup differentials, i.e., any backups that include differentials
on all the read-write filegroups in a database.
■ Partial differential filegroups, i.e., any backups that include differentials of
only the filegroups that the user selects.
Caution: Microsoft recommends that you do not create more than one type of
differential backup for the same object.
The following factors may lead you to use file and filegroup backups in this type
of environment:
■ Some portions of the database, which may be volatile or mission critical, should
be backed up more frequently than other portions.
■ The database may be so large that the time that is required for a full database
backup cannot fit in the allocated time window. Thus it may be more viable to
do a full backup of one or more files or filegroups on a rotating basis.
■ You may want to optimize on backup volume and recovery speed by placing
some of your data into read-only filegroups.
See “Reducing backup size and time by using read-only filegroups (SQL Server
2005 or later)” on page 62.
In the event of disk failure, you can choose to recover only the failed unit from a
filegroup backup or file backup. You do not have to restore the entire database.
To use filegroup and file backups you must maintain backups of the transaction
log.
For example, to perform a full database restore using filegroups and files, you are
required to restore the following:
■ All of the constituent filegroups and files
■ All of the transaction log segments
These translation logs segments must start from the first component backup
until a point in time following the last component backup.
Database recovery
During the restore process, a database goes into "loading mode" until the restore
command is executed against the database using the "recovery" option. Before
you place the database into recovery mode all of the restore commands will have
been executed using the "Not recovered" option. This way it is possible to continue
to stage additional restore statements to bring the database up to the state you
want. The database becomes usable again after the last restore statement has
been applied the "Recovered" option.
You can choose the recovery option you want when you perform restores.
Staging recovery
NetBackup for SQL Server keeps track of the backups you have performed and
when you performed them. You can display the backup history by opening the
Restore Microsoft SQL Server Objects dialog box.
Backup and recovery concepts 67
Recovery factors
This dialog box depicts all of the SQL Server backup images within the parameters
that you specify. The images appear in a tree-form that is based on the following
backup types:
■ Database
■ Database differential
■ Filegroup
■ Filegroup differential
■ File
■ Read-only filegroups
■ Read-only filegroups differential
■ Partial database
■ Partial database differential
■ Transaction log
When you select a transaction log for restore, NetBackup for SQL Server
automatically searches for a set of images. The images are used to stage a full
database recovery. The recovery set consists of the selected transaction log image
plus additional images which can reconstitute the database to a recovered state.
A recovery set can include a full database image, filegroup and file images, and
differentials images of the database or filegroups. It can include filegroups
contained in partial and read-write images or filegroup differentials contained in
these images. If the recovery set contains filegroup, file, partial, or read-write
images, then it also contains one or more transaction log images.
A read-write filegroup is also a full recovery set but it only contains backups
(including differential backups) of those filegroups that are writable. Read-only
filegroup images are not required because they are assumed not to have changed.
A read-write filegroup recovery set also contains one or more transaction log
images.
If a full recovery set is found, then all of the composite images are checked. In
addition, Stage full recovery is enabled. To view the full recovery set, right-click
the transaction log, select Properties, and click the Recovery Set tab.
68 Backup and recovery concepts
Recovery factors
Chapter 5
Performing backups and
restores of SQL Server
This chapter includes the following topics:
■ Using dbbackex
■ Backing up databases
■ Backing up and restoring the databases that contain full-text search catalogs
(SQL Server 2005)
■ File checkpointing
Using dbbackex
Execute dbbackex from a Windows MS-DOS with the following command:
file The name of the batch file, which describes the operations you want
to start.
policy The MS-SQL-Server policy type that is used by NetBackup for the
operations that are specified in the batch file.
userid is the SQL Server user ID for logging into the database management
system.
password is the SQL Server password for logging into the database management
system.
server is the name of the host for the NetBackup master server that you want
to back up to or restore from.
If this parameter is omitted, then the client uses the default server
according to the Windows NetBackup client configuration. See the
NetBackup Backup, Archive, and Restore Getting Started Guide for
more information.
-np tells dbbackex not to create a message box to indicate the operation
status when it has completed.
Otherwise, a message appears when dbbackex completes. That
message tells you how many operations in the batch file were
successful and how many failed.
Note: Any of the options can be delimited with double quotation marks. For
example, use delimiters if the file name contains spaces.
72 Performing backups and restores of SQL Server
Selecting the SQL host and instance
Note: To protect logon passwords for SQL Server, do not use the -u or -pw
parameters. By omitting these parameters, you can force NetBackup for SQL
Server to read the default SQL Server logon data from an encrypted file.
See “Starting the NetBackup SQL Client for the first time” on page 73.
Note: If you use dbbackex through a client-based scheduler, specify the -np option
to ensure that a message box is not generated. However, before you use the
scheduler with dbbackex consider the following. Try the dbbackex syntax on the
console WITHOUT the -np option. Do this to test for the successful completion
of the batch file that you have created for your operation.
3 In the SQL Server connection properties dialog box, from the Host drop-down
list, select the SQL Server host.
You can type a host name if it does not appear in the drop-down list. If you
select a remote host and click Apply, the Host type is shown as "remote".
4 From the Instance drop-down list, select the SQL Server instance.
You can type an instance name if it does not appear in the drop-down list.
You can designate the default instance either by setting the Instance box to
<default> or to empty (not spaces).
5 If the SQL Server host and instance use standard or mixed security, you also
need to set the user ID and password. These items are set in the user ID,
Password, and Reenter password boxes.
6 Click Apply to save your changes.
7 Click Close.
Option Description
Expand database This pane lets you traverse live databases. You can expand the SQL
Server instance to view its databases. Expand each database to view
its filegroups or expand a filegroup to view its files. You can select
any object in this pane to view its constituent objects in the right-hand
pane.
Select database(s) Select the objects that you want to back up from this pane. This pane
for backup from displays the list of constituent database objects of the selected host
instance and instance in the left-hand pane. You can select one or more objects
host\instance (databases) in this pane. (Use Ctrl + click and Shift + click to select
multiple objects.)
■ Full differential
Create a differential backup.
■ Transaction log
Create a transaction log backup. This type of backup is only
available for databases. When you select this type of backup, you
then need to select a backup option from the Transaction log
backup options list.
The following backup types are only available for SQL Server 2005 or
later:
■ Read/write filegroups
Create a backup of read or write filegroups in a database.
Option Description
Transaction log The following options are available when you have chosen a
backup options transaction log backup type:
■ Save
Generate a script that can be started at a later time.
Back up In the right-hand pane, choose one of the following backup options:
■ Selected
Back up only the objects selected.
■ All
Back up all of the objects.
Option Description
NetBackup policy If this host is the NetBackup master server, then this list includes all
active policies of type MS-SQL-Server. You can select one of these
policies or type the name of a policy.
The default is <any>. If you select the default, then NetBackup selects
which MS-SQL-Server policy to use.
Page verification (SQL Server 2005 or later) This option is enabled for objects have a
page verification type that is either torn page detection or checksum.
All of the objects in the right-hand pane must have the proper
verification type.
■ Perform verification
Perform page verification when you run the backup and stop the
backup if a verification error is encountered.
Stripes Set the number of backup stripes that you want SQL Server to create
for your backup. Type a number from 1 to 32.
Backing up databases
This procedure describes how to perform a database backup.
To back up a database
1 Change the host and instance you want to access.
See “Selecting the SQL host and instance” on page 72.
2 Select File > Backup SQL Server objects.
3 In the Backup Microsoft SQL Server Objects dialog box, in the left pane,
select the database instance.
4 In the right pane, select one or more databases that you want to back up.
5 Select the Type of Backup.
Select one of the following:
■ To perform a full backup, select Full backup.
■ To back up the database with the differential option, select Perform
differential backup.
Caution: You must ensure that the entire sequence of transaction logs
generated following any database backup are maintained on the same
NetBackup server. All transaction logs same facility and that none should be
allowed to expire before the others. NetBackup for SQL Server requires that
you follow these guidelines when you plan your backup strategy. Then you
have maximum assistance when you restore your databases.
Back up and truncate Back up the transaction log and remove the inactive
transaction log part of the transaction log.
Back up transaction log but (SQL Server 2000) Backup a transaction log without
don’t truncate it truncating it.
Truncate transaction log, but (SQL Server 2005 or later) Truncate the log without
don't back it up performing a backup.
Backup and restore tail log Back up and recover the tail log from disk.
Note: Backups of read-write filegroups are not supported if you have SQL Express.
SQL Server Express Edition has limited support for recovering from this backup
type.
4 In the right pane, select one or more databases that you want to back up.
5 Select the Type of Backup.
Select one of the following:
■ To perform a full backup of the read-write filegroups, select Read/write
filegroups.
■ To perform a differential backup of the read-write filegroups, select
Differential on read/write filegroups.
Note: Partial backups are not supported if you have SQL Express. SQL Server
Express Edition has limited support for recovering from this backup type.
82 Performing backups and restores of SQL Server
Performing partial backups (SQL Server 2005 or later)
#
# If you wish to include filegroup DBA_FG1 in the partial backup,
# then remove the hash mark that precedes the following line.
#FILEGROUP DBA_FG1
with:
#
# If you wish to include filegroup DBA_FG1 in the partial backup,
# then remove the hash mark that precedes the following line.
FILEGROUP DBA_FG1
SQL Host From this list, select the SQL Server host that you want to
generate a backup history for.
Source Client Specifies the NetBackup client name for the selected client. This
name is the one used in the policy to identify the client.
5 Click OK.
6 Continue with the applicable instructions for how to restore the object(s).
See “Restoring a database backup” on page 88.
See “Staging a full database recovery” on page 89.
See “Restoring filegroup backups” on page 90.
See “Recovering a database from read-write backups” on page 91.
See “Restoring read-only filegroups (SQL Server 2005 or later)” on page 92.
See “Restoring database files” on page 92.
See “Restoring a transaction log image without staging a full recovery”
on page 93.
See “Performing a database move” on page 93.
See “Restoring partial databases (SQL Server 2000)” on page 96.
See “Performing page-level restores (SQL Server 2005 or later)” on page 98.
Option Description
■ Scripting
These scripting options are available for restoring from a
database image.
Option Description
■ Recovery
Specify one of the SQL Server recovery options.
■ Not recovered
Use this option during a restore if additional backup images
must be applied to the database following the current restore.
When you use this option, the database is left in a loading state.
■ Recovered
Select this option when restoring the last image in a restore
sequence. After the recovery operation, the database is ready
for use. If recover database is not performed, the database is
in an intermediate state, and is not usable. If Recovered is
selected when an intermediate backup is applied, you cannot
continue to restore backups; you must restart the restore
operation from the beginning.
■ Standby
Create and maintain a standby during a transaction log and
database restore. This option requires a standby undo log,
which by default is placed in
install_path\NetBackup\logs\SQLStandBy\. The
database is placed in "standby" state following the restore.
86 Performing backups and restores of SQL Server
Restore Microsoft SQL Server Objects field descriptions
Option Description
■ Consistency Check
Select the consistency check to be performed after the restore.
Output from the consistency check is written to the SQL Server
client progress log. You cannot select consistency checking
unless the database is restored to the recovered state. If you
select consistency checking for a staged recovery, then the
check occurs following the last restore.
■ None
Do not perform consistency checking.
■ Check catalog
Check for consistency in and between system tables in the
specified database.
■ Page verification
(SQL Server 2005 or later) These options are available if the
source object was backed up with torn page detection or
checksum verification.
A performance penalty can happen when using page
verification.
Option Description
■ Perform verification
Include page verification in the restore script and stop the
restore if an error is encountered.
Transaction logs This group contains transaction log recovery options. It is enabled
if you select a transaction log backup image.
■ To point in time
Select this option to have the transaction log recovered to a
point in time.
Option Description
■ Save
Generate a script that can be started at a later time.
6 Click Restore.
7 To view the progress of the restore, select File > View status.
4 Select the transaction log image that includes the point in time from which
you want to recover.
90 Performing backups and restores of SQL Server
Restoring filegroup backups
Note: If you attempt to restore a single differential backup without first restoring
the preceding database backup file, SQL Server halts the load process. An error
such as 4305 or 4306 is displayed. If you plan to restore a single differential, then
you are responsible for first restoring the database backup file. You can avoid this
problem by backing up the entire sequence of transaction logs. Also back up the
differential backup and the backup file to the same NetBackup server. Then you
can restore the entire sequence of backup objects.
5 Click Restore.
To view the progress of the restore, select File > View status.
7 Click Restore.
To view the progress of the restore, select File > View status.
Performing backups and restores of SQL Server 93
Restoring a transaction log image without staging a full recovery
6 Click Restore.
7 Indicate a file name and click Save.
8 In the Save Script As dialog box, click Yes to open the template in Notepad.
9 Change the database name in the template to the name of the database to
restore to.
For example, replace:
# Replace the database name in the following line with the name of the database that
you
# want to move to. Also remove the hash mark <#> which precedes the keyword
<DATABASE>.
#
# DATABASE "DatabaseA"
with:
# Replace the database name in the following line with the name of the database that
you
# want to move to. Also remove the hash mark <#> which precedes the keyword
<DATABASE>.
#
DATABASE "DatabaseB"
Performing backups and restores of SQL Server 95
Performing a database move
10 Change the path for the database files that you want to restore.
You must uncomment at least one file. For example, replace:
with:
with:
Note: When you prepare your database design, map logically related database
components such as tables, indexes, and keys to the same filegroup. This design
enables you to use the partial database restore procedure to recover these logically
related components as a single unit.
9 Replace the database name in the template with the name of the target
database of the restore.
For example, replace:
# Replace the database name in the following line with the name of the database that
you
# want as the target of the partial restore. Also remove the hash mark <#> which
precedes
# the keyword <DATABASE>.
#DATABASE "DatabaseA"
with:
# Replace the database name in the following line with the name of the database that
you
# want as the target of the partial restore. Also remove the hash mark <#> which
precedes
# the keyword <DATABASE>.
DATABASE "DatabaseB"
10 To restore a file, indicate a new file path and uncomment the MOVE and TO
lines.
For example, replace:
with:
file. When you detect that page-level restore does not work, you need to use
full database recovery.
■ A maximum of 1000 pages can be recovered from a backup image through a
page-level restore.
#
# Create one or more page restore requests. These use the following format
#PAGE file-id:page-id
with
#
# Create one or more page restore requests. These use the following format
PAGE 1:14
PAGE 1:20
100 Performing backups and restores of SQL Server
Redirecting a restore to a different host
Note: The destination host and instance of a move or restore operation is the one
that you log into. The source (or browse) host and instance for move or restore
operations is designated by using the Backup History Options dialog box, which
comes up automatically when you select File > Restore SQL Server objects.
SQL-instance-install-path\FTData\full-text-catalog-root-directory.
104 Performing backups and restores of SQL Server
Backing up and restoring the databases that contain full-text search catalogs (SQL Server 2005)
For instance, in the previous example, the cats directory for database TWO is
placed into a path such as:
However, when you perform a database move command, you can establish the
path at the location of your choosing.
One additional characteristic of the full-text catalog is its association with a
filegroup. By default, the association is made with the primary filegroup. However,
you can also select a different filegroup for which to make the association.
Backups and restores based on snapshots are affected based on the extra catalog
files that are included in the snapshot.
#
# Replace the full text catalog directory path
# <C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData\HisCatalog>
# with a new directory path. Also remove the hash mark <#> which precedes the keyword
<TO>.
# The target of the MOVE keyword must be "sysft_HisCatalog".
MOVE "sysft_HisCatalog"
#TO "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData\HisCatalog"
#
Modify the target directory path in the template. The name sysft_HisCatalog
is the logical name of the file that contains the full-text directory named
HisCatalog. NetBackup creates this name by prepending the catalog name with
"sysft_".
If you create a batch file manually, use notepad or some other tool that generates
plain text. If your batch file contains any non-English characters save it as Unicode.
* If OBJECTTYPE=
FILE or FILEGROUP.
112 Performing backups and restores of SQL Server
Using batch files
RESTORETYPE is
applicable only to
RESTORE database
operations. If MOVE is
used, then the batch file
should contain a series
of one or more
<MOVE><filegroup>
and <TO><file path>
sequences. If PARTIAL
is used, the sequence for
PARTIAL must specify
all of the filegroups in
the database whose
backup image is
referenced by the
NBIMAGE keyword.
RETRYWAITSECONDS See
RESTARTWAITSECONDS.
If SQLHOST is not
specified in a batch file
operation, then the SQL
Server host is obtained
from HKEY_CURRENT_
USER\Software\
VERITAS\NetBackup\
NetBackup for
Microsoft SQL
Server\
DEFAULT_SQL_HOST. If
SQLINSTANCE is
missing, then the
default SQL Server
instance is assumed for
the SQL Host.
116 Performing backups and restores of SQL Server
Using batch files
If SQLINSTANCE $ALL
is used, then it must
appear in the first
operation of the batch
file. Each operation in
the batch file is
performed for all SQL
Server instances on the
client where the batch
file is executed. Also, it
is not necessary to
specify an SQLHOST or
SQLINSTANCE on any
subsequent operations.
File checkpointing
Use file checkpointing if you need to perform a large backup and want to save
completed work in case the operation fails before it completes. When file
checkpointing is enabled, the database or filegroup is divided into file sets that
are backed up as separate units. The following batch file command initiates file
checkpointing:
MAXRESTARTS integer
The backup operation is split into the number of operations specified by the integer
value, unless the total number of files comprising the database or filegroup
operation is less than that value. In this case, the number of separate operations
is the number of files.
File checkpointing is available for databases and filegroups that are backed up as
streams or with the snapshot option. However, the following restrictions exist:
■ The backup object must contain at least two files.
■ The recovery model of the database cannot be "simple".
120 Performing backups and restores of SQL Server
Automatic retry of unsuccessful backups
■ If the snapshot option is used for backup, then the method cannot be instant
recovery. However, file checkpointing that uses instant recovery to a storage
unit is supported.
■ The batch file that you use for a file checkpoint backup can specify only one
database or filegroup. You cannot use the "'backup database $ALL" option.
When you use file checkpointing for backing up a full database, NetBackup for
SQL Server automatically splits the database into fileset components. Recovering
the database from components requires a restore of the transaction log. NetBackup
for SQL Server automatically includes a backup log directive in the generated
batch file when you choose file checkpointing from the backup dialog box.
Automatic retry NetBackup for SQL Server keeps track of the unsuccessful backups
that may have resulted from the execution of a batch file. When the
initial backup attempt is complete, the agent rewrites the batch file,
including only those operations that failed. The rewritten batch file
is launched automatically.
Manual retry A manual retry is similar to an automatic retry except that NetBackup
does not launch the rewritten batch file. Instead it is written to the
install_path\dbext\mssql\retry\ directory. The user can then
choose when to run the new batch file.
To use automatic retry, add the following line to your batch file.
RESTARTTYPE AUTO
By default, the unsuccessful backups are retried one time automatically after 60
seconds. To change the delay following the unsuccessful attempt, then add the
following to your batch file.
RESTARTWAITSECONDS <integer>
You can also specify the number of retries. Add the following to your batch file.
To use manual retry, add the following line to your batch file.
RESTARTTYPE MANUAL
Performing backups and restores of SQL Server 121
Automatic retry of unsuccessful backups
Retry may also be used with file checkpoints. You can create the batch file so that
any parts of the operation that fail are written to a new batch file that can be
launched either automatically or manually.
See “File checkpointing” on page 119.
You can easily enable file checkpointing with automatic retry in the backup dialog
in the NetBackup for SQL Server graphical user interface. Simply select a single
database (or filegroup), then from the "Resume options for this selection" list,
select Save work and restart at point of failure.
This action creates a batch file that contains the following scripting:
MAXRESTARTSETS 32
RESTARTWAITSECONDS 60
NUMRESTARTS 1
RETRYWAITSECONDS 60
NUMRETRIES 1
These keywords indicates the following things: first, that an automatic retry is
launched after 60 seconds for all of the pieces that failed to get backed up on the
first time. Second, the restart is attempted only one time. You can manually change
either of these parameters.
In addition, you can choose to not have the retry script automatically launched.
Replace the NUMRETRIES command with RETRYTYPE MANUAL.
NUMRETRIES 1
with
RETRYTYPE MANUAL.
When manual retry is enabled, the generated batch file for the components that
were unsuccessfully backed up is written to the following folder:
NB_INSTALL\dbext\mssql\temp folder
Note: All of the keyword-value pairs that are described in this topic are only
permitted in the first operation of the batch file.
122 Performing backups and restores of SQL Server
Performing backups and restores of remote SQL Server installations
[Link].~.7.001of003.20060908200234..C
[Link].~.7.002of003.20060908200234..C
[Link].~.7.003of003.20060908200234..C
To create your own batch file to restore a striped object, specify only the first
stripe name with the NBIMAGE keyword. NetBackup for SQL Server finds the
remaining ones automatically. More information is available about the backup
names that are used for SQL Server objects
See “Using bplist to retrieve SQL Server backups” on page 124.
Note: Since Persistent Frozen Image (PFI) policies do not stream the component
files to tape, PFI backups ignore the multistream directive.
With SQL Server backups performed with Snapshot Client, NetBackup identifies
all of the backup streams by the same name, such as:
[Link].~.7.001of003.20061012131132..C
where client is the host machine on which NetBackup for SQL Server resides and
server is the host machine of NetBackup server.
The following example shows how to obtain the list of SQL Server backups that
were backed up from client juneberry to server Cole:
Barbeque.~.7.001of001.20060903108552..C:\
[Link].~.7.001of001.20060907100101..C:\
[Link].~.7.001of001.20060908200234..C:\
Note: The colon and backslash that terminate each line are not part of the backup
name.
Backup names
The backup name is a string that consists of the following components. These
components are separated by a delimiter that is specified by the character that
precedes the "C" at the end of the backup image name.
SQL Server
identifier
Instance 2 Version
Host where SQL
Server resides name1 Object type Database Indicator
name 3
[Link]\[Link].7.001of001.20060902170824.C:
File or filegroup
name Timestamp 6
Blocksize 4 Stripes5
db database
fg filegroup
fil file
3 - The name of the file or filegroup if the object type is a file or filegroup; otherwise
the symbol ~ is used.
4- The blocksize is specified as 256 kilobytes bytes * 2 blocksize.
126 Performing backups and restores of SQL Server
Using bplist to retrieve SQL Server backups
you have added or dropped databases or carried out other operations that may
result in schema definitions.
Note: See the Microsoft SQL Server official documentation for information
on how to use [Link].
2 When the rebuild is complete, restart the SQL Server services if necessary.
Note: The SQL Agent automatically puts the database in single-user mode for
restores of non-clustered databases that are the version SQL Server 2000 or higher.
You need to start SQL Server in single-user mode only if SQL Server is configured
in a cluster.
■ Adding the permissions that allow for browsing of backups across the private
interface in a cluster
■ Add the virtual SQL Server name (VIRTUALSERVER) to the client list.
3 Create a standard backup policy (say, STDPOLICY). Add all physical names
in the cluster to the client list of STDPOLICY.
4 Establish the permissions settings as follows for a redirected restore to a
different client.
On the master server, do one of the following:
■ Create a install_path\NetBackup\db\altnames\No [Link].
■ Create each of the files, install_path\NetBackup\db\altnames\NODEA,
install_path\NetBackup\db\altnames\NODEB.
4 In the NetBackup Policy field, enter the name of the MS-SQL Server policy
(VIRTSQLPOLICY).This policy was created for specifying storage attributes
for the virtual SQL Server backup.
5 Click OK.
■ The private virtual name of the SQL Server (for example, VIRTSQL-NB).
To allow a single client to browse for backups and perform restores across the
private interface in a cluster
◆ Add the empty file, NB_INSTALL\db\altnames\SQLHOST on the master server.
This configuration only allows the SQL Server host machine, SQLHOST, to
access the backups the master server manages.
Specifying the private name of the client for a SQL Server in a cluster
with a multi-NIC
This topic describes how to specify the private name of the client when you want
to configure backups of a client. Configuration is done in a multi-NIC environment
where SQL Server is clustered.
To specify the private name of the client for a SQL Server in a cluster with a
multi-NIC
1 Open the Backup, Archive, and Restore interface.
2 Select File > NetBackup Client Properties.
3 Click the General tab.
4 In the Client name box, specify the private name of the client.
For example, the private name for the machine SQLHOST1 would be
SQLHOST1-NB. The private name for the machine SQLHOST2 would be
SQLHOST2-NB.
and edit a batch file for backups so that it includes the private virtual SQL Server
name.
To perform backups in a cluster with a multi-NIC connection
1 On either SQLHOST1 or SQLHOST2, open the NetBackup for SQL Server
interface.
2 Select File > Set SQL Server connection properties.
3 In the Host box, specify the public name of the virtual SQL Server host
(VIRTSQL).
4 Click Apply and Close.
5 Select File > Backup SQL Server objects.
6 Select the databases to back up.
7 Select the backup options.
Note: Do not attempt to perform an immediate backup from the backup dialog
box. The generated batch files must be modified before they can be run
successfully.
OPERATION BACKUP
DATABASE "ACCOUNTING"
SQLHOST "VIRTSQL"
NBSERVER "THOR"
BROWSECLIENT "VIRTSQL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
ENDOPER TRUE
138 Using NetBackup for SQL Server with clustering solutions
Performing restores in a cluster with a multi-NIC connection
10 Change the line value associated with the BROWSECLIENT from the public
virtual SQL Server name to the private name.
OPERATION BACK
UPDATABASE "ACCOUNTING"
SQLHOST "VIRTSQL"
NBSERVER "THOR"
BROWSECLIENT "VIRTSQL-NB"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
ENDOPER TRUE
11 Place the modified batch file on both nodes in the cluster so that it is available
for scheduled backups. Backups are done regardless of which node is active
when a backup is initiated.
SQL Host Specify the public name of the virtual SQL Server (VIRTSQL).
Source Client Specify the private name of the virtual SQL Server (VIRTSQL-NB).
7 Click OK.
8 Select the databases to restore.
Note: Do not try to perform an immediate restore from the restore dialog box.
The generated batch files must be modified before they can be run
successfully.
OPERATION RESTORE
OBJECTTYPE DATABASE
DATABASE "ACCOUNTING"
NBIMAGE "[Link].~.7.001of001.20040306111309..C"
SQLHOST "VIRTSQL"
NBSERVER "THOR"
BROWSECLIENT "VIRTSQL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
140 Using NetBackup for SQL Server with clustering solutions
Performing restores in a cluster with a multi-NIC connection
12 Change the line value that is associated with BROWSECLIENT from the public
virtual SQL Server name to the private name.
OPERATION RESTORE
OBJECTTYPE DATABASE
DATABASE "ACCOUNTING"
NBIMAGE "[Link].~.7.001of001.20040306111309..C"
SQLHOST "VIRTSQL"
NBSERVER "THOR"
BROWSECLIENT "VIRTSQL-NB"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
a snapshot (or frozen image) copy is created. The state-change in which the freeze
is lifted is referred to as database thaw.
The role of NetBackup for management of the backup images that were taken
from snapshots is common for both Snapshot Client and standard database
backups. NetBackup provides an identical view for cataloging and browsing images
and for accessing them in restore operations. It is transparent whether standard
database backups or the Snapshot Client created the images. Operational
experience is similar whether the user backs up and restores standard SQL Server
database images or any images that were taken from snapshots. However, there
are fundamental differences in the technologies.
Snapshot Client backups, in contrast to standard backups, are file-based.
NetBackup determines the file list that constitutes the SQL Server object and
backs it up asynchronously with respect to SQL Server. On the other hand, standard
backups are stream-based, which means that SQL Server provides data to
NetBackup buffer-by-buffer that constitutes a backup stream. The key role of SQL
Server in file-based backups is to provide the mechanism to freeze database
activity. NetBackup can then invoke a so-called snapshot provider that creates
volume snapshots of the files.
The snapshot method is the software component or hardware component that
creates the snapshot image of the files. The method may be a Symantec product
such as Volume Manager or an operating system component such as VSS (Microsoft
Virtual Shadow Service). Ia may also be a third-party product. Snapshot methods
use a variety of technologies such as copy-on-write, split-mirror, or RAID. They
also provide several competing methodologies. These technologies may have
different consequences for recovery speed: effect of the backup on the client
processor, and the cost of specialized disks or processing units.
Snapshot backup A snapshot is a disk image of the client's data that is made
almost instantaneously. NetBackup backs up the data from the
snapshot image, not directly from the client’s primary data.
Persistent Frozen Image This feature is similar to the Instant recovery feature except
with Backup to Tape that a backup copy is made to a tape storage unit. If the image
is needed for a restore, then a disk copy is used unless it has
been swapped out due to storage contention. In this case, the
restore falls back to the tape copy of the backup.
Off-host alternate client An off-host alternate client backup shifts the burden of backup
backup processing to an alternate client. This action reduces the effect
on the client's resources ordinarily caused by a local backup.
The backup agent reads the data from the SharedDisk and writes
it to storage.
Although all of these features are provided through Snapshot Client support for
SQL Server, not all methods are supported. For information on how to select a
method, see the NetBackup Snapshot Client Administrator’s Guide. For a description
of snapshot methods available for use with NetBackup for SQL Server, see the
supported platforms matrix on the Symantec Support Web site.
Limitations
Due to SQL Server limitations certain objects cannot be backed up by snapshots.
These are database differentials, filegroup differentials, and transaction logs. If
a Snapshot Client policy is selected to back up one of these object types, then
NetBackup performs a stream-based backup. NetBackup uses the storage unit
that is provided in the policy configuration. If a storage unit is not provided, then
NetBackup uses the default storage unit for the server.
What is backed up
The database administrator works exclusively with logical objects, such as
databases and filegroups. However, it is useful to understand the differences
between file- and stream-based backups in terms of the data content that is
144 Using NetBackup for SQL Server with Snapshot Client
How SQL Server operations use Snapshot Client
archived. For stream-based backups, NetBackup captures the data stream content
that is provided by SQL Server. If the user has specified multiple streams, then
SQL Server opens multiple streams that NetBackup catalogs as separate images.
For file-based backups, NetBackup creates a file list that consists of all the physical
files that constitute the object. This file list is supplied to the Snapshot Client,
which is responsible for snapshot creation. If multiple streams are specified, then
NetBackup divides the file list into sub-lists. Each sub-list is backed up separately
and constitutes a separate image. Users may notice that if multiple streams are
specified for a file-based backup and if the number of streams exceeds the number
of component files, then the number of file-based streams does not exceed the
number of files. With stream-based SQL Server backups, SQL Server always creates
exactly the number of streams that the end user specifies.
The file list that is used to back up a SQL Server database consists of the physical
files that constitute the primary filegroup. The file list also consists of any
secondary filegroups, and the transaction log. Typically, these can be identified
respectively by their name extensions, which are .mdf, .ndf, and .ldf. The file
list for a filegroup backup consists of the physical files that belong to the filegroup.
And, finally, the file list for a file object backup consists of a single physical file.
This file is the file that maps to the SQL Server file object.
Performance considerations
When a physical file is backed up with the Snapshot Client, the backup consists
of the entire extent. This backup contrasts with stream-based SQL Server backups
where only the actual data content of the objects are archived. If you intend to
use snapshot technology to back up SQL Server, you may want to use the SQL
Server dynamic file allocation. This configuration reduces the likelihood that any
of the component files contain large areas of empty space.
Another consideration for choosing between file- and stream-based backups
concerns how SQL Server zeroes the target disk area before a stream-based restore.
In some cases, the time almost equals the total disk-copy time for restore. For
Snapshot Client restores, however, disk zeroing is not done so the total recovery
time can be substantially less.
Review the other considerations for SQL Server disk initialization.
See “Instant data file initialization” on page 54.
Figure 8-1 Backup method that appears in the backup image properties
Grouped backups
The SQL Server agent provides a method in which multiple databases can be
quiesced together and split-off to form a single snapshot. This method minimizes
146 Using NetBackup for SQL Server with Snapshot Client
How SQL Server operations use Snapshot Client
the usage of system resources if the databases exist on a single volume. This
happens because the aggregation of constituent files uses one snapshot volume
instead of one per database. The method for aggregating database Snapshot Client
backups is called backup "grouping".
When databases are backed up in a group, all of the databases are quiesced
simultaneously. The constituent files of all databases are backed up to a single
storage image under the same backup ID. This means that an "import and copy"
procedure would use only one image to export all of the database backups in the
group.
Requirements
Certain requirements must be met for a grouped backup to be performed. If any
of the following requirements are not met, a standard backup is performed:
■ All backup operations must be full backups. Differential backups are not
supported.
■ The master database cannot be included in a grouped backup.
■ The same policy must be specified for each backup operation in the group.
■ The same NetBackup server must be specified for each backup operation in
the group.
The simplest way to use grouped backup is to select multiple databases using the
Backup Microsoft SQL Server Objects dialog box. If the conditions described apply,
then the selected databases are backed up as a group.
Figure 8-3 Batch file shown in the progress report for the restore operation
However, with persistent frozen image backups, it may not be feasible to retain
the daily full backup after the next full backup has been created. If a point in time
restore is required before the latest backup, the differentials can effectively be
based on the backups that no longer exist. The only alternative would be to recover
based upon the last full backup that had been retained. You would have to use a
potentially long sequence of transaction log images.
To resolve this issue, NetBackup lets you create the SQL Server Snapshot Client
backups that are not recorded in the msdb. To create these backups in SQL Server
2005 or later, NetBackup uses the copy-only backup feature, which allows the
backups to be created as out-of-band. In SQL Server 2000, since copy-only backups
are not available, NetBackup allows these backups to be cloaked. This action
creates the backup of which SQL Server is not aware.
In SQL Server 2000, NetBackup uses cloaking to provide SQL Server with an
"unsuccessful" status. This action inhibits SQL Server from recording that the
backup had occurred. Due to the unsuccessful status, the job line of the MSSQL
progress monitor shows a -1 status. However the NetBackup server job monitor
registers the job as successful. NetBackup places information in its catalog to
denote when a backup has been cloaked and uses this information to determine
full database recovery paths. In SQL Server 2005 or later, cloaking is not needed
because SQL Server does not record the backup, but declares it as copy-only.
Day 1
150 Using NetBackup for SQL Server with Snapshot Client
How SQL Server operations use Snapshot Client
12:00 A.M. X X
2:00 A.M. X
4:00 A.M. X X
6:00 A.M. X X
8:00 A.M. X
10:00 A.M. X X
12:00 P.M. X X
2:00 P.M. X
4:00 P.M. X X
6:00 P.M. X X
8:00 P.M. X
10:00 P.M. X X
Day 2
12:00 A.M. X X
2:00 A.M. X
Under this schedule, full backups are performed every six hours. If a failure occurs,
and is detected immediately, then you can restore the last full backup. Then you
can replay, on average, three hours of transaction logs to achieve recovery.
However, if a failure is not detected until after the next full backup, then there
are not any full backups available. There are none available since 12:00 A.M. on
day 1. The persistent frozen image backups are cloaked. However, the differential
backups would each be cumulative with respect to the last full backup that is
non-cloaked.
In this example, suppose that an error occurs at 11:30 P.M. on day 1. But the error
is not detected until 12:30 A.M. on day 2, after the 12:00 A.M. full backup. Since
the 6:00 P.M. full backup no longer exists it would be necessary to begin the
recovery with the backup taken at 12:00 A.M. on day 1. However, since all of the
Using NetBackup for SQL Server with Snapshot Client 151
How SQL Server operations use Snapshot Client
full backups were cloaked since then, the differential backup from 10:00 P.M.
would be cumulative with respect to that backup. The recovery sequence would
be restore the 12:00 A.M. day 1 backup. Restore the 10:00 P.M. differential backup.
Restore the 1½ hours of transaction log backups.
If you use copy-only or cloaked backups, then the copy-only or cloaking attribute
appears in the properties for the snapshot backup image. Differential backups
are automatically associated with the correct full backup. The SQL Agent
recognizes these backups when it selects the recovery set for the full database
restore.
Caution: Microsoft SQL Server does not recognize the cloaked backup. Therefore,
if it is incorporated in your database protection strategy, it is essential that you
maintain a comprehensive set of transaction logs. These logs span the time
duration back to the last full backup that non-cloaked.
CLOAKEDBACKUP TRUE
COPYONLY TRUE
COPYONLY FALSE
Configuration requirements
Review the following requirements before you configure NetBackup for SQL Server
with snapshot backups:
■ See the NetBackup Snapshot Client Administrator’s Guide for details on the
hardware requirements and software requirements for the snapshot method
that you want to use.
■ Go to the Symantec Support Web site for details on the snapshot methods and
platforms that are supported for NetBackup for SQL Server.
■ The volume(s) which contains the SQL Server databases and log files should
be dedicated to SQL Server only. Other types of databases (e.g., Exchange)
should not reside on the volume(s).
Using NetBackup for SQL Server with Snapshot Client 153
Configuring a snapshot backup
■ NetBackup Snapshot Client is installed and configured correctly and the license
key for this option has been registered. See the NetBackup Snapshot Client
Administrator’s Guide for details.
■ SQL Server 2000 or later
Configuration steps
To perform a Snapshot Client for SQL Server backup, you must perform the
following configuration steps:
■ Create a backup script (.bch file) using the NetBackup for SQL Server interface.
See “About sample batch files” on page 189.
■ Configure an MS-SQL-Server policy that has the Snapshot Client attributes
selected.
See “Configuring Snapshot Client policies for NetBackup for SQL Server”
on page 153.
Note: Use data mover is not a supported option for NetBackup for SQL Server.
12 Configure other attributes, and add the schedules and backup selections.
13 Click OK to close the dialog box.
Creating batch files for automatic backups in for SQL Server in an SAP
environment
NetBackup for SQL Server uses batch files to initiate database backup and restore
operations. A batch file must be created for database backups and for transaction
log backups. These batch files must then be added to the Selections list in the
backup policies that you created.
Monitoring backups
Check scheduled backups regularly to ensure that they completed successfully.
Always check the following:
■ That the most recent backup has run successfully.
See “Progress reports created for NetBackup for SQL Server on the client”
on page 181.
160 Backups and restores in an SAP environment
About backups and restores in an SAP environment
■ All the backups in the backup cycle are executed according to the schedule.
Gaps in a backup sequence can have serious consequences in a subsequent
attempt to restore the database.
Note: The R3 database must not be in use when you are performing a restore
operation. Make sure that all SAP services are stopped before you attempt a restore
with NetBackup.
Warning: If the disk system on which the R/3 database resides is damaged, it is
vital to immediately back up the currently active transaction log. This log backup
is done to prevent loss of data. Without a backup of the current log, the database
can only be restored to the status at the time of the last transaction log backup.
If work has been carried out on the R/3 system since then, this work is lost.
Note: The R3 database must not be in use when performing a restore operation.
Make sure that all SAP services are stopped before you attempt a restore with
NetBackup.
162 Backups and restores in an SAP environment
About backups and restores in an SAP environment
Warning: To restore the R/3 database you first restore the most recent database
backup and then the subsequent transaction logs. During the entire procedure,
do not execute any transactions and do not shut down the database server. A
server shutdown would write a checkpoint to the log and as a result you would
not be able to restore further transaction logs.
■ Restore options for restoring SQL backups from Backup Exec images
Item Description
Table 10-1 Restore options on the Microsoft SQL Server tab (continued)
Item Description
Automate master Enable NetBackup to stop SQL so that the master database can be
database restore restored. All existing users are logged off, and SQL Server is put into
single-user mode.
When this option is selected, only the master database can be restored;
if this option is selected for any other database, those jobs fail.
HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer
Without this access, a restore to the default directory may not work.
Also, the option Automate master database restore does not work.
To ensure that NetBackup has access rights, verify that the user
account of the NetBackup Client Service has administrator rights to
the Windows server that the SQL instance is installed on.
Backup Exec restore topics 167
Restore options for restoring SQL backups from Backup Exec images
Table 10-1 Restore options on the Microsoft SQL Server tab (continued)
Item Description
Consistencycheck To recover the database after the restores are complete and when you
after restore selected the Leave database operational option, you need to select a
consistency check option.
The following consistency checks are available:
Table 10-1 Restore options on the Microsoft SQL Server tab (continued)
Item Description
Alternate drive Select a drive to which SQL database files can be restored. Use this
for restoring option if the drive where one or more of the database files previously
database files resided no longer exists.
Note: Do not select the Alternate drive option when you restore
filegroups. Filegroups must be restored to the same drive letter and
path that they were backed up from.
In the backup set, SQL Server stores the physical file names of the
files that make up the database. The physical file name includes the
directory path. For the logical file, "pubs," the physical file name is
stored as E:\MSSQL7\DATA\[Link]. If the database is restored
later, SQL uses these same physical file names for the target of the
restore. During a restore, NetBackup automatically creates any
necessary subdirectories that do not exist.
Using the same example, if drive C: is specified, then the file with the
original directory path of E:\MSSQL7\DATA\[Link] is restored to
C:\MSSQL7\DATA\[Link].
Restore to You can restore to an alternate drive in one of the following ways:
alternate drive
■ Only when original drive does not exist
Select this option to restore all database files to their original
directory path on the alternate drive. The restore is performed
only if the drive where they originally resided exists. To make this
option available, select a drive letter in Alternate drive for
restoring database files list.
Table 10-1 Restore options on the Microsoft SQL Server tab (continued)
Item Description
Restore all Select this checkbox to restore files to the default data and log
database files to directories of the destination instance. For example, to restore a
the target database to a different instance of SQL. This option moves the database
instance’s data files to the correct location for the new instance.
location Note: Do not select the Restore all database files to the target
instance’s data location option when restoring filegroups. Filegroups
must be restored to the same drive letter and path that they were
backed up from.
If this option is not selected, then the files are restored to the directory
that the master database is in.
Point in time log Select this checkbox to restore transactions from a transaction log up
restore to and including a point in time in the transaction log. After the point
in time, recovery from the transaction log is stopped.
Select the part of the date you want to change. Then enter a new date
or click the arrow to display a calendar from which you can select a
date.
Select the part of the time you want to change, and then enter a new
time or click the arrows to select a new time.
Restore log up to Select this checkbox to restore transactions from a transaction log up
named to a named transaction (or named mark) in the transaction log. After
transaction (SQL the named transaction is restored,the recovery from the transaction
2000) log is stopped. The named transactions are case sensitive.
■ Found after
Select this checkbox to specify a date and time after which the
restore operation is to search for the named transaction. For
example, consider that you specified a restore from a log up to the
named transaction "AfternoonBreak." This transaction was found
after 6/02/2007, 12:01 P.M. In that case, the restore operation does
not search for "AfternoonBreak" until after that time.
170 Backup Exec restore topics
Restoring Backup Exec SQL transaction logs up to a named transaction
To restore SQL transaction logs up to a point in time from Backup Exec images
1 Log on as Administrator.
2 Open the Backup, Archive, and Restore interface.
3 Specify the appropriate server, client, and policy type.
See “Specifying the server, client, and policy type” on page 164.
4 Select File > Select Files and Folders to Restore > from Backup Exec Backup.
5 In the Restore window, from the NetBackup History pane, select the backup
image that contains the objects you want to restore.
6 In the All Folders pane, select the most recent full database backup. Select
also the most recent differential database backup, if any. And select all the
log backups you want to restore.
7 Select Actions > Start Restore of Marked Files.
8 In the Restore Marked Files dialog box, from the Recovery completion state
group, select Leave database operational. No additional transaction logs
can be restored.
9 Select Point in time log restore and select a date and time.
10 Click Start Restore.
those databases. You cannot access the databases until the databases are restored
from backups or reattached to SQL.
To restore the SQL master database from a Backup Exec image
1 Log on as Administrator.
2 Open the Backup, Archive, and Restore interface.
3 Specify the appropriate server, client, and policy type.
See “Specifying the server, client, and policy type” on page 164.
4 Select File > Select Files and Folders to Restore > from Backup Exec Backup.
5 In the Restore window, from the NetBackup History pane, select the backup
image that contains the last master database backup.
6 In the All Folders pane, select the master database.
7 Select Actions > Start Restore of Marked Files.
8 In the Restore Marked Files dialog box, on the Microsoft SQL Server tab,
select Automate master database restore.
When this option is selected, only the master database can be restored; if this
option is selected for any other database, those jobs fail. When you start the
restore operation, all existing users are logged off, and SQL Server is put into
single-user mode.
If NetBackup does not have access to the SQL registry keys
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server and
HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer, then a restore to
the default directory may not work. And the option Automate master
database restore does not work. To ensure that NetBackup has access rights,
verify that the account that NetBackup uses has administrator rights to the
computer that is running SQL.
9 Select a consistency check to be run after the restore.
10 Click Start Restore.
After the restore, SQL is restarted in multi-user mode.
After SQL is running again, you can restore the latest copy of the master database
and restore any other databases, if needed.
See “Restoring the SQL master database from a Backup Exec image” on page 172.
If copies of the master databases and model databases were not made, then you
must use Microsoft’s [Link] utility to rebuild the master database and
start SQL.
To restart SQL using database copies
1 Verify that the database copies are present.
The database copies are named master$4idr, mastlog$4idr, model$4idr,
and modellog$4idr.
In a default installation of SQL Server 2000, the databases are in:
If necessary, restore the master database and model database copies from a
backup set to the same directory. Restore them from the original master and
model databases are in.
2 Open a command prompt window and delete the original master and model
databases and their transaction logs.
For example:
Note: Use separate restore jobs to restore the primary filegroup, the rest of the
filegroup backup sets, and the transaction logs.
13 On the Microsoft SQL Server tab, for the recovery completion state, select
Leave database operational and restore all of the transaction logs.
14 Optionally, you can also select Point in time log restore or Restore log up to
named transaction.
15 Click Start Restore.
■ Effect on backup
■ Effect on recovery
For a complete description of database mirroring refer to the SQL Server 2005
Books online.
install_path\NetBackup\db\altnames\hostA
install_path\NetBackup\db\altnames\hostB
Note: When you create the [Link] file it allows all clients to perform
redirected restores to different clients. This file may need to be added and removed
according to your site policies.
Effect on backup
Since backups can occur only on the principal, you must take steps to ensure that
you don't miss any scheduled backups due to failover. Establish a procedure to
simultaneously initiate backups for both partners, but suppress the operation on
the mirror.
To achieve this objective, first create a backup schedule for the principal.
Then take the following steps:
Using NetBackup for SQL Server with database mirroring 179
Effect on recovery
Effect on recovery
When you restore a mirrored database, you must run the NetBackup SQL Client
from the host that contains the mirroring partner. The mirroring partner is in
the principal role. See SQL Server 2005 Books Online for information on how to
determine which partner is the principal.
Backup images may have been created on either or both of the mirroring partners.
However, they appear as a unified tree view in the Restore Database dialog box
irrespective of the partner from which they had been backed up. In addition, the
recovery script that is created for the database is created from images from both
partners as appropriate. To determine which partner the backup was taken from,
look at the property page for the image.
To view backup images you may look on the hosts that contains either of the
mirroring partners, provided that backups were done for that partner.
For example, suppose that mirroring partners are as follows:
■ Principal
Host name: HostA
SQL Server instance: Solaria
Database: Accounting
■ Mirror
180 Using NetBackup for SQL Server with database mirroring
Effect on recovery
Note: In this example, if backup images had been created exclusively on HostA
or on both HostA and HostB, then all of the images from both partners would
be viewable. They are viewable by selecting HostA in the SQL Host dropdown.
You can browse and restore the mirrored database and expand the Accounting
database as usual. Restore operations that are created within a recovery script
are created with the redirected script. The redirected script is used as
necessary to the extent that any such operation identifies an image backed
up from the mirroring partner.
When you are ready to restore a mirrored database, you must remove the
mirroring attribute and then restore the database as usual.
Chapter 12
Troubleshooting
This chapter includes the following topics:
■ Overview of troubleshooting
■ Progress reports created for NetBackup for SQL Server on the client
■ Debug logging
■ Setting the maximum trace level for NetBackup for SQL Server
■ NetBackup reports
Overview of troubleshooting
Several tools are available to help you prevent some common problems that can
be encountered with the daily operation of the SQL Server. For more in-depth
information, please refer to the Microsoft Support Web site.
Table 12-1 Progress report for NetBackup for SQL Server backup
Line Text
1 OPERATION backup
2 Database "DatabaseA"
3 SQLHOST "JUY"
4 SQLINSTANCE "NEWINSTANCE"
5 NBSERVER "JUY"
6 MAXTRANSFERSIZE 0
7 BLOCKSIZE 0
8 ENDOPER TRUE
14 Batch = C:\Program
Files\Veritas\NetBackup\dbext\mssql\temp\__09_42_24_076_00.bch,
Op# = 1
Troubleshooting 183
Sample progress report
Table 12-1 Progress report for NetBackup for SQL Server backup (continued)
Line Text
Table 12-1 Progress report for NetBackup for SQL Server backup (continued)
Line Text
42 12:41:26 INF - Backup by hao on client juy using policy SQL: the
requested operation was successfully completed.
Debug logging
The NetBackup master server and client software offers a comprehensive set of
debug logs for troubleshooting the problems that can occur during NetBackup
operations. Debug logging is also available for SQL backup and restore operations.
After the cause of the problem is determined, you can disable debug logging.
You can control the amount of information that is written to debug logs.
For details on the contents of these debug logs, see the NetBackup Troubleshooting
Guide.
Troubleshooting 185
Debug logging
For additional NetBackup client logs and NetBackup master server logs, see the
online Help for the Backup, Archive, and Restore interface and the NetBackup
Administrator’s Guide, Volume I.
install_path\NetBackup\logs\[Link]
install_path\NetBackup\logs\dbclient
Log names are formatted as [Link], where mm is the month, dd is the day,
and yy is the year.
install_path\NetBackup\logs\dbclient
Log names are formatted as [Link], where mm is the month, dd is the day,
and yy is the year.
186 Troubleshooting
Setting the maximum trace level for NetBackup for SQL Server
NetBackup reports
The administrator has access to operational progress reports through
administrator interfaces. Reports may be generated for following: Backup Status,
Client Backups, Problems, All Log Entries, Media Lists, Media Contents, Images
on Media, Media Logs, Media Summary, and Media Written. These reports may
be generated for a specific time frame, client, or master server. See the NetBackup
Administrator’s Guide, Volume I for details.
12 hours for SQL Server to prep the disk before the actual restore can begin. In
reality, the delay may be even longer than what you calculate by as much as 20%
to 40%.
The timeout problem can be resolved by increasing the NetBackup Client Read
Timeout setting. Use the NetBackup Administration Console on the server to
change the properties of each client that contains a database you may need to
restore. The default for the Client Read Timeout setting is 300 seconds (5 minutes).
If you have any clients which contain large SQL Server databases, you may need
to set this value much higher.
If you use SQL Server 2005 or later, you can eliminate file initialization during
SQL Server restores.
See “Instant data file initialization” on page 54.
188 Troubleshooting
Minimizing timeout failures on large database restores
Chapter 13
Sample batch files
This chapter includes the following topics:
OPERATION BACKUP
DATABASE "BUSINESS"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
ENDOPER TRUE
NBIMAGE "[Link]\[Link].~.7.001of001.20060628123631..C"
To find out which backups you can restore, look at the dbclient log file created
when you did the backup or by use bplist.
See “Using bplist to retrieve SQL Server backups” on page 124.
OPERATION RESTORE
OBJECTTYPE DATABASE
DATABASE "pubs"
# The following image is type: Full
NBIMAGE "[Link]\[Link].~.7.001of001.20060628123631..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
Sample batch files 191
About sample batch files
OPERATION BACKUP
DATABASE "BUSINESS"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
STRIPES 4
NUMBUFS 2
MAXTRANSFERSIZE 0
BLOCKSIZE 7
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE DATABASE
DATABASE "Northwind"
NBIMAGE [Link].~.0.001of004.20060216151937..C
STRIPES 004
MAXTRANSFERSIZE 0
BLOCKSIZE 0
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
BROWSECLIENT "CADOO"
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
■ If STOPAT is not specified, then the database is restored to the date of the backup
log.
■ You do not need to manually stage the restoration of the database backup and
the associated log files. Create the script in the Restore Microsoft SQL Server
Objects dialog box.
■ Since RECOVEREDSTATE was not specified, the database is restored to a recovered
state following successful execution of this script.
OPERATION RESTORE
OBJECTTYPE TRXLOG
STOPAT 20060216/14:03:00
DATABASE Northwind
NBIMAGE [Link].~.0.001of001.20060216140321..C
MAXTRANSFERSIZE 0
BLOCKSIZE 0
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
BROWSECLIENT "CADOO"
ENDOPER TRUE
OPERATION BACKUP
DATABASE "BUSINESS"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
USERID JSMITH
PASSWORD [Link]
ENDOPER TRUE
OPERATION BACKUP
DATABASE "BUSINESS"
OBJECTTYPE DATABASE
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
STRIPES 5
ENDOPER TRUE
OPERATION BACKUP
DATABASE "RECREATION"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTTYPE TRXLOG
ENDOPER TRUE
OPERATION BACKUP
DATABASE "EDUCATION"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
STRIPES 2
ENDOPER TRUE
OPERATION BACKUP
DATABASE "GOVERNANCE"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTYPE TRXLOG
ENDOPER TRUE
OPERATION BACKUP
DATABASE "SURVIVAL"
194 Sample batch files
About sample batch files
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTYPE TRXLOG
ENDOPER TRUE
BATCHSIZE 3
OPERATION BACKUP
DATABASE "BUSINESS"
OBJECTTYPE DATABASE
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
STRIPES 5
ENDOPER TRUE
OPERATION BACKUP
DATABASE "RECREATION"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTTYPE TRXLOG
ENDOPER TRUE
OPERATION BACKUP
DATABASE "EDUCATION"
SQLHOST "CADOO"
Sample batch files 195
About sample batch files
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
STRIPES 2
ENDOPER TRUE
OPERATION BACKUP
DATABASE "GOVERNANCE"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTYPE TRXLOG
ENDOPER TRUE
OPERATION BACKUP
DATABASE "SURVIVAL"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
OBJECTYPE TRXLOG
ENDOPER TRUE
Sample 9–Specify the maximum transfer size and block size for a
backup
This sample batch file backs up database "business" with a maximum transfer
size of 64 kilobytes bytes * 24 (1M). The maximum block size is 512 bytes * 26 (32
kilobytes).
OPERATION BACKUP
DATABASE "BUSINESS"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "CHISEL"
MAXTRANSFERSIZE 4
BLOCKSIZE 6
ENDOPER TRUE
196 Sample batch files
About sample batch files
OPERATION RESTORE
OBJECTTYPE DATABASE
DATABASE "DatabaseA"
# The following image is type: Full
NBIMAGE "[Link]\[Link].~.7.001of001.20060701094227..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE DATABASE
DUMPOPTION INCREMENTAL
DATABASE "DatabaseA"
# The following image is type: Full database differential
NBIMAGE "[Link]\[Link].~.7.001of001.20060701103323..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE TRXLOG
DATABASE "DatabaseA"
# The following image is type: transaction log
NBIMAGE "[Link]\[Link].~.7.001of001.20060701090005..C"
SQLHOST "CADOO"
Sample batch files 197
About sample batch files
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE TRXLOG
DATABASE "DatabaseA"
# The following image is type: transaction log
NBIMAGE "[Link]\[Link].~.7.001of001.20060701100030..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE TRXLOG
DATABASE "DatabaseA"
# The following image is type: transaction log
NBIMAGE "[Link]\[Link].~.7.001of001.20060701110015..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
198 Sample batch files
About sample batch files
OPERATION RESTORE
OBJECTTYPE FILEGROUP
DATABASE "DatabaseR"
OBJECTNAME "PRIMARY"
# The following image is type: Filegroup
NBIMAGE "[Link]\[Link].7.001of001.20060701095634..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE FILEGROUP
DATABASE "DatabaseR"
OBJECTNAME "DBR_FG2"
# The following image is type: Filegroup
NBIMAGE "[Link]\[Link].DBR_FG2.7.001of001.20060701095425..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE FILE
DATABASE "DatabaseR"
OBJECTNAME "DBR_FG1_File1"
# The following image is type: File
Sample batch files 199
About sample batch files
NBIMAGE "[Link]\[Link].DBR_FG1_File1.7.001of001.
20060701100824..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE FILE
DATABASE "DatabaseR"
OBJECTNAME "DBR_FG1_File2"
# The following image is type: File
NBIMAGE "[Link]\[Link].DBR_FG1_File2.7.001of001.
20060701100908..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE FILE
DATABASE "DatabaseR"
OBJECTNAME "DBR_FG1_File3"
# The following image is type: File
NBIMAGE "[Link]\[Link].DBR_FG1_File3.7.001of001.
20060701100953..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
200 Sample batch files
About sample batch files
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE TRXLOG
DATABASE "DatabaseR"
# The following image is type: transaction log
NBIMAGE "[Link]\[Link].~.7.001of001.20060701100030..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
ENDOPER TRUE
OPERATION RESTORE
OBJECTTYPE TRXLOG
DATABASE "DatabaseR"
# The following image is type: transaction log
NBIMAGE "[Link]\[Link].~.7.001of001.20060701110015..C"
SQLHOST "CADOO"
SQLINSTANCE "SECOND"
NBSERVER "BOW"
BROWSECLIENT "CADOO"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
ENDOPER TRUE
SQLINSTANCE $ALL
OPERATION BACKUP
Sample batch files 201
About sample batch files
DATABASE "master"
NBSERVER "BEARING"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
NUMBUFS 2
ENDOPER TRUE
OPERATION BACKUP
DATABASE "msdb"
NBSERVER "BEARING"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
NUMBUFS 2
ENDOPER TRUE
OPERATION BACKUP
DATABASE "model"
NBSERVER "BEARING"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
NUMBUFS 2
ENDOPER TRUE
To exclude SQL Server instances on your host from backup, create the Windows
environmental variable NB_SQL_INSTANCE_EXCLUDE. Specify a list of instances
names that you want to exclude. The list should consist of one or more names
that are separated by semi-colons.
For example, use the following value to indicate that you want to exclude the
default SQL Server instance and the instance named ABC-PRODUCTS from backup:
#DEFAULT#;ABC-PRODUCTS;
Note that the default SQL Server instance for the local host is designated as
#default#.
You can also exclude individual databases from backup by creating a Windows
environmental variable NB_SQL_DATABASE_EXCLUDE. For the value of the
variable, specify a list of database names.
For example, consider the following batch file:
SQLINSTANCE $ALL
OPERATION BACKUP
DATABASE $ALL
NBSERVER "BEARING"
202 Sample batch files
About sample batch files
MAXTRANSFERSIZE 6
BLOCKSIZE 7
NUMBUFS 2
ENDOPER TRUE
You can exclude the databases "master," "accounting," and "pubs" with the
NB_SQL_DATABASE_EXCLUDE environmental variable. For the value of the
variable, indicate the databases you want to exclude. Separate the database names
with semi-colons.
MASTER;ACCOUNTING;PUBS
A backups (continued)
alternate buffer method 53 image names
alternate client 154 colon and backslash in 125
Application Backup schedule in a Microsoft Cluster Server 133
configuring 38 in a Veritas Cluster Server 133
overview 38, 41 offhost 154
retention 38 SQL Server login 49
authorization SQL Server security restrictions 50
for scheduled operations 50 transaction logs 78
Automatic Backup schedule 39 backups, automatic
overview 41 running manually 44
automatic backup schedule batch files
configuring 39 BUFFER keyword 111
automatic retry of unsuccessful backups 120 defined in backup selections list 42
for backup operations 118
samples 190, 202
B specifying object to back up 112
Backup Exec STRIPES keyword 117
importing images 163 when required 105
redirected restores 171 BLOCKSIZE 52
restores bpbkar log 185
client. See specifying bpfis log 185
databases 176 bphdb log 185
filegroups 175 bplist
multiple databases 164 client parameter 124
options 165 server parameter 124
policy type. See specifying stripenumber 126
server. See specifying total stripes 126
SQL Master Database 172 using to retrieve list of backups 124
tables 164 bppfi log 185
transaction logs 170–171 buffer space parameters
supported SQL versions 164 BLOCKSIZE 52
backup media required 29 MAXTRANSFERSIZE 52
Backup Selections list NUMBER OF BUFFERS PER STRIPE 52
adding selections 42 buffers
overview 42 alternate buffer method 53
backups and transfer of data to NetBackup server 52
automatic retry of unsuccessful 120
browsing for 83
database filegroups 59, 79 C
database files 81 clients list, for backup policies 41
databases 58, 77 compatibility information 28
204 Index
P restores (continued)
page verification 54 database move. See move operations.
page-level restores 98 databases 88
partial backups 82 filegroup differentials 91
partial database restores 96 filegroups 90
policy configuration in a Microsoft Cluster Server 134
adding clients 41 in a SAP environment 157
attributes 36 in a Veritas Cluster Server 134
backup selections list 42 page-level 98
for databases 36 R/3 database 160
overview 35 read-only filegroups 92
schedules 37 redirecting. See redirected restores.
testing 44 SQL Server login 49
preventing timeout failures 187 transaction logs
progress reports 186 within a staged recovery 89
protecting files and filegroups 60 without staging a full recovery 93
R S
R/3 database SAP environment
restoring 160 backups 157–158
read-only filegroups policy configuration 158
and reducing backup size 62–63 scripts used 158
backup schedules for 37 manual backups 157
backups of 55, 79 restores 157
restoring 92 transaction log backups 159
viewing backup sets 80 schedulers
read-write filegroups client-based
backups 80 and dbbackex 72
using to restore databases 91 schedules
recovering read-write backups 91 adding 37
recovery frequency 40
considerations for files and filegroups 61 properties 39
factors 63, 67 types of schedules 37
of a full database 89 security
staging 66 integrated 48–49
transaction logs 64 SQL Server restrictions 50
redirected restores standard SQL Server security 49, 51
of databases shared memory
to different locations 101 and performance 53
to different hosts 100 Source Client 83
reducing backup size 62 specifying a network interface 83, 102
remote folder button 43 SQL Host
remote hosts, browsing 122 selecting server that performed a backup 83
reports, progress 186 to login to 72
restores SQL instance
and striping 122 to login to 72
browsing for backup images 83 SQL Server login
database differentials 88 for scheduled operations 49
database files 92 standard security 49
206 Index
standby server 55
STRIPES keyword 117
striping
and automatic restore 122
and number of buffers 111
and performance 53
configuring backup policy for 45
maximum jobs per client 34
T
testing policy configuration 44
timeout failures
preventing 187
troubleshooting 184
U
Use alternate client 154
V
Veritas Cluster Server (VCS)
configuring the NetBackup Server 132
SQL Server backups in 133
SQL Server restores in 134
VIRTUALSERVER 132
W
Windows interface 34