You are on page 1of 39

Agenda

Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

NetBackup Architecture
NetBackup Global
NetBackup Master
Server

NetBackup
Media Servers

NetBackup
Clients/
Agents

Data Manager

Netbackup/Master server

MASTER server
Only ONE MASTER Server per backup domain
Houses Configuration that defines backups
Runs Scheduler that initiates automated backups
Maintains Databases that tracks location/contents of all

backups

NetBackup/Media Manager
Media Server
Provides interface/control of Storage
Devices (tape drives, optical drives)
Provides Media (removable) Management tracks

location/status of volumes in Volume Database


Controls robotic devices
Monitors status of storage devices
Communicates with Media Manager (on same system)
to select media for backup/store
Communicates with Netbackup client during a
backup/restore operation
Receives backup datastream from client on backup

writes to storage device (backup)


Reads restore datastream from backup device/media
writes to client (restore)

NetBackup/Client
CLIENTS
May (if allowed) request backups/restores (user) user

request is directed to the MASTER server


Scheduled backups initiated by MASTER server
Communicates with MEDIA server during backups and
restores
Provides User Interfaces (backup/restore/browse)

Netbackup/Term explain

Images

Storage Units

Volumes

Volume Pools

Backup Policies

NetBackup database
NetBackup

NetBackup/Image
NetBackup Image collection of all backup data from
a client in a single stream during a particular backup session
clients
backup
data
Written with
NetBackups
gnutar

tar image

NetBackup Storage Unit


Storage Unit a logical destination for

backups.

Two StandardTypes:
Media Manager - optical or tape drives
Disk
Third (optional) Type
NDMP

NetBackup Volumes
Volume

- removable media (tape or optical). An optical platter is


actually two volumes because it can be written on either side - each
side being defined as a volume.
Volume

Pool - a set (bunch, pile) of volumes defined for a specific


purpose. Example: volumes that are defined to house backups from
the engineering group workstations. Volume Pools are not defined by
geography. Tapes that belong to the same pool can be located in
several robotic libraries and/or standalone.
Volume

Group - tapes that are defined by their location


(geography). Example: All the tapes that are housed in the same
tape carrier. This tape carrier can be extracted from/inserted into a
tape library, thus inserting/extracting a group of tapes all at once.

NetBackup/Policy
Backup Class/Policy
List of parameters that defines the details of how

backups will be performed


Four main components:
Attributes Where (destination), other
Client List Who (will be backed up?)
Schedules When (will backups occur?)
Files List What (will be backed up?)
Unlimited number of classes in a NetBackup domain
Classes/Backup Policies (in NT)
only exist/defined on the NetBackup MASTER Server

NetBackup/Databases
Volume
Database

Image
Database

Media
Database

Exists on each Media Server contains a


list of volumes used on/by a particular Media
Server. Indicates number of valid images
on the media
Exists only on Master Server contains entries for each backup
image created by NetBackup. Two files in image DB per backup. One
file contains info about the backup (location of, expiration,etc). Second
file contains list of all contents (files/directories) that were backed up
(along with all the permissions/dates/etc)
Should exist only on Master Server (VOLUME DATABASE HOST) contains an entry for
each Volume (media ID). Volume DB tracks whether volumes are UNASSIGNED/ASSIGNED
and the application to which the volume is ASSIGNED.

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

Netbackup installation
Step1:

Master server installation

Create storage unit


Configure volume
Configure catalog
Step2:

Media server installation

Create new storage unit


SSO (share storage option)
Step3:

Client installation

Step4:

oracle agent installation (oracle link)

Post-Installation checking
Issue

the command line as below:

bpps a

(master server, media server)

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

NetBackup Daemons
bpdbm -- Manages the configuration, error, and file databases
on master servers
bprd -- Responds to administrative and client requests for the
restores, backups, archives, lists of archived/backed up files
and manual immediate backups
bpsched -- Uses class information from the Netbackup
confguration databases on the master server to determine
which clients to backup and when to start them and which
storage units to use.
bpbrm -- On UNIX servers, the Backup/Restore Manager
manages the client and Media Manager processes and uses
error status from both to determine the final status of
backup/restore operations.
bphdb -- Hot database backup program (Oracle hot-backup
style)

Netbackup/Daemons

Media Manager Daemons


bpcd --Client daemon that allows Netbackup to kick off programs
on remote hosts without using a /.rhosts file
bptm -- Tape media manager used on master/slave servers and is
used when the storage unit type is Media Manager
vmd -- volume management daemon; tracks location, mount
number, and mount time for each volume
ltid -- Media manager device daemon; controls the reservation and
assignment of volumes
txxd -- The exact daemon name is dependent on the type of robot.
These daemons run on each host that's connected to a tape
library. They pass information from ltid to the robotic or to a robotic
control daemon.
txxcd -- The exact daemon name is dependent on the type of
robot. These daemons only run on the host that controls the robot.
avrd -- Automatic volume recognition daemon; handles volume
recognition and label scanning so the system can automatically
assign removable media requests to specific drives.

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

