Emc Networker Module For Sybase: Release 3.0 Unix Version
Emc Networker Module For Sybase: Release 3.0 Unix Version
Administration Guide
P/N 300-004-707
REV A01
EMC Corporation
Corporate Headquarters:
Hopkinton, MA 01748-9103
1-508-435-1000
www.EMC.com
Copyright © 1997 - 2007 EMC Corporation. All rights reserved.
EMC believes the information in this publication is accurate as of its publication date. The information is subject to change
without notice.
THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS IS.” EMC CORPORATION MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION,
AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE.
Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.
For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks on EMC.com.
All other trademarks used herein are the property of their respective owners.
ii EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Contents
Preface................................................................................................................................................... vii
Chapter 1 Introduction
NetWorker software ................................................................................................. 2
Software features ................................................................................................ 2
Server-side services and programs .................................................................. 2
NetWorker Module for Sybase features ................................................................ 3
New features in NMS software, Release 3.0 ......................................................... 3
How NMS interacts with Sybase database ........................................................... 3
NMS backup........................................................................................................ 4
NMS restore......................................................................................................... 6
Internationalization support ................................................................................... 7
Password-protected database backup and restore .............................................. 8
Database backup and restore verification ............................................................. 9
Exclusion of multiple user-defined temporary databases from backup .......... 9
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide iii
Contents
iv EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Contents
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide v
Contents
vi EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Preface
As part of its effort to continuously improve and enhance the performance and capabilities of
its software products, EMC periodically releases new versions of its hardware and software.
Therefore, some functions described in this document may not be supported by all revisions of
the software or hardware currently in use. The release notes for this product provides the most
up-to-date information on product features.
Audience This guide is part of the NetWorker Module for Sybase documentation set, and is
intended for use by system administrators during configuration of the NetWorker
Module for Sybase software.
Readers of this guide are expected to be familiar with the following topics:
◆ EMC NetWorker software
◆ Sybase software
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide vii
Preface
Conventions used in EMC uses the following conventions for notes and cautions.
this document
Note: A note presents information that is important, but not hazard-related.
! CAUTION
A caution contains information essential to avoid data loss or damage to the system
configuration.
! IMPORTANT
An important notice contains information essential to operation of the software.
Typographical conventions
EMC uses the following type style conventions in this document:
Normal font In running text:
• Interface elements (for example, button names, dialog box names) outside of
procedures
• Items that user selects outside of procedures
• Java classes and interface names
• Names of resources, attributes, pools, Boolean expressions, buttons, DQL
statements, keywords, clauses, environment variables, filenames, functions, menu
names, utilities
• Pathnames, URLs, filenames, directory names, computer names, links, groups,
service keys, file systems, environment variables (for example, command line and
text), notifications
Bold In procedures:
• Names of dialog boxes, buttons, icons, menus, fields
• Selections from the user interface, including menu items and field entries
• Key names
• Window names
In running text:
• Command names, daemons, options, programs, processes, notifications, system
calls, man pages, services, applications, utilities, kernels.
Italic Used for:
• Full publications titles referenced in text
• Unique word usage in text
Bold Italic Anything requiring extra emphasis
viii EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Preface
Where to get help EMC support, product, and licensing information can be obtained as follows.
Product information — For documentation, release notes, software updates, or for
information about EMC products, licensing, and service, go to the EMC Powerlink™
website (registration required) at:
http://Powerlink.EMC.com
Technical support — For technical support, go to EMC Customer Service on
Powerlink. To open a service request through Powerlink, you must have a valid
support agreement. Please contact your EMC sales representative for details about
obtaining a valid support agreement or to answer any questions about your account.
Your comments Comments and suggestions about our product documentation are always welcome.
To provide feedback:
1. Go to:
http://Powerlink.EMC.com
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide ix
Preface
x EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
1
Introduction
This chapter describes the NetWorker Module for Sybase software, and how the
NetWorker Module for Sybase and NetWorker software components work together
to provide a comprehensive Sybase data storage management system.
This chapter includes the following sections:
◆ NetWorker software......................................................................................................... 2
◆ NetWorker Module for Sybase features........................................................................ 3
◆ New features in NMS software, Release 3.0................................................................. 3
◆ How NMS interacts with Sybase database................................................................... 3
◆ Internationalization support........................................................................................... 7
◆ Password-protected database backup and restore...................................................... 8
◆ Database backup and restore verification .................................................................... 9
◆ Exclusion of multiple user-defined temporary databases from backup .................. 9
Note: This guide refers to Sybase Adaptive Server Enterprise (ASE) as Sybase server.
Introduction 1
Introduction
NetWorker software
The NetWorker® product is a network data storage management solution that
protects and helps manage data across an entire network. The NetWorker software
simplifies the storage management process and reduces the administrative burden by
automating and centralizing data storage.
Software features
The NetWorker software provides the capabilities to do the following:
◆ Perform automated backups
◆ Administer, configure, monitor, and control NetWorker functions from any
system on a network
◆ Centralize and automate data management tasks
◆ Optimize performance by using parallel save streams to a single device, multiple
devices, or storage nodes
The NetWorker software provides support for the following:
◆ Enterprise applications running on AIX, HP-UX, Solaris, Windows, and Linux
◆ Cluster environments including High Availability Cluster Multiprocessing for
AIX and HP platforms.
NetWorker client/server technology uses the Remote Procedure Call (RPC) to back
up data. The NetWorker server software consists of several server-side services and
programs that oversee backup and restore processes. The NetWorker client software
consists of client-side services and user interface programs.
2 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Introduction
Keep the bootstrap printout on file as a quick reference in the event of a disaster, such
as a disk crash or server malfunction.
The EMC NetWorker, Release 7.4, Multiplatform Version, Administration Guide provides
details about the NetWorker product.
NMS backup
Install the NMS software on the system where the Sybase server is installed. The
Sybase server can exist either on the same system as the NetWorker server software,
or on a separate system. No matter where the system that is running the Sybase
server software resides, the system is considered a storage management client of the
NetWorker server.
During a backup, the following occur:
1. The NetWorker software takes care of the scheduling and storage management
tasks.
2. The Networker libbms shared library takes care of passing the data from the
Sybase Backup Server to the NetWorker software.
3. During a backup, the NMS script nsrsyb is substituted for the NetWorker client
program save.
4 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Introduction
Figure 1 shows the functional relationship between the NetWorker software, the
NMS software, and Sybase database during a scheduled backup.
nsrsybsv
Legend
xxxx
inter-process data
service communication
databkup.eps
Figure 1 Data movement through the Sybase server during backups
Full Dump database Full backup of a database and its transaction logs.
Incremental Dump transaction log Backup of all changes to the database since the last dump.
NMS restore
When a recovery request is initiated, the following occurs:
1. The NetWorker libbms shared library:
• Translates the object names requested by the nsrsybrc or the load command
into a format understood by the NetWorker software, and forwards it to the
NetWorker server’s nsrd daemon.
• Sends a request to the nsrindexd index daemon.
2. The nsrindexd daemon checks the client file index to ensure that an entry for the
requested objects exists, and passes this information to libbms.
3. The libbms library requests the data from the nsrmmd media daemon.
4. The nsrmmd daemon searches the NetWorker server’s media database for the
media containing the objects requested and recovers the data to the Sybase server.
Figure 2 shows the relationship between NetWorker software, the NMS software and
Sybase during a restore.
Open Client/C
nsrmmd
nsrsybrc nsrd
Legend
xxxx
inter-process data
service communication
nsrrestore.eps
Figure 2 Data movement through the Sybase server during restore
6 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Introduction
Internationalization support
The internationalization support available in this release of NMS allows it to operate
in non-ASCII environments.
NMS extends the internationalization support available in NetWorker, Release 7.4.
NetWorker, Release 7.4 supports systems running in different locales (that is, in
multilocale data zones) with no data loss within NetWorker when non-ASCII text
data is transmitted between systems or processes due to locale differences.
For the NMS software to operate in non-ASCII environment, ensure that you have the
following:
◆ NetWorker 7.4 client
◆ Supported operating system configured to operate in a non-ASCII locale
◆ Sybase server installation configured with a non-ASCII character sets
The internationalization support available in NMS, Release 3.0 provides the
following features:
◆ You can create non-ASCII databases on a Sybase server and do backup and
restore operations.
◆ For nsrsybsv, nsrsybrc, and nsrsybcc commands, you can specify non-ASCII
characters for the following command line options:
• -U <UserName_non-ASCII>
• -P <Password_non-ASCII>
• -r <Password_non-ASCII> (only for nsrsybsv and nsrsybrc)
• SYBASE:/<SERVERNAME_ASCII>/<DBName_non-ASCII>
Thus, the username, password, and database names can be non-ASCII.
However, the keyword for save set, SYBASE, and the Sybase server name can
not be non-ASCII.
◆ You can specify non-ASCII characters for the following environment variables
that are specified in the nsrsyb script:
• POSTCOMD
• PRECMD
• NSR_DEBUG_FILE
• SYBASE
• NSR_SAVESET_NAME
• NSR_ASE_PASSWORD
◆ You can type the inputs to the NMS software in non-ASCII language.
◆ Prior to this release of NMS, the error messages that were provided to the Sybase
Backup Server were in ASCII only. In NMS, Release 3.0, operational messages and
debug messages are displayed in different ways. While operational messages are
displayed in non-ASCII format, debug messages are displayed in ASCII format.
NMS, Release 3.0 provides error messages in the non-ASCII language if the
appropriate language pack is installed on the system. For example, if the French
language pack is installed on the system and NMS is running in the French
environment, then the messages returned to the Sybase Backup Server by NMS
are in French. However, if the system does not have the French language pack
installed, then messages are returned to the Sybase Backup Server in English only.
Internationalization support 7
Introduction
nsrsybrc -r HiPassword
8 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Introduction
NMS, Release 2.5. NMS, Release 3.0 restores db1, db2, master, admin, and security
databases, but does not temp1.
NMS, Release 3.0 checks and determines whether a database is a user-defined
temporary database or a normal database. To perform this check NMS communicates
with the Sybase server. If the NSR_DEBUG_FILE variable is set, then a debug
message "User-defined temporary database %s excluded from backup" is printed in
the debug file, where %s is the name of the user-defined temporary database.
10 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
2
Configuring NMS
This chapter describes how to configure the NMS software for each Sybase server that
requires backup and recovery services.
This chapter includes the following sections:
◆ Configuration requirements ......................................................................................... 12
◆ Configuring the software in a noncluster environment ........................................... 12
◆ Configuring the software in a cluster environment .................................................. 18
◆ References for additional configuration ..................................................................... 19
◆ Dynamic loading of OCS library.................................................................................. 19
Configuring NMS 11
Configuring NMS
Configuration requirements
NMS software supports the concurrent backup of Sybase databases on separate
computers to the same NetWorker server.
To perform concurrent backups, install the NMS software:
◆ On the same computer, where the Sybase server and NetWorker client software
are installed.
◆ Only once per computer, regardless of the number of Sybase server instances and
databases that are to be backed up.
The NetWorker Module for Sybase, Release 3.0, UNIX Version, Installation Guide
provides the installation instructions.
You can back up all data locally or remotely to the same NetWorker server.
12 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Configuring NMS
./nms_config
• For Linux:
cd /usr/sbin
./nms_config
Attribute Description
Parallelism Specifies the maximum number of backup save streams that the NetWorker
software allows to arrive concurrently at the server. The NetWorker server edition
determines the maximum parallelism value.
When multiple data streams are backed up at the same time, the efficiency of the
storage devices increases.
Administrator Specifies users with NetWorker Administrator privileges. The default setting of the
attribute is root@hostname NetWorker, where hostname is the NetWorker server
hostname.
Note: Access control is a new feature introduced with NetWorker, Release 7.4 and is not
supported in earlier versions of NetWorker software.
14 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Configuring NMS
2. For Each Attribute In The Client resource, enter the appropriate information.
Note: If the NetWorker server software is installed on the Sybase server host, a Client resource
for the Sybase server host is created automatically during the NetWorker software installation.
Attribute Description
Backup Command Name of a single customized nsrsyb script to be used for a Sybase
scheduled backup.
Browse Policy Amount of time that the NetWorker server must retain an entry for a
Sybase backup in the online client file index.
Remote Access Fully qualified IP name of a remote system so that the Sybase server
backs up to that remote system.
Leave the attribute unmodified if either of the following operations are not
required:
• Backup from a cluster
• Recovery to a host other than the one being backed up
Retention Policy Minimum length of time that the NetWorker server maintains information
about Sybase backup data in the online media database.
Save Set Predefined save set to be used for a Sybase scheduled backup.
• To specify a backup of all databases for the Sybase server, enter the
Sybase server name in the save set list. For example:
SYBASE:/Sybase_server
• To back up selected databases for the Sybase server, include the
database name in the save set list. You can specify more than one
database by making separate save set entries for each database. For
example: SYBASE:/Sybase_server/database_server
The EMC NetWorker, Release 7.4, Multiplatform Version, Administration Guide and
NetWorker server Online Help provide more information on how to configure the
NetWorker Client resource and its attributes.
16 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Configuring NMS
Note: The SYB_MAX_IOSIZE variable defines the maximum I/O size used by the Sybase
Backup server API. If it is not defined, then the default minimum value of 2 KB (2048) is used.
! IMPORTANT
Do not use the root user account of the operating system to run the NMS
nsrsybcc, nsrsybsv, or nsrsybrc command.
2. Ensure that read and write permissions are set for the /nsr/tmp directory. The
NMS software uses the temporary directory to pass environment variables.
! IMPORTANT
In a cluster, the NetWorker server must be remote and not part of the cluster
environment used for the Sybase server.
18 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Configuring NMS
20 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
3
Performing Manual
Backups
This chapter describes how to configure and perform manual Sybase backups.
This chapter includes the following sections:
◆ About manual backups ................................................................................................. 22
◆ Performing manual backups in a noncluster environment ..................................... 24
◆ Performing manual backups in a cluster environment ............................................ 30
◆ Multistripe backups ....................................................................................................... 32
◆ Threshold procedures .................................................................................................... 34
◆ Monitoring manual backups ........................................................................................ 35
◆ Stopping manual backups ............................................................................................ 36
◆ Removing failed backups.............................................................................................. 36
! IMPORTANT
Do not use the root user account for the operating system to run the NMS
nsrsybsv and nsrsybcc commands.
2. Ensure that the NMS software is correctly configured. “Configuring the software
in a noncluster environment” on page 12 and “Configuring the software in a
cluster environment” on page 18 provide instructions.
3. Select the appropriate operating system user account. “Task 10: Select the
operating system user account” on page 17 provides details.
4. Before starting a manual backup, run a database consistency check. “Performing a
consistency check” on page 23 provides instructions.
5. When performing a manual backup, always use one of the following options to
specify a NetWorker server:
• The -s option with the nsrsybsv command
• NSR_SERVER XBSA environment variable
“Task 9: Set XBSA environment variables” on page 17 provides information on
XBSA environment variables.
If a NetWorker server is not specified, then the NMS software queries the
/nsr/res/servers file to find an available NetWorker server. When the NetWorker
server that matches the Client resource is found, the backed up data is transferred
to that NetWorker server.
22 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
Note: Appendix A, “NMS Commands,” provides a list of the options and syntax for the
nsrsybcc command.
! IMPORTANT
To back up and recover NetWorker save sets, use the nsrsybsv and nsrsybrc
commands, rather than the Sybase dump and load commands.
24 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
! CAUTION
Before performing an incremental backup, ensure that a full backup of the
database exists. If a full backup does not exist or is removed from the NetWorker
server, and an incremental backup is attempted, the restore fails.
! IMPORTANT
If an incremental backup is performed on the Sybase server, only the transaction log
for each database is backed up.
If the database is not configured for an incremental backup, an error message appears
and the transaction log is not backed up.
Customizing a backup
This section provides information on customizing a backup and includes the
following topics:
◆ “How to exclude databases from a Sybase server backup” on page 26
◆ “How to direct a backup to a specific NetWorker pool” on page 26
◆ “How to use advanced options to back up transaction logs” on page 27
◆ “How to back up the NetWorker bootstrap and index” on page 30
26 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
-R 1. Backs up the transaction log but does not Performs a full backup, but does not
no_truncate truncate it. truncate the transaction log.
2. Performs a full backup.
no option Performs a full backup. Performs a full backup, but does not
truncate the transaction log.
-T Displays an error message stating that the -T Displays an error message stating that
option is not a valid option for read only the -T option is not a valid option for read
databases. only databases.
-R 1. Backs up the transaction log but does not Performs a full backup, but does not
no_truncate truncate it. truncate the transaction log.
2. Performs a full backup.
no option Performs a full backup. Performs a full backup, but does not
truncate the transaction log.
28 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
-G 1. Displays an error message stating that the -G option is not supported with
with no_log incremental backups, and that a full backup must be performed instead.
The following error message appears: "Error: the ’-G’ option is not valid for
an incremental backup where the log is on a separate device. It will be
ignored. To truncate the transaction log without logging it, use the same
command with a level of full instead of incremental.”
2. Performs an incremental backup.
-T 1. Displays an error message stating that the -T option is not supported with
truncate_only incremental backups, and that a full backup must be performed instead.
2. Performs an incremental backup.
-G 1. Displays an error message stating that the -G option is not supported with
with no_log incremental backups, and that a full backup must be performed instead.
The following error message appears: "Error: the ’-G’ option is not valid for
an incremental backup where the log is on a separate device. It will be
ignored. To truncate the transaction log without logging it, use the same
command with a level of full instead of incremental.”
2. Performs an incremental backup.
-T 1. Displays an error message stating that the -T option is not a valid option for
truncate_only read only databases. The following error message appears: “Unable to
truncate the transaction log for database <db_name> as the database is
read-only. Dump of database <db_name> aborted.”
2. Does not perform an incremental backup.
! IMPORTANT
To back up and recover NetWorker save sets, use the nsrsybsv and nsrsybrc
commands, rather than the Sybase dump and load commands.
30 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
! IMPORTANT
Before performing an incremental backup, ensure that a full backup exists. If a full
backup of a database does not exist or is removed from the NetWorker server, and
an incremental backup is attempted, the restore fails.
! IMPORTANT
Before performing an incremental backup, ensure that a full backup exists. If a full
backup of a database does not exist or is removed from the NetWorker server, and
an incremental backup is attempted, the restore fails.
Multistripe backups
The NMS software supports the use of multistripe sessions for the backup of Sybase
server data. Multistripe backups are one or more streams of data that can be extracted
in parallel from a database, and written in parallel to one or more media devices.
Multistripe backups for ASE version 12.5.4 are not supported by NMS, Release 3.0.
With the NMS software, multistripe backups can enhance performance significantly
when a large amount of data is backed up by using multiple tape drives. The
nsrsybsv command -S option specifies the number of sessions.
The multistripe backup feature does not support the backup of transaction logs
(incremental backups). If the multistripe backup option is used for incremental
backups, the NMS software automatically converts the backup to a normal
incremental backup.
32 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
Multistripe backups 33
Performing Manual Backups
Threshold procedures
A threshold procedure is configured to perform as follows:
◆ When the threshold is reached, the NMS software dumps the transaction log.
◆ If a dump of the transaction log is not allowed, then the NMS software performs a
full database dump and truncates the transaction log.
! IMPORTANT
If the threshold procedure or the isql command line is used for transaction log
backups, set the environment variables in the shell that launches the Sybase
Backup Server. This overrides the default settings for the NetWorker XBSA
environment variables.
If the NMS software cannot perform a full database dump, then do either of the
following:
◆ Add space to the transaction log.
◆ Abort processes that were suspended when the threshold was crossed.
The Sybase documentation provides detailed information on thresholds.
Platform Location
AIX /usr/bin/threshold.sql
HP-UX /opt/networker/bin/threshold.sql
Solaris /usr/sbin/threshold.sql
Linux /usr/sbin/threshold.sql
34 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
Debug file
Messages explaining when a backup or restore is complete, or why a backup or
restore is not complete, are logged in the debug file, <binary_name>.<PID>.dbg,
where binary_name is the process name and PID is the process ID.
nsrinfo command
To view the results of manual and scheduled backups, use the nsrinfo command to
check the NetWorker client file index on the NetWorker server.
For example:
nsrinfo -s networker_server -n sybase client_name
where:
◆ networker_server is the hostname of the NetWorker server.
◆ networker_client is the hostname of the computer where the database resides.
mminfo command
To view the results of manual and scheduled backups, use the mminfo command to
check the NetWorker media index on the NetWorker server.
For example:
mminfo -s networker_server -avot -c client_name
where:
◆ networker_server is the hostname of the NetWorker server.
◆ networker_client is the hostname of the computer where the database resides.
The following sources provide complete information about using the nsrinfo and
mminfo commands:
◆ The EMC NetWorker, Release 7.4, Multiplatform Version, Administration Guide
◆ The nsrinfo and mminfo man pages
! IMPORTANT
Restoring a failed backup results in error.
36 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Manual Backups
Note: In a cluster environment, use the virtual hostname for the Sybase server.
2. Use the output of the mminfo command to determine if a save set was created for
the failed backup and was not automatically removed by the NetWorker server.
To remove the save set:
a. Note the save set ID (ssid).
The ssid environment variable is the save set from the output of the mminfo
command.
b. Enter the nsrmm command to remove the save set from the media database.
For example:
nsrmm -s networker_server -S ssid -d
where:
– networker_server is the hostname of the NetWorker server.
– ssid is the NetWorker save set ID.
38 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
4
Performing
Scheduled Backups
This chapter describes how to perform and configure scheduled Sybase backups. It
outlines the procedures for testing and monitoring scheduled backups that use the
NMC.
This chapter includes the following sections:
◆ About scheduled backups............................................................................................. 40
◆ Configuring scheduled backups in a noncluster environment ............................... 40
◆ Configuring scheduled backups in a cluster environment ...................................... 46
◆ Monitoring scheduled backups.................................................................................... 48
◆ Stopping scheduled backups........................................................................................ 50
◆ Removing failed backups.............................................................................................. 50
! IMPORTANT
Before configuring and running a scheduled backup, run a manual backup to test
the backup configuration. Chapter 3, ”Performing Manual Backups,” provides
instructions to run a manual backup.
40 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Scheduled Backups
There are two ways to customize the script to control backups of different instances of
the Sybase server:
◆ Modify the options in the existing nsrsyb script, which is stored in the NMS
installation directory.
◆ Create a new copy of the nsrsyb template file, nsrsyb.sh, and customize the file.
“How to create a customized version of the nsrsyb template file” on page 41
provides more details.
Note: The name of the copied file must begin with either nsr or save. For example,
nsr_pubs2.
! IMPORTANT
All versions of the nsrsyb script must be located in the same directory as the
NetWorker executables. Do not move the nsrsyb script to a different directory.
BACKUP_OPT variable
This optional environment variable passes additional options to the nsrsybsv
command within the nsrsyb script.
For example, if a customized volume pool was created for the Sybase backups, the -b
option directs the database and transaction log backups to the same volume pool.
BACKUP_OPT="-b sybasepool"
Notes:
◆ Do not use the -N, -g, or -s option with the nsrsybsv command.
◆ Before performing a scheduled backup using the -X option, ensure that a full
scheduled backup of the Sybase server has been performed.
Appendix A, “NMS Commands,” provides more details.
DBCCOPT variable
This optional environment variable passes the following additional options to the
nsrsybcc command within the nsrsyb script:
◆ -o ckdb
◆ -o ckal
◆ -o ckcat
◆ -o ckdbnoidx
◆ -o ckstor
For example:
DBCCOPT= "-o ckdb"
Appendix A, “NMS Commands,” provides more details.
POSTCMD variable
This variable points to a file containing a postprocessing script that runs after a
scheduled backup.
◆ If the backup fails, the failure is reported and the POSTCMD script runs.
◆ If the POSTCMD script fails, an error message reports the failure.
Note: Make sure that the root user has permission to run the POSTCMD script.
PRECMD variable
This variable points to a file containing a preprocessing script that runs before a
scheduled backup.
If the PRECMD script:
◆ Fails, the scheduled backup is not started and an error message reports the failure.
The POSTCMD script however, still runs.
42 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Scheduled Backups
◆ Succeeds, the scheduled backup starts. The POSTCMD script runs after the
backup.
Note: Make sure that the root user has permission to run the PRECMD script.
USE_CONSISTENCY_CHECK variable
This variable runs the nsrsybcc database consistency check command before a
backup occurs. It creates a PRECMD with the appropriate arguments for the nsrsybcc
command.
If the USE_CONSISTENCY_CHECK and the PRECMD variables are both set, the
commands in the PRECMD variable override the commands in the
USE_CONSISTENCY_CHECK variable.
SYBASE variable
This variable points to the directory where Sybase is installed. The Sybase variable in
the nsrsyb script can be set to include the complete directory path to Sybase.
For ASE version 12.5 and later, set this variable to the directory where Sybase ASE
software is installed.
For example:
SYBASE=/space2/sybase125
NSR_DEBUG_FILE variable
This variable is set so that errors are written to the debug log file. “Exclusion of
multiple user-defined temporary databases from backup” on page 9 and “Improved
reporting of scheduled backups” on page 48 provide more details.
NSR_SAVESET_NAME variable
This variable indicates the save set name, NetWorker XBSA should use for a save
session. “NSR_SAVESET_NAME” on page 74 provides more information.
NSR_ASE_PASSWORD variable
This variable is used to set the desired password. “Password-protected database
backup and restore” on page 8 provides more information.
! IMPORTANT
If the threshold procedure or the isql command line is used for transaction log
backups, the environment variables must be set in the shell that launches the
Sybase Backup Server to override the default settings for the NetWorker XBSA
environment variables.
Note: Do not use the following XBSA variables in the nsrsyb script: NSR_SERVER,
NSR_GROUP, and NSR_SAVESET_NAME.
The NetWorker XBSA settings in the nsrsyb script can be modified to any of the valid
values. Appendix B, “XBSA Variables,” provides more details.
Full Dump database Full backup of a database and its transaction logs.
Incremental Dump transaction log Backup of all changes to the database since the last dump.
44 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Scheduled Backups
Attribute Entry
Backup Command Name of a single customized nsrsyb script. For example, nsrsyb or nsrsyb2.
Browse Policy Length of time that the NetWorker server retains an entry for a Sybase backup in the
online client file index.
Attribute Entry
Remote Access Fully qualified IP name of a remote system so that the Sybase server backs up to that
remote system.
Leave the attribute unmodified if either of the following are not required:
• Backup from a cluster.
• Recovery to a host other than the one being backed up.
Retention Policy Minimum length of time that the NetWorker server maintains information about Sybase
backup data in the online media database.
Save Set Complete pathname of files, file systems, or predefined save set to be used for a
scheduled Sybase backup.
• To back up the entire Sybase server, specify the Sybase server name. For example:
SYBASE:/Sybase_servername
• To back up a specific database for the Sybase server instance, include the database
name in the save set string. For example:
SYBASE:/Sybase_servername/database_name
• To back up more than one database, add a separate save set entry for each
database.
Aliases All known aliases for the computer that runs the Sybase server. For example:
venus
venus.acme.com
46 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Scheduled Backups
48 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Performing Scheduled Backups
2. Select the group that contains the NMS scheduled backup. Right-click the group
to view the Group Details window.
If the backup or restore is complete, the Group Details window displays the
message ’Completed successfully’ in a dialog box. The dialog box contains one
entry for each NMS channel used.
All failed backups are listed in the Failed dialog box of NMC. Only one entry per
save set is listed in the Failed dialog box the failed backup of save set.
For example, a user performs a striped backup with the stripe count as three for
the save set SYBASE:/NETS1/model. Three backup sessions are spawned by the
Sybase Backup Server. If one of the sessions fails, then the whole save set is listed
as failed save set in the Failed dialog box in the Group Details window of NMC.
If the jobs framework fails for any reason NMS exits and the error is also recorded
in the debug file, if the NSR_DEBUG_FILE environment variable is set. The text
of error messages depends on the version of the NetWorker server you are using.
In this release of NMS, the database name and the save set name passed by the
administrator are differentiated. For example, if database name is model, and the save
set name specified by the you is SYBASE:/INSTANCE/model, then in the media
database and NMC, the save set name is displayed as SYBASE:/INSTANCE/model.1.
This differentiation in save set names applies to single, multiple, full, incremental,
and instance-level type of backups done by NMC. However, this differentiation does
not apply to the meta-data save set backup by NMC.
Log file
View the results of a backup in the log file daemon.raw, which is available in the logs
directory. Use the nsr_render_log utility to view daemon.raw, which is in binary
form.
Debug file
When the backup is run in debug mode, the results of the backup can be viewed in
the debug file, <Binary_name>.<PID>.dbg, where Binary_name is the process binary
name and PID is the process ID. The debug file is available in the applogs directory.
nsrinfo command
To view the results of manual and scheduled backups, use the nsrinfo command to
check the NetWorker client file index on the NetWorker server.
For example:
nsrinfo -s networker_server -n sybase client_name
where:
◆ networker_server is the hostname of the NetWorker server.
◆ networker_client is the hostname of the computer where the database resides.
mminfo command
To view the results of manual and scheduled backups, use the mminfo command to
check the NetWorker media index on the NetWorker server.
For example:
mminfo -s networker_server -avot -c client_name
where:
◆ networker_server is the hostname of the NetWorker server.
! IMPORTANT
Restoring a failed backup will result in error.
Note: In a cluster environment, use the virtual hostname that is used for the Sybase server.
2. Use the output of the mminfo command to determine if a save set was created for
a failed backup and was not automatically removed by the server.
To remove the save set:
a. Note the save set ID (ssid).
The ssid environment variable is the save set from the output of the mminfo
command.
b. Enter the nsrmm command to remove the save set from the media database.
For example:
nsrmm -s networker_server -S ssid -d
where:
– networker_server is the hostname of the NetWorker server.
– ssid is the NetWorker save set ID.
50 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
5
Restoring Data
This chapter describes how to configure and run Sybase database restore operations.
The NMS restore operations are run from the command line interface.
This chapter includes the following sections:
◆ About restoring data...................................................................................................... 52
◆ Restoring data................................................................................................................. 53
Restoring Data 51
Restoring Data
! IMPORTANT
When the browse and retention policies for all the save sets on a backup volume
have been exceeded, the volume becomes recyclable and eligible for automatic
relabeling by the NetWorker software. The data on the volume might not be able to
be restored.
! IMPORTANT
Do not use the root user account for the operating system to run the nsrsybrc
command.
2. Ensure that the NMS software has been configured to perform manual or
scheduled backups.
The following chapters provide detailed configuration:
• Chapter 2, ”Configuring NMS”
• Chapter 3, ”Performing Manual Backups”
• Chapter 4, ”Performing Scheduled Backups”
3. Ensure that the Sybase server and Sybase Backup Server are running.
4. Ensure that the appropriate operating system user accounts have been set. “Task
10: Select the operating system user account” on page 17 provides details.
5. Ensure that a target database exists to which data will be recovered. This database
must be at least as large as the size of the database backup.
52 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Restoring Data
Note: To create a new database for recovery, use the for load option.
6. Ensure that the target database to which data will be recovered is not currently in
use. This database is taken offline during the recovery process.
7. From the NMC, open the Client resource and set the Remote Access attribute to
the host on which the data is restored. This step is required to perform an
imported restore.
Restoring data
This section describes how to restore Sybase data. It includes the following
procedures:
◆ “How to restore single or multiple databases” on page 53
◆ “How to perform a point-in-time restore” on page 54
◆ “How to perform a redirected restore” on page 55
◆ “How to perform an imported restore” on page 56
◆ “How to combine a relocated and imported restore” on page 57
◆ “How to restore the Sybase server in a cluster environment” on page 57
◆ “How to perform a multistripe restore” on page 58
! IMPORTANT
Sybase data must be restored using the nsrsybrc command. Do not use the
NetWorker recover command to recover database backups. The recovered database
overwrites any existing tables in the original database.
Restoring data 53
Restoring Data
54 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Restoring Data
Note: Since the NetWorker server and client can have different date and time values, set
the -t option with a value of the local time on the Sybase server. After the restore operation,
the database is brought online.
2. After the recovery operation completes, check the database to ensure that the data
has been recovered.
3. Run a database consistency check, as described in “Performing a consistency
check” on page 23.
4. Run a full backup of the database, as described in “Performing full backups in a
noncluster environment” on page 24.
! IMPORTANT
After performing a point-in-time recovery, the Sybase server restarts the database
log sequence. Performing an incremental backup before a full backup is
performed causes future recovery operations to fail.
Restoring data 55
Restoring Data
Note: The user ID and password are for the new Sybase server.
Note: The user ID and password are for the new Sybase server.
56 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Restoring Data
Note: Although the -d option indicates the destination for recovery, it is not used in this
example because the destination server name and database name are the same as the original
NetWorker client.
Restoring data 57
Restoring Data
Note: The syntax of multistripe restore is same as a normal database restore. If the data is
backed up using the multistripe backup option, the multistripe restore is automatically enabled
and uses the same session number as the multistripe backup.
58 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
6
Disaster Recovery
Disaster Recovery 59
Disaster Recovery
Recover the NetWorker server and Sybase server after a disk crash
To recover both the NetWorker server’s primary disk containing the online indexes
(/nsr file system) and the primary disk for the Sybase server:
1. Reinstall the NetWorker server binaries, if required.
2. Find the latest bootstrap printout for the NetWorker server and recover the
server’s online indexes. The NetWorker Disaster Recovery Guide provides more
information.
3. Reinstall the NMS software and the Sybase server, if required.
4. Recover the Sybase system databases and Sybase user databases. The Sybase
documentation provides more information.
5. Use the nsrsybrc command to recover the Sybase data.
60 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Disaster Recovery
! IMPORTANT
If the master database is recovered to a different Sybase server, all the device
allocations are copied to the new Sybase server.
If the master database is recovered to another Sybase server on the same computer as
the original, they both attempt to use the same database files. For instructions on
recovering the master database to a different Sybase server, refer to the Sybase
documentation.
For Sybase ASE version 12.5 and later, recover the master database if the valid dump
uses the server’s default sort order:
1. Rebuild the lost master device by using the dataserver command.
2. Start the Sybase server in single-user mode. This mode is also called
master-recover mode.
3. Ensure that the Sybase server has the correct name for the Sybase Backup Server
in the sysservers table.
4. Recover the master database from the backup:
nsrsybrc -U user_ID -P password -s networker_server
SYBASE:/Sybase_server/master
where:
• user_ID is the username for the Sybase user account.
• password is the password for the Sybase user account.
• networker_server is the name of the NetWorker server.
• Sybase_server is the name of the Sybase server.
After the master database is loaded, the Sybase server performs postprocessing
checks and validations and then shuts down.
5. Restart the Sybase server.
6. If required, recover the model and other databases that were on the master
device.
7. Log in as system administrator and inspect the databases on the Sybase server to
ensure that all of the databases are present.
62 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Disaster Recovery
The nsrsybrc command recovers the last full database backup of the specific
database and applies all of the associated transaction log backups in the order
that they were created. The database is automatically brought online after the
recovery operation.
64 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
A
Invisible Body Tag
NMS Commands
This appendix provides information about the NMS commands nsrsybcc, nsrsybrc,
and nsrsybsv and their syntax.
This appendix includes the following topics:
◆ Syntax for NMS commands.......................................................................................... 66
◆ NMS commands ............................................................................................................. 68
NMS Commands 65
NMS Commands
Conventions
The conventions presented in the command line are as follows:
◆ Command options not enclosed in any brackets must always be present in the
command.
◆ Command options enclosed in square brackets, [], are optional.
◆ For command options enclosed in braces, {}, one of the options must exist with
the command.
Scheduled backup
For a scheduled backup, the user and password information is automatically
retrieved from the NetWorker Client resource. The security level is high since the
username and password information is saved in the NetWorker Client resource on
the NetWorker server.
Use the -U and -P options with the nsrsybcc, nsrsybsv, and nsrsybrc commands
When running the nsrsybcc, nsrsybsv, and nsrsybrc commands, use the -U and -P
options.
66 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
NMS Commands
The security level is low with this method since the username and password must be
explicitly typed in the command line. During runtime, other users might access the
username and password information.
For example:
nsrsybsv -U user_ID -P password -s networker_server
SYBASE:/Sybase_server/database_name
where:
◆ user_ID is the username for the Sybase user account.
◆ password is the password for the Sybase user account.
◆ networker_server is the hostname of the NetWorker server.
◆ Sybase_server is the Sybase server name.
◆ database_name is the name of the database on the Sybase server.
Use the -c, -s, -N and -g options with the nsrsybsv command
Use the -c, -s, -N and -g options with the backup command nsrsybsv to query the
user and password information from the NetWorker server.
For example:
nsrsybsv -c networker_client -s networker_server -N saveset_name -g group
SYBASE:/Sybase_server/database_name
where:
◆ networker_client is the hostname of the computer where the database resides.
◆ networker_server is the hostname of the NetWorker server.
◆ saveset_name is the name of the NetWorker save set.
◆ group is the name of the NetWorker group.
◆ Sybase_server is the Sybase server name.
◆ database_name is the name of the database on the Sybase server.
The security level is high with this method since the username and password
information is securely saved in the NetWorker Client resource on the NetWorker
server. The nsrsybsv command queries the NetWorker server to determine if a
NetWorker client matches the client, group and save set information. If found, the
nsrsybsv command uses the Sybase user and password information defined in the
NetWorker Client resource to perform the backup.
Use the -c, -s, -N and -g options with the nsrsybcc command
Use the -c, -s, and -g options with the recover command nsrsybcc to query the user
and password information from the NetWorker server.
67
NMS Commands
For example:
nsrsybcc -c networker_client -s networker_server -g group
SYBASE:/Sybase_server/database_name
The security level is high since the username and password information is securely
saved in the NetWorker Client resource on the NetWorker server. The nsrsybcc
command queries the NetWorker server to determine if a NetWorker client matches
the client, group, save set, and database information. If found, the nsrsybcc command
uses the Sybase user and password information defined for that NetWorker Client
resource to perform a consistency check.
NMS commands
This section lists NMS options associated with the following commands:
◆ “nsrsybcc” on page 68
◆ “nsrsybrc” on page 69
◆ “nsrsybsv” on page 69
nsrsybcc
This section describes the options associated with the nsrsybcc command.
[-qvh?] [-U user_ID] [-P password] [-c clientname] [-s server]
[-g group] [-o ckal] [-o ckdb] [-o ckdbnoidx] [-o ckcat] [-o ckstor]
{SYBASE:/ASE_servername/database_name |
SYBASE:/ASE_servername/database_name
SYBASE:/ASE_servername/database_name ...]}
where:
c Specify Client hostname.
g SpecifyBackup group. This option overrides NSR_GROUP.
h Displays usage.
P Password to log in to the Sybase server.
q Quiet mode.
s Specify NetWorker server to use. If gethostbyname for the server fails, an error occurs. This option
overrides NSR_SERVER.
U Username to log in to the Sybase server.
v Verbose mode.
? Displays usage.
-o ckdb | -o ckdbnoidx
dbcc checkdb (..., skip_ncindex)
-o ckal
dbcc checkalloc
-o ckcat
dbcc checkcatalog
-o ckstor
dbcc checkstorage (The dbccdb database must also have been set up.)
68 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
NMS Commands
nsrsybrc
This section describes the options associated with the nsrsybrc command.
[ -hkpqv? ]
[ -r backup-password ] [-V header/full/verifyonly ]
[ -U username] [ -P password ]
[ -d SYBASE:/ASE-server-name[ /database-name ]
[ -s server ] [ -c client-name ]
[ -t date ]
[ -e aes_pass_phrase ]
{SYBASE:/ASE-server-name | SYBASE:/ASE-server-name/database-name
[SYBASE:/Ase-server-name/database-name ...]}
where:
c NetWorker client hostname. Used in imported recoveries.
d Destination for recovery. If none is provided, the database is recovered to its original location,
overwriting any existing data. If one is provided, the database (or instance) is recovered to another
database (or instance).
e Used during recovery to specify the additional passphrases. This option can be specified multiple
times.
h Displays usage of the command.
k Perform a database consistency check on each database once it has been restored. The results of
the database consistency check are written to stdout.
p Do not bring the database online after the recovery has completed.
P Password to log in to the Sybase server.
q Quiet mode.
r Use to set password protection at the time of backup and restore.
s Specify the NetWorker server to use. If gethostbyname for the server fails, an error occurs. This
overrides NSR_SERVER.
t Specify the time for data recovery. For Sybase server 11.5 or later, this option is used as the time for
point-in-time recovery.
U Username to log in to the Sybase server.
v Verbose mode.
V Database backup and restore verification.
? Displays usage.
nsrsybsv
This section describes the options associated with the nsrsybsv command.
[ -CGRTdhpvq? ]
[ -U username ] [ -P password ]
[ -r backup-password ] [-V header/full/verifyonly ]
[ -w browse-time ] [ -y retention-time ]
[ -s server ] [ -S stripe_count ]
[ -c client-name ] [ -N SYBASE:/ASE-server-name[ /database-name ] ]
[ -b pool ] [ -g group ] [ -l level ]
[ -W width ]
[ -X exclude-file ]
SYBASE:/ASE-server-name | SYBASE:/ASE-server-name/database-name ...
69
NMS Commands
where:
b Specifies a particular destination pool for the databases and transaction logs.
c Specify the client name for starting the save session.
C Use XBSA compression.
g Backup group. This overrides NSR_GROUP.
G Perform a dump with the NO_LOG option.
h Displays usage.
l Backup(save) level. Valid options are full and incremental. The default is full.
N Override the constructed save set name.
p Do not promote an incremental backup to a full backup if an incremental backup cannot be
performed.
P Password to log in to the Sybase server.
q Quiet mode.
r Use to set password protection at the time of backup and restore.
R Perform a dump without truncating the transaction log as follows:
Perform a dump transaction with no_truncate if it is an incremental backup.
Perform a dump database without the preceding dump transaction for a full backup.
s Specify the NetWorker server to use. If gethostbyname for the server fails, an error occurs. This
overrides NSR_SERVER.
S Specify the number of stripes to be used in backing up each of the databases in this set. The
default value for the stripe-count is 1.
T Perform a dump with the truncate_only option. This is valid with a full or an incremental backup.
U Username to log in to the Sybase server.
v Verbose mode.
V Database backup and restore verification.
w Specify browse time.
W The width used when formatting summary information output.
X Specify file for exclusion during backup.
y Specify retention time.
? Displays usage.
70 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
B
XBSA Variables
This appendix describes how to change NetWorker XBSA environment variables and
lists their default values and valid options.
This appendix includes the following topics:
◆ About XBSA environment variables ........................................................................... 72
◆ XBSA environment variables definitions and values ............................................... 72
XBSA Variables 71
XBSA Variables
72 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
XBSA Variables
NSR_BACKUP_LEVEL
Definition The NSR_BACKUP_LEVEL environment variable indicates the NetWorker backup level to use for the XBSA session.
Default Value FULL
Possible Values Although NetWorker software supports backups of levels full, 1 through 9, incremental, and skip, NMS does not support levels
1 through 9.
• If a level other than full, incremental, or skip is assigned, the backup fails and displays the message “Only level full or
incremental backups allowed”.
• If the skip level is assigned for a save set, the savegroup operation is completed successfully, but does not perform a
backup of the data.
NSR_CLIENT
Definition The NSR_CLIENT environment variable indicates the NetWorker Client resource to use for the XBSA session.
Default Value The host from which the XBSA session is initiated, as indicated by getlocalhost() is the default value for NRS_CLIENT.
Possible Values Because the client name is an arbitrary string, the value for NSR_CLIENT is not checked directly. An incorrect value might
cause an authentication or system error in the NetWorker software.
NSR_COMPRESSION
Definition The NSR_COMPRESSION environment variable indicates whether to compress the backup data as it is sent to the NetWorker
server.
Default Value FALSE
Possible Values Setting NSR_COMPRESSION to a value of TRUE means that the standard compression technique for XBSA for NetWorker
software is performed on the backed up data. Setting NSR_COMPRESSION to a value of FALSE means that compression is
not performed.
Note: Compressing data from the Sybase server might accelerate backups, as long as the Sybase server can send data to the
backup server fast enough to keep the tape drive streaming. Data compression during backup impacts CPU usage on the
backup server, but reduces the amount of data sent to the NetWorker server.
NSR_DATA_VOLUME_POOL
Definition The NSR_DATA_VOLUME_POOL environment variable indicates the volume pool to which datafiles should be backed up.
Default Value XBSA does not set a pool by default. If no pool is specified, the NetWorker server selects the pool based on its Pool resource
configuration.
Possible Values Use any valid NetWorker pool name of 1024 characters or less as the NSR_DATA_VOLUME_POOL value. Set this value in
the NetWorker Pool resource and explicitly assign it in a shell script.
NSR_DEBUG_FILE
Definition The NSR_DEBUG_FILE environment variable indicates the full pathname and filename to which NetWorker XBSA messages
should be written. Message logs for XBSA are separated from regular NetWorker messages. NetWorker XBSA error
messages are indicated by the prefix BSA.
Default Value /nsr/applogs/xbsa.messages
Possible Values Any valid pathname and filename is acceptable. If NetWorker software cannot open the file specified, it writes a
BSA_RC_INVALID_KEYWORD error message to one of the following locations:
• The alternate /nsr/applogs messages directory created during installation
• The directory assigned to the TMPDIR environment variable
• The /tmp directory, if TMPDIR is not set
73
XBSA Variables
NSR_DEBUG_LEVEL
Definition The NSR_DEBUG_LEVEL environment variable sets the level of NetWorker XBSA error report messages sent to the
xbsa.messages log file.
Default Value The default value is 2, which means that critical error messages and all network (RPC) errors are written to xbsa.messages.
Possible Values Any integer from 0 to 9 is valid. Higher values within the range generate more detailed reports:
• A value of 0 means that no error messages are written to xbsa.messages.
• A value of 1 means that only critical error messages are written to xbsa.messages.
• A value of 2 means that all network (RPC) errors are written to xbsa.messages.
• A value of 3 means that all NetWorker XBSA informational messages are written to xbsa.messages.
The default value in the nsrsybsv, nsrsybrc, and nsrsybcc commands can be overwritten with the -D option.
NSR_GROUP
Definition The NSR_GROUP environment variable indicates the group configuration to use for a backup session.
Default Value None
Possible Values Use any valid NetWorker group name of 1024 characters or fewer as the NSR_GROUP value. Invalid group names might
cause authentication or system errors in another routine.
A NetWorker group configuration acts as an alarm clock, notifying the NetWorker server that a group of clients has a backup
scheduled to occur at the time designated in the group’s Start Time attribute.
NSR_LOG_VOLUME_POOL
Definition The NSR_LOG_VOLUME_POOL environment variable indicates the volume pool to which transaction logs should be backed
up.
Default Value NetWorker XBSA does not set a pool by default. If no pool is specified, the NetWorker server selects the pool based on its Pool
resource configuration.
Possible Values Use any valid NetWorker pool name of 1024 characters or fewer as the value for NSR_LOG_VOLUME_POOL. Set this value
in the NetWorker Pool resource.
NSR_NO_BUSY_ERRORS
Definition The NSR_NO_BUSY_ERRORS environment variable indicates whether the savegroup should wait for a busy NetWorker
server or fail immediately.
Default Value The default value is FALSE, which means the savegroup waits for the NetWorker server to accept the connection.
Possible Values Setting NSR_NO_BUSY_ERRORS to a value of TRUE causes the backup to fail immediately when the NetWorker server is
busy. A network error message describing the reason for the failure is written to the xbsa.messages file. If
NSR_DEBUG_LEVEL is set to 1 and the NetWorker server is busy, the backup process stops and the error message
“BSA_RC_ABORT_SYSTYEM_ERROR” is written to the xbsa.messages file.
NSR_SAVESET_NAME
Definition The NSR_SAVESET_NAME environment variable indicates the save set name NetWorker XBSA should use for a save
session.
Default Value NetWorker XBSA uses the format SYBASE:/Sybase_server/database_name, where Sybase_server is the name of the
Sybase server instance.
Possible Values Use any valid NetWorker save set name as the value for NSR_SAVESET_NAME. Only the first 63 characters are meaningful
to the NetWorker server’s media database.
For example:
SYBASE:/Sybase_server/database_name
74 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
XBSA Variables
NSR_SERVER
Definition The NSR_SERVER environment variable indicates the hostname of the server that NetWorker XBSA should use for a save
session.
Default Value The default value is the most appropriate server, based on the index name and client name for the session. See also <ln
Link>"NSR_CLIENT".
Possible Values The server name defined by the NSR_SERVER environment variable is checked by using gethostbyname(). If this routine call
fails, the NetWorker XBSA error code “BSA_RC_INVALID_KEYWORD” is returned.
NSR_AES_ENCRYPTION
Definition AES encryption is enabled by setting the NSR_AES_ENCRYPTION environment variable for scheduled backups.
Default Value FALSE
Possible Values Set NSR_AES_ENCRYPTION to TRUE. This variable is set using the NSR parameter in nsrsyb script.
NSR_ENCRYPTION_PHRASES
Definition During restore through isql utility provided by Sybase, the environment variable NSR_ENCRYPTION_PHRASES is used to
specify the pass phrase for decrypting the backed up data.
Default Value Passphrase string ending with a comma (",").
Possible Values Specify one or more passphrases with the NSR_ENCRYPTION_PHRASES environment variable.
When setting the value of NSR_ENCRYPTION_PHRASES:
• The passphrases string must end with a comma.
• Each passphrase in the string must be separated by a comma.
• If comma (",") is part of the passphrase, then it must be escaped using forward slash (\). In this case, the comma will lose
its meaning as a separator and will be considered as a part of pass phrase.
• If forward slash (\) is used as part of passphrase, then the forward slashes (\) must be escaped.
75
XBSA Variables
76 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
C
This appendix details the correct syntax for using the dump and load commands
from the Sybase isql command line.
This appendix includes the following topics:
◆ Syntax for isql commands............................................................................................. 78
◆ Loading and dumping a database ............................................................................... 78
◆ Loading and dumping a transaction log .................................................................... 79
◆ Recovering a database and transaction logs .............................................................. 80
! IMPORTANT
To back up and recover NetWorker save sets, use the NMS nsrsybsv and nsrsybrc
programs, rather than the Sybase dump and load commands.
To load the master database from a backup performed on March 22, 2007 at 11:52:30
a.m., the syntax would be:
load database master from “bms::...2007032211523000”
78 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
The isql Commands
! IMPORTANT
After loading the database, bring it back online.
! IMPORTANT
Do not use the Save Set Recover window to recover Sybase data. Use the nsrsybrc
command to recover databases and transaction logs. For details, see “About
restoring data” on page 52.
79
The isql Commands
• Run the following command to obtain a list of all the Sybase save sets for the
NetWorker client.
nsrinfo -X all -n sybase client_name
• Use the Save Set Recover window in NMC to select the save set to be
recovered. The date and time are displayed in the Instances window.
Enter the load command at the isql command line.
2. Specify a timestamp in the following format:
YYYYMMDDhhmmsslll
where:
• YYYY indicates the year.
• MM indicates the month.
• DD indicates the day.
• hh indicates the hour.
• mm indicates the minutes.
• ss indicates the seconds.
• lll indicates the milliseconds. The l millisecond position is optional;
alternatively, 000 can be entered for the milliseconds.
Note: If you do not specify a timestamp, the most recent backup is recovered.
Note: The load command uses the XBSA environment variables that are set for the Sybase
Backup Server.
Note: To load a database or transaction log from the isql command line, the timestamp for
each database or transaction log might be required. If a timestamp is not included, the
NetWorker software uses the most recent backup. If there are multiple transaction logs,
then it is useful to indicate the timestamp when a transaction log is loaded.
If required, find the timestamp for a save set by using either of the following
methods:
• Enter the following command to obtain a list of all the Sybase save sets for the
NetWorker client:
nsrinfo -X all -n sybase networker_client
80 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
The isql Commands
! IMPORTANT
Use the nsrsybrc command to recover databases and transaction logs. Use the Save
Set Recover window to recover Sybase data. Chapter 5, ”Restoring Data,” provides
details.
81
The isql Commands
82 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Invisible Body Tag
D
Troubleshooting and
Error Messages
This appendix describes error messages that could appear while using the NMS
software, and provides suggestions to resolve the problems.
This appendix includes the following topics:
◆ Displaying release information .................................................................................... 84
◆ Verifying version information ...................................................................................... 84
◆ NMS error messages ...................................................................................................... 85
◆ Sybase Backup Server and libbms error messages.................................................... 92
◆ NetWorker XBSA and libbms error messages............................................................ 94
84 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
The NSR_DEBUG_LEVEL variable sets the level of NetWorker XBSA error report
messages sent to the xbsa.messages log file.
The NetWorker XBSA and libbms error messages are written to the
/nsr/applogs/xbsa.message file. The libbms error messages are also reported to the
Sybase Backup Server, which prints them to the stdout file and logs them in the
Sybase Backup Server error log.
The messages are organized alphabetically by NetWorker command name and
program name to make them easier to match to the NetWorker message. The
messages are then presented along with the cause and/or corrective action to take.
nsrsyb command
Table 10 lists the error message for nsrsyb command.
Table 10 Error message for nsrsyb
nsrsybsv returned status of An error occurred when the nsrsybsv command was run. Check the nwadmin
value nsrsyb exiting display or the /nsr/applogs/xbsa.messages file on the NetWorker server to
determine which error caused the failure.
nsrsybcc command
Table 11 list the error messages for nsrsybcc command.
Table 11 Error messages for nsrsybcc command
CS-LIBRARY or CT-LIBRARY An error occured in the Sybase Open Client library layer. The operating system
error: error_message. part of the error message appears only if an operating system error occurred.
Operating system error These error messages normally appear when the master database is recovered
number(n): error_message. because this operation shuts down the Sybase server, but they are not normal
during other operations. The error message text describes the specific problem.
the command line did not The nsrsybsv, nsrsybrc, and nsrsybcc command each operate on a database
specify any databases or (or, for nsrsybrc and nsrsybcc, a list of databases). No databases or instances
instances were specified on the command line.
the command line may specify Either the entire instance (SYBASE:/server_name) or a list of databases
the entire instance or a list of (SYBASE:/Sybase_server/database_name1
individual databases, but not SYBASE:/Sybase_server/database_name2) at the command
both line can be specified. An instance name and a list of databases cannot be
specified at the same time.
85
Troubleshooting and Error Messages
The command line specifies Each invocation of the nsrsybsv, nsrsybcc, or nsrsybrc programs can operate
more than one Sybase on a single Sybase server because the user ID and password supplied are
instance. Only a single unlikely to be the same over multiple servers. Retry the command and run it once
instance may be supplied with for each Sybase server.
each command line.
the database name The database name supplied at the command line was longer than 32
database_name has a length characters.
greater than the maximum of
32
error from server The Sybase server returned an error. Check the error message that follows this
Sybase_server: Msg number, message to determine the reason for the error.
Level number, State number
The instance name was not The database to be processed was specified as “SYBASE:”, but the instance
provided in the command line name was not supplied.
command_line_value. The
command line has the form
SYBASE:/instance_name[/dat
abase_name].
invalid check option -o value The database consistency check option that was supplied is not valid.
was supplied Appendix A, “NMS Commands” and the nsrsybcc man page provide a list of
supported options.
no NetWorker server was This message indicates that no NetWorker server was specified or could be
specified found. The NetWorker server to which the command is to be issued can be
specified with the -s networker_server option.
non fatal internal error from The Sybase server returned a nonfatal error. This error does not stop the
server server_name: Msg operation; examine the message to ensure that the error does not lead to future
number, Level number, State problems.
number
path needs to begin with The database name option for the nsrsybcc program did not begin with the
SYBASE:. The command line characters “SYBASE:” All Sybase server save sets must begin with this name.
has the form
SYBASE:/instance_name[/dat
abase_name]
SQL Server server_name NMS supported is supported on SQL Server 11.x or later and Adaptive Server
version is too old. It must be Enterprise 11.5 or later.
11.0 or later, and it is
version_number.
Username and password were The NetWorker Client resource for this save set and group did not have the
not found in the client Sybase user ID and password set. This means that the scheduled backup could
client_name resource in group not log in to the Sybase server.
group_name. Edit the client
resource for save set
save_set_name to include
these.
username is required and was A username must be supplied for Sybase log in. This username can be queried
not supplied from the Client resource in the NetWorker server, entered on the command line,
or obtained from the environment variable, $USER.
nsrsybrc command
Table 12 lists the error messages for the nsrsybrc command.
86 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
Error Description
CS-LIBRARY or CT-LIBRARY An error occurred in the Sybase Open Client library layer. The operating system
error: error_message. part of the error message is displayed only if an operating system error occurred.
Operating system error These error messages might appear when the master database is recovered
number(n): error_message. because this operation shuts down the Sybase server, but they are not normal
during other operations. The error message text describes the specific problem.
cannot restore to the The database to which the nsrsybrc command is recovering does not exist.
destination database Create the database and try the nsrsybrc command again.
database_name because it
does not exist in the instance
server_name
the command line did not The name of the database or Sybase server instance to be recovered must be
specify a database or an supplied when using the nsrsybrc command.
instance to restore
the command line did not The nsrsybsv, nsrsybrc, and nsrsybcc commands each operate on a
specify any databases or database (or, for nsrsybrc and nsrsybcc, a list of databases). No databases or
instances instances were specified from the command line.
the command line may specify Either the entire instance (SYBASE:/server_name) or a list of databases
the entire instance or a list of (SYBASE:/server_name/database_name1
individual databases, but not SYBASE:/server_name/database_name2) must be specified at the command
both line. Both an instance name and a list of databases cannot be specified at the
same time.
The command line specifies Each invocation of the nsrsybsv, nsrsybcc, or nsrsybrc commands can
more than one Sybase operate on a single Sybase server because the user ID and password supplied
instance. Only a single are unlikely to be the same over multiple servers. Retry the command and run it
instance may be supplied with once for each Sybase server.
each command line.
the database name The maximum database name length is 32 characters. This error message
database_name has a length indicates that the database name supplied at the command line was longer than
greater than the maximum of 32 characters.
32
error from server The Sybase server returned an error. Check the error message that follows this
server_name: Msg number, message to determine the reason for the error.
Level number, State number
If master is being restored, no A list of databases to recover was specified, and the master database was listed
others can be restored in the along with others. Recovering the master database shuts down the Sybase
same session. The database server, which makes recovering other databases impossible.
must be in master recover
mode to recover master, and
this precludes restoring any
other database.=
if the destination is an The -d destination option was used to specify a server instance, but the item to
instance, the source must be be recovered is a single database. Retry the command and specify the
an instance, too destination database. For example:
nsrsybrc -U sa -P xxx -d
SYBASE:/destination_server/destination_database
SYBASE:/source_server/source_database.
if the source is an instance, The object to be recovered is an entire Sybase server instance, but the
the destination must be an destination specified to recover the instance to is a database name. Retry the
instance, too command and specify the destination as an instance. For example:
nsrsybrc -U sa -P xxx -d
SYBASE:/destination_server SYBASE:/source_server.
87
Troubleshooting and Error Messages
Error Description
The instance name was not The database to be processed was specified as “SYBASE:”, but the instance
provided in the command line name was not supplied.
command_line_value. The
command line has the form
SYBASE:/instance_name[/dat
abase_name].
internal error. Full backup This error occurs only when a full backup is found, but is then no longer available
expected but not found. before the nsrsybrc command recovers the database. For example, this error
occurs when the volume containing the full backup is manually relabeled at the
same time the incremental backup that depends on that full backup is being
recovered.
invalid time specification: time The -t time option supplied with the nsrsybrc command was not valid. This
value option should be supplied in the nsr_getdate form. The nsr_getdate man page
provides more details.
no backup was found for The nsrsybrc command could not find a backup of the database specified for
database database_name recovery. Run the nsrinfo command to see if a backup exists, and ensure that
the user ID used for the nsrsybrc command matches the object owner that is
displayed. Run the Sybase Backup Server and the nsrsybrc and nsrsybsv
commands from the same user ID to avoid this problem.
no NetWorker server was No NetWorker server was specified or could be found. Specify the NetWorker
specified server to which the command is to be issued with the -s server_name
option.
Non fatal internal error from The Sybase server returned a nonfatal error. This error does not stop the
server server_name: Msg operation; examine the message to ensure that the error does not lead to future
number, Level number, State problems.
number
path needs to begin with The -d destination option or the database name option for the nsrsybrc
SYBASE:. The command line command did not begin with the characters “SYBASE:”. All Sybase server save
has the form sets must begin with this name.
SYBASE:/instance_name[/dat
abase_name]
SQL Server server_name The NMS software is supported on SQL Server 11.x or later and Adaptive Server
version is too old. It must be Enterprise 11.5 or later.
11.0 or later, and it is
version_number.
Sybase server version The database consistency check checkstorage option works only with Adaptive
version_number does not Server Enterprise 11.5 and later. SQL Server 11.x does not support this option.
support the “checkstorage”
option. Versions 11.5 and later
support it
there are no databases to There were no databases found in the directory entry for the Sybase server
restore in instance database.
server_name
there is no backup of the No backup could be found for the Sybase server name supplied. Make sure that
instance for the time supplied the nsrsybrc command is run with the same user ID that was used to run the
nsrsybsv command. Otherwise, ensure that the time used is correct. If a time is
not entered, the current time is used.
there is no full backup of Backups of this database exist, but there was not a full backup available for the
database database_name in time requested. Try an earlier time, or run the nsrinfo command to determine
instance server_name for the when the last full backup occurred. For example, if the full backup has passed its
time supplied browse policy, the full backup might be listed in the media database but not in the
client index. In this situation, re-create the entry in the client index with the
scanner -i command, and then recover the database with the nsrsybrc
command.
88 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
Error Description
Unable to close temporary file The temporary file used to pass environment variables between nsrsybsv and
that has environment libbms could not be closed. The permissions might be incorrect, or the disk
variables. Check for disk full or might have insufficient space to write the file. Redirect the nsrsybsv command
privilege errors in /nsr/tmpdir. to create a temporary directory in a different place by setting the NSR_TEMPDIR
variable.
unable to create directory The access privileges for the user running the nsrsybsv command are
/nsr/tmpdir insufficient to create the /nsr/tmpdir directory. Re-create the directory manually or
change the permissions so that this directory can be created by this user.
Redirect the nsrsybsv command to create a temporary directory in a different
place by setting the NSR_TEMPDIR variable.
unable to open temporary file The temporary file that is used to pass environment variables between
to pass environment variables nsrsybsv, nsrsybrc, and libbms could not be opened. Check for file access or
disk problems. Redirect the nsrsybsv command to create a temporary directory
in a different place by setting the NSR_TEMPDIR variable.
unable to query backup There was an error querying the backup from the server. Check the
/nsr/applogs/xbsa.messages file for the specific error text.
unable to write environment The system could not write to the temporary file used to pass environment
variables to the temporary file variables between nsrsybsv and libbms. Check for file access or disk problems.
Username and password were The NetWorker Client resource for this save set and group did not have the
not found in the client Sybase user ID and password set. This means that the scheduled backup could
client_name resource in group not log in to Sybase server.
group_name. Edit the client
resource for saveset
save_set_name to include
these.
username is required and was Supply a username for Sybase log in. This username can be queried from the
not supplied Client resource in the NetWorker server, entered from the command line, or
obtained from the environment variable, $USER.
Both the truncate only (-T) and The -T and -R options, when supplied together, ask for opposite results. Select
the no truncate (-R) options one or the other option and retry the operation.
were specified. Only one may
be specified for a given
backup.
cannot find database The database to be backed up does not exist in the Sybase server.
database_name in instance
server_name
the command line did not The nsrsybsv, nsrsybrc, and nsrsybcc command each operate on a database
specify any databases or (or, for nsrsybrc and nsrsybcc, a list of databases). No databases or instances
instances were specified on the command line.
the command line may specify Specify either the entire instance (SYBASE:/server_name) or a list of
the entire instance or a list of databases (SYBASE:/server_name/database_name1
individual databases, but not SYBASE:/server_name/database_name2) at the command line. An instance
both name and a list of databases cannot be specified at the same time.
The command line specifies Each invocation of the nsrsybsv, nsrsybcc, or nsrsybrc command can operate
more than one Sybase on a single Sybase server because the user ID and password supplied are
instance. Only a single unlikely to be the same over multiple servers. Retry the command and run it once
instance may be supplied with for each Sybase server.
each command line.
CS-LIBRARY or CT-LIBRARY An error occurred in the Sybase Open Client library layer. The operating system
error: error_message. part of the error message is displayed only if an operating system error occurred.
Operating system error These error messages appear when the master database is recovered because
number(n): error_message. this operation shuts down the Sybase server, but they are not normal during
other operations. The error message text describes the specific problem.
89
Troubleshooting and Error Messages
Error Description
the database name The maximum database name length is 32 characters. The database name
database_name has a length supplied at the command line was longer than 32 characters.
greater than the maximum of
32
environment variable The environment variable NSR_BACKUP_LEVEL specified a level other than
NSR_BACKUP_LEVEL has full, incremental, or skip.
an invalid value of value,
defaulting to a full backup
error from server The Sybase server returned an error. Check the error message
server_name: Msg number, that follows this error message to determine the reason for the error.
Level number, State number
the exit status of process The PRECMD or POSTCMD that was run did not exit, but the process no longer
process_number could not be exists.
determined
a full database backup is The incremental backup failed because a full backup must
required and will be done first be performed. Perform a full backup, then retry the transaction log backup.
before the transaction log
backup
The -G option is not supported The -G option is not supported for a full backup of a database when the
where the transaction log is on transaction log is on a separate device.
a separate device. This option
will be ignored.
The -G option is not valid for The -G option is not supported for incremental backups when the transaction log
an incremental backup where is on a separate device.
the log is on a separate
device. It will be ignored. To
truncate the transaction log
without logging it, use the
same command with a level of
full instead of incremental.
The instance name was not The database to be processed was specified as “SYBASE:”, but the instance
provided in the command line name was not supplied.
command_line_value. The
command line has the form
SYBASE:/instance_name[/dat
abase_name].
An invalid backup level was The backup level supplied to nsrsybsv command is not permitted.
supplied. Valid backup levels
are full, incremental, and skip
no command to execute in The PRECMD or POSTCMD environment variable is set, but it has no value.
PRECMD or POSTCMD Either unset the environment variable, or enter a value to run in the environment
variable.
no NetWorker server was This message indicates that no NetWorker server was specified or could be
specified found. Specify the NetWorker server to which the command is to be issued with
the -s server_name option.
Non fatal internal error from The Sybase server returned a nonfatal error. This error does not stop the
server server_name: Msg operation; examine the message to ensure that the error does not lead to future
number, Level number, State problems.
number
only one database or instance More than one database or instance was supplied on the command line to the
may be specified nsrsybsv command. The nsrsybsv command only supports a single instance
(SYBASE:/server_name) or database
(SYBASE:/server_name/database_name) per invocation.
90 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
Error Description
path needs to begin with The -N save_set_name option or the database name option for the nsrsybsv
SYBASE:. The command line command did not begin with the characters “SYBASE:”. All Sybase server save
has the form sets must begin with this name.
SYBASE:/instance_name[/dat
abase_name]
PRECMD or POSTCMD did The PRECMD or POSTCMD did not return a status value.
not return a result. It needs to
return zero on success and
nonzero on failure.
process process_number The PRECMD or POSTCMD exited with a nonzero result code. Check the
running command PRECMD PRECMD or POSTCMD exit code for details. Also verify that the settings in the
or POSTCMD completed with PRECMD or POSTCMD are valid. “Environment variables in the nsrsyb script”
a result of n on page 41 provides details.
SQL Server server_name The NMS software is supported on SQL Server version 11.x or later and
version is too old. It must be Adaptive Server version 11.5 or later.
11.0 or later, and it is
version_number.
Sybase server version The database consistency check checkstorage option only works with Adaptive
version_number does not Server version 11.5 and later. SQL Server version 11.x does not support this
support the “checkstorage” option.
option. Versions 11.5 and later
support it
The -T option is not valid for an The -T option only works for a full backup when the transaction log is on a
incremental backup where the separate device.
log is on a separate device. It
will be ignored. To truncate the
transaction log, use the same
command with a level of full
instead of incremental.
Unable to close temporary file The temporary file used to pass environment variables between nsrsybsv and
that has environment libbms could not be closed. The permissions might be incorrect, or the disk
variables. Check for disk full or might have insufficient space to write the file.
privilege errors in /nsr/tmpdir.
unable to create directory The access privileges for the user running the nsrsybsv command are
/nsr/tmp insufficient to create the /nsr/tmp directory. Re-create the directory manually or
change the permissions so that this directory can be created by this user.
unable to create directory The directory entries could not be created. Check the
entries /nsr/applogs/xbsa.messages file for the specific reason that the entries could not
be created.
unable to determine whether The database to be backed up is not in a state in which it can be queried to
database and log are on determine whether incremental backups are allowed. The error message from
separate segments the Sybase server that was displayed prior to this message indicates the reason
the database cannot be queried.
unable to dump database The dump database command failed. The error message from the Sybase
database_name in instance server that was displayed prior to this message indicates the reason the
server_name database was not dumped.
unable to dump the The command to dump the transaction log failed. The error message from the
transaction log for database Sybase server that was displayed prior to this message indicates the reason the
database_name in instance transaction log was not dumped.
server_name
91
Troubleshooting and Error Messages
Error Description
unable to dump the The command to dump the transaction log with the no_truncate option failed.
transaction log without The error message from the Sybase server that was displayed prior to this
truncating it for database message indicated the reason the transaction log was not truncated.
database_name
unable to execute the The PRECMD or POSTCMD could not be found. Ensure the command exists in
command PRECMD or one of the directories specified in $PATH.
POSTCMD contents
unable to open temporary file The temporary file used to pass environment variables between nsrsybsv,
to pass environment variables nsrsybrc, and libbms could not be opened. Check for file access or disk
problems.
unable to print savegrp After the backup occurred, NetWorker software could not find the save sets in the
completion message media database.
Unable to print summary. One The parameters that NetWorker software expected to find for the function that
or more parameters are not prints the savegrp summary were not supplied.
set
unable to spawn process to The PRECMD or POSTCMD could not be run because a process needed to run
issue the PRECMD or them was not available.
POSTCMD command
unable to truncate the The command to truncate the transaction log failed. The error message from the
transaction log for database Sybase server that was displayed prior to this message indicated the reason the
database_name transaction log was not truncated.
unable to truncate the The command to truncate the transaction log failed. The error message from the
transaction log for database Sybase server that was displayed prior to this message indicates the reason the
database_name with the transaction log was not truncated.
no_log option
unable to write environment The system could not write to the temporary file that was used to pass
variables to the temporary file environment variables between nsrsybsv and libbms. Check for file access or
disk problems.
Username and password were The NetWorker Client resource for this save set and group did not have the
not found in the client Sybase user ID and password set. This means that the scheduled backup could
client_name resource in group not log in to Sybase server.
group_name. Edit the client
resource for save set
save_set_name to include
these.
username is required and was Supply a username for Sybase log in. This username can be queried from the
not supplied Client resource in the NetWorker server, entered from the command line, or
obtained from the environment variable, $USER.
92 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
Sybase Backup Server logs the libbms error messages in the Sybase Backup Server
error log.
Table 13 lists libbms error messages that are logged in the Sybase Backup Server
error log. The Sybase documentation provides details on other Sybase Backup Server
errors.
libbms opened with an unknown The libbms shared library was opened with a mode other than read or
mode: internal error write.
there is insufficient memory to There is not sufficient memory to complete the operation.
continue
The time stamp dddddddd has non The timestamp supplied for the load command from the isql command
digits in it. Timestamps are line has a timestamp with an incorrect format. The timestamp must have
composed of digits in the form the format YYYYMMDDhhmmsslll.
YYYYMMDDhhmmsslll. where:
• YYYY indicates the year.
• MM indicates the month.
• DD indicates the day.
• hh indicates the hour.
• mm indicates the minutes.
• ss indicates the seconds.
• lll indicates the milliseconds. The l millisecond position is optional;
alternatively, 000 can be entered for the milliseconds.
time stamps are not valid for dump The isql command line specified a timestamp for a dump command.
command Timestamps are not valid with the dump command.
unable to close and create save set The BSA call to create and close the save set for a database or
transaction dump failed. Check the /nsr/applogs/xbsa.messages file for
specific details.
unable to close save set The call to close the save set failed during a load of a database or a
transaction log. Check the /nsr/applogs/xbsa.messages file for specific
details.
unable to create environment The resources required to create the internal environment variable array
variables were not available. This might be due to access problems in the /nsr/tmp
directory.
Unable to create save set. There is The save set could not be created on the NetWorker server. If the debug
likely a configuration or enabler level is at least 2 (the default), check the /nsr/applogs/xbsa.messages file
problem. Set the debug level to at for the error text. If the debug level is not set at 2, change the setting to 2
least 2, retry the operation, and and retry the operation. Check the/nsr/applogs/xbsa.messages file for
check the specific details.
/nsr/applogs/xbsa.messages file for
the underlying reason.
unable to create the save set on the The call to create the save set on the NetWorker server failed. Check the
server /nsr/applogs/xbsa.messages file for specific details.
unable to end the current read During a load database or load transaction log operation, the read session
session of the data from the NetWorker software could not be closed. Check the
/nsr/applogs/xbsa.messages file for specific details.
93
Troubleshooting and Error Messages
Unable to find backup of the The item to be loaded could not be found. Use the nsrinfo command to
(database or transaction log) check that the object-owner for the backup is the same as the process that
SYBASE:/server_name/database_n launched the Sybase Backup Server and that backups exist for this
ame. Check the command line for database.
errors in the instance or database
name or use nsrinfo to see which
save sets are available.
Unable to find full backup of the No backup could be found in the NetWorker server. If no time was
database database_name for the supplied, the time used is the current time, which means that no backup
time supplied. exists. Use the nsrinfo command to check which backups are available
Unable to find incremental backup of and make sure that the object owner shown there is the same as the user
the database database_name for the ID that launched the Sybase Backup Server.
time supplied.
Unable to find backup of the
database database_name for the
time supplied.
unable to parse stripe specifier The isql command line had a poorly formatted stripe specifier.
unable to read the requested number During a load database or load transaction log operation, the save set
of bytes from the save set could not be read. Check the /nsr/applogs/xbsa.messages file for specific
details.
unable to send data to save set During a database or transaction log dump, the data could not be written
to the save set. Check the /nsr/applogs/xbsa.messages file for specific
details.
unknown backup type supplied The backup type supplied from NetWorker server was neither a database
or a transaction log.
The libbms error messages are also written to the /nsr/applogs/xbsa.messages file
as well as reported to the Sybase Backup Server. The Sybase Backup Server prints the
messages in the stdout file and logs them in the Sybase Backup Server error log.
94 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
BSA_RC_ABORT_ACTIVE_NOT_F No active object matching the given search parameters was found in the
OUND NetWorker server that is being used by the NetWorker XBSA session
No active object matched the name
that was specified for a
BSAMarkObjectInactive
BSA_RC_ABORT_SYSTEM_ERRO A general system error occurred within a NetWorker XBSA function call.
R This error is returned for all NetWorker errors that do not map cleanly to
System detected error due to XBSA errors.
explanation. Operation aborted
BSA_RC_BAD_CALL_SEQUENCE An API call sequence was made that does not conform to the XBSA Data
The sequence of API calls is Movement API State Diagram document.
incorrect. Must call item1 before
item2
BSA_RC_BAD_HANDLE The value passed into the function for bsaHandle contained a NULL
The handle used to associate this pointer.
call with a previous BSAInit() call is
invalid because explanation
BSA_RC_BUFFER_TOO_SMALL The buffer is too small to hold the object entry to be returned.
Buffer is too small to hold the object
entry to be returned. n bytes required
for the object entry
BSA_RC_COPYGPNAME_TOO_LO The copyGpName field in one of the supplied structures contained more
NG BSA_MAX_COPYGPNAME characters, and the structure could not be
The copyGpName field contained too used for the requested operation.
many characters
(n >= n)
95
Troubleshooting and Error Messages
BSA_RC_DESCRIPTION_TOO_LO The Description field in one of the supplied structures contained more
NG than BSA_MAX_DESC characters, and the structure could not be used for
The description field contained too the requested operation.
many characters
(n >= n)
BSA_RC_INVALID_COPYTYPE The copyType field in one of the supplied structures has a value that is not
the copyType field contained an in the NetWorker XBSA libraries implementation of this enumerated type.
unrecognized value of n
BSA_RC_INVALID_DATABLOCK The fields of a supplied DataBlock parameter are not internally consistent.
the dataBlock parameter contained This can occur under one of the following conditions:
inconsistent values: bufferLength: n, • When the bufferLen field is less than the numBytes field while data is
bufferPtr: n, numBytes: n being sent.
• When the bufferLen field is nonzero and the bufferPtr field is NULL.
BSA_RC_INVALID_KEYWORD One of the environment strings passed into the function did not have a
an entry in the environment structure valid structure. The value structure of an environment keyword is
is invalid (variable=value) KEYWORD = VALUE, where KEYWORD is a white space delimited string
and VALUE is a white space delimited string followed by a null terminator.
This can indicate a number of possible errors:
• The KEYWORD was not in the reserved word list. This error is not
returned by the NetWorker XBSA libraries because other environment
variables might be passed into the library along with valid keywords.
• The KEYWORD and VALUE strings were not separated by a '='
character. This type of error is also used to detect environment vectors
that are not properly terminated with a (char *)NULL entry, as well as
invalid KEYWORD VALUE pair formats.
• The VALUE string was invalid.
• The VALUE string could not be validated, as in the case of a hostname
string that could not be found by the gethostbyname() function.
BSA_RC_INVALID_OBJECTSTATU The objectStatus field in one of the supplied structures has a value that is
S not in the NetWorker XBSA libraries’ implementation of this enumerated
the objectStatus field contained an type.
unrecognized value of n
BSA_RC_INVALID_OBJECTTYPE One of the object type parameters was either passed in directly or
the objectType is invalid (n) contained in one of the following structures: ObjectDescriptor
QueryDescriptor was not in the range of BSAObjectType_ANY to
BSAObjectType_DIRECTORY.
BSA_RC_INVALID_VERSION The version for a parameter passed into the function is not supported by
the version field contained an this version of NetWorker XBSA. For routines that receive multiple
unrecognized value of n parameters containing a version field, it does not indicate which parameter
is not supported.
BSA_RC_MATCH_EXISTS The object already exists in the NetWorker server being used by the
object matching the specified NetWorker XBSA session and that the requested operation cannot be
predicate already exists completed.
96 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
BSA_RC_MORE_DATA This has two meanings in the XBSA Data Movement API:
more data is available. Data can be • Object Data Retrieval – There is more data available for an object
obtained through BSAGetData() or being read from the NetWorker server than is being used by the
BSAGetNextQueryObject() NetWorker XBSA session. Use BSAGetData to retrieve the next
DataBlock from the NetWorker server (see also
BSA_RC_BUFFER_TOO_SMALL and BSA_RC_NO_MORE_DATA).
This message is not returned by the BSAGetObjectF function because
all data for an object is written to a file descriptor by this function.
• Query Result Retrieval – There are more objects matching the
requested query descriptor from the NetWorker server than is being
used by the NetWorker XBSA session. Use BSAGetNextQueryObject
to retrieve the next object descriptor from Backup Services (see also
BSA_RC_NO_MORE_DATA).
BSA_RC_NO_MATCH The client index and media database are out of synch. To resynchronize
The ResourceType predicate value of the client index and media database, run the nsrck -X command.
D does not match the reference Alternatively, wait for NetWorker to run nsrck automatically.
value of L
BSA_RC_NO_MORE_DATA This has two meanings in the XBSA Data Movement API:
there is no more data for the current • Object Data Retrieval – This is used when all the data for an object
object being retrieved from a NetWorker server was placed into the given
DataBlock parameter for a function call (see also
BSA_RC_MORE_DATA).
• Query Result Retrieval – This is used when the last (or only) object
matching a query is returned to the caller (see also
BSA_RC_MORE_DATA).
BSA_RC_NULL_APIVERSION A pointer to an ApiVersion structure, passed into the function, was NULL
an ApiVersion pointer is required and is required as input.
BSA_RC_NULL_BUFFER This is not used by NetWorker XBSA. A NULL buffer when reading an
an buffer pointer is required object’s data (BSAGetData, BSAGetObject) results in no bytes being read
and a BSA_RC_MORE_DATA code being returned.
BSA_RC_NULL_DATABLOCK The DataBlock pointer parameter for the called function was NULL. The
a data block pointer is required caller is responsible for allocating and passing in the DataBlock structure
to the NetWorker XBSA library (see also BSA_RC_NULL_BUFFER and
BSA_RC_INVALID_DATABLOCK).
BSA_RC_NULL_OBJECTNAME The ObjectName parameter passed into the called function was NULL.
an object name is required
97
Troubleshooting and Error Messages
BSA_RC_NULL_POINTER The NetWorker XBSA library does not return this code. Instead, specific
a required pointer parameter is NULL codes indicating that a required parameter was NULL are returned:
BSA_RC_NULL_APIVERSION
BSA_RC_NULL_BUFFER
BSA_RC_NULL_COPYGPNAME
BSA_RC_NULL_COPYID
BSA_RC_NULL_DATABLOCK (BSA_RC_NULL_DATABLKPTR)
BSA_RC_NULL_ENVIRONMENT
BSA_RC_NULL_LGNAME
BSA_RC_NULL_NEWTOKEN
BSA_RC_NULL_OBJECTDESCRIPTOR
BSA_RC_NULL_OBJECTNAME
BSA_RC_NULL_OBJECTOWNER
BSA_RC_NULL_OLDTOKEN
BSA_RC_NULL_QUERYDESCRIPTOR
BSA_RC_NULL_RULEID
BSA_RC_NULL_SECURITYTOKEN
BSA_RC_NULL_STREAM
BSA_RC_OBJECTINFO_TOO_LON The ObjectInfo parameter passed into the function, either directly or in one
G of the following data structures, was found to have more than
The objectInfo field contained too BSA_MAX_OBJINFO characters: ObjectDescriptor
many characters
(n >= n)
98 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Troubleshooting and Error Messages
BSA_RC_SUCCESS The called function did not fail and is returned by all NetWorker XBSA
the function was successful function calls.
BSA_RC_TRANSACTION_ABORTE The current transaction was aborted by the BSAEndTxn function call. A
D transaction can either be aborted by an internal error, or by user request
the transaction was aborted through the Vote parameter to this function.
99
Troubleshooting and Error Messages
100 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Glossary
This glossary contains terms related to disk storage subsystems. Many of these terms
are used in this manual.
A
administrator The person normally responsible for installing, configuring, and maintaining
NetWorker software.
B
backup The writing of saved data to a volume.
bootstrap A save set that is essential for the NetWorker disaster recovery procedures.
browse policy A policy that determines how long entries for a regular Sybase backup are retained in
the NetWorker client file index.
C
client A computer that accesses the NetWorker server to back up or recover files. Clients
may be workstations, computers, or fileservers.
client file index A database of information maintained by the NetWorker server that tracks every
database object, file, or file system backed up. The NetWorker server maintains a
single client file index for each client computer.
D
daemon A program that lies dormant waiting for a specified condition to occur.
device The backup device (tape drive, optical drive, or autochanger) connected to the
NetWorker server; used for backing up and recovering client files.
E
enabler codes A special code provided by EMC that activates the software. The enabler code that
unlocks the base features for software purchased is referred to as a base enabler.
Enabler codes for additional features or products (for example, autochanger support)
are referred to as add-on enablers.
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide 1
Glossary
F
failover In a cluster network, the process of relocating a resource to its redundant or backup
component, either because of a hardware or software failure or for administrative
purposes.
file system 1. A file tree on a specific disk partition or other mount point.
full backup A backup level in which all files are backed up, regardless of when they last changed.
G
group A client or group of clients that starts backing up its files at a designated time.
H
high-availability A system that allows the application services to continue despite a hardware or
system software failure. Each cluster node has its own IP address. Each cluster node also has
private (local) resources or disks that are available only to that machine.
I
incremental A backup level in which only files that have changed since the last backup are backed
up.
L
license enabler The enabler code that enables you to run a feature or product.
M
manual backup A backup that a user requests from the client’s save program. The user specifies
participating files, file systems, and directories. A manual backup does not generate a
bootstrap save set.
media The physical storage medium to which backup data is written. NetWorker software
supports tape, magnetic or optical disk, and file systems as backup media. See also
volume.
media database A database that contains indexed entries about the storage volume location and the
life cycle status of all data and volumes managed by the NetWorker server. See also
volume.
multistripe backup Multistripe backups and recoveries are one or more streams of data that can be
and recovery feature extracted, in parallel, from a database, and written in parallel to multiple media
devices.
N
NetWorker client See client.
2 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Glossary
notification A message generated and sent to the NetWorker administrator about important
NetWorker events.
N
NetWorker client See client.
O
online indexes The databases located on the NetWorker server that contains all the information
pertaining to the client backups (client file index) and backup volumes (media
database).
operator The person who monitors the server status, loads backup volumes into the server
devices, and otherwise runs day-to-day NetWorker tasks.
P
pathname Instructions for accessing a file. An absolute pathname tells you how to find a file
beginning at the root directory and working down the directory tree. A relative
pathname tells you how to find the file starting where you are now.
physical host Any one of the nodes (or machines) that form a cluster.
pool A feature that enables sorting backup data to selected volumes. A pool contains a
collection of backup volumes to which specific data has been backed up.
R
recover The NetWorker command used to browse the server index and to recover files from a
backup volume to a client’s disk.
resource A component of the NetWorker software that describes the NetWorker server and its
clients. Devices, schedules, clients, groups, and policies are examples of NetWorker
resources. Each resource contains a list of attributes that define the parameters to use
for the specific NetWorker resource.
root The UNIX superuser account (with username “root” and user ID). By extension, the
privileged system-maintenance login on any operating system.
S
save The NetWorker command that backs up client files to backup volumes and makes
data entries in the online index.
save set A group of files or a file system from a single client computer backed up onto storage
media.
save set ID An internal identification number that NetWorker software assigns to a save set.
scanner The NetWorker command used to read a backup volume when the online indexes are
not available.
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide 3
Glossary
server The computer on a network running the NetWorker software, containing the online
indexes and providing backup and recover services to the clients on a network.
skip A backup level in which files are skipped and not backed up.
system administrator The person normally responsible for installing, configuring, and maintaining
NetWorker software.
V
volume A unit of storage media, such as a magnetic tape, an optical disk, or a file. A storage
device reads from and writes to volumes, which can be physical units (for example, a
labeled tape cartridge) or logical units (for example, optical media can store multiple
volumes on a single physical platter).
volume name The name you assign to a backup volume when it is labeled.
4 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Index
A dump 5, 24
Aliases attribute in Client resource 46 mminfo 36, 50
Archive attribute in Client resource 46 nsrinfo 24
attributes for resources nsrsybcc 23
Client resource 14 nsrsybrc 6, 13, 56, 57
Server resource 14 nsrsybsv 24, 25, 30, 31, 32, 77
save 4
savegrp 30
B scanner 2
backup configuration
Client resource 14 Client resource 14
customizing schedules 44 Device resource 15
levels 5, 6
reports 48
required Sybase roles 13 D
scheduled defined 5 DBCCOPT variable 42
selected databases 46 debug messages 7
Backup Command attribute in Client resource 15, 45 Device resource 15
BACKUP_OPT variable 42 Directives attribute in Client resource 46
Browse Policy attribute in Client resource 15, 45 dump command 24, 78, 79
C E
client 1 environment variables
Client resource 14 NetWorker XBSA
attributes 14 NSR_AES_ENCRYPTION 75
Aliases 46 NSR_BACKUP_LEVEL 73
Archive 46 NSR_CLIENT 73
Backup Command 15, 45 NSR_COMPRESSION 73
Browse Policy 15, 45 NSR_DATA_VOLUME_POOL 45, 73
Directives 46 NSR_DEBUG_FILE 73
Group 15, 45 NSR_DEBUG_LEVEL 74
Name 15, 45 NSR_GROUP 74
Password 46 NSR_LOG_VOLUME_POOL 45, 74
Remote Access 15, 46 NSR_NO_BUSY_ERRORS 74
Remote User 46 NSR_SAVESET_NAME 74
Retention Policy 15, 46 NSR_SERVER 75
Save Set 15, 46 nsrsyb script
Schedule 15, 46 BACKUP_OPT 42
cluster DBCCOPT 42
basic configuration 18 POSTCMD 42
restoring data 57 PRECMD 42
scheduled backup 46 SYBASE 43
command USE_CONSISTENCY_CHECK 43
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide 1
Index
2 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide
Index
T
temporary databases 9
EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide 3
Index
4 EMC NetWorker Module for Sybase, Release 3.0, UNIX Version, Administration Guide