Professional Documents
Culture Documents
VeritasNBDCTraining Sanitized
VeritasNBDCTraining Sanitized
NETBACKUP Training
The following slides cover only a brief overview
of Netbackup functionality.
You will need to review the referenced documents
and websites for a better comprehension.
You should perform test backups and restores.
You MUST have a backup schema & DRP plan to
keep your job.
NETBACKUP OVERVIEW
Q. What is Veritas Netbackup?
A. Veritas Netbackup is an enterprise backup
and recovery solution that is the industry
standard.
Q. How does Veritas Netbackup help Unix
Admins?
A. Ensures every file gets backed up and is
able to be restored by using cataloging.
Joe Holbrook, CHPTP XXXXX
NETBACKUP OVERVIEW
Netbackup will backup, restore and archive
files.
Uses GNU tar format
Use TCP to establish communications.
Performs both FULL and incremental
backups
Full reporting and management capacity of
backup and recovery procedures
Joe Holbrook, CHPTP XXXXX
NETBACKUP OVERVIEW
Netbackup manages heterogeneous
backups. UNIX, NT, NOVELL, IBM, etc
Highly scalable and flexible architecture
Advanced tools, utilities and wizards.
Management from server, client or
workstation.
Role & User based security
Joe Holbrook, CHPTP XXXXX
NETBACKUP OVERVIEW
VERITAS NETBACKUP
DATACENTER FYI
CURRENT JTAV BELVIOR CONFIG
Version 4.5 GA Datacenter
SUN L25 Autoloader with Tape Library/Bar
Code reader & two drives
Throughput on Autoloader is 5Mbps per sec
Media is DLT 8000 Tape 40gig/80gig
Currently managing Valiant and Hood
Joe Holbrook, CHPTP XXXXX
10
11
12
13
VERITAS PORTS
Veritas uses ports to communicate over the
network. TCP port connections to be exact.
The next page covers the ports used by
Netbackup and the Media Manager.
The configuration of these is done during
the installation of Netbackup.
These can be found in the /etc/services file.
Joe Holbrook, CHPTP XXXXX
14
NETBACKUP PORTS
# NetBackup services #
bprd 13720/tcp
bprd
bpdbm 13721/tcp
bpdbm
bpcd 13782/tcp
bpcd
vnetd 13724/tcp
vnetd
vopied 13783/tcp
vopied
bpjava-msvc 13722/tcp
bpjava-msvc
bpjobd 13723/tcp
bpjobd
nbdbd 13784/tcp
nbdbd
visd 9284/tcp
visd
# End NetBackup services #
15
Client Ports
16
17
Netbackup Terminology
Important words
Important processes
Use daily
18
NETBACKUP Terminology
The following several slides cover common
NETBACKUP terms and principals to give
a brief understanding of terms and
principals.
Review the bibliography for more info.
Review the documents on www.veritas.com
.
Review the HELP menu.
Joe Holbrook, CHPTP XXXXX
19
Netbackup Terminology
Archive.
An archive is special backup in Netbackup
where it will backup up the file(s) and then
delete the file(s) from the local disk.
20
Netbackup Terminology
Catalog.
A catalog is a an internal database that
contain info about configuration, media,
devices, errors, logs, etc.
Policy.
A policy is a template for backup a single
client or a group of clients.
Joe Holbrook, CHPTP XXXXX
21
Netbackup Terminology
Disk image backup
A disk image backup is a bit by by bit backup
rather than a file system backup.
Duplicate image
A duplicate image is a copy of a backup.
Expiration
Time when a volume is considered unusable
Joe Holbrook, CHPTP XXXXX
22
Netbackup Terminology
1.
2.
3.
4.
Multiplexing.
Netbackup can send multiple concurrent
backups from one client or several to a single
storage device(tape, disk, NDMP, etc).
Multiplexing is used to reduce backup time.
Multiplexing is done sequentially onto the
media.
Multiplexing reduces restore performance.
Joe Holbrook, CHPTP XXXXX
23
Netbackup Terminology
1.
2.
3.
4.
Why multiplex!
Reduce backup times
Slow network connections
Many short backups (incrementals on
small and lightly used file systems)
Software compression
Joe Holbrook, CHPTP XXXXX
24
Netbackup Terminology
Configure Multiplexing
Must be configured in two places (menus)
1. Storage Unit
Maximum Multiplexing per Drive for
Storage Unit
Number range 1 32
Joe Holbrook, CHPTP XXXXX
25
Netbackup Terminology
2. Schedule setting
Media multiplexing value
Must be also set for multiplexing to work.
Important
Storage unit and schedule settings must be
set. If you set 8 for storage unit and 6 for
schedule then the max multiplexes will
be 6.
Joe Holbrook, CHPTP XXXXX
26
NETBACKUP TERMINOLOGY
Multistreaming
Multistreaming establishes multiple
connections, or threads, from a single system
to the backup server. This is useful if you
have a large system with multiple I/O devices
and large amounts of data that need backing
up.
27
Netbackup Terminology
Storage Unit
A Storage Unit is a group of one or more
storage devices that are the same type
(disk, tape, etc) and density (DLT, SDLT,
etc)
There are 4 types of storage units in
Netbackup and for the JTAV project only
two can be used currently.
Joe Holbrook, CHPTP XXXXX
28
Netbackup Terminology
Storage Unit (four types)
1. Media Manager uses tape robots,
standalone drives or optical disk drives
that are under the Media Manager control.
2. Disk A storage unit that is basically a
directory on a disk. Unlimited can be set
up in Netbackup.
**Notes
Joe Holbrook, CHPTP XXXXX
29
Netbackup Terminology
3. NDMP NDMP is an optional
functionality but also requires you have a
NDMP host (NetAPP).
4. Fastrax another optional functionality and
requires an EMC system.
**optional in Veritas means separately
purchased product
**Note
Joe Holbrook, CHPTP XXXXX
30
Netbackup Terminology
True Image backup - is a snapshot of files
done at the directory level at a certain point in
time. When a "True Image" backup is
restored, the directory restored will be
brought to the same state as when it was
backed up. Any files or sub-directories that
did not exist at the time of backup will be
deleted when the restore occurs if it is
restored to the same location.
Joe Holbrook, CHPTP XXXXX
31
Netbackup Terminology
Volume group - is a group of volumes
that have some common physical
location or characteristic, such as being
in the same library, at the same offsite
location, having the same media
density, or the like. There may be more
than one group in a location, however,
all media in a volume group must be in
the same location.
Joe Holbrook, CHPTP XXXXX
32
VERITAS NETBACKUP
bp.Conf.
The main configuration file for Netbackup is.
/usr/openv/netbackup/bp.conf.
33
VERITAS NETBACKUP
Backup policy.
1. A backup policy is a template for
backup up clients.
2. Every client must be in at least one policy
but can be in many policies.
3. Easier to divide clients into group by the
requirements. Then create policy for each
group of clients.
Joe Holbrook, CHPTP XXXXX
34
VERITAS NETBACKUP
Backup policies are configured within four
tabs of the policy menu
1. General attributes determines policy
storage units, settings, types of backups, etc
2. Schedules specifies when the backup
occurs and the type of schedule (automatic
or user set)
Joe Holbrook, CHPTP XXXXX
35
VERITAS NETBACKUP
3. File list contains the list of files to be backed up. You
can use the parameter
ALL_LOCAL_DRIVES to backup all of the files and
drives.
Select cross mountpoints, true image recovery &
allow Mutiple data streams.
Do not select compression (software).
Our DLT drives support hardware compression
36
VERITAS NETBACKUP
4. Client List is the clients that are to be
backed up by the policy.
Example: all UNIX clients use Standard
Policy.
Remember to add the client to /etc/hosts.
You can also use an IP address.
To install a client you configure the /.rhosts
file on the client. **Notes
Joe Holbrook, CHPTP XXXXX
37
VERITAS NETBACKUP
Catalogs.
A catalog is a an internal database that
contains info about configuration, media,
devices, errors, logs, etc.
Catalogs are in binary format in NB 4.5.
Netbackup places the catalog backup in
default locations. You can change this.
Joe Holbrook, CHPTP XXXXX
38
VERITAS NETBACKUP
Netbackup catalogs are important to maintain for
recovery purposes. If you lose your server or need
to restore to a new machine then the catalog is
critical.
JTAV servers catalog backups up the following
directories.
Media catalog.
/usr/openv/netbackup/db.
Joe Holbrook, CHPTP XXXXX
39
VERITAS NETBACKUP
Volume catalog & device catalog.
/usr/openv/volmgr/database.
Logs & config.
/usr/openv/var.
40
VERITAS NETBACKUP
Reporting
Netbackup has great reporting capability for
reporting the management, verification and
troubleshooting of Netbackup operations.
Refer to the Netbackup Systems
Administrator Guide for UNIX Chapter 5,
page 195
Joe Holbrook, CHPTP XXXXX
41
Backup Levels
Full Need to explain (Level 0)
Cumulative incremental backup is the
backup of all files that have changed
since the last full backup.
Differential incremental backup is the
backup of all files that have changed
since the last backup.
Joe Holbrook, CHPTP XXXXX
42
Busy Files
Busy file processing is a series of
configurations and actions set in the
bp.conf file that can be executed when
a file that cannot be read (read-locked)
is encountered.
43
Reporting
Reports (10 types)
1. Status of backups
2. Client backups
3. Problems
4. All log entries
5. Media list reports
6. Media contents reports
Joe Holbrook, CHPTP XXXXX
44
Reporting
7. Images on media
8. Media logs
9. Media summary
10. Media written
45
Reporting
/usr/openv/netbackup/bin/admincmd/bpdbjobs
-report -all_columns
46
Media States
1.
2.
3.
4.
47
Media States
Full No more space on Media
Can use it for restore but you can not use it
for backup
Suspended Cant do nothing.
Frozen Put on Hold
Can restore bu
Joe Holbrook, CHPTP XXXXX
48
Media States
Imported - Media was imported (restored)
to the NB database.
49
Media Cleaning
Utilize tpclean command
Utilize GUI
List cleanings
Tpclean L
Initiate cleaning
Tpclean C drive1
Schedule cleaning
Tpclean F drive1
50
Monitoring
Monitoring.
You can do monitor Netbackup.
Jobs, daemons and processes.
jnbSA & (java interface).
bpps a (command to view NB & MM
processes).
Joe Holbrook, CHPTP XXXXX
51
VERITAS NETBACKUP
Start Netbackup
/usr/openv/netbackup/bin/goodies/netbackup start
/etc/init.d/netbackup start
52
VERITAS NETBACKUP
Stop Netbackup
/usr/openv/netbackup/bin/goodies/netbackup stop
/etc/init.d/netbackup stop
Or
/usr/openv/netbackup/bin/goodies/bp.kill -all
53
VERITAS NETBACKUP
54
Admin Interfaces
xbpadmin
bpadm
jnbSA
55
56
Admin Utility
Non root users can use Netbackup
You need to configure the usage by
/usr/openv/netbackup/bin/nonroot_admin
57
Logging
Logging allows monitoring of NETBACKUP
There are 10 logging levels 0 being min, 9 being
max.
Logging default level is 0
You must create logs in /usr/openv/netbackup/logs
Configure bp.Conf logging level by VERBOSE = ?
58
Logging
Create Logs by
Cd /usr/openv/netbackup/logs
mkdir bpcd
mkdir bprd
Etc for each daemon & process
59
Daemon Control
Daemons can started or stopped by several ways
initbprd
bprdreq terminate
initbpdbm
xbpadm
bpadm
jnbSA
Joe Holbrook, CHPTP XXXXX
60
Workflow
61
Robot
Display the robot inventory. Do the
following process.
Java GUI:
1. Start media and device management.
2. Click on the media manager that hosts
the robot you wish to inventory. .
62
Robot
3. Select inventory robot from the
actions menu.
4. Select the robot on the host you wish
to inventory
5. Select show contents of robot
6. Start to obtain an inventory.
63
Robot
By the command line
Note that ACS and TLM type libraries are not
managed by NetBackup and you cannot
inventory through this method. .
vmupdate.
vmcheckxxx -rt robot_type -rn robot_number -list.
64
Restore Files
1.
If you are using the java GUI, start the restore of the file, files,
directories, etc .
Then click "preview media required".
2.
You can also perform the restore (either via the GUI or command
line), and have messages written to a log file. The beginning of the
log will contain a list of tapes needed for the restore.
.
65
Restore
Or you can avoid the GUI (and avoid having to kick off a restore) with the bpimagelist command.
Let's assume you want to restore from a backup of CLIENTA that happened on August 1st.
(these commands would be run on your NBU master server)
### First you need to find the exact start time of the backup you want:
nbumaster# bpimagelist -U -client CLIENTA -d 08/01/2001 -e /
08/01/2001
Backed Up Expires Files KB C Sched Type Class ---------------- ---------- --------------- - ------------ ------------ 08/01/2001 05:05 08/15/2001 729846
52624096 N Full Backup CLIENTA_OS 08/01/2001 02:05 11/02/2001 58233
5029312 N Full Backup CLIENTA_DATA
### Next you use the -media flag to see what volume(s) were used for that backup:
nbumaster# bpimagelist -media -U -client CLIENTA -d 08/01/2001
05:05 -e 08/01/2001 05:05
Media ID Last Written Server -------- ---------------- ---------- 602595 08/01/2001
05:05 nbumaster 603084 08/01/2001 05:05 nbumaster
66
Media
Verify Media status (available_media)
/
usr/openv/netbackup/bin/goodies/availabl
e_media
or
Java Gui under
This will tell status of media, media id, time,
etc.
Joe Holbrook, CHPTP XXXXX
67
Scheduling
Determine backup requirements
bpschedreq -predict mm/dd/yyyy
68
Configuration (bp.conf)
Bp.conf is the main configuration for
Netbackup.
Refer to Chapter 10, Page 460 of the
Netbackup System Administrators Guide
for Unix for the specific configuration
options.
69
Configuration(vm.conf)
Main Media Manager Config file
/usr/openv/volmgr/vm.conf
Refer to Netbackup Media Manager Device
Guide for Unix for the specific
configuration options.
70
DRP
Veritas can be a valuable asset in any DRP
plan.
It recommended you allocate your media
correctly.
Should have an off site storage set up.
Keep copies of Netbackup software,
licenses, your NB catalog and ensure a tape
rotation.
Joe Holbrook, CHPTP XXXXX
71
Summary
Veritas Netbackup is a very powerful
program.
It requires considerable thought into
planning & configuring properly.
Netbackup is a plus for the resume.
Restores must always be successful.
Take time to learn the product and
additional functionality.
Joe Holbrook, CHPTP XXXXX
72
Summary
Do your backups and
party later.
Backups are important
to keeping our jobs!
Get Veritas Certified
73
Bibliography
ftp.support.veritas.com/pub/support/products/NetBackup_Da
taCenter/246847.pdf
www.veritas.com/education/quicktips/QuickReference.jhtml
www.veritas.com/education/quicktips/QuickTips.jhtml
www.backupcentral.com
74