Professional Documents
Culture Documents
Stopping Netbackup
Starting Netbackup
Common Tasks
Starting the Administration GUI
Activity Monitor or
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report
GUI
CLI
o
o
o
Backup and Restore > Find the file system > Preview Media Button
Find the correct backup images
bpimagelist -U -client <CLIENT> -d <STARTDATE> -e <ENDDATE>
Find the media used for those images
bpimagelist -U -client <CLIENT> -d <STARTDATE> -e <ENDDATE> -media
echo $file
grep PATH_WRITTEN $file|awk {print $3}
echo
echo ==========================================End of
Image======================================
echo
done
This process works for NBU V3.4:
cd /usr/openv/netbackup/db/images/<CLIENT>
ls -ltr > this will identify the directory with the proper date
verify directory with bpdbm -ctime <Unixtime>
cd <Unixtime>
ls -ltr > lists all of the backups for this client on this date
cat <POLICY>_<Unixtime>_<BU Type>.f | awk {print $10} > this prints out the files in the backup
bpflist help > undocumented netbackup command to list files from a binary .f file
Inventory Robot > /opt/openv/volmgr/bin/vmcheckxxx -rt robot_type -rn robot_number -list (where
robot_type is tld, acs, . . .)
Inventory Robot and Update Configuration > /opt/openv/volmgr/bin/vmupdate -rt robot_type -rn
robot_number -list (where robot_type is tld, acs, . . .)
vmpool -listall
Scratch Tapes
/usr/openv/volmgr/bin/vmoprcmd
Performing a Restore
To expire media
To unfreeze media
To relabel a tape
Create /usr/openv/netbackup/exclude_list
Put the file specifications of the files/directories to be excluded
o /mnt/directory/*
Robtest Commands
Starting robtest
o robtest
o 1 > to select TLD 0
Getting help
o ?
Configuration Files
/usr/openv/netbackup/bp.conf
/usr/openv/volmgr/vmconf
Logfiles
To utilize logfiles, create the corresponding directory in /usr/openv/netbackup/logs
Server Logfile directories:
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.
To increase the amount of logging information set VERBOSE=2 in /usr/open/netbackup/bp.conf (default is
VERBOSE=1)
Processes
ltid
acsd
vmd
Useful Commands
bpcllist - list classes
bpclinfo <class> -L > displays info about a class
vmpool - volume pools
vmpool -listall
vmpool -listscratch
bplabel -ev <media id> -d hcart
bpbackup db > backs up the catalog
bpclclients <policy> > lists the clients for a particular policy (class)
Troubleshooting
bperror -statuscode < displays information about the netbackup error.
No Backups are running:
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.
bpclncmd -ip <ip address> > from both client and server
bpclntcmd -hn <hostname> > 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
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 ./bpclntcmd -hn corpbu1
1075 ./bpclntcmd -ip 10.194.1.129
1076 ping 10.194.1.129
1077 ./bpclntcmd -hn corpldv1
1078 ./bpclntcmd -hn corpbu1.corporate.vox.net
1079 ping corpldv1
1080 ./bpclntcmd -ip 10.194.1.120
lun=0;
lun=0;
lun=0;
lun=0;
lun=0;
lun=0;
/usr/bin/rm -f /kernel/drv/sg.conf
/usr/openv/volmgr/bin/driver/sg.install
when run sg install
command sg.conf will copy to /kernel/drv/sg.conf
and sg.links will copy to /etc/devlink.tab
Verify that the sg driver found all the robots, tape drives,
The script /usr/openv/volmgr/bin/sg.build
adds the proper entries to the sg.links and sg.conf files. Before running the
script, make sure that all devices are powered on and connected to the HBA.An
example of the additional entries in /usr/openv/volmgr/bin/driver/sg.conf
follows:
name=sg parent=fp target=0 lun=0 fc-port- wwn=22000090a50001c8;name=sg
parent=fp target=0 lun=1 fc-port-wwn=22000090a50001c8;
An example of the
additional entries in /usr/openv/volmgr/bin/driver/sg.links
follows:
type=ddi_pseudo;name=sg;addr=w22000090a50001c8,0;
sg/c\N0t\A1l0type=ddi_pseudo;name=sg;addr=w22000090a50001c8,1;
sg/c\N0t\A1l1
Preventing Possible System Problems
VERITAS recommends adding the following forceload statements to the /etc/system
file. These statements prevent the st and sg drivers from being unloaded from
memory
forceload: drv/st
forceload: drv/sg
Other statements
may be necessary for various fibre channel drivers, such as the following example
for JNI drivers. This statement prevents the named driver from being unloaded
from memory.
forceload: drv/fcaw
SSO Configurations With More Than 16 Tape Drives
When the number of tape devices that are configured approaches 16, changes in
tape device status may not be visible to all media servers in a Shared Storage
Option (SSO) configuration. This is because the default maximum size of IPC
message queues may not be
large enough.
VERITAS recommends adding the following statements to the /etc/system file.
These statements increase the maximum number of messages that can be created,
and the number of bytes per queue. A reboot is necessary for the changes to
take effect.
set msgsys:msginfo_msgtql=512
set msgsys:msginfo_msgmnb=65536
1. run command : lsdev C c adapter (to determine the logical indetifier for the SCSI controler)
# lsdev -C -c adapter
ent0 Available 10-80 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
fda0 Available 01-D1 Standard I/O Diskette Adapter
mg20 Available 10-70 GXT130P Graphics Adapter
paud0 Available 01-Q2 Ultimedia Integrated Audio
ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
scsi0 Available 10-60 Wide/Fast-20 SCSI I/O Controller (used for CDROM & SCSI Hardisk)
scsi1 Available 10-88 Wide/Ultra-2 SCSI I/O Controller (Tape & robotic)
sioka0 Available 01-K1-00 Keyboard Adapter
siokma0 Available 01-K1 Keyboard/Mouse Adapter
sioma0 Available 01-K1-01 Mouse Adapter
siota0 Available 01-Q1 Tablet Adapter
2. run command : lsdev C s scsi (to display the SCSI device files)
# lsdev -C -s scsi
cd0 Available 10-60-00-1,0 16 Bit SCSI Multimedia CD-ROM Drive
hdisk0 Available 10-60-00-9,0 16 Bit LVD SCSI Disk Drive
rmt0 Available 10-88-00-0,0 Other SCSI Tape Drive
rmt1 Available 10-88-00-1,0 Other SCSI Tape Drive
Note:
Detected two drives, but robotic didnt detected.
3. to detect robot, run this command :
#cd /usr/openv/volmgr/bin/driver
#./install_ovpass {to install the SCSI passthru driver}
Then run:
#mkdev -c media_changer -s scsi -t ovpass -p controller -w id,lun
Where:
controller is the logical identifier of the drives SCSI adaptor, such as scsi0, scsi1 or vscsi1.
id is the SCSI ID of the robotic connection.
scsi_id is the fibre channel identifier for the N_Port address (D_ID) of the robotic connection.
lun is the logical unit number of the robotic connection.
Example:
# mkdev -c media_changer -s scsi -t ovpass -p scsi1 -w 6,0
4. run command : lsdev C s scsi (to display the SCSI device files)
# lsdev -C -s scsi
cd0 Available 10-60-00-1,0 16 Bit SCSI Multimedia CD-ROM Drive
hdisk0 Available 10-60-00-9,0 16 Bit LVD SCSI Disk Drive
ovpass0 Available 10-88-6,0 VERITAS Media Changer {SCSI device driver for robotic}
rmt0 Available 10-88-00-0,0 Other SCSI Tape Drive {SCSI device driver for drive0)
rmt1 Available 10-88-00-1,0 Other SCSI Tape Drive {SCSI device driver for drive1)
5. make sure with the performing command: ./scan from /usr/openv/volmgr/bin/
#cd /usr/openv/volmgr/bin
# ./scan
************************************************************
*********************** SDT_TAPE ************************
*********************** SDT_CHANGER ************************
*********************** SDT_OPTICAL ************************
************************************************************
1. run command : lsdev C c adapter (to determine the logical indetifier for the SCSI controler)
# lsdev -C -c adapter
ent0 Available 10-80 IBM 10/100 Mbps [...]
Netbackup
This is an amalgamation of NetBack Up tips and tricks that can be used when administrating Vertais/Symantec
NETBACKUP.
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 (start with bpbrm) Bar code reader: avrd (start with ltid)
Disk Manager: bpdm (start with bpbrm) Media Manager: ltid
Remote device management/ controls volume database: vmd (started with ltid)
Roboticdaemon (one on each media server) talks to tldcd: tldd (start with ltid)
Robotic control daemon talks to robot directly via scsi: tldcd (start with ltid)
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 & status information: error - /opt/openv/netbackup/db
Info on volumes, volume pools, scratch pool and volume groups: volume - /opt/openv/volmgr/database
Media Server
Tracks assigned volumes (media with data): media - /opt/openv/netbackup/db
Info on devices managed by media server: device - /opt/openv/volmgr/database
Netbackup: Directory structure All files/directories relative to /usr/openv/netbackup
bin/: Commands, scripts, programs, daemons, and files required for Netbackup operations.
bin/admincmd: Contains various programs used by Netbackup internally. Generally, you shouldn't be messing
with these programs.
bin/goodies (UNIX only): Contains scripts and information that may be useful to the backup administrator.
bp.conf: Netbackup configuration file. See Netbackup Admin Guide for details. Client: Netbackup client s/w
that gets installed on the clients.
db: Netbackup databases.
exclude_list: List files/dirs to exclude from UNIX backups globally.
help: ASCII help files used by Netbackup programs.
include_list: Subset of the excluce_list to include in backups on UNIX clients
logs: Detailed activity logs for Netbackup processes. Appropriate subdirectories must be created for this logging
to work.
release_notes: Self explanatory version Version and release date of the s/w.
Log and Information Files
Netbackup and Patch versions: /opt/openv/netbackup/bin/version
Volume Pool: A logical grouping of volumes to be used for a specific application. For instance, Oracle backs up
to a certain pool, the OS to a different pool, and product code to a third pool.
Volume Group: A logical grouping of volumes based on physical location. Whereas the pool is used for actual
data, the group is used for administrative work. If you wanted to move all the volumes from one robot to
another, you can either move the volumes one at a time or, if they're all in the same group, move the group.
Server Commands
Check license details: /opt/openv/netbackup/bin/admincmd/get_license_key
Start Netbackup: netbackup start /opt/openv/netbackup/bin/initbprd (master) OR /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 Admin GUI: /opt/openv/netbackup/bin/jnbSA
Start the back up archive and restore GUI: /opt/openv/netbackup/bin/jbpSA
Scan for tape devices: sgscan (solaris); ioscan (HPUX)
Display all Netbackup processes: bpps -a
Lists servers errors: bperror -U -problems -hoursago
bperror -U -backstat -by_statcode -hoursago
Info on error code: bperror -statuscode [-recommendation]
Reread bp.conf without stopping Netbackup: bprdreq -rereadconfig
Check database consistency: bpdbm -consistency 1; bpdbm -consistency 2
Check for the following lines: Bad image header; Does not exist
Netbackup Recovery
Device catalog is intact: bprecover -l -m -d dlt (listing)
bprecover -r -m -d dlt (recovering)
Device catalog is gone or corrupted: bprecover -l -tpath (listing)
Move a tape to load port 1: echo "m s100 i1" | tldtest -r /dev/sg/c0t4l0
Archiving Commands
list archive info: bpcatlist -client all -before Jul 01 2006
bpcatlist -client all -before Aug 01 2006
archive and remove images: bpcatlist -before Jul 01 2006 | bpcatarc | bpcatrm
restore archive files: bpcatlist -before Jul 01 2006 | bpcatres
Client commands
test client connectivity: bpclntcmd [-ip ]
bpclntcmd [-hn ]
bpclntcmd [-pn]
bpclntcmd [-sv]
Misc NETBACKUP commands
List backup servers: cat /etc/hosts
Display policies: bpplist [policyname] [-L | -U] [-allpolicies] [-byclient client] [-keyword "keyword phrase"][verbose]
bpadm -> p -> b or r -> l
List the tapes in the scratch pool: vmquery -bx -a | grep TLD
Backup file list: bplist -C -t -k -s mm/dd/yyyy -e mm/dd/yyyy -l -R /
Add a client: bpclient -add -client pan-panpss1-backup -current_ip_addr 172.20.11.43 -WOFB_enabled 0
Suspend Backups: bpplinfo -set inactive
Unsuspend Backups: bpplinfo -set active
Check if drives are down: vmdareq (only run on backup media servers)
Check # of files & size of backup: bpcatlist client
Clean tape drives: Shutdown daemons; DCT cleans drives; reset mount time
Get mount time: tpclean l Get drive names: tpconfig dl; Reset mount time; tpclean M
Check the error log to identify any backup related messages in the logs. These will generally indicate any
hardware issues: cat /var/log/messages
Checks syslog for the day, removing unwanted stuff: cat /var/log/messages | grep -vE "ucd|repeated|session|
LDAP|password"
2) Check the Veritas Error Dump report to identify any unusual errors:
bperror -U -problems or| bpadm; reports; problems
3) Check the Veritas Backup Status report to ensure that all of the customer backups succeeded: bperror -U
-by_statcode -backstat | egrep -A50 -E "^\ {0,2}[1-9]"
4) Check the Veritas Media report to identify any newly failed media: tpconfig -l
Format the output and display: tpconfig -l | awk ' /drive/ {print $8" "$3" "$4" STATUS:"$6}' | column -t 5)
Ensure there is an ample supply of available media in the Scratch Pool. Record the number of available tapes in
the ticket as a reference for later:
This lists all of the tapes on the server: vmquery -bx -a
This lists all of the tapes in the scratch pool: vmquery -b -pn ScratchPool-0
This command displays the results in a formatted line: echo -e "EISI scratch tapes available: \t\t`vmquery -b -pn
ScratchPool-0 | grep TLD | grep -E "^0" | wc -l` \t`vmquery -bx -a | grep TLD | grep -E "^0" | wc -l`"