Storage unit
Storage
Unit X

Drive 1
NetBackup
Media
Server 1

Drive 2
Drive x
Drive 1

NetBackup
Media
Server 2

Drive 2
Drive x

Storage
Unit Y

Storage unit type


Media

Manager (Standard)

Tape library
Optical library
Standard alone
Disk

(Standard)

NDMP

(Network Data Management


Protocol)

Media management
Volume
Volume

pool

Volume

group

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

Netbackup/policy
What

is a Backup Policy?

Contents
Tools
CLIs

of a Backup POLICY

for Creating Policy/Schedules

Contents of a netbackup
policy
Contents of a NetBackup Policy?
Four primary components
Policy Attributes
Policy Client List
Policy Schedule(s)
Policy Selection List

A NetBackup Policy contains the HOW, WHERE,


WHO, WHAT, WHEN of backup operations:
HOW/WHERE defined in the Policy Attributes
WHO defined in the policy Client List
WHAT defined by the policy Selection List.
WHEN defined by the policy Schedule(s)

Tools for policy/Schedule


creation
Tools for Creating Policy/Schedules
Java GUI (available in NetBackup version 3.2 or later)
recommended user interface
bpadm (non-graphics interface)

Command lines
bpadm (/usr/openv/netbackup/bin/bpadm)
#bpadm

Class: <ALL>
NetBackup
Server:
Clients:
Schedules:
Output Destination:

t-sparc1

<ALL>
<ALL>
SCREEN

NetBackup Administration
Class Management
--------------------------------------a) Add
Class...
s)
Storage
Unit Management...
d) Delete
c)
Class Class
Management...
m) Modify Class Attributes...
g)
Configuration...
s) Global
Schedule Management...
c) Client
List Management...
r)
Reports...
f) File
List Backups...
Management...
m)
Manual
x)
Actions...
b) Special
Browse Classes
Forward
r) Browse
Classes Reverse
u)
User Backup/Restore...
e)
Enter
Class
e) Media Management...
l) List/Display Classes
h)
o) Help
Output Destination (SCREEN or FILE)
h) Help
q)
Quit
q)

Quit Menu

ENTER
CHOICE: c
ENTER CHOICE:

Conts
CLIs for working with Policies/Schedules
bpclassnew
bpclclients
bpcldelete
bpclexclude
bpclinfo
bpclinclude
bpcllist

bpclsched
bpclschedrep
bpclschedwin
bpclvalid
bpretlevel
bpschedreq

You should become familiar with CLIs you


may not always have a GUI

Currently policies

Detail information of policy

For example:
Oracle
Sql

server

Lotus
File

Notes

system

Oracle Backup

What needs to be backed up?

Datafiles
Control Files
Archived Redo Logs
Online redo logs

Types of backup

Types of backup
Cold (Closed) Backups
Shutdown database, backup control file, all
datafiles and other Oracle installation files

Warm / Hot Backups


Take tablespace offline (warm) or put it into
backup mode (hot) and backup associated
datafiles.
Take a copy of the control file and back it up
Force a switch of the online redo log files and
backup the archived redo logs

Oracle Backup Utilities

How does it work?


Control Information

Database

Oracle Instance
Control
Information
Backup
Data

NetBackup
Server

Backup Data
Netbackup interface
module

Backup
Catalogue

Catalogue
Information
NetBackup
Catalog

Installation and configuration


Installation:
Install NetBackup Client/Server
Install NetBackup DB Extension for Oracle
Link Oracle 9i with the Media Manager API library

Configuration
Oracle
Ensure Net connection to RMAN catalog
Create oracle users for backup
Create oracle RMAN backup scripts

Performing Backups

Backup Examples
Whole Database Full Backup
run {
allocate channel ch00 type sbt_tape connect sys/change_on_install@gdgf2;
backup
format db_%d_t%t_s%s_p%p
database;
sql alter system archive log current;
release channel ch00;
#archivelog backup
allocate channel ch00 type sbt_tape connect sys/change_on_install@gdgf2;
allocate channel ch01 type sbt_tape connect sys/change_on_install@gdgf1;
backup
format arch_%d_t%t_s%s_p%p
archivelog all delete all input;
release channel ch00;
release channel ch01;
}

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

Status for running Env


Activity

Monitor

Checking
bpps

and Reporting

-a

bplist

install_path\NetBackup\bin\bplist -C <client>
-t xx -S <server> -R \

Agenda
Implementation

overview
Data migration and Integration
Netbackup Enterprise Edition Architecture
Netbackup installation
Netbackup daemons
Media Management
Backup policy
(oracle,sql server,Lotus,File system)
Maintenance
Q&A

You

= everything is possible

Q&A

You might also like