Veritas Netbackup For NDMP Administrator'S Guide: Unix, Windows, Linux
Veritas Netbackup For NDMP Administrator'S Guide: Unix, Windows, Linux
Administrator’s Guide
Release 6.5
12308312
Veritas NetBackup
Administrator’s Guide
Copyright © 2002 - 2007 Symantec Corporation. All rights reserved.
NetBackup 6.5
Symantec, the Symantec logo, and NetBackup are trademarks or registered trademarks of
Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
Portions of this software are derived from the RSA Data Security, Inc. MD5
Message-Digest Algorithm. Copyright 1991-92, RSA Data Security, Inc. Created 1991. All
rights reserved.
The product described in this document is distributed under licenses restricting its use,
copying, distribution, and decompilation/reverse engineering. No part of this document
may be reproduced in any form by any means without prior written authorization of
Symantec Corporation and its licensors, if any.
Symantec Corporation
Cupertino, CA 95014
www.symantec.com
Technical support
For technical assistance, visit http://entsupport.symantec.com and select phone
or email support. Use the Knowledge Base search feature to access resources
such as TechNotes, product alerts, software downloads, hardware compatibility
lists, and our customer email notification service.
Contents
6 Contents
Prerequisites ................................................................................................. 58
Requirements ............................................................................................... 59
Chapter 8 Troubleshooting
NDMP operating notes and restrictions .......................................................... 72
Contents 7
Index 103
8
Contents
Chapter 1
Introduction to NetBackup
for NDMP
NetBackup for NDMP is an optional NetBackup application. It enables
NetBackup to use the Network Data Management Protocol (NDMP) to initiate
and control backups and restores of Network Attached Storage (NAS) systems.
This chapter contains the following topics.
■ NetBackup for NDMP features
■ NetBackup for NDMP terminology
■ Network data management protocol (NDMP)
■ Types of NDMP backup
■ NDMP policies
■ Storage units
■ NDMP backup process
■ NDMP restore process
■ Direct access recovery (DAR)
■ NDMP direct copy with VTL
■ NDMP information on the Web
10 Introduction to NetBackup for NDMP
NetBackup for NDMP features
■ NetBackup can also create a SnapVault disk copy from a NAS snapshot.
Configuration details are contained in the NetBackup Snapshot Client
Administrator’s Guide.
For a list of NAS vendors that NetBackup currently supports for SnapVault
and NAS_Snapshot, refer to the Veritas NetBackup Snapshot Client
Configuration online document.
See “Snapshot Client Assistance” on page 30 for help accessing that
document.
■ Direct Access Recovery (DAR)
For NDMP hosts that support DAR, this feature greatly reduces the time
that is needed to restore a directory, a single file, or a small number of files.
■ Path-based file history
The NDMP server can send catalog information consisting of complete path
names to NetBackup. Some vendors do not support this feature.
For up-to-date information on the vendors that support path-based history,
refer to “NDMP information on the Web” on page 29.
■ NetBackup for NDMP servers are supported in a NetBackup-clustered
environment.
■ The enhanced ability to run customized scripts during a backup, especially
for relational databases residing on NAS devices.
12 Introduction to NetBackup for NDMP
NetBackup for NDMP terminology
Network
The NetBackup for NDMP server acts as NOTE: NetBackup software is NOT installed
an NDMP client. on NDMP hosts.
Introduction to NetBackup for NDMP 15
Types of NDMP backup
The NDMP server application on the NDMP host performs backups and restores
of the NDMP host, directed by commands from an NDMP client (NetBackup).
Backups can be conducted in any of the following ways:
■ NDMP local backup
■ NDMP three-way backup
■ Backup to a Media Manager storage unit on the NetBackup server
LAN/WAN
NDMP
host
NetBackup for
NDMP server
FC/SAN
LAN/WAN
NDMP NDMP
host Host
NetBackup for
NDMP server
LAN / WAN
FC/SAN
NDMP policies
After you install and configure NetBackup for NDMP, you can schedule backups
An NDMP policy can have one or more NetBackup clients. Each NetBackup
See Figure 1-1, “NDMP and NetBackup hosts as clients of each other” on
page 14.
Note that you do not install any NetBackup software on the NDMP hosts.
The allowable backup types for schedules in an NDMP policy are: Full,
and archives are not allowed because the NDMP protocol does not permit these
tasks.
Restores of NDMP host backups can be initiated from any NetBackup media
server that
Storage units
servers.
For example, referring to Figure 1-5, “NDMP and non-NDMP storage units”:
■ Tape drives 1, 3, and 5 are attached to NDMP hosts. They are in NDMP
storage units that can be used for NDMP backup (local or three-way).
The commands that control these drives originate on the NetBackup for
NDMP server and are sent through the NDMP connection on the network.
20 Introduction to NetBackup for NDMP
Storage units
The NDMP server application on each NDMP host translates the NDMP
commands into SCSI commands for the local drives.
■ Tape drives 2 and 4 are attached to a NetBackup server. They are in
non-NDMP storage units and are controlled in the same way as other drives
on NetBackup servers. Depending on the type of storage unit, these drives
can be used for the following:
■ For non-NDMP clients of NetBackup
■ In the case of tape drives in Media Manager storage units, they can be
used for both NDMP (local or three-way) and non-NDMP backup.
In this diagram, all tape drives except drive 4 can be used for NDMP backup.
Drive 1*
Drive 5*
Drive 2†
Drive 3*
Drive 4‡
TLD
Robot
NDMP host
Figure 1-6 shows how NetBackup sends commands over the network to the
NDMP host, which in turn sends them to the robot.
Commands to control
robot
NetBackup NDMP
for Host
NDMP
Server
Robotic
Control
Robot
NetBackup server
Figure 1-7 shows how the robot is controlled in the same way as other robots on
NetBackup servers.
NetBackup NDMP
Server Host
Commands to control
robot
Robotic
Control
Robot
Figure 1-8, “NetBackup backup processes” shows the NetBackup processes that
are involved in NDMP backups. During a backup, the following events occur:
1 From the EMM database, NetBackup obtains a media ID for the tape that is
used for the backup and sends a tape-mount request to ltid.
2 ltid on the NetBackup for NDMP server sends the necessary NDMP (SCSI
robotic) commands to mount the requested tape on the storage device.
3 NetBackup sends the NDMP commands that are necessary to have the
NDMP server application perform a backup to the tape. The backup data
travels in one of two ways:
■ Between the local disk and tape drives on an NDMP host.
■ Over the network, data travels in the following manner: from an NDMP
host without its own storage device to an NDMP host (or NetBackup
media server) with a locally attached storage device (three-way
backup).
4 The NDMP server application sends information to the NetBackup for
NDMP server about the files that were backed up. This information is stored
in the NetBackup file database.
5 The NDMP server application sends status about the backup operation to
the NetBackup for NDMP server.
Introduction to NetBackup for NDMP 23
NDMP backup process
nbproxy
EMM
database nbjm
nbemm nbrb
Media Server
ta
l
og
bpbrm
io
n
Network
Connection
bptm ndmpagent
st
ue
eq
eR
Tap “3-way”
OS OS
Tape
Disk Disk
Local
24 Introduction to NetBackup for NDMP
NDMP restore process
bprd is on the
master server bprd
NetBackup Master or
Media Server bpcd
This server has
NetBackup for NDMP.
bpbrm
Network
EMM NetBackup Media ID Connection
database bptm ndmpagent
t
ues
e Re q
Tap
“3-way”
ltid
NDMP Host NDMP Host
OS OS
Disk Disk
Tape
Local
26 Introduction to NetBackup for NDMP
Direct access recovery (DAR)
individual files from a backup image. DAR can greatly reduce the time it takes to
required).
DAR enables the NDMP host to position the tape to the exact location of the
requested file(s). It reads only the data that is needed for those files. For
shortens the duration of the restore. It activates DAR only when it results in a
faster restore.
See “Enabling or disabling DAR” on page 49 for details on when DAR is used and
The following two prerequisites are necessary for using DAR with NetBackup for
NDMP:
■ The NDMP host must support DAR where the NDMP server application
resides.
■ NetBackup 4.5 GA or later, with the catalog in binary format (binary format
is the default).
SCSI
SCSI
or
or
SAN
SAN
VTL VTL
SCSI or SAN
(disk array) appears to SCSI or SAN
be a robot
The NDMP direct copy feature uses a VTL that has an embedded NDMP tape
server using the NDMP protocol. The embedded NDMP tape server moves the
image from the VTL disk directly to a physical tape. The image does not pass
through the NetBackup media server or travel over the network.
See Figure 1-11, “NDMP direct copy with VTL: data flow and control” on page 28.
28 Introduction to NetBackup for NDMP
NDMP direct copy with VTL
Figure 1-11 NDMP direct copy with VTL: data flow and control
LAN/WAN
NB
media
server
SCSI
1 or
SAN
VTL 5
SCSI or SAN
4
2
NDMP NDMP
session session physical tape library
in VTL 3 in VTL
1. NetBackup media server sends the backup over a direct device path (SCSI or SAN) to the VTL.
2. NetBackup selects an NDMP device path to the VTL and creates an NDMP control session for the device.
3. NetBackup selects a tape volume from the physical tape library. It then selects an NDMP device path from
the library and creates a second NDMP control session for the device.
4. By means of the NDMP protocol, the backup image in the VTL is copied directly to the physical tape library
(not sent over the network).
5. The image can be restored directly to the media server from either the VTL or the physical tape.
Note: For configuration instructions, see the “Configuring NDMP direct copy”
chapter.
Figure 1-12 NDMP direct copy between tape drives accessible to an NDMP host
LAN/WAN
NDMP
host
NetBackup for
NDMP server
SCSI or SAN
NDMP direct
copy
http://entsupport.symantec.com/docs/267773
For the features and software releases for each NAS vendor, for SSO support,
and for the NetBackup versions that support these vendors, refer to either of the
following, available at entsupport.symantec.com:
■ The NetBackup NDMP Compatibility List (titled Veritas NetBackup for
Network Data Management Protocol (NDMP) Support), document ID 251713.
■ The “NDMP Devices” section and the “Virtual Tape Libraries/Drives”
section of the Veritas NetBackup Enterprise Server 6.5 Hardware
Compatibility List, document ID 284599.
Installation notes
■ The NetBackup for NDMP master/media server must be running NetBackup
6.5 or later.
■ The NetBackup for NDMP 6.5 software supports Solaris (SPARC only),
HP-UX (PA-RISC only), Red Hat Linux (x86 only), AIX, and Windows
2000/2003 (including 64-bit) master or media servers.
For a detailed list of NAS platforms that NetBackup for NDMP supports,
refer to “NDMP information on the Web” on page 29.
■ For making snapshots of NDMP (NAS) hosts, NetBackup Snapshot Client
software must be installed on the following: the NetBackup master server
and the NetBackup clients that are used to perform backups.
For more information, refer to the NetBackup Snapshot Client
Administrator’s Guide.
■ The drives and robots that are attached to the NDMP host must be the types
that the NDMP host and NetBackup support.
See “NDMP Storage units” on page 19 for a list of supported robot types.
For more information on storage devices, see the NetBackup
Administrator’s Guide, Volume I.
■ For notes and tips on your particular NDMP host, refer to “NDMP
information on the Web” on page 29.
32 Installing NetBackup for NDMP
Installing on UNIX servers
Note: If you install in a cluster environment, freeze the active node before you
begin the installation process so that migrations do not occur during
installation. For information about freezing a service group, see the clustering
section in the NetBackup High Availability Administrator’s Guide for the cluster
software you are running.
On the UNIX host that you want to be the NetBackup for NDMP server, do the
following:
1 Log in as root.
2 Install NetBackup server and client software as explained in the NetBackup
Installation Guide for UNIX and Linux.
3 To make sure a valid license key for NetBackup for NDMP is registered,
enter the following command to list and add keys:
/usr/openv/netbackup/bin/admincmd/get_license_key
4 Insert the CD-ROM containing NetBackup for NDMP software in the drive.
5 Change your working directory to the CD-ROM directory:
cd /cd_rom_directory
Where cd_rom_directory is the path to the directory where you can access
the CD-ROM. On some platforms, it may be necessary to mount this
directory.
6 To install NetBackup for NDMP, execute the following:
./install
Note: If you install in a cluster environment, unfreeze the active node after the
installation completes. For information about unfreezing a service group, see
the clustering section in the NetBackup High Availability Administrator’s Guide
for the cluster software you are running.
Note: If you install in a cluster environment, first freeze the active node so that
migrations do not occur during installation. For information about freezing a
service group, see the clustering section in the NetBackup High Availability
Administrator’s Guide for the cluster software you are running.
On the Windows host that you want to be the NetBackup for NDMP server,
perform the following:
1 Log in.
2 Install NetBackup server and client software as explained in the NetBackup
Installation Guide for Windows.
3 NetBackup for NDMP is part of the core NetBackup product. To make sure a
valid license key for NetBackup for NDMP is registered, do the following to
list and add keys:
a In the NetBackup Administration Console, select Help.
c To register a new key, click the star icon to open the Add a new
License Key dialog box. Type the new license key in the New license key
The new license key appears in the lower part of the dialog box.
4 If this NetBackup for NDMP server is not your master server, install your
NDMP license key on the master.
5 In a clustered environment, perform these steps on each node in the cluster.
Note: If you install in a cluster environment, unfreeze the active node after the
installation completes. For information about unfreezing a service group, see
the clustering section in the NetBackup High Availability Administrator’s Guide
for the cluster software you are running.
34 Installing NetBackup for NDMP
Uninstalling NetBackup for NDMP
Note: In a cluster environment, you must first freeze the active node so that
migrations do not occur. For help freezing a service group, see the clustering
section in the NetBackup High Availability Administrator’s Guide for the cluster
software you are running.
./ndmpmoveragent.stop
rm -f /usr/openv/volmgr/bin/set_ndmp_attr
rm -f /usr/openv/share/version_ndmp
rm -f /usr/openv/netbackup/bin/ndmpagent
where ? is a wildcard.
5 Restart ltid.
Note: If you install in a cluster environment, unfreeze the active node after the
de-installation completes. For information about unfreezing a service group, see
the clustering section in the NetBackup High Availability Administrator’s Guide
for the cluster software you are running.
Chapter 3
Configuring NDMP backup
to NDMP-attached devices
This chapter explains how to configure backups on the storage devices that are
attached to NDMP hosts. Only NDMP-specific steps are described.
Note: You also can use the NetBackup Device Configuration wizard to discover
and configure the robots and drives that are attached to an NDMP host. (The
wizard requires NDMP protocol versions V3 or V4.)
To configure and use the NAS_Snapshot method when backing up NDMP host
Note: Do the following on the master server (not media server) if you plan to
create snapshots using the Snapshot Client NAS_Snapshot method.
Note: This NDMP host name is case sensitive. Whenever this host name is
used, the name must be identical to the name entered here. (For example,
when you configure tape drives and storage units for this host.)
3 Click OK.
4 In the New NDMP Host dialog box, specify the following:
(The term credentials refers to the user name and password that NetBackup
uses to access the NDMP host.)
Use global NDMP Select this option to enable all NetBackup media servers
credentials for this under the master server to access this NDMP host using a
NDMP host pre-defined global NDMP login.
To create this login, click Host Properties > Master Server
> Properties > NDMP in the NDMP Global Credentials
dialog box.
Configuring NDMP backup to NDMP-attached devices 37
Authorizing access to the NDMP host
Use the following This option enables all NetBackup media servers that are
credentials for this connected to the NDMP host to access the NDMP host
NDMP host on all media using the login you specify:
servers ■ Username: the user name under which NetBackup
accesses the NDMP server. This user must have
permission to run NDMP commands.
To see if your NDMP host vendor requires a particular
user name or access level, refer to “NDMP
information on the Web” on page 29.
■ Password and Confirm Password: enter the password
for this user.
Use different Select this option to specify NDMP logins for particular
credentials for this NetBackup servers. Then click Advanced Configuration.
NDMP host on each ■ In the Advanced NDMP Credentials dialog box, click
media server Add.
■ In the Add Credentials dialog box, select a NetBackup
server and specify the user name and password it uses
to access the NDMP host.
■ Click OK. NetBackup validates the user name and
password.
■ The NetBackup server and user name appear in the
Advanced NDMP Credentials dialog box.
■ If necessary, click Add again to specify other servers
and user
5 Repeat this procedure for each NDMP host that NetBackup backs up.
On the NetBackup for NDMP server, use Media and Device Management in the
Administration Console to add drives and robots. As an alternative, you can use
The following procedures and examples treat NDMP configuration issues only.
For more information on configuring storage devices for specific NDMP hosts,
Note: These procedures do not apply to setting up the devices that are attached
to the NetBackup media server. To back up NDMP data to Media Manager
storage units (remote NDMP), storage units are configured in the same way as
ordinary NetBackup (non-NDMP) devices. For details, refer to “Configuring
NDMP backup to NetBackup media servers (remote NDMP)” on page 53 and to
the NetBackup Administrator’s Guide, Volume I.
2 Select Media and Device Management > Devices in the left pane.
3 On the Actions menu, select New. Then select Robot... from the popup.
Configuring NDMP backup to NDMP-attached devices 39
Media and Device Management configuration
Explained in the
following steps.
Media Manager Specify the host that manages the EMM database (by default, this
host host is the NetBackup master server).
Device host Use the pull-down to select the NetBackup media server.
Robot device Enter the device name of the robot. You do not need to include the
path NDMP host name as part of the device path.
To determine the device name of the robot, refer to “NDMP
information on the Web” on page 29 for information pertaining to
your NDMP host.
NDMP host Enter the name of the NDMP host to which the robot is attached
name
Bus, Target, and Specify these values if the NDMP host requires them. By default,
LUN values the bus, target, and lun values are 0.
Refer to “NDMP information on the Web” on page 29 for
information pertaining to your NDMP host.
For assistance with the Add Robot dialog box, refer to the online help. The
following steps explain the portions that are unique to configuring
NetBackup for NDMP.
5 Click OK.
6 In the popup message that asks if you want to stop and restart the device
manager service (or daemon), click Yes.
Configuring NDMP backup to NDMP-attached devices 41
Media and Device Management configuration
Adding a drive
To add a drive
1 In the NetBackup administration console, select Media and Device
Management > Devices in the left pane.
2 On the Actions menu, select New.
3 In the popup, select New Drive (on UNIX, Tape Drive).
4 In the Add a New Drive dialog box, in the Drive Name box, enter the name of
the drive.
6 In the Add Path dialog box, select the host and the path information as
follows:
Device host Select the name of the NetBackup media server. Use the
pull-down to select media servers already defined, or click Add
to enter a new one.
Path Enter the device file name of the tape drive, such as nrst2a.
Refer to the NAS vendor documentation for your drive for the
correct format of the device file name.
Alternate method: use the following command to find the device
file name for the drive, if the NDMP host is running NDMP
protocol V3 or later:
tpautoconf -probe ndmp_host_name
Adding volumes
Use the NetBackup Media and Device Management utility to add the volumes
Note: When you specify the Robot Control Host for a volume that is in a robot,
specify the host name for the NetBackup for NDMP server. Do not specify the
NDMP host.
os type "NetApp"
host id "0033625811"
Note: NDMP-type storage units are not used for backups to media
server-attached devices. Use Media Manager storage units instead.
See the “Configuring NDMP backup to NetBackup media servers (remote
NDMP)” chapter for details.
Storage unit name Enter a unique name for the storage unit.
On demand only This option specifies whether the storage unit is available only
when a policy or schedule specifically requests it. If this option
is not used, the storage unit is available to any NDMP policy or
schedule.
Storage Device Select the type of device for this storage unit.
NDMP host Specify the NDMP host where the tape drive is physically
attached.
Note: You can use the Backup Policy Configuration wizard to create NDMP
policies.
Note: To configure a policy for the NAS_Snapshot method and SnapVault, see
the NetBackup Snapshot Client Administrator’s Guide.
Attributes
Specify the following policy attributes:
■ Policy Type: NDMP
■ Policy Storage Unit:
■ To direct backups for this policy to a specific storage unit if the NDMP
host has multiple storage units, specify that storage unit name.
■ For a three-way backup, specify a storage unit that was defined for the
target NDMP host with attached tape.
■ For NDMP backup to Media Manager storage units: specify a Media
Manager storage unit that is defined for a device that is connected to a
NetBackup media server.
See the “Configuring NDMP backup to NetBackup media servers
(remote NDMP)” chapter.
Clients
In the client list, specify the following for each client in an NDMP policy:
■ Hostname
Name of the NDMP host
■ Hardware and operating system
NDMP NDMP
Configuring NDMP backup to NDMP-attached devices 47
Creating an NDMP policy
Files
The Backup Selections list must specify directories from the perspective of the
NDMP host.
Two examples:
/home/dir1/
/vol1
The following Backup Selections capabilities are NOT supported for an NDMP
policy:
■ Wildcards in pathnames. For example, /home/* is an invalid entry.
■ Individual file names. Only directory or volume names are allowed.
■ Exclude list (because client software is not installed on the NDMP host). You
can, however, exclude files by using the SET keyword as shown under “Using
environment variables in backup selections list.” The SET option allows you
to exclude files on a backup. The format is vendor dependent; refer to the
vendor’s documentation for more details on which variable can be passed
and in what format.
Schedules
You can specify any of the following backup types in a schedule for an NDMP
policy:
■ Full
■ Cumulative Incremental
■ Differential Incremental
Specify Override policy storage unit only in the following situation: this client of
NetBackup (the NDMP host) has more than one storage unit and you want to use
a specific storage unit for this schedule. In this case, the client must be the only
client in this NDMP policy.
FILESYSTEM
LEVEL
DIRECT
EXTRACT
ACL_START
Note: In the Backup Selections list, the SET directive must be the first in the list,
followed by the file systems or volumes to back up. To obtain up-to-date
information on environment variables relating to particular NAS vendors, refer
to “NDMP information on the Web” on page 29.
SET HIST = N
/vol/vol2
SET DEF = 20
/vol/vol3
HIST set to N. The third directory (/vol/vol3) is backed up with all three of the
If an environment variable appears again later in the list, the value of this
The values that each backup uses are saved and provided to subsequent restores
of the directory. The NDMP host may have some environment variables that are
/usr/openv/netbackup/db/config/ndmp.cfg
Setting up clustering
Before configuring NetBackup for NDMP for clustering, the following must be
installed on each node of the cluster:
■ NetBackup server (see the NetBackup Installation Guide).
■ NetBackup for NDMP software (see “Installing NetBackup for NDMP” on
page 31 of this manual). Note that for Windows servers, only the NetBackup
for NDMP licence key has to be installed.
1 Configure NDMP-attached robots and drives. Then configure storage units
and policies as in a normal, non-clustered environment:
■ You can use the Device Configuration wizard, or configure devices
manually as described under “Authorizing access to the NDMP host” on
page 36 and following.
■ To use the same robotic libraries throughout a cluster, robot numbers
must be consistent. The Device Configuration wizard attempts to
ensure this configuration. If you configure robots manually, be sure to
use the same robot number for a given robot, from one host to another
in the cluster.
2 When you finish configuring devices and policies for NetBackup for NDMP,
fail-over to the next node in the cluster and configure the drives and robots.
■ Select the same robot number that you used when configuring the
robot for the first node.
Post-installation changes
After NetBackup is configured in a clustered environment, most configuration
information is available to all nodes in the cluster. The information is available
by means of a shared hard drive. However, if you make changes in the Host
Properties area of the Administration Console, they are not available on the
shared drive. Such changes apply only to the active node. You must manually
duplicate on each node any Host Properties changes that are made on the active
node. This action lets NetBackup perform exactly the same way in case of
failover to another node.
Refer to the NetBackup High Availability Guide for assistance.
Configuring NDMP backup to NDMP-attached devices 51
Testing an NDMP configuration
Overview
Using remote NDMP, you can back up NDMP data to a configured drive in a
Media Manager storage unit on a NetBackup media server. The drive can be used
for both NDMP backups and for non-NDMP backups. See Figure 4-1.
LAN / WAN
NetBackup for
NDMP server
drives in
Media
Manager
Note: Do the following on the master server (not media server) if you plan to
create snapshots using the Snapshot Client NAS_Snapshot method.
c Repeat the above for each NDMP host that the NetBackup server backs
up.
2 Use the NetBackup Device Configuration wizard to configure the drive(s)
and robot(s).
Note: Do not use the device configuration procedure in the “Configuring NDMP
backup to NDMP-attached devices” chapter in this guide. Rather, configure the
robots and drives in the same way as ordinary NetBackup devices, described in
the NetBackup Administrator’s Guide, Volume I.
Note: Drives can be shared using the Shared Storage Option (SSO) of NetBackup.
For an overview of the setup procedure, see “Using the Shared Storage Option
(SSO)” on page 61. The drives can be shared as both NDMP drives and non
NDMP drives.
Volume I.
Note: The storage unit type must be Media Manager, not NDMP.
Prerequisites
■ If your environment includes a VTL, the VTL must be installed and set up
according to the vendor’s instructions. The NetBackup Virtual Tape Option
license(s) are required. The Virtual Tape Option license enables NDMP
direct copy functionality.
■ The VTL must have the NDMP capabilities needed to support NDMP direct
copy.
■ To make direct copies from one NDMP tape drive to another (no VTL), the
NetBackup for NDMP license is required.
Requirements
For NetBackup to use NDMP direct copy when you duplicate an image, note the
following:
60 Configuring NDMP direct copy
■ For the destination for the duplication, you must designate an NDMP
storage unit in a VTL or in a physical tape library.
■ An NDMP tape drive must be available to mount the source image. The
NDMP tape drive can be one that was defined in the VTL, or it can be a
physical tape drive in a tape library.
For setup instructions, refer to “NDMP direct copy” on page 58.
If these two requirements are met, NDMP direct copy is enabled. NetBackup
copies the image directly to the designated storage unit without using media
Note: You must designate an NDMP storage unit as the destination for the
duplication. Use the Storage unit field in the Setup Duplication Variables
dialog box.
Figure 6-1 shows a robotic library on a SAN that can share its drives between
two NetBackup for NDMP servers and two NDMP hosts. Drive sharing requires a
license for the Shared Storage Option. A SAN is not required.
LAN
■ For each robot, either a NetBackup media sever or an NDMP server (not
both) can handle robotic control.
Using the Shared Storage Option (SSO) 63
Setting up SSO: overview
This overview includes an outline of the steps for setting up access to a drive
For a more complete discussion of SSO, refer to the NetBackup Shared Storage
Guide.
■ That the prerequisites for SSO have been met, as described in the
NetBackup Shared Storage Guide.
■ That all physical devices, including the NDMP host, are correctly connected
to the network.
■ That NetBackup for NDMP supports the NDMP host.
For a document that lists supported NAS systems, see “NDMP information
on the Web” on page 29. The NetBackup NDMP Compatibility List indicates
which versions of vendor software support SSO for NDMP. The NAS
systems (hardware) do not provide the support; the proper software version
provides it.
To set up an SSO
1 Configure NetBackup access to the NDMP host.
For details, see “Authorizing access to the NDMP host” on page 36.
2 Verify that the NDMP host can access the required robots and drives.
To verify NDMP host access to the required devices, run the following
commands on a NetBackup media server that is authorized to access the
host:
tpautoconf -verify ndmp_host_name
tpautoconf -probe ndmp_host_name
The -verify option verifies that the NetBackup server can access the
NDMP host. The -probe option lists the devices that are visible to the
NDMP host.
3 From the NetBackup Administration Console, use the Device Configuration
Wizard to configure the devices and storage units. See “Using the Device
Configuration Wizard” on page 64.
Note: An NDMP storage unit must be defined for each NDMP host that
shares a drive. If all hosts have access to the shared drive(s), the Device
Configuration Wizard can create these storage units automatically.
64 Using the Shared Storage Option (SSO)
Using the Device Configuration Wizard
3 Under Device Hosts, place a check beside the NetBackup media server that
accesses the NDMP host.
4 Click the server name to select it and click Change.
Using the Shared Storage Option (SSO) 65
Using the Device Configuration Wizard
5 In the Change Device Host screen, place a check beside NDMP server.
6 Click OK.
7 In the Device Hosts screen, “NDMP” is now listed in the Optional Devices to
be Scanned column for the media server.
9 In the NDMP Hosts screen that shows the NDMP host(s) where you can
configure devices, click Next to configure the NDMP-attached devices.
Only the administrator can perform NDMP backups and restores on the
NetBackup server (master or media). The NDMP protocol does not allow users to
initiate a backup or restore; no NetBackup client software is installed on an
NDMP host.
2 Click Policies.
3 Right-click the NDMP policy name and select Manual Backup from the
pop-up menu.
4 In the Manual Backup dialog box, select a schedule and then select the
clients (NDMP hosts) that you want to back up.
If you do not select any schedules, NetBackup uses the schedule with the
highest retention level. If you do not select any clients, NetBackup backs up
all configured NDMP hosts.
5 Click OK to start the backup.
Backup and restore procedures 69
Performing a restore from the server
The administrator can use the Backup, Archive, and Restore interface on a
NetBackup server (master or media server) to restore files to the following: the
NDMP host from which they were backed up or to a different NDMP host.
For help with restoring, see the NetBackup online help in the Administration
Console or the NetBackup Backup, Archive, and Restore Getting Started Guide.
In the Actions > Specify NetBackup Machines and Policy Type dialog box,
■ For the server, select the NetBackup master server. If your configuration has
multiple master servers, specify the master server that has the policy for
the NDMP host that you plan to restore. If the server name is not in the
pull-down list, use Edit Server List to add it.
■ For the source and destination clients, select the appropriate NDMP (NAS)
hosts.
Note: The destination host must be an NDMP host compatible with the data
format of the source. (The source and destination must be of the same NAS
vendor type.)
If the hosts you want are not available in the pull-down, use Edit Client List
to add the client.
■ In the policy type field, select NDMP.
70 Backup and restore procedures
Performing a restore from the server
Chapter 8
Troubleshooting
The following information may be useful in troubleshooting NetBackup.
■ NDMP operating notes and restrictions
■ Troubleshooting NetBackup
■ Troubleshooting media and devices on Windows
■ Troubleshooting media and devices on UNIX
■ Troubleshooting NDMP direct copy
■ Troubleshooting DAR
■ Testing a robot
operating notes.
Notes on DAR
■ DAR can be used when restoring NetBackup 4.5GA or later backups.
Starting with NetBackup 4.5GA, NetBackup stores the required DAR offset
information on each backup.
■ Backups must have been performed with the NetBackup catalog set to
binary mode. If backups were made with the catalog set to ASCII mode, the
restores cannot use DAR. ASCII mode did not store the required DAR offset
information on each backup. Note that all backups that were made before
NetBackup 4.5 used ASCII catalog mode.
Note: Starting with NetBackup 6.0, all backups are in binary mode.
■ To use DAR with NetBackup, the NDMP host you want to restore must
support DAR. Some NDMP host vendors do not currently support DAR.
Troubleshooting 73
Troubleshooting NetBackup
Troubleshooting NetBackup
Types of logs
NetBackup uses two types of logging: unified logging and legacy logging. Both
are described in the “Using Logs and Reports” chapter in the NetBackup
Troubleshooting Guide.
Note:
■ All unified logs are written to /usr/openv/logs (UNIX) or
install_path\logs (Windows). Unlike legacy logging, you do not need to
create logging directories.
■ Use the vxlogview command to examine unified logs (see examples in the
next section):
On UNIX: /usr/openv/netbackup/bin/vxlogview
On Windows: install_path\NetBackup\bin\vxlogview
Refer to the NetBackup Troubleshooting Guide for assistance in using the
vxlogview command.
See also the vxlogview man page or the NetBackup Commands Guide.
Troubleshooting steps
■ Check the NetBackup All Log Entries report for information about the failed
job.
■ To get more information about a problem, do the following:
■ In the NetBackup Administration Console: expand Host Properties in
the left pane, click on Media Server, and right click on the server name
in the right pane. From the pop-up, select Properties, then click
Logging and set the Global logging level to 5. This increases logging
detail to the highest level, for both unified logging and legacy logging.
■ View the unified logging information in /usr/openv/logs (UNIX) or
install_path\logs (Windows) for the following processes:
ndmpagent (originator ID 134), ndmp (originator ID 151), nbpem
(originator ID 116), nbjm (originator ID 117), and nbrb (originator ID
118).
For ndmpagent logs, try the vxlogview command as follows:
/usr/openv/netbackup/bin/vxlogview -i ndmpagent -d T,s,x,p
For ndmp logs, try the vxlogview command as follows:
/usr/openv/netbackup/bin/vxlogview -i ndmp -d T,s,x,p
■ On the NetBackup for NDMP server, create bptm, bpbrm, and
ndmpagent legacy debug log folders in the
74 Troubleshooting
Troubleshooting NetBackup
Note: The legacy and unified logging files can consume a lot of disk space. Delete
the log files when you finish troubleshooting and set logging to a lower level of
detail.
■ To verify that the appropriate services are running, use one of the
following: the NetBackup Activity Monitor, the Windows control panel (on
Windows systems), or the bpps command (UNIX systems).
■ If NDMP host backups terminate with a status code of 154 (storage unit
characteristics mismatch requests), the problem may be one of the
following:
■ Verify that the NetBackup configuration is correct.
■ There may be a conflict between the policy type and storage unit type.
(For example, if the policy type is Standard and the storage unit is of
type NDMP.)
■ If your NDMP backup fails with a status code of 99 (NDMP backup failure),
no paths in your NDMP policy Backup Selections list backed up. Check the
NetBackup All Log Entries report for more information. A possible cause of
this status is that none of the backup paths exist on the NDMP host.
values:
TYPE=dump
FILESYSTEM=/vol/vol0/2million
PREFIX=/vol/vol0/2million
The NDMP backup LEVEL is modeled after UNIX dump levels. The backup level
is a number in the range of 0 to 9.
Troubleshooting 75
Troubleshooting media and devices on Windows
Table 8-1 NetBackup backup types and corresponding NDMP backup levels
Note: Whatever the cause, if the avrd connection to the NDMP host fails, the
drive is set to DOWN. It is not automatically set to UP when the communication
problem is corrected.
76 Troubleshooting
Troubleshooting media and devices on UNIX
■ Ensure that syslogd logs debug messages relating to ltid and other device
processes.
For more information on syslogd, refer to the NetBackup Troubleshooting
Guide.
■ Start ltid with the -v option. Check the system’s syslog for
troubleshooting clues.
■ Use vmps to make sure that the appropriate daemons are running.
■ Drives can be unexpectedly set to the DOWN state. This action is due to
communication problems between avrd on the NetBackup for NDMP server
and the NDMP server application on the NDMP host.
For details, refer to the last main bullet and note under the
“Troubleshooting media and devices on Windows” section.
Troubleshooting DAR
In certain situations, one of the following messages may appear in the unified
logs for ndmpagent (originator ID 134) on the NetBackup media server. These
are also written to the progress log.
Message:
DAR disabled - number of files n > DAR_MAXIMUM_FILE_LIST_COUNT x
Explanation:
The number of files being restored is greater than the maximum that is allowed
(default is 1024). You can either select fewer files for the restore, or increase the
DAR maximum Backup Selections list count. (Some NDMP host vendors do not
support increasing the maximum.)
Troubleshooting 77
Troubleshooting DAR
On Windows:
install_path\NetBackup\db\config\ndmp.cfg
Message:
data host does not support DAR recover
Explanation:
Message:
DAR disabled—continuing restore without DAR
Explanation:
Message:
DAR disabled—backup was performed before NB 4.5
Explanation:
The DAR feature can be used when restoring the backups that NetBackup 4.5GA
or later made. Starting with NetBackup 4.5GA, NetBackup stores the required
DAR offset information on each backup. For pre-4.5GA NetBackup backups,
restores cannot use DAR because the pre-4.5 versions did not store DAR offset
information.
Message:
DAR disabled—NDMP host did not provide DAR info during backup
Explanation:
The backup was performed with an NDMP host version that does not support
DAR. Ask the NDMP host vendor if a later NAS software version is available that
supports DAR.
Message:
DAR disabled—Exceeded optimal DAR parameters for this image size
Explanation:
NetBackup determined that the restore would take longer with DAR than
without it.
78 Troubleshooting
Testing a robot
Message:
DAR disabled—Directory DAR not supported
Explanation:
DAR can be used when restoring files, but not when restoring directories.
Message:
DAR disabled by DAR config file
Explanation:
DAR was disabled by adding the entry NDMP_DAR_DISABLED to the following
file:
On UNIX:
/usr/openv/netbackup/db/config/ndmp.cfg
On Windows:
install_path\NetBackup\db\config\ndmp.cfg
Use the Host Properties dialog box as explained under “Enabling or disabling
Message:
DAR disabled by host parameters
Explanation:
DAR was disabled on the Master or Media Server Properties dialog box.
Testing a robot
Depending on the type of robot, use the tests in Table 8-2 to exercise the robot:
TLD tldtest
TL8 tl8test
TLH tlhtest
ACS acstest
Troubleshooting 79
Testing a robot
Note: The drive must be down before you perform this test, or avrd may
interfere.
inquiry (Displays the vendor and product ID. If you get a UNIT ATTENTION
message, try the mode command and then continue your testing.)
inquiry (Displays the Vendor and Product ID. If you get a UNIT ATTENTION
message, try the mode command and then continue your testing.)
Note that a TLH robot cannot attach directly to the NDMP host; only a TLH drive
80 Troubleshooting
Testing a robot
Note: Before you use the notify scripts on UNIX, make sure they are executable
by other. Run chmod 755 script_name, where script_name is the name of the
script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters.
ndmp_start_notify ndmp_start_notify.cmd
ndmp_end_notify ndmp_end_notify.cmd
ndmp_start_path_notify ndmp_start_path_notify.cmd
ndmp_end_path_notify ndmp_end_path_notify.cmd
ndmp_moving_path_notify ndmp_moving_path_notify.cmd
The scripts are similar to those already included in your NetBackup server
installation. To create the scripts on UNIX, copy the bpstart_notify and
bpend_notify scripts from
/usr/openv/netbackup/bin/goodies (UNIX)
to
/usr/openv/netbackup/bin
82 Using scripts
on the NetBackup for NDMP server. Then rename the copied scripts and modify
as needed. You must customize the scripts before using them; see the preceding
note.
On Windows, you must create the scripts from scratch.
ndmp_start_notify (UNIX)
Note: Before you use this script, make sure that you can run it by using other on
the media server. Run chmod 755 script_name, where script_name is the name
of the script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters. For the ndmp_start_notify
script, the -ne value must be set to 5.
on the UNIX NetBackup for NDMP server. Then, modify the script and ensure
The ndmp_start_notify script runs each time a backup starts and after the
tape has been positioned. This script must exit with a status of 0 for the calling
program to continue and for the backup to proceed. A nonzero status causes the
runs in the foreground. The bptm process that is on the NetBackup for NDMP
server waits for it to complete before continuing. Any commands in the script
The server expects the client to respond with a continue message within the
specifies.
The default for CLIENT_READ_TIMEOUT is 300. If the script needs more time
Using scripts 83
Parameter Description
For example:
ndmp_start_notify freddie cd4000s fulls FULL 0
/usr/openv/netbackup/bin/ndmp_start_notify.production.fulls
The first script affects all scheduled backups in the policy that is named
production. The second script affects scheduled backups in the policy that is
named production only when the schedule is named fulls.
Note: For a given backup, NetBackup uses only one ndmp_start_notify script
and that is the one with the most specific name. For example, if there are both
ndmp_start_notify.production and
ndmp_start_notify.production.fulls scripts, NetBackup uses only
ndmp_start_notify.production.fulls.
BACKUPID=freddie_0857340526
UNIXBACKUPTIME=0857340526
Note: If you also use ndmp_end_notify scripts, they can provide a different
level of notification than the ndmp_start_notify scripts. For example, if you
had one of each, they could be ndmp_start_notify.policy.cmd and
ndmp_end_notify.policy.schedule.cmd.
When the backup starts, NetBackup passes the following parameters to the
script:
Parameter Description
%6 Results file that NetBackup checks for a return code from the script.
NetBackup uses %6 to pass the file name and then expects the script to
create the file in the same directory as the script.
If the script applies to a specific policy and schedule, the results file must
be named
install_path\netbackup\bin\NDMP_START_NOTIFY_RES.policy.sched
ule
If the script applies to a specific policy, the results file must be named
install_path\netbackup\bin\NDMP_START_NOTIFY_RES.policy
If the script applies to all backups, the results file must be named
install_path\netbackup\bin\NDMP_START_NOTIFY_RES
An echo 0> %6 statement is one way for the script to create the file.
NetBackup deletes the existing results file before it calls the script. After
the script runs, NetBackup checks the new results file for the status. The
status must be 0 for the script to be considered successful. If the results file
does not exist, NetBackup assumes that the script was successful.
86 Using scripts
The server expects the client to respond with a continue message within the
period of time that the NetBackup CLIENT_READ_TIMEOUT option on the server
specifies. The default is 300 seconds. If the script needs more than 300 seconds,
increase the value to allow more time.
ndmp_end_notify (UNIX)
Caution: The ndmp_end_notify script is ran at the end of the backup. The
backup does not wait for the script to complete.
Note: Before you use this script, make sure you can run it by using other on the
media server. Run chmod 755 script_name, where script_name is the name of
the script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters. For the ndmp_end_notify
script, the -ne value must be set to 5.
For a UNIX media server, if you need notification whenever the NDMP host
completes a backup, copy
/usr/openv/netbackup/bin/goodies/bpend_notify
on the UNIX NetBackup for NDMP host. Then, modify the script and ensure that
Parameter Description
Parameter Description
For example:
ndmp_end_notify freddie cd4000s fulls FULL 0
ndmp_end_notify danr cd4000s incrementals INCR 73
To create an ndmp_end_notify script for a specific policy or policy and
schedule combination, create script files with a .policyname or
.policyname.schedulename suffix. In the following two examples of script
names, the policy is named production and the schedule is named fulls:
/usr/openv/netbackup/bin/ndmp_end_notify.production
/usr/openv/netbackup/bin/ndmp_end_notify.production.fulls
The first script affects all scheduled backups in the policy that is named
production. The second script affects scheduled backups in the policy that is
named production only when the schedule is named fulls.
Note: For a given backup, NetBackup uses only one ndmp_end_notify script
and that is the one with the most specific name. For example, if there are both
ndmp_end_notify.production and
ndmp_end_notify.production.fulls scripts, NetBackup uses only
ndmp_end_notify.production.fulls.
UNIXBACKUPTIME=0857340526
88 Using scripts
You can create ndmp_end_notify scripts that provide notification for all
script:
install_path\netbackup\bin\ndmp_end_notify.cmd
To create a script that applies only to a specific policy or policy and schedule
combination, add a .policyname or .policyname.schedulename suffix to the script
name.
■ The following script applies only to a policy named days:
install_path\netbackup\bin\ndmp_end_notify.days.cmd
■ The following script applies only to a schedule that is named fulls, which is
in a policy named days:
install_path\netbackup\bin\ndmp_end_notify.days.fulls.cmd
The first script affects all scheduled backups in the policy named days. The
second script affects scheduled backups in the policy named days only when the
schedule is named fulls.
For a given backup, NetBackup calls only one ndmp_end_notify script and
checks for them in the following order:
ndmp_end_notify.policy.schedule.cmd
ndmp_end_notify.policy.cmd
ndmp_end_notify.cmd
For example, if there are both ndmp_end_notify.policy.cmd and
ndmp_end_notify.policy.schedule.cmd scripts, NetBackup uses only
ndmp_end_notify.policy.schedule.cmd.
When the backup completes, NetBackup passes the following parameters to the
script:
Using scripts 89
Parameter Description
%5 Status of the operation. It is the same as the status sent to the NetBackup
server. This status is 0 for successful backups and 1 for partially successful
backups. If an error occurs, the status is the value associated with that
error.
ndmp_start_path_notify (UNIX)
Note: Before you use this script, make sure you can run it by using other on the
media server. Run chmod 755 script_name, where script_name is the name of
the script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters. For the
ndmp_start_path_notify script, the -ne value must be set to 7.
on the UNIX NetBackup for NDMP server. Then, modify the script and ensure
that you have permission to run it.
the backup process is issued to the NAS machine. This script must exit with a
status of 0 for the calling program to continue and for the backup to proceed. A
nonzero status causes the client backup to exit with a status of 99 (NDMP
backup failure).
exists, it runs in the foreground. The bptm process on the NetBackup for NDMP
server waits for it to complete before continuing. Any commands in the script
The server expects the client to respond with a continue message within the
specifies.
The default for CLIENT_READ_TIMEOUT is 300. If the script needs more time
Parameter Description
Parameter Description
$6 Not used.
For example:
ndmp_start_path_notify freddie cd4000s fulls FULL
/usr/openv/netbackup/bin/ndmp_start_path_notify.production.fulls
The first script affects all scheduled backups in the policy that is named
production. The second script affects scheduled backups in the policy that is
named production only when the schedule is named fulls.
UNIXBACKUPTIME
BACKUPTIME
The NetBackup bptm process creates these variables. The following are
examples of the strings that are available to the script for use in recording
information about a backup:
BACKUPID=freddie_0857340526
UNIXBACKUPTIME=0857340526
92 Using scripts
Note: If you also use ndmp_start_notify scripts, they can provide a different
level of notification than the ndmp_start_path_notify scripts. For example,
if you had one of each, they could be ndmp_start_notify.policy.cmd and
ndmp_start_path_notify.policy.schedule.cmd.
When the backup starts, NetBackup passes the following parameters to the
script:
Parameter Description
%5 Status of the operation. It is the same as the status sent to the NetBackup
server. This status is 0 for successful backups and 1 for partially successful
backups. If an error occurs, the status is the value associated with that
error.
94 Using scripts
Parameter Description
%6 Results file that NetBackup checks for a return code from the script.
NetBackup uses %6 to pass the file name and then expects the script to
create the file in the same directory as the script.
If the script applies to a specific policy and schedule, the results file must
be named
install_path\netbackup\bin\NDMP_START_PATH_NOTIFY_RES.policy
.schedule
If the script applies to a specific policy, the results file must be named
install_path\netbackup\bin\NDMP_START_PATH_NOTIFY_RES.policy
If the script applies to all backups, the results file must be named
install_path\netbackup\bin\NDMP_START_PATH_NOTIFY_RES
An echo 0> %6 statement is one way for the script to create the file.
NetBackup deletes the existing results file before it calls the script. After
the script runs, NetBackup checks the new results file for the status. The
status must be 0 for the script to be considered successful. If the results
file does not exist, NetBackup assumes that the script was successful.
ndmp_end_path_notify (UNIX)
Note: Before you use this script, make sure you can run it by using other on the
media server. Run chmod 755 script_name, where script_name is the name of
the script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters. For the
ndmp_end_path_notify script, the -ne value must be set to 7.
For a UNIX media server, if you need notification whenever the NDMP host
completes a backup, copy
/usr/openv/netbackup/bin/goodies/bpend_notify
on the UNIX NetBackup for NDMP host. Then, modify the script and ensure that
you have permission to run it.
Using scripts 95
The ndmp_end_path_notify script runs after the NAS machine has informed
Parameter Description
$6 Not used.
For example:
ndmp_end_path_notify freddie cd4000s fulls FULL 0
ndmp_end_path_notify danr cd4000s incrementals INCR 73
To create an ndmp_end_path_notify script for a specific policy or policy and
schedule combination, create script files with a .policyname or
.policyname.schedulename suffix. In the following two examples of script
names, the policy is named production and the schedule is named fulls:
/usr/openv/netbackup/bin/ndmp_end_path_notify.production
/usr/openv/netbackup/bin/ndmp_end_path_notify.production.fulls
The first script affects all scheduled backups in the policy that is named
production. The second script affects scheduled backups in the policy that is
named production only when the schedule is named fulls.
UNIXBACKUPTIME
BACKUPTIME
The NetBackup bptm process creates these variables. The following are
examples of the strings that are available to the script for use in recording
information about a backup:
BACKUPID=freddie_0857340526
UNIXBACKUPTIME=0857340526
the script:
install_path\netbackup\bin\ndmp_end_path_notify.cmd
To create a script that applies only to a specific policy or policy and schedule
combination, add a .policyname or .policyname.schedulename suffix to the script
name.
■ The following script applies only to a policy named days:
install_path\netbackup\bin\ndmp_end_path_notify.days.cmd
■ The following script applies only to a schedule that is named fulls, which is
in a policy named days:
install_path\netbackup\bin\ndmp_end_path_notify.days.fulls.
cmd
The first script affects all scheduled backups in the policy named days. The
second script affects scheduled backups in the policy named days only when the
schedule is named fulls.
For a given backup, NetBackup calls only one ndmp_end_path_notify script
and checks for them in the following order:
ndmp_end_path_notify.policy.schedule.cmd
ndmp_end_path_notify.policy.cmd
Using scripts 97
ndmp_end_path_notify.cmd
For example, if there are both ndmp_end_path_notify.policy.cmd and
ndmp_end_path_notify.policy.schedule.cmd scripts, NetBackup uses
only ndmp_end_path_notify.policy.schedule.cmd.
Note: If you also use ndmp_end_notify scripts, they can provide a different
level of notification than the ndmp_end_path_notify scripts. For example, if
you had one of each, they could be ndmp_end_notify.policy.cmd and
ndmp_end_path_notify.policy.schedule.cmd.
When the backup completes, NetBackup passes the following parameters to the
script:
Parameter Description
%5 Status of the operation. It is the same as the status sent to the NetBackup
server. This status is 0 for successful backups and 1 for partially successful
backups. If an error occurs, the status is the value associated with that error.
98 Using scripts
Parameter Description
ndmp_moving_path_notify (UNIX)
Note: Before you use this script, make sure you can run it using other on the
media server. Run chmod 755 script_name, where script_name is the name of
the script.
The UNIX scripts are provided as examples only. You must customize the scripts
before using them. For example, the -ne value in the first if statement must be
modified to reflect the number of passed parameters. For the
ndmp_moving_path_notify script, the -ne value must be set to 7.
on the UNIX NetBackup for NDMP server. Then, modify the script and ensure
that you have permission to run it.
Using scripts 99
exists, it runs in the foreground. The bptm process that is on the NetBackup for
NDMP server waits for it to complete before continuing. Any commands in the
The server expects the client to respond with a continue message within the
server specifies.
more than 300 seconds, increase the value to allow more time.
Parameter Description
$6 Not used.
For example:
ndmp_moving_path_notify freddie cd4000s fulls FULL
/usr/openv/netbackup/bin/ndmp_moving_path_notify.production.fulls
The first script affects all scheduled backups in the policy that is named
production. The second script affects scheduled backups in the policy that is
named production only when the schedule is named fulls.
UNIXBACKUPTIME
BACKUPTIME
The NetBackup bptm process creates these variables. The following are
examples of the strings that are available to the script for use in recording
information about a backup:
BACKUPID=freddie_0857340526
UNIXBACKUPTIME=0857340526
install_path\netbackup\bin\ndmp_moving_path_notify.cmd
To create a script that applies only to a specific policy or policy and schedule
combination, add a .policyname or .policyname.schedulename suffix to the script
name.
■ The following script applies only to a policy named days:
install_path\netbackup\bin\ndmp_moving_path_notify.days.cmd
Using scripts 101
■ The following script applies only to a schedule that is named fulls, which is
in a policy named days:
install_path\netbackup\bin\ndmp_moving_path_notify.days.ful
ls.cmd
The first script affects all scheduled backups in the policy named days. The
second script affects scheduled backups in the policy named days only when the
schedule is named fulls.
For a given backup, NetBackup calls only one ndmp_moving_path_notify
script and checks for them in the following order:
ndmp_moving_path_notify.policy.schedule.cmd
ndmp_moving_path_notify.policy.cmd
ndmp_moving_path_notify.cmd
Note: If you also use ndmp_start_notify scripts, they can provide a different
level of notification than the ndmp_moving_path_notify scripts. For
example, if you had one of each, they could be
ndmp_start_notify.policy.cmd and
ndmp_moving_path_notify.policy.schedule.cmd.
When the backup starts, NetBackup passes the following parameters to the
script
Parameter Description
Parameter Description
%6 Results file that NetBackup checks for a return code from the script.
NetBackup uses %6 to pass the file name and then expects the script to
create the file in the same directory as the script.
If the script applies to a specific policy and schedule, the results file
must be named
install_path\netbackup\bin\NDMP_END_NOTIFY_RES.policy.sch
edule
If the script applies to a specific policy, the results file must be named
install_path\netbackup\bin\NDMP_END_NOTIFY_RES.policy
If the script applies to all backups, the results file must be named
install_path\netbackup\bin\NDMP_END_NOTIFY_RES
An echo 0> %6 statement is one way for the script to create the file.
NetBackup deletes the existing results file before it calls the script.
After the script runs, NetBackup checks the new results file for the
status. The status must be 0 for the script to be considered successful.
If the results file does not exist, NetBackup assumes that the script
was successful.
Numerics UNIX 90
Windows 92
overview 22
3pc.conf file 30
procedure 68
A types allowed 47
acstest 78
Backup Selections list 47
client list 46
adding
clustering 11, 50
drives 41
configuration
robots 38
volumes 42
add volumes 42
authorization
adding drives/robots 38
check devices 42
avrd 72
client list 46
B for clustering 50
backup
general policy attributes 46
automatic 68
NDMP policy 46
format 72
policy storage unit 46
ndmp_end_notify script
testing 51
UNIX 86
control panel, Windows 75
Windows 88
ndmp_end_path_notify script
D
UNIX 95
DAR 11, 26
Windows 96
defined 12
ndmp_moving_path_notify script
UNIX 99
data mover 30
Windows 100
debug logs 73
ndmp_start_notify script
deinstallation
UNIX 82
server 34
Windows 84
ndmp_start_path_notify script
104 Index
Device Monitor 42
M
devices
mover.conf file 30
troubleshooting 75, 76
drives
nbjm 73
configuring 38
nbrb 73
E backup, manual 68
client type 46
client, definition of 12
exclude
Compatibility List 30
list, using 47
how to configure 58
licensing 58
F VTL license 29
fail over 50
host, definition of 12
file list 47
LEVEL, related to NetBackup backups 74
list) 47, 72
adding 46
attributes 46
clients 46
H files 47
configuration 46
I
policy type
configuration 46
ICMP protocol 72
overview 18
installation 31
deinstallation 34
restore 69
restrictions 72
prerequisites 31
instant recovery 11
jnbSA 68
how to configure 54
ndmp logging 73
L ndmp_end_notify script
ltid
ndmp_end_path_notify script
restarting 42
UNIX 95
Windows 96
ndmp_moving_path_notify script
Index 105
UNIX 99
restart
Windows 100
device manager 40
ndmp_start_notify script
Media Manager device daemon 42
UNIX 82
restore
Windows 84
local vs. three-way 13, 16, 22
ndmp_start_path_notify script
overview 24
UNIX 90
overwriting files 69
Windows 92
procedure 69
ndmpagent
three-way 24
unified logging 73
restrictions
configuration 35, 57
adding 38
definition 9
supported types 19
features 10
test device configuration 78
installation 31
robot connection
server, definition 12
verifying 43
troubleshooting 73
Robot Control Host, for volume 43
notification scripts 81
S
O schedules 47
overwriting files 69
access web info 30
snapshots 11
SnapVault 11, 46
P SSO 10
verifying 37, 43
storage devices
path-based history 11
storage unit
ping 72
media manager type 54
point-in-time snapshots 11
NDMP type, overview 19
policy
specify for NDMP policy 46
attributes 46
support web site 29, 30
T
R tape libraries supported 19
remote NDMP 54
tape server 16
106 Index
testing configuration 51
third-party copy device 30
three-way backup 13
configuring for 37
tl8test 78
tldtest 78
tlhtest 78, 79
tpautoconf 43, 63
troubleshooting 71
type
of backup allowed 47
of policy 46
U
unified logging 73
uninstalling NetBackup 34
user-directed
backups and archives 18
backups and archives, not allowed 68
restores, not allowed 69
V
variables, environment 47
vendors (latest info on) 29
verifying NDMP password 37
version supported (NDMP) 10, 35
Virtual tape Library
see VTL
Virtual Tape Option license 29
volumes, adding 42
VTL 11, 26, 58, 76
license 29
licensing 58
vxlogview 73
W
web access
to NDMP info 30
to Snapshot Client info 30
wildcards, in Backup Selections list 47, 72
Windows control panel 75