Escolar Documentos
Profissional Documentos
Cultura Documentos
html
Unix ,Solaris,Veritas,Oracle, interview questions
Wednesday, April 22, 2009
veritas netbackup tricks and commands
Netbackup Tips and Tricks (Unix)
Glossary
Term Definition
CLI Command Line Interface
GUI Graphical User Interface
Media Server
Master Server
Starting and Stopping Netbackup
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 for any remaining. NOTE: unkillable processes may require a reboot
Starting Netbackup
/usr/openv/netbackup/bin/S77netbackup --> after bp.kill_all, to restart
/usr/openv/volmgr/bin/vmd
Common Tasks
Starting the Administration GUI
java from the windows client
x-windows from the server - /usr/openv/netbackup/bin/xnb &
Checking Backup Status
Activity Monitor or
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report
Cleaning a tape manually
Identify the drive name to be cleaned
o tpclean -L
Manually clean the drive:
o tpclean -C
Determining what tapes were used for a backup
GUI
o Backup and Restore --> Find the file system --> Preview Media Button
CLI
o Find the correct backup images
? bpimagelist -U -client -d -e
o Find the media used for those images
? bpimagelist -U -client -d -e -media
Listing the files in a backup
Find the tape(s) used (above procedure using bpimagelist)
cd /usr/openv/netbackup/db/jobs/done
Run the following script and redirect it's output to a text file:
for file in `grep MOUNTING *|grep |awk '{print $1}'|sed 's/:MOUNTING//'`
do
echo $file
grep PATH_WRITTEN $file|awk '{print $3}'
echo " "
echo "==========================================End of Image====================
=================="
p 2 -mm 0
Re-using Tapes from other systems or older Netbackups
Expire the media
o bpexpdate -ev MEDIA_ID -d 0 -force -host HOST
Deassign the media
o vmquery -deassignbyid MEDIA_ID 4 0
Move to the scratch pool
o vmchange -m MEDIA_ID -p POOL#
Relabel the media
o bplabel -ev CIM572 -d dlt -p Scratch
Changing the attributes of media
Changing the barcode
o vmchange -barcode CYM100D -m CYM100
Changing the Volume Pool
o vmchange -m MEDIA_ID -p POOL#
To expire media
bpexpdate -ev -d 0 -force -host
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 -h
To relabel a tape
bplabel -ev -d -p
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
o vmquery -deassignbyid 000687 4 0x0
Delete the tape
o vmdelete -m 000687
Installing the Netbackup Client
/update_clients -ForceInstall -ClientList /tmp/clients.lst
o requires that TMPDIR and TEMPDIR be set correctly
Excludng files from backup on a client
Create /usr/openv/netbackup/exclude_list
Put the file specifications of the files/directories to be excluded
o /mnt/directory/*
Displaying Information about a Tape
vmquery -m --> Displays attributes about a particular tape
bpmedialist -U -mcontents -ev 000687 --> Displays media contents
bpmedialist -U -mlist --> List of all media
bpmedialist -U -mlist -ev CYM966 --> Listing of a particular media id
bpimmedia -mediaid 000687 -L --> Listing of images on a tape
Robtest Commands
Starting robtest
o robtest
o 1 --> to select TLD 0
Getting help
o ?
Looking at contents of the tape drives
o s d
acsd
vmd
Useful Commands
bpcllist - list classes
bpclinfo -L --> displays info about a class
vmpool - volume pools
vmpool -listall
vmpool -listscratch
bplabel -ev -d hcart
bpbackup db --> backs up the catalog
bpclclients --> lists the clients for a particular policy (class)
Troubleshooting
bperror -statuscode <-- displays information about the netbackup error.
No Backups are running:
Check system log file for error messages
Stop and restart all the netbackup processes
Look for a downed drive
o /usr/openv/volmgr/bin/vmoprcmd
o /usr/openv/volmgr/bin/vmoprcmd -up 0 --> this will bring up drive 0 if it's co
ntrol shows as down
Look for pending requests
o /usr/openv/volmgr/bin/vmoprcmd or gui --> device management
o If there is a pending request either re-assign it to a drive, or deny the requ
est
Downed drive does not come back up or does not stay up
Check for a hardware problem by looking for messages on the tape library
Make sure there is not a tape stuck in the drive
o Use robtest (described above) to look at the drives
? If there is a tape stuck in the drive, try to remove it using robtest
? If robtest fails, then you must manually remove it.
Verify the Client is communicating properly:
bpclncmd -ip --> from both client and server
bpclntcmd -hn --> from both client and server
bpclntcmd -pn --> from client only
Device Actions
Device Management --> info about tape drives
dlt
hcart (ultrium)
Media Actions
Media id must agree with # of the tape
Create a media id
actions -->new-->single volume-->dlt cart (not dlt2)
put it into the "netbackup" volume pool
Netbackup Client
To check things out do this:
It could be a couple things. Mostly DNS, bp.conf, or something stupid. On
the client run this command
/usr/openv/netbackup/bin/bpclntcmd -pn
/usr/openv/netbackup/bin/bpclntcmd -server "server name"
/usr/openv/netbackup/bin/bpclntcmd ip "ip_address"
One of these usually fails and your able to fix it right off
1074
1075
1076
1077
1078
1079
1080
Must be able to resolve correctly from the master server and the client or it wi
ll not work!!!
Netbackup Command
Master Server Daemons/Processes
Request daemon bprd
Scheduler bpsched (started with bprd)
Netbackup database manager bpdbm (started with bpsched)
Job Monitor bpjobd (started with bpdbm)
Media Server Daemons/Processes
Communications daemon bpcd
Backup and restore manager bpbrm (started with bpcd)
Tape Manager bptm (started with bpbrm)
Disk Manager bpdm (started with bpbrm)
Media Manager ltid
Bar code reader avrd (started with ltid)
Remote device management/ controls volume database vmd (started with ltid)
Roboticdaemon (one on each media server) talks to tldcd tldd (started with ltid)
Robotic control daemon talks to the robot directl via scsi tldcd (started with l
tid)
Catalogs
Master Server
Information about backed-up files image - /opt/openv/netbackup/db
Storage Unit, Global Configuration, Catalog backup configuration. config - /opt/
openv/netbackup/db
Backup Policy information class - /opt/openv/netbackup/db
Job status information jobs - /opt/openv/netbackup/db
Netbackup logs with error and status information error - /opt/openv/netbackup/db
Information on volumes, volume pools, scratch pool and volume groups volume - /o
pt/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 server device - /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
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
Device
Device
Device
Device
Device
Device
Device
Device
Device
Device
World
World
World
World
World
World
World
World
World
World
Wide
Wide
Wide
Wide
Wide
Wide
Wide
Wide
Wide
Wide
Port
Port
Port
Port
Port
Port
Port
Port
Port
Port
Name
Name
Name
Name
Name
Name
Name
Name
Name
Name
22000004cfa17ac8
508002000019716a
22000004cf9b61fb
22000004cfa17211
22000004cf9b6ada
22000004cf9b6aee
22000004cf9b6898
22000004cf9b61df
22000004cfa17b08
500000e010136592
/dev/sg/c0tw2100001086103bacl0:
/dev/sg/c0tw2100001086103bacl1:
/dev/sg/c0tw2100001086103bacl2:
/dev/sg/c0tw2100001086104420l0:
/dev/sg/c0tw2100001086104420l1:
SDLT320"
SDLT320"
SDLT320"
SDLT320"
Ragha.....
To freeze the tapes you need to login to the respective media servers
cd /usr/openv/netbackup/bin/admincmd
zin05view03:/usr/openv/netbackup/bin/admincmd # ./bpmedia -freeze -m SVEW03
Ananomous
simple and cool guy
View my complete profile
Blog Archive
? 2012 (1)
? 2009 (14)
? May (3)
? April (11)
veritas netbackup interview question with answer
veritas netbackup error code troubleshooting guide...
veritas netbackup tricks and commands
VxVm commands quick reference guide
VxVm commands quick reference guide
Veritas volume manager certification questions
solaris troubleshooting
solaris qucik sheet
solaris qucik sheet
solaris certification questions dump
Introduction of Blog
Followers
Simple template. Template images by luoman. Powered by Blogger.