Tuesday, 12 March 2013

Netbackup Cheat Sheet


Master Server Daemons/Processes
Request daemonbprd
Schedulerbpsched (started with bprd)
Netbackup database managerbpdbm (started with bpsched)
Job Monitorbpjobd (started with bpdbm)
Media Server Daemons/Processes
Communications daemonbpcd
Backup and restore managerbpbrm (started with bpcd)
Tape Managerbptm (started with bpbrm)
Disk Managerbpdm (started with bpbrm)
Media Managerltid
Bar code readeravrd (started with ltid)
Remote device management/ controls volume databasevmd (started with ltid)
Roboticdaemon (one on each media server) talks to tldcdtldd (started with ltid)
Robotic control daemon talks to the robot directl via scsitldcd (started with ltid)
Catalogs
Master Server
Information about backed-up filesimage - /opt/openv/netbackup/db
Storage Unit, Global Configuration, Catalog backup configuration.config - /opt/openv/netbackup/db
Backup Policy informationclass - /opt/openv/netbackup/db
Job status informationjobs - /opt/openv/netbackup/db
Netbackup logs with error and status informationerror - /opt/openv/netbackup/db
Information on volumes, volume pools, scratch pool and volume groupsvolume - /opt/openv/volmgr/database
Media Server
Tracks assigned volumes (media that has data them)media - /opt/openv/netbackup/db
Information about devices managed by the media serverdevice - /opt/openv/volmgr/database
Log and Information Files
Netbackup and Patch versions/opt/openv/netbackup/bin/version
Media Version/opt/openv/volmgr/version
Patch Level history/opt/openv/netbackup/patch/patch.history
Buffer size/opt/openv/netbackup/db/config/SIZE_DATA_BUFFERS
Number of buffers/opt/openv/netbackup/db/config/NUMBER_DATA_BUFFERS
Network Buffer Size/opt/openv/netbackup/NET_BUFFER_SZ (default = 32)
Java GUI authorisation/opt/openv/java/auth.conf
Catalog type (binary or ASCII)/opt/openv/netbackup/db/config/cat_format.cfg
Netbackup and media manager parameter files/opt/openv/netbackup/bp.conf
/opt/openv/volmgr/vm.conf
Corrupt Database image files (5.0 and above)/opt/openv/netbackup/db.corrupt
Server Commands
Check license details/opt/openv/netbackup/bin/admincmd/get_license_key
Start Netbackupnetbackup start

/opt/openv/netbackup/bin/initbprd (master)
/opt/openv/volmgr/bin/vmd (media)
Stop Netbackup (does not disconnect GUI sessions)netbackup stop
/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
Scan for tape devicessgscan (solaris)
ioscan (HPUX)
Display all Netbackup processesbpps -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 codebperror -statuscode <statuscode> [-recommendation]
Reread bp.conf file without stopping Netbackupbprdreq -rereadconfig
Check database consistencybpdbm -consistency 1
bpdbm -consistency 2
Check for the below lines:
Bad image header
Does not exist
Netbackup Recovery
Device catalog is intactbprecover -l -m <media ID> -d dlt (listing)
bprecover -r -m <media ID> -d dlt (recovering)
Device catalog is gone or corruptedbprecover -l -tpath <tape_path> (listing)
bprecover -r -tpath <tape_path> (recovering)
Disk backupsbprecover -l -dpath <disk_path> (listing)
bprecover -r -dpath <disk_path> (recovering)
Volume Commands
Tape Drive and Inventory Commands
List drive status, detail drive info and pending requestsvmoprcmd
List the tape drive statusvmoprcmd -d ds
List the pending requestsvmoprcmd -d pr
Control a tape devicevmoprcmd [-reset][-up][-down] <drive number>
List all changes in the robot(but do not update)vmupdate -recommend -rt tld -rn 0
vmcheckxxx -rt tld -rn 0 -recommend
Empty the robot and re-inventory (using barcodes)vmupdate -rt tld -rn <robot number> -rh <silo slave> -vh <host> -nostderr -use_barcode_rules -use_seed -empty_ie
Tape Media Commands
List all poolsvmpool -listall -bx
List tapes in poolvmquery -pn <pool name> -bx
List all tapes in the robotvmquery -rn 0 -bx |grep 'TLD' | sort +4
List cleaning tapesvmquery -mt dlt_clean -bx
List tape volume detailsvmquery -m <media ID>
Delete a volume from the catalogvmdelete -m <media ID>
Change a tapes expiry datevmchange -exp 12/31/06 23:59:58 -m <media ID>
Change a tape's media poolvmchange -p <pool number> -m <media ID>
Media commands
List the storage unitsbpstulist -U
Freeze or unfreeze mediabpmedia [-freeze][-unfreeze] -ev <media ID>
List media detailsbpmedialist -ev <media ID>
List media contentsbpmedialist -U mcontents -m <media ID>
List backup Image Informationbpimagelist -backupid <image ID>
Expire client imagesbpimage -cleanup -allclients
Expire a tapebpexpdate -d 0 -ev <media ID> -force
List all netbackups jobsbpdbjobs -report [-hoursago]
Move media from one media server to anotherbpmedia -movedb -newserver <media server> -oldserver <media server>
Tape/Robot commands
List tape drivestpconfig -d
List cleaning times on drivestpclean -L
clean a drivetpclean -C <drive number>
change a drives cleaning frequencytpclean -F <drive> <frequency>
set a drives cleaning time to zerotpclean -M <drive>
Move tapes within robot using robtestrobtest
commands that can be used are as follows:

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 tapesecho "s i q" | tldtest -r /dev/sg/c0t4l0
List all slot contentsecho "s s q" | tldtest -r /dev/sg/c0t4l0
List tape drive contentsecho "s d q" | tldtest -r /dev/sg/c0t4l0
Move a tape in s100 to drive 1echo "m s100 d1" | tldtest -r /dev/sg/c0t4l0
Move a tape to load port 1echo "m s100 i1" | tldtest -r /dev/sg/c0t4l0
Archiving Commands
list archive infobpcatlist -client all -before Jul 01 2006
bpcatlist -client all -before Aug 01 2006
archive and remove imagesbpcatlist -before Jul 01 2006 | bpcatarc | bpcatrm
restore archive filesbpcatlist -before Jul 01 2006 | bpcatres
Client commands
test client connectivitybpclntcmd [-ip <ip addres>]
bpclntcmd [-hn <hostname>]
bpclntcmd [-pn]
bpclntcmd [-sv]

Courtesy by datadisk.co.uk

No comments:

Post a Comment