Netbackup Command Sheet
Netbackup Command Sheet
Master Daemons | Media Daemons | Catalog | Log Files | Server | Volume | Media |
Tape/Robot | Archive | Client
Catalogs
Master Server
Information about backed-up files image - /opt/openv/netbackup/db
Storage Unit, Global Configuration,
config - /opt/openv/netbackup/db
Catalog backup configuration.
Backup Policy information class - /opt/openv/netbackup/db
Job status information jobs - /opt/openv/netbackup/db
Netbackup logs with error and status
error - /opt/openv/netbackup/db
information
Information on volumes, volume
volume - /opt/openv/volmgr/database
pools, scratch pool and volume groups
Media Server
Tracks assigned volumes (media that
media - /opt/openv/netbackup/db
has data them)
Information about devices managed by
device - /opt/openv/volmgr/database
the media server
Server Commands
netbackup start
Start Netbackup
/opt/openv/netbackup/bin/initbprd (master)
/opt/openv/volmgr/bin/vmd (media)
netbackup stop
Stop Netbackup (does not disconnect GUI
sessions) /opt/openv/netbackup/bin/admincmd/bprdreq -terminate (master)
/opt/openv/netbackup/bin/bpdbm -terminate (master)
Stop Netbackup and kill all GUI sessions /opt/openv/netbackup/bin/goodies/bp.kill_all
Start the GUI /opt/openv/netbackup/bin/jnbSA
sgscan (solaris)
Scan for tape devices
ioscan (HPUX)
Display all Netbackup processes bpps -a
lists servers errors bperror -U -problems -hoursago <number of hours>
bperror -U -backstat -by_statcode -hoursago <number of hours>
display information on a error code bperror -statuscode <statuscode> [-recommendation]
Reread bp.conf file without stopping
bprdreq -rereadconfig
Netbackup
bpdbm -consistency 1
bpdbm -consistency 2
Check database consistency
Check for the below lines:
Bad image header
Does not exist
Netbackup Recovery
bprecover -l -m <media ID> -d dlt (listing)
Device catalog is intact
bprecover -r -m <media ID> -d dlt (recovering)
bprecover -l -tpath <tape_path> (listing)
Device catalog is gone or corrupted
bprecover -r -tpath <tape_path> (recovering)
bprecover -l -dpath <disk_path> (listing)
Disk backups
bprecover -r -dpath <disk_path> (recovering)
Volume Commands
Media commands
Tape/Robot commands
s s (show slots)
s d (show drives)
s i (show load port)
m s250 d5 (move tape from slot 250 into drive 5)
uload d5 (unload tape from drive 5)
m d5 s250 (move tape from drive 5 to slot 250)
m s250 i1 (mov tape from slot 250 to load port 1)
List load port tapes echo "s i q" | tldtest -r /dev/sg/c0t4l0
List all slot contents echo "s s q" | tldtest -r /dev/sg/c0t4l0
List tape drive contents echo "s d q" | tldtest -r /dev/sg/c0t4l0
Move a tape in s100 to drive 1 echo "m s100 d1" | tldtest -r /dev/sg/c0t4l0
Move a tape to load port 1 echo "m s100 i1" | tldtest -r /dev/sg/c0t4l0
Archiving Commands
Client commands
Glossary
Term Definition
CLI Command Line Interface
GUI Graphical User Interface
Media Server
Master Server
Stopping Netbackup
/usr/openv/netbackup/bin/K77netbackup --> graceful shutdown
/usr/openv/netbackup/bin/bpps -a --> check for any remaining processes
/usr/openv/netbackup/bin/goodies/bp.kill_all ---> kills all remaining netbackup
processes, not necessarily graceful
/usr/openv/netbackup/bin/bpps -a --> check for any remaining processes
kill -9 <pid> for any remaining. NOTE: unkillable processes may require a
reboot
Starting Netbackup
/usr/openv/netbackup/bin/S77netbackup --> after bp.kill_all, to restart
Common Tasks
Scratch Tapes
Count scratch tapes: /usr/openv/volmgr/bin/vmquery -pn Scratch | grep -c "robot
slot"
Moving tapes to the scratch pool
o If Needed - Expire the tape
bpexpdate -ev <TAPE ID> -d 0 -force -host <Media Manager>
o Move the tape
vmchange -p 2 -m <TAPE ID>
Performing a Restore
From the GUI
o user backup & restore --> configuration --> client
o user backup & restore --> configuration --> client to restore
o directory to search
o directory depth
o date range
o file --> browse backups for restore
To expire media
bpexpdate -ev <medai id> -d 0 -force -host <media server>
To unfreeze media
List the frozen media
o /usr/openv/netbackup/bin/goodies/available_media | grep -i FROZEN
Unfreeze the media
o bpmedia -unfreeze -ev <media id> -h <media server>
To relabel a tape
bplabel -ev <media id> -d <tape density> -p <pool name>
bplabel -ev 000687 -d dlt -p TriVrgt_OFFSITE
To remove media from the Netbackup database
Verify that there are no images on the tape
o bpimmedia -mediaid 000687 -L
Expire the tape
o bpexpdate -ev 000687 -d 0 -host scorpius -force
Get the status and pool number of the tape
o vmquery -m 000687
Deassign the tape
o vmquery -deassignbyid <media id> <pool number> <status code from
vmquery -m>
o vmquery -deassignbyid 000687 4 0x0
Delete the tape
o vmdelete -m 000687
Robtest Commands
Starting robtest
o robtest
o 1 --> to select TLD 0
Getting help
o ?
Looking at contents of the tape drives
o sd
Looking at the contents of the library
o ss
Moving a tape from a drive to a library slot
o s d --> to identify drive number that has tape (Contains Cartridge = yes,
Barcode=XXXXXX)
o s s --> to identify an empty slot in the tape library (Netbackup will need
to be re-inventoried)
o m d# s# --> from from drive # to slot #
o s d --> verify the tape drive is empty
o s s --> verify the library slot has the tape
Configuration Files
/usr/openv/netbackup/bp.conf
configuration file, sets backup server and backup clients
force statement must be correct
client to browse from
client to restore to
/usr/openv/volmgr/vmconf
Logfiles
Media Manager logging automatically goes to the system log using syslogd logging
facility
.Logging will only occur if these directories are created. These directories will generate a
lot of data and should be deleted when no longer necessary.
Processes
ltid
acsd
vmd
Useful Commands
Troubleshooting
Device Actions
Media Actions
Netbackup Client
/usr/openv/netbackup/bin/bpclntcmd ip "ip_address"
One of these usually fails and your able to fix it right off
Must be able to resolve correctly from the master server and the client or it will not
work!!